title: Getting permissions error when trying to deploy to a azure resource in a pipeline in azure devops
body: <p>I hope someone can help me.</p>
  <p>I am creating a pipeline in Azure Devops taking an existing reference yaml where I basically have a step where I need to deploy to an Azure resource function, within an Azure subscription, from which I have permissions to read, create and delete resources.</p>
  <p>The deploy step is:</p>
  <pre><code>Settings
  - task: AzureFunctionApp@1
    inputs:
      azureSubscription: 'private-suscription-dont-show-name'
      appType: 'functionApp'
      appName: 'chatbot-service-functions2'
      package: '$(System.DefaultWorkingDirectory)/**/*.zip'
      deploymentMethod: 'auto' 
  </code></pre>
  <p>Basically I click on the setting option and it opens a menu for me.</p>
  <ol>
  <li><p>I choose in the option &quot;Azure subscription&quot; the subscription where I have the resource that I want to deploy, the name of the subscription appears and I choose it without any problem.</p>
  </li>
  <li><p>At the same time that I choose the name of the subscription I get an option &quot;Authorize&quot; in which I click, and immediately I get an error:</p>
  <blockquote>
  <p>Service connection with name 'private-suscription-dont-show-name' already exists. Only a user having Administrator/User role permissions on service connection 'private-suscription-dont-show-name' can see it.</p>
  </blockquote>
  </li>
  </ol>
  <p>My question is why can't I deploy, using autocomplete, to a resource within a subscription in which I have permission to read, create and delete resources? Do I have any other option to deploy without autocomplete?</p>