ACR Azure PowerShell Connect-AzAccount Containers Docker Get-AzContainerRegistry Get-AzContainerRegistryReplication Get-AzSubscription Microsoft Microsoft Azure New-AzContainerRegistryReplication Remove-AzContainerRegistryReplication Select-AzSubscription Update-AzContainerRegistry
As I mentioned in my previous post today, I want to show you how to enable the geo-replication of your ACR. This feature will allow us to manage a single registry across all regions, push images to a single registry while the Azure service manages the replication, and last but not least, allows us to keep images very close to the application infrastructure.
If you want to know how to install the PowerShell Azure module on your machine, check out this
link. The simplest way to get started is to sign in interactively at the command line.
Connect-AzAccount
This cmdlet will bring up a dialog box prompting you for your email address and password associated with your Azure account. If you have more than one subscription associated with your mail account, you can choose the default subscription. To perform this task, we will use the following commands:
Please note that Geographic Replication is a feature of Premium records only. Geographic replication will allow you to manage a single ACR that will serve multiple regions, among other interesting features. if you don’t know if your ACR is premium, you can check it using the following command
As you can see, you should refer to the Master ACR in the -RegistryName parameter, specify a name for the new ACR and select the zone where the new replica will be hosted.