Create an Azure Resource Manager service connection in Azure DevOps using workload identity federation instead of a client secret

domain: learn.microsoft.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. In Azure DevOps, create a new Azure Resource Manager service connection and choose the Workload Identity Federation authentication method.
  2. Pick 'automatic' for Azure DevOps to provision and federate an app registration/managed identity for you, or 'manual' if you need control over the identity's name and permissions, or want to reuse an existing identity.
  3. For manual setup, copy the federated credential values Azure DevOps shows — issuer, subject identifier in the form sc://<organization>/<project>/<service-connection-name>, and audience api://AzureADTokenExchange — and add them as a federated credential on the identity in Microsoft Entra.
  4. Grant the identity the Azure RBAC role(s) needed on the target subscription or resource group.
  5. Reference the service connection by name in an AzureCLI@2 (or similar Azure Resource Manager-based) pipeline task; Azure Pipelines exchanges its own OIDC token for a short-lived Azure access token at run time with no stored secret.

Known gotchas

Related routes

Configure Azure Workload Identity Federation for Kubernetes pods to access Azure resources without client secrets
learn.microsoft.com · 6 steps · unrated
Configure GCP workload identity federation to eliminate service account keys
cloud.google.com/iam · 6 steps · unrated
Authenticate a GitHub Actions workflow to Azure using OIDC federated credentials instead of a client secret
learn.microsoft.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans