Playground ACR (with AKS)
This repository contains Azure Container Registry (ACR) related examples.
Usage
- Clone this repository to your own machine
- Open Workspace
- Use WSL in Windows
- Requires Bash
- Open setup.sh to walk through steps to deploy this demo environment
- Execute different script steps one-by-one (hint: use shift-enter)
ACR Purge examples
Follow setup.sh for more detailed instructions but here are few example commands:
accessToken=$(az acr login -n $acrName --expose-token --query accessToken -o tsv)
# Using local ACR CLI
./acr login $acr_loginServer -u "00000000-0000-0000-0000-000000000000" -p "$accessToken"
./acr purge -r $acrName --filter "apps/simpleapp:.*" --ago 1m --keep 1 --dry-run
./acr purge -r $acrName --filter "apps/simpleapp:.*" --ago 1d
See more examples in ACR CLI repository.
Links
Push and pull Helm charts to an Azure container registry
Content formats supported in Azure Container Registry
Automate container image builds and maintenance with ACR Tasks