az acr replication
管理 Azure 容器注册表的异地复制区域。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az acr replication create |
为 Azure 容器注册表创建复制区域。 |
Core | GA |
| az acr replication delete |
从 Azure 容器注册表中删除复制的区域。 |
Core | GA |
| az acr replication list |
列出异地复制的 Azure 容器注册表的所有区域。 |
Core | GA |
| az acr replication show |
获取复制区域的详细信息。 |
Core | GA |
| az acr replication update |
更新复制。 |
Core | GA |
az acr replication create
为 Azure 容器注册表创建复制区域。
az acr replication create --location
--registry
[--name]
[--region-endpoint-enabled {false, true}]
[--resource-group]
[--tags]
[--zone-redundancy {Disabled, Enabled}]
示例
为 Azure 容器注册表创建复制区域。
az acr replication create -r myregistry -l westus
为 Azure 容器注册表创建复制区域。 (autogenerated)
az acr replication create --location westus --registry myregistry --resource-group MyResourceGroup
必需参数
Location.
az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。
容器注册表的名称。 它应以小写形式指定。 可以使用 az configure --defaults acr=<registry name>配置默认注册表名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
复制的名称。 默认为位置名称。
允许路由到此复制。 不会将请求路由到禁用的复制。 无论区域终结点状态如何,数据同步都会继续。 默认值:true。
| 属性 | 值 |
|---|---|
| 接受的值: | false, true |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。
指示是否应为此注册表或复制启用区域冗余。 有关详细信息(如支持的位置),请访问 https://aka.ms/acr/az。 区域冗余无法更新。 默认值为“Disabled”。
| 属性 | 值 |
|---|---|
| 接受的值: | Disabled, Enabled |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az acr replication delete
从 Azure 容器注册表中删除复制的区域。
az acr replication delete --name
--registry
[--resource-group]
示例
从 Azure 容器注册表中删除复制的区域。
az acr replication delete -n MyReplication -r myregistry
必需参数
复制的名称。
容器注册表的名称。 它应以小写形式指定。 可以使用 az configure --defaults acr=<registry name>配置默认注册表名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az acr replication list
列出异地复制的 Azure 容器注册表的所有区域。
az acr replication list --registry
[--resource-group]
示例
列出复制并在表中显示结果。
az acr replication list -r myregistry -o table
必需参数
容器注册表的名称。 它应以小写形式指定。 可以使用 az configure --defaults acr=<registry name>配置默认注册表名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az acr replication show
获取复制区域的详细信息。
az acr replication show --name
--registry
[--resource-group]
示例
获取复制区域的详细信息
az acr replication show -n MyReplication -r myregistry
必需参数
复制的名称。
容器注册表的名称。 它应以小写形式指定。 可以使用 az configure --defaults acr=<registry name>配置默认注册表名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az acr replication update
更新复制。
az acr replication update --name
--registry
[--add]
[--force-string]
[--region-endpoint-enabled {false, true}]
[--remove]
[--resource-group]
[--set]
[--tags]
示例
更新复制的标记
az acr replication update -n MyReplication -r myregistry --tags key1=value1 key2=value2
更新复制。 (autogenerated)
az acr replication update --name MyReplication --registry myregistry --resource-group MyResourceGroup --tags key1=value1 key2=value2
必需参数
复制的名称。
容器注册表的名称。 它应以小写形式指定。 可以使用 az configure --defaults acr=<registry name>配置默认注册表名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
通过指定路径和键值对将对象添加到对象列表。 示例:--add property.listProperty <key=value, string or JSON string>。
| 属性 | 值 |
|---|---|
| Parameter group: | Generic Update Arguments |
| 默认值: | [] |
使用“set”或“add”时,保留字符串文本,而不是尝试转换为 JSON。
| 属性 | 值 |
|---|---|
| Parameter group: | Generic Update Arguments |
| 默认值: | False |
允许路由到此复制。 不会将请求路由到禁用的复制。 无论区域终结点状态如何,数据同步都会继续。
| 属性 | 值 |
|---|---|
| 接受的值: | false, true |
从列表中删除属性或元素。 示例: --remove property.list <indexToRemove> OR --remove propertyToRemove.
| 属性 | 值 |
|---|---|
| Parameter group: | Generic Update Arguments |
| 默认值: | [] |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
通过指定要设置的属性路径和值来更新对象。 示例:--set property1.property2=<value>。
| 属性 | 值 |
|---|---|
| Parameter group: | Generic Update Arguments |
| 默认值: | [] |
空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |