az site-recovery protection-container mapping
注意
此參考是 Azure CLI 的月臺復原 延伸模組的一部分 (2.51.0 版或更高版本)。 擴充功能會在您第一次執行 az site-recovery protection-container mapping 命令時自動安裝。 深入了解擴充功能。
管理保護容器的保護容器對應。
命令
名稱 | Description | 類型 | 狀態 |
---|---|---|---|
az site-recovery protection-container mapping create |
建立作業以建立保護容器對應。 |
擴充 | GA |
az site-recovery protection-container mapping delete |
刪除作業以清除保護容器對應(強制刪除)。 |
擴充 | GA |
az site-recovery protection-container mapping list |
列出保護容器的保護容器對應。 |
擴充 | GA |
az site-recovery protection-container mapping remove |
要刪除或移除保護容器對應的作業。 |
擴充 | GA |
az site-recovery protection-container mapping show |
取得保護容器對應的詳細資料。 |
擴充 | GA |
az site-recovery protection-container mapping update |
更新作業以建立保護容器對應。 |
擴充 | GA |
az site-recovery protection-container mapping create
建立作業以建立保護容器對應。
az site-recovery protection-container mapping create --fabric-name
--mapping-name
--protection-container
--resource-group
--vault-name
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--policy-id]
[--provider-input]
[--target-container]
範例
針對 A2A 建立保護容器對應
az site-recovery protection-container mapping create -g rg --fabric-name fabric1_name -n container_mapping1_name --protection-container container1_name --vault-name vault_name --policy-id policy_id --provider-input '{a2a:{agent-auto-update-status:Disabled}}' --target-container container2_id
H2A 的保護容器對應建立
az site-recovery protection-container mapping create -g "rg" --fabric-name "fabric_name" -n "container_mapping_name" --protection-container "container_name" --vault-name "vault_name" --policy-id "policy_id" --target-container "Microsoft Azure" --provider-input '{hyper-v-replica-azure:""}'
V2A RCM 的保護容器對應建立
az site-recovery protection-container mapping create -g "rg" --fabric-name "fabric_name" -n "container_mapping_name" --protection-container "container_name" --vault-name "vault_name" --policy-id "policy_id" --target-container "Microsoft Azure" --provider-input '{in-mage-rcm:{enable-agent-auto-upgrade:true}}'
必要參數
網狀架構名稱。
保護容器對應名稱。
保護容器名稱。
資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>
。
復原服務保存庫的名稱。
選擇性參數
請勿等候長時間執行的作業完成。
適用的原則。
配對的提供者特定輸入。 支援速記語法、json-file 和 yaml-file。 請嘗試 「??」 以顯示更多。
目標唯一保護容器名稱。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
az site-recovery protection-container mapping delete
刪除作業以清除保護容器對應(強制刪除)。
az site-recovery protection-container mapping delete [--fabric-name]
[--ids]
[--mapping-name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--protection-container]
[--resource-group]
[--subscription]
[--vault-name]
[--yes]
範例
protection-container mapping delete
az site-recovery protection-container mapping delete -g rg --fabric-name fabric1_name -n container_mapping1_name --protection-container container1_name --vault-name vault_name
選擇性參數
網狀架構名稱。
一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。
保護容器對應名稱。
請勿等候長時間執行的作業完成。
保護容器名稱。
資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>
。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
復原服務保存庫的名稱。
不提示確認。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
az site-recovery protection-container mapping list
列出保護容器的保護容器對應。
az site-recovery protection-container mapping list --fabric-name
--protection-container
--resource-group
--vault-name
[--max-items]
[--next-token]
範例
protection-container mapping list
az site-recovery protection-container mapping list -g rg --fabric-name fabric_source_name --protection-container container_source_name --vault-name vault_name
必要參數
網狀架構名稱。
保護容器名稱。
資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>
。
復原服務保存庫的名稱。
選擇性參數
命令輸出中要傳回的專案總數。 如果可用的專案總數超過指定的值,則會在命令的輸出中提供權杖。 若要繼續分頁,請在後續命令的引數中 --next-token
提供權杖值。
標記,指定要開始分頁的位置。 這是先前截斷回應中的權杖值。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
az site-recovery protection-container mapping remove
要刪除或移除保護容器對應的作業。
az site-recovery protection-container mapping remove [--fabric-name]
[--ids]
[--mapping-name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--protection-container]
[--provider-input]
[--resource-group]
[--subscription]
[--vault-name]
範例
protection-container mapping remove
az site-recovery protection-container mapping remove -g rg --fabric-name fabric_source_name -n container_mapping_source_name --protection-container container_source_name --vault-name vault_name
選擇性參數
網狀架構名稱。
一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。
保護容器對應名稱。
請勿等候長時間執行的作業完成。
保護容器名稱。
未配對的提供者特定輸入。 支援速記語法、json-file 和 yaml-file。 請嘗試 「??」 以顯示更多。
資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>
。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
復原服務保存庫的名稱。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
az site-recovery protection-container mapping show
取得保護容器對應的詳細資料。
az site-recovery protection-container mapping show [--fabric-name]
[--ids]
[--mapping-name]
[--protection-container]
[--resource-group]
[--subscription]
[--vault-name]
範例
protection-container mapping show
az site-recovery protection-container mapping show -g rg --fabric-name fabric_source_name -n container_mapping_source_name --protection-container container_source_name --vault-name vault_name
選擇性參數
網狀架構名稱。
一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。
保護容器對應名稱。
保護容器名稱。
資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>
。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
復原服務保存庫的名稱。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
az site-recovery protection-container mapping update
更新作業以建立保護容器對應。
az site-recovery protection-container mapping update [--add]
[--fabric-name]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--mapping-name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--policy-id]
[--protection-container]
[--provider-input]
[--remove]
[--resource-group]
[--set]
[--subscription]
[--target-container]
[--vault-name]
範例
protection-container mapping update
az site-recovery protection-container mapping update -g rg --fabric-name fabric_source_name -n container_mapping_source_name --protection-container container_source_name --vault-name vault_name --policy-id policy_id --provider-input '{a2a:{agent-auto-update-status:Enabled}}' --target-container container_recovery_id
選擇性參數
藉由指定路徑和索引鍵值組,將 物件加入物件清單。 範例:--add property.listProperty < key=value、string 或 JSON 字串 > 。
網狀架構名稱。
使用 'set' 或 'add' 時,請保留字元串常值,而不是嘗試轉換成 JSON。
一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。
保護容器對應名稱。
請勿等候長時間執行的作業完成。
適用的原則。
保護容器名稱。
配對的提供者特定輸入。 支援速記語法、json-file 和 yaml-file。 請嘗試 「??」 以顯示更多。
從清單中移除屬性或專案。 範例:--remove property.list OR --remove 屬性ToRemove。
資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>
。
指定要設定的屬性路徑和值,以更新物件。 範例:--set property1.property2=。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
目標唯一保護容器名稱。
復原服務保存庫的名稱。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。