CmdID / az / az site-recovery / az site-recovery protection-container / az site-recovery protection-container mapping
az site-recovery protection-container mapping create
Create operation to create a protection container mapping. Azure CLI extensions reference
3 examples 7 options Its page in the Azure CLI extensions reference
Examples
protection-container mapping create for 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_idIdentify-gName of resource group.--fabric-nameFabric name.-nProtection container mapping name.--protection-containerProtection container name.--vault-nameThe name of the recovery services vault.--policy-idApplicable policy.--provider-inputProvider specific input for pairing.--target-containerThe target unique protection container name.protection-container mapping create for 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:""}'Identify-gName of resource group.--fabric-nameFabric name.-nProtection container mapping name.--protection-containerProtection container name.--vault-nameThe name of the recovery services vault.--policy-idApplicable policy.--target-containerThe target unique protection container name.--provider-inputProvider specific input for pairing.protection-container mapping create for 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}}'Identify-gName of resource group.--fabric-nameFabric name.-nProtection container mapping name.--protection-containerProtection container name.--vault-nameThe name of the recovery services vault.--policy-idApplicable policy.--target-containerThe target unique protection container name.--provider-inputProvider specific input for pairing.Options
--fabric-nameFabric name.--mapping-name, --name, -nProtection container mapping name.--policy-idApplicable policy.--protection-container-name, --protection-containerProtection container name.--provider-specific-input, --provider-inputProvider specific input for pairing.--target-protection-container-id, --target-containerThe target unique protection container name.--vault-nameThe name of the recovery services vault.