az storage account migration
管理存储帐户迁移。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az storage account migration show |
获取指定存储帐户正在进行的迁移状态。 |
Core | GA |
az storage account migration start |
可以触发帐户迁移请求,以便存储帐户更改其冗余级别。 迁移会将非区域性冗余存储帐户更新为区域性冗余帐户,反之亦然,以便获得更好的可靠性和可用性。 区域冗余存储 (ZRS) 在主要区域中的三个 Azure 可用性区域同步复制存储帐户。 |
Core | GA |
az storage account migration show
获取指定存储帐户正在进行的迁移状态。
az storage account migration show [--account-name]
[--ids]
[--migration-name --name {default}]
[--resource-group]
[--subscription]
示例
migration show
az storage account migration show --account-name "storage_account_name" -g "resource_group_name"
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
存储帐户迁移的名称。 它应始终为“default”。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
接受的值: | default |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az storage account migration start
可以触发帐户迁移请求,以便存储帐户更改其冗余级别。 迁移会将非区域性冗余存储帐户更新为区域性冗余帐户,反之亦然,以便获得更好的可靠性和可用性。 区域冗余存储 (ZRS) 在主要区域中的三个 Azure 可用性区域同步复制存储帐户。
az storage account migration start --sku --target-sku-name {Premium_LRS, Premium_ZRS, Standard_GRS, Standard_GZRS, Standard_LRS, Standard_RAGRS, Standard_RAGZRS, Standard_ZRS}
[--account-name]
[--ids]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--type]
[--yes]
示例
migration start
az storage account migration start --account-name "storage_account_name" -g "resource_group_name" --sku Standard_ZRS --name default --no-wait
必需参数
帐户的目标 SKU 名称。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
接受的值: | Premium_LRS, Premium_ZRS, Standard_GRS, Standard_GZRS, Standard_LRS, Standard_RAGRS, Standard_RAGZRS, Standard_ZRS |
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
指定资源组中的存储帐户的名称。 存储帐户名称长度必须介于 3 到 24 个字符之间,并且仅使用数字和小写字母。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
客户发起的迁移的当前值为“默认值”。
属性 | 值 |
---|---|
Parameter group: | Parameters Arguments |
不等待长时间运行的操作完成。
属性 | 值 |
---|---|
接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
ARM 协定中的 SrpAccountMigrationType,即“accountMigrations”。
属性 | 值 |
---|---|
Parameter group: | Parameters Arguments |
不要提示确认。
属性 | 值 |
---|---|
默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |