Azure Container Apps - CI-CD deployments
Source: Azure Container Apps - CI/CD deployments (video demo) (DEV Community)
Why I saved it
A walkthrough of deploying a container to Azure Container Apps and rebuilding it automatically on every push to GitHub. The outline I noted before watching:
- Create a resource group.
- Create an Azure Container Registry (ACR).
- Create a service principal for the deployments.
- Build the container.
- Configure the Container App.
- Enable CI/CD so a push to the GitHub repository builds and deploys.
- Review and update revisions.
Questions
- What permissions does the service principal need, and can a federated identity (OIDC from GitHub Actions) replace its stored secret?
- How do Container Apps revisions compare with Kubernetes rollouts?
References
- Azure Container Apps - CI/CD deployments (video demo) - the article itself.
- Azure Container Apps documentation - official reference to check the steps against.
- Cloud Computing MOC - hub for cloud notes.
Review cards
Flashcard Which permissions does the GitHub Actions identity need to deploy to Azure Container Apps?
Push access to the Azure Container Registry (AcrPush) for the new image, and rights to update the container app (typically Contributor on its resource group). To verify against the video and the docs.
Quiz What can replace a service principal's stored client secret in a GitHub Actions deployment to Azure?
- A personal access token from GitHub stored as a repository secret
- A federated credential: GitHub's OIDC token is exchanged for an Azure token
- The ACR admin user's password
- Nothing: Azure login from GitHub Actions requires a client secret
With workload identity federation, Azure trusts tokens GitHub issues for a given repository and branch, so no long-lived secret is stored.