Skill 1.3.3

Automate resource provisioning by using GitHub Actions workflows

Key Concepts

A workflow in .github/workflows runs on events such as a push to main, a pull request or a manual workflow_dispatch. A typical provisioning workflow signs in with azure/login, runs az deployment group what-if on pull requests so reviewers see the change, and runs az deployment group create followed by az ml commands after merge.

GitHub environments such as dev and prod hold environment-specific variables and protection rules, such as required reviewers, so that a production deployment waits for approval. Each environment can map to its own federated credential and Azure identity, which keeps a development workflow from changing production resources.