How to purge stale images from Azure Container Registry with ACR Tasks and GitHub Actions

How to purge stale images from Azure Container Registry with ACR Tasks and GitHub Actions

Cleaning up stale images (images that you’re not using) from your Azure Container Registry is important for a couple of reasons. First off, storing images in ACR isn’t free. Even with the Basic SKU, once you go past your 10GB limit, you end up paying $0.00516 AUD (at the time of writing) per GB of additional storage. If you have container images that are just sitting there not being used, it’ll waste money and second, it’ll be difficult to manage your images. ...

December 6, 2024 · 9 min · Will Velida
AKS, ACR and Bicep Lang logs

Creating a Azure Kubernetes cluster with an attached Azure Container Registry with Bicep

Azure Kubernetes Service (AKS) simplifies deploying a managed Kubernetes cluster into Azure by offloading the operational overhead to Azure. Azure Container Registry allows you to build, store and manage container images in a private registry, from which you can pull your images into your AKS cluster. Azure Container Registry integrates with AKS. We can attach container registries to our AKS clusters using an Azure Active Directory managed identity. We can then assign that managed identity will the AcrPull role assignment that allows our AKS cluster to pull images from our Azure Container Registry. ...

September 11, 2022 · 8 min · Will Velida