Complete the code to specify the Azure service used for disaster recovery.
resource = azure.[1].RecoveryServicesVault('myRecoveryVault')
The RecoveryServices service in Azure is used to create Recovery Services Vaults, which are essential for disaster recovery.
Complete the code to define the replication type for Azure Site Recovery.
replication = vault.replication_policies.create('policy1', replication_type='[1]')
HyperVReplicaAzure is a replication type used in Azure Site Recovery for replicating Hyper-V virtual machines to Azure.
Fix the error in the code to enable replication for a virtual machine.
vm.enable_replication(vault, replication_policy=[1])The replication policy name must be passed as a string, so it should be enclosed in quotes.
Fill both blanks to configure failover direction and recovery point type.
failover_config = FailoverSettings(direction='[1]', recovery_point_type='[2]')
The failover direction is usually from primary to recovery site, and the recovery point type can be 'Latest' to use the most recent recovery point.
Fill all three blanks to create a recovery plan with a group and action.
plan = RecoveryPlan(name='myPlan', groups=[RecoveryPlanGroup(name='[1]', actions=[RecoveryPlanAction(action_type='[2]', vm_name='[3]')])])
The recovery plan includes a group named 'Group1', an action type 'Failover', and targets the virtual machine named 'vm01'.