CICD-270 · Azure federated authentication
Encyclopedia · Cloud infrastructure integration · All snippets
Previous · CICD-269 · Next · CICD-271
1. Where it fits
- Placement .github/workflows/azure.yml step.
- Prerequisites provider CLI, scoped CI identity, test environment and provider configuration for named resource.
- Platforms github-actions.
2. Copy the snippet
yaml
uses: azure/login@v2
with:
client-id: ${{ vars.AZURE_CLIENT_ID }}
tenant-id: ${{ vars.AZURE_TENANT_ID }}
subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}3. How it works
This invokes an action at step scope or a reusable workflow at job scope. The reference and declared inputs must match that contract.
4. Verify the result
Requires id-token: write and a matching federated credential in Entra ID. Verify the chosen subscription.
Validation syntax-validated (YAML parse). Status definitions.