Add Azure endpoint

To be able to release in any form to your azure subscription you need to create an token based endpoint what VSTS will use.
Go to Settings  -> Services -> New Service Endpoint

When you already have an Azure subscription connected you can select it from the drop down box. Otherwise you need to manually configure a new Service Principle connection.

Download and run this powershell script.
Enter your azure subscription name, can be found on portal.azure.com -> subscription -> subscriptionname
Enter your password to be used for the endpoint
Log in to your account
Copy these fields from the output of the PowerShell script into the Azure subscription dialog textboxes:

  • Subscription ID
  • Subscription Name
  • Service Principal ID
  • Service Principal Key
  • Tenant ID

Click ok

 

When for some reason the powershell doesn’t work you can go to the classic azure portal and look for: