title: How to resolve Failed to query service endpoint api: https://management.azure.com//subscriptions/ Error- The remote server returned an error: (403)
body: <p>I am trying to setup Azure Service Manager connection from VSTS for CICD Pipeline but it is failing.  I have already made below changes to Azure.</p>
  
  <ol>
  <li>Created Application thorough Azure Active Directory</li>
  <li>Created Secret Key (For azure service principal key)</li>
  <li>Provided full access to user (azure account) for created application</li>
  <li>Collected all details - client id, tenant id and subscription id</li>
  <li>Provided all these details in VSTS to setup connection</li>
  </ol>
  
  <p>When I click verify connection. it gives below error - </p>
  
  <blockquote>
    <p>Failed to query service endpoint api:
    <a href="https://management.azure.com//subscriptions/" rel="nofollow noreferrer">https://management.azure.com//subscriptions/</a>?api-version=2016-06-01.
    Error Message: The remote server returned an error: (403) Forbidden..</p>
  </blockquote>
  
  <p>below is screenshot of VSTS - </p>
  
  <p><a href="https://i.stack.imgur.com/SAhCX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SAhCX.png" alt="enter image description here"></a></p>
  
  <p>Please let me know if I missed anything OR guide me all required steps to complete this VSTS to Azure connection.</p>