0
votes

How to set up access to Azure subscription to provision resources there with an azure resource template (Web App, Sql Server, etc.) from Visual Studio Online (TFS)? This should grant an agent running a release definition on TFS an access. Now it breaks at Get-AzureRmContext with that it demands to call Login-AzureRmAccount. But that should be automated deployment without pop up login windows. With "Azure App Service Deploy" task in TFS we have ability to connect an Azure subscription (not possible for Powershell task). Should some Azure Government be set up? Should TFS Agent be somehow given access to Azure Subscription?

1

1 Answers

0
votes

There is an ARM template deployment task that you can use from your release definition to create or update a resource group.

One of the inputs to the task is a Service Endpoint. By setting up a service endpoint, it handles all of the work of authenticating and selecting the correct subscription for you -- all you need to do is point the task at the Service Endpoint and your ARM template and it takes care of the rest.