az storage account migration

注意

此命令群組具有 Azure CLI 和至少一個擴充功能中定義的命令。 安裝每個擴充功能以受益於其擴充功能。 深入了解擴充功能。

管理記憶體帳戶移轉。

命令

名稱 Description 類型 狀態
az storage account migration show

取得指定記憶體帳戶進行中移轉的狀態。

核心 GA
az storage account migration show (storage-preview 擴充功能)

取得指定記憶體帳戶進行中移轉的狀態。

副檔名 GA
az storage account migration start

您可以觸發帳戶移轉要求,讓記憶體帳戶變更其備援層級。 移轉會將非區域性備援記憶體帳戶更新為區域性備援帳戶,反之亦然,以便擁有更佳的可靠性和可用性。 區域備援儲存體 (ZRS) 會在主要區域中將儲存體帳戶同步複寫至三個 Azure 可用區域。

核心 GA
az storage account migration start (storage-preview 擴充功能)

您可以觸發帳戶移轉要求,讓記憶體帳戶變更其備援層級。 移轉會將非區域性備援記憶體帳戶更新為區域性備援帳戶,反之亦然,以便擁有更佳的可靠性和可用性。 區域備援儲存體 (ZRS) 會在主要區域中將儲存體帳戶同步複寫至三個 Azure 可用區域。

副檔名 GA

az storage account migration show

取得指定記憶體帳戶進行中移轉的狀態。

az storage account migration show [--account-name]
                                  [--ids]
                                  [--migration-name {default}]
                                  [--resource-group]
                                  [--subscription]

範例

移轉顯示

az storage account migration show --account-name "storage_account_name" -g "resource_group_name"

選擇性參數

--account-name

指定資源群組中儲存體帳戶的名稱。 儲存體帳戶名稱的長度必須介於 3 到 24 個字元之間,且只能使用數字和小寫字母。

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是完整資源識別碼,其中包含「資源標識碼」引數的所有資訊。 您應該提供 --ids 或其他「資源識別碼」引數。

--migration-name --name -n

儲存體帳戶移轉的名稱。 它一律應該是 『default』。

接受的值: default
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az storage account migration show (storage-preview 擴充功能)

取得指定記憶體帳戶進行中移轉的狀態。

az storage account migration show [--account-name]
                                  [--ids]
                                  [--migration-name {default}]
                                  [--resource-group]
                                  [--subscription]

範例

移轉顯示

az storage account migration show --account-name "storage_account_name" -g "resource_group_name"

選擇性參數

--account-name

指定資源群組中儲存體帳戶的名稱。 儲存體帳戶名稱的長度必須介於 3 到 24 個字元之間,且只能使用數字和小寫字母。

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是完整資源識別碼,其中包含「資源標識碼」引數的所有資訊。 您應該提供 --ids 或其他「資源識別碼」引數。

--migration-name --name -n

儲存體帳戶移轉的名稱。 它一律應該是 『default』。

接受的值: default
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az storage account migration start

您可以觸發帳戶移轉要求,讓記憶體帳戶變更其備援層級。 移轉會將非區域性備援記憶體帳戶更新為區域性備援帳戶,反之亦然,以便擁有更佳的可靠性和可用性。 區域備援儲存體 (ZRS) 會在主要區域中將儲存體帳戶同步複寫至三個 Azure 可用區域。

az storage account migration start --sku {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]

範例

移轉開始

az storage account migration start --account-name "storage_account_name" -g "resource_group_name" --sku Standard_ZRS --name default --no-wait

必要參數

--sku --target-sku-name

帳戶的目標 SKU 名稱。

接受的值: Premium_LRS, Premium_ZRS, Standard_GRS, Standard_GZRS, Standard_LRS, Standard_RAGRS, Standard_RAGZRS, Standard_ZRS

選擇性參數

--account-name

指定資源群組中儲存體帳戶的名稱。 儲存體帳戶名稱的長度必須介於 3 到 24 個字元之間,且只能使用數字和小寫字母。

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是完整資源識別碼,其中包含「資源標識碼」引數的所有資訊。 您應該提供 --ids 或其他「資源識別碼」引數。

--name

客戶起始移轉的目前值為 「預設值」。

--no-wait

請勿等候長時間執行的作業完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

--type

ARM 合約中的 SrpAccountMigrationType 是 'accountMigrations'。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az storage account migration start (storage-preview 擴充功能)

您可以觸發帳戶移轉要求,讓記憶體帳戶變更其備援層級。 移轉會將非區域性備援記憶體帳戶更新為區域性備援帳戶,反之亦然,以便擁有更佳的可靠性和可用性。 區域備援儲存體 (ZRS) 會在主要區域中將儲存體帳戶同步複寫至三個 Azure 可用區域。

az storage account migration start --sku {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]

範例

移轉開始

az storage account migration start --account-name "storage_account_name" -g "resource_group_name" --sku Standard_ZRS --name default --no-wait

必要參數

--sku --target-sku-name

帳戶的目標 SKU 名稱。

接受的值: Premium_LRS, Premium_ZRS, Standard_GRS, Standard_GZRS, Standard_LRS, Standard_RAGRS, Standard_RAGZRS, Standard_ZRS

選擇性參數

--account-name

指定資源群組中儲存體帳戶的名稱。 儲存體帳戶名稱的長度必須介於 3 到 24 個字元之間,且只能使用數字和小寫字母。

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是完整資源識別碼,其中包含「資源標識碼」引數的所有資訊。 您應該提供 --ids 或其他「資源識別碼」引數。

--name

客戶起始移轉的目前值為 「預設值」。

--no-wait

請勿等候長時間執行的作業完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

--type

ARM 合約中的 SrpAccountMigrationType 是 'accountMigrations'。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。