CmdID

CmdID / az / az site-recovery / az site-recovery policy

az site-recovery policy create

Create operation to create a replication policy. Azure CLI extensions reference

4 examples 3 options Its page in the Azure CLI extensions reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

policy create of type in-mage-rcm

az site-recovery policy create -g "rg" --vault-name "vault_name" -n "policy_name" --provider-specific-input '{in-mage-rcm:{app-consistent-frequency-in-minutes:0,crash-consistent-frequency-in-minutes:5,enable-multi-vm-sync:true,recovery-point-history-in-minutes:1440}}'Identify
-gName of resource group.
--vault-nameThe name of the recovery services vault.
-nReplication policy name.
--provider-specific-inputThe ReplicationProviderSettings.

policy create for type in-mage-rcm-failback

az site-recovery policy create -g rg --vault-name vault_name -n policy_name_rcm_failback --provider-specific-input '{in-mage-rcm-failback:{app-consistent-frequency-in-minutes:60,crash-consistent-frequency-in-minutes:5}}'Identify
-gName of resource group.
--vault-nameThe name of the recovery services vault.
-nReplication policy name.
--provider-specific-inputThe ReplicationProviderSettings.

policy create for A2A

az site-recovery policy create -g rg --vault-name vault_name -n policy_name --provider-specific-input {a2a:{multi-vm-sync-status:Enable}}Identify
-gName of resource group.
--vault-nameThe name of the recovery services vault.
-nReplication policy name.
--provider-specific-inputThe ReplicationProviderSettings.

policy create for hyper-v-replica-azure

az site-recovery policy create -g "rg" --vault-name "vault_name" -n "policy_name" --provider-specific-input '{hyper-v-replica-azure:{application-consistent-snapshot-frequency-in-hours:1,recovery-point-history-duration:2,replication-interval:300}}'Identify
-gName of resource group.
--vault-nameThe name of the recovery services vault.
-nReplication policy name.
--provider-specific-inputThe ReplicationProviderSettings.

Options

3 in the Azure CLI extensions reference
--policy-name, --name, -nReplication policy name.
--provider-specific-input, --provider-inputThe ReplicationProviderSettings.
--vault-nameThe name of the recovery services vault.