az acr replication

Manage geo-replicated regions of Azure Container Registries.

Commands

az acr replication create Create a replicated region for an Azure Container Registry.
az acr replication delete Delete a replicated region from an Azure Container Registry.
az acr replication list List all of the regions for a geo-replicated Azure Container Registry.
az acr replication show Get the details of a replicated region.
az acr replication update Updates a replication.

az acr replication create

Create a replicated region for an Azure Container Registry.

az acr replication create --location
--registry
[--name]
[--resource-group]
[--subscription]
[--tags]

Examples

Create a replicated region for an Azure Container Registry.

az acr replication create -r MyRegistry -l westus

Create a replicated region for an Azure Container Registry. (autogenerated)

az acr replication create --location westus --registry MyRegistry --resource-group MyResourceGroup

Required Parameters

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--registry -r

The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry name>.

Optional Parameters

--name -n

The name of the replication. Default to the location name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--tags

Space-separated tags in 'key[=value]' format. Use "" to clear existing tags.

az acr replication delete

Delete a replicated region from an Azure Container Registry.

az acr replication delete --name
--registry
[--resource-group]
[--subscription]

Examples

Delete a replicated region from an Azure Container Registry.

az acr replication delete -n MyReplication -r MyRegistry

Required Parameters

--name -n

The name of the replication.

--registry -r

The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry name>.

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az acr replication list

List all of the regions for a geo-replicated Azure Container Registry.

az acr replication list --registry
[--resource-group]
[--subscription]

Examples

List replications and show the results in a table.

az acr replication list -r MyRegistry -o table

Required Parameters

--registry -r

The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry name>.

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az acr replication show

Get the details of a replicated region.

az acr replication show --name
--registry
[--resource-group]
[--subscription]

Examples

Get the details of a replicated region

az acr replication show -n MyReplication -r MyRegistry

Required Parameters

--name -n

The name of the replication.

--registry -r

The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry name>.

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az acr replication update

Updates a replication.

az acr replication update --name
--registry
[--add]
[--force-string]
[--remove]
[--resource-group]
[--set]
[--subscription]
[--tags]

Examples

Update tags for a replication

az acr replication update -n MyReplication -r MyRegistry --tags key1=value1 key2=value2

Required Parameters

--name -n

The name of the replication.

--registry -r

The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry name>.

Optional Parameters

--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--tags

Space-separated tags in 'key[=value]' format. Use "" to clear existing tags.