'Azure policy for ACR Registry name

Is there any Azure policy to validate "registry name" during new ACR creation in Azure.

I tried with different patterns but its not validating from

"Microsoft.ContainerRegistry/registries"



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source