CmdID / az / az site-recovery / az site-recovery protection-container
az site-recovery protection-container create
Create to create a protection container. Azure CLI extensions reference
2 examples 4 options Its page in the Azure CLI extensions reference
Examples
protection-container create for A2A
az site-recovery protection-container create -g rg --fabric-name fabric1_name -n container1_name --vault-name vault_name --provider-input '[{instance-type:A2A}]'Identify-gName of resource group.--fabric-nameUnique fabric ARM name.-nUnique protection container ARM name.--vault-nameThe name of the recovery services vault.--provider-inputProvider specific inputs for container creation.protection-container create for hyper-v-replica-azure
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.Options
--fabric-nameUnique fabric ARM name.--protection-container-name, --name, -nUnique protection container ARM name.--provider-specific-input, --provider-inputProvider specific inputs for container creation.--vault-nameThe name of the recovery services vault.