The following steps will guide you on how to add a Service Connection to an Azure Resource Manager in your DevOps organization. This is a required step to connect your Azure Subscription to the pipelines and deploy resources to Azure.
Note: The name you use for the resource will be used as AzureSubscription
in the pipeline's variables.
Go to Service connections for more information.
- An Azure DevOps Organization.
- An Azure AD application and Service Principal (*).
- Access to an active Azure Resource Manager.
(*) The Service Principal needs to have a Contributor
role in the suscription to be able to create resource groups.
-
From your Azure DevOps project, go to
Project settings -> Service Connections -> New Service connection
. -
Select
Azure Resource Manager -> Service principal (manual)
and fill out the form. Check theGrant access permission to all pipelines
option. The name you use for the Subscription Name field will be yourAzureSubscription
variable in the pipelines. More Info. -
Click on
Verify and save
when done.