How to setup an account of VSTS(corporate) with an account of Azure(personal) to Continuous Deployment

158 Views Asked by At

I have an account which is bound to VSTS that is corporative, and an Azure account that is bound to the same email but as a personal account.

I have a Build Definition which generates a package.zip of my Web App. I can't use Release of VSTS to get this package.zip and publish it, because i can't create an Azure Resource Manager with my Azure Subscription, because my Azure account is a Microsoft Personal Account and my VSTS Account is a Microsoft Corporative Account. I tryed to use TenantId but VSTS don`t let me create this Service Endpoint.

Image of VSTS Services Endpoints. Image of VSTS Services Endpoints

Image of VSTS Release. If i can create a Service Endpoint(Azure RM) with the Azure Subscription of my Personal Account, the Subscription will appear in AzureRM Subscription drop down. enter image description here

Any thoughts?

1

There are 1 best solutions below

0
On

You should not be using your own identity to create an ARM Endpoint. You should create a service principal in Azure and after that create an ARM Endpoint in VSTS with Service Principal information.

You can read how to do this in my blogpost here.