Hi Subin Sabu
To downgrade your Azure Container Registry (ACR) from Premium to Basic or Standard, you need to ensure that there is no virtual network rules associated with the registry.
Navigate to your ACR resource -> Under Networking, click on "Private access (virtual networks)" and remove any listed subnets or VNet associations.
You can also try using the Az CLI Commands:
- If you’re unsure of the VNet/Subnet name, you can list them using:
az acr network-rule list --name <your-acr-name> --resource-group <your-rg-name>
- Run the below command to check if
virtualNetworkRules
are still present:
If present, then remove it:az acr show --name <your-acr-name> --resource-group <your-rg> --query "networkRuleSet.virtualNetworkRules"
az acr update --name <your-acr-name> --resource-group <your-rg> --network-rule-set virtual-network-rules=[]
- After removing, try downgrading the SKU
az acr update --name <your-acr-name> --resource-group <your-rg> --sku Standard
Hope this helps!
Please Let me know if you have any queries.