CmdID

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

az site-recovery policy update

Update operation to update a replication policy. Azure CLI extensions reference

2 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 update for type in-mage-rcm

az site-recovery policy update -g rg --vault-name vault_name -n policy_name_rcm --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.
-nPolicy Id.
--provider-specific-inputThe ReplicationProviderSettings.

policy update for type in-mage-rcm-failback

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

Options

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