Author : MD TAREQ HASSAN | Updated : 2022/01/10
Create ARM service connection
Service connection can be created in 2 ways:
- Manual : you gather service principal and subscription information and based on that service connection will be created
- Automatic : app registration and service principal will be created in Azure AD automatically
For manual approach, make sure that you have following information ready (based on service principal credential)
{
"SubscriptionId": "xxx",
"SubscriptionName": "Pay-As-You-Go Dev/Test",
"ServicePrincipalId": "xxx",
"ServicePrincipalKey": "xxx",
"ServiceConnectionName": "pulumi-demo-sc",
"ServiceConnectionDescription": "Service connection for Pulumi stack deployment to target subscription",
"TenantId": "xxx"
}
Notes:
- ServicePrincipalId -> ClientId
- ServicePrincipalKey -> ClientSecret
Manual Connection
- Go to DevOps portal > Select project (create project if does not exist)
- Project Settings (bottom left) > Service connections > New service connection
- Azure Resource Manager > Service principal (manual)
Automatic Connection
- Go to DevOps portal > Select project (create project if does not exist)
- Project Settings (bottom left) > Service connections > New service connection
- Azure Resource Manager > Service principal (automatic)
Create ACR service connection
- Project settings > Service connections
- New service connection > Search “registry” > Docker registry > Next
- Select
- “Azure Container Registry”
- Target usbscription
- Fillup ACR service connection name and decription
- Save