Cheat Sheet - Azure Container Registry

Log into ACR with helm

TOKEN=$(az acr login --name <acrName> --expose-token --output tsv --query accessToken)
echo $TOKEN | helm registry login myregistry.azurecr.io \
            --username 00000000-0000-0000-0000-000000000000 \
            --password-stdin

Push chart to registry as OCI artifact

helm push hello-world-0.1.0.tgz oci://$ACR_NAME.azurecr.io/helm

Push image to ACR

az login 
az acr login --name myregistry
docker tag repo/image:tag myregistry.azurecr.io/repo/image:tag
docker push myregistry.azurecr.io/repo/image:tag