0
votes

I have a personal and a business VSTS accounts.
When I attempt to link my azure account subscription it will only link to my personal VSTS account and not to my business VSTS account. The VSTS is business account was created by my partner but I am an administrator.

My goal is to setup automated builds and deployments but this account issue is stumbling block.

I attempt to follow two different methods both failed.

  1. I used the steps outlined here: https://github.com/projectkudu/kudu/wiki/Setting-up-a-VSTS-account-so-it-can-deploy-to-a-Web-App (Go to the Team Services Account) This resulted in the issue above. The linked account is my personal and not my business and there seems to be no way to change it.

  2. I tried the method outlined here: https://www.visualstudio.com/en-us/docs/build/apps/cd/deploy-webdeploy-webapps But this resulted in the account not being authorized (generic auth error) when selecting the subscription.

Any Ideas?

2

2 Answers

2
votes

Please note that linking Azure Subscriptions to VSTS is for billing purposes only. In order to do this, you need to be the owner of the VSTS account (there can only be one) and also a co-administrator as per this link. You can switch the owner by following the instructions here.

If you want to setup VSTS for automated build/release into Azure, what you want to do is setup an Azure Service Endpoint. The steps are essentially to setup an Azure service account (see this link) and then to create the service endpoint in VSTS release (see this link).

Hope that helps.

1
votes

You can refer to this article to unlink and relink account: Change the Azure subscription your Team Services account uses for billing.

If you just need to deploy app to azure, you don’t need to link account, just add Azure Service Endpoint and deploy app by using Azure App Service Deploy step/task.