Test Failover and Reset Test Resources

Refer to the following sections on steps to test failover and reset the test results.

Test Failover

To run test failover jobs, complete the following steps:

  1. On the Infrastructure resilience page, select your target resilience policy.

  2. Click Test failover.

  3. In the confirmation window, click OK. A test failover job will start based on the latest recovery point. You can go to Job monitor to check the job details, including the failed over resources and the error details. For details on checking jobs, refer to Job Monitor.

*Note: Test failover jobs do not trigger the failover details reported to the resilience policy’s configured Webhook URL.

Refer to the following table for the details of test failover for each resource type.

Cloud Service TypeResourceTest Failover Details
Microsoft AzureAzure Kubernetes ServiceCreate Kubernetes clusters and disk storage in the policy’s target environment.
Microsoft AzureMy SQL flexible serviceApply metadata of the latest recovery point to the database replicated in the policy’s target environment.
Microsoft AzurePostgreSQL flexible serverApply metadata of the latest recovery point to the database replicated in the policy’s target environment.
Microsoft AzureSQL databaseApply metadata of the latest recovery point to the database replicated in the policy’s target environment.
Microsoft AzureStorage accountApply metadata of the latest recovery point to the storage account replicated in the policy’s target environment.
Microsoft AzureWeb appCreate web app and related resources in the policy’s target environment.
Microsoft AzureVirtual machineCreate virtual machine in the policy’s target environment.
Microsoft AzureVirtual machine scale setCreate scale set and related resources in the policy’s target environment.
Amazon Web ServicesAurora and RDS databaseApply metadata of the latest recovery point to the database replicated in the policy’s target environment.
Amazon Web ServicesDynamoDBApply metadata of the latest recovery point to the database replicated in the policy’s target environment.
Amazon Web ServicesEC2 instanceCreate EC2 instances and policies in the policy’s target environment and apply the saved settings.
Amazon Web ServicesElastic BeanstalkCreate the resources in the policy’s target environment.
Amazon Web ServicesElastic Kubernetes ServiceCreate Kubernetes cluster, disk storage, IAM role, and IAM policy related to the cluster in the target environment.*Note: If there are IAM role and policy with the same names, new ones will not be created.
Amazon Web ServicesS3 bucketApply metadata of the latest recovery point to the S3 bucket replicated in the policy’s target environment.
Google CloudCloud storageApply metadata of the latest recovery point to the bucket replicated in the policy’s target environment.
Google CloudKubernetes engineCreate Kubernetes cluster, disk storage, IAM role, and IAM principle and role of related instance.*Note: If there are IAM role and policy with the same names, new ones will not be created.
Google CloudSQL instanceApply metadata of the latest recovery point to the instance replicated in the policy’s target environment.
Google CloudVirtual Machine (VM) instanceCreate VM instance, IAM roles, and IAM principles related to the instance.*Note: If there are IAM role and policy with the same names, new ones will not be created.

Reset Test Failover

After running test failover jobs, you can reset the test failover data to save your cloud service usage or reset the target resource to avoid unexpected data loss caused by the failover tests.

*Note: Only resources created by the test failover jobs can be reset.

Refer to the table below for details on how each resource type is reset during test operations..

Cloud Service TypeResourceReset Details
Microsoft AzureAzure Kubernetes ServiceDelete the Kubernetes clusters and disk storage created in the policy’s target environment.
Microsoft AzureMySQL flexible serverNo action will be done to the replicated database. The applied settings will not be reverted.
Microsoft AzurePostgreSQL flexible serverNo action will be done to the replicated database. The applied settings will not be reverted.
Microsoft AzureSQL databaseNo action will be done to the replicated database. The applied settings will not be reverted.
Microsoft AzureStorage accountNo action will be done to the replicated storage account. The applied settings will not be reverted.
Microsoft AzureWeb appDelete the created web app and related resources created in the policy’s target environment.
Microsoft AzureVirtual machineDelete the virtual machine created in the policy’s target environment.
Microsoft AzureVirtual machine scale setDelete the scale set and related resources created in the policy’s target environment
Amazon Web ServicesDynamoDBNo action will be done to the replicated storage account. The applied settings will not be reverted.
Amazon Web ServicesEC2 instanceDelete the EC2 instances and policies created in the policy’s target environment.
Amazon Web ServicesElastic BeanstalkDelete the created resources created I the target environment.
Amazon Web ServicesElastic Kubernetes ServiceDelete the Kubernetes cluster and disk storage. The disk snapshot will be kept in the target resource group until the retention period ends. IAM role and policy created will not be deleted.
Amazon Web ServicesAurora and RDS databaseNo action will be done to the replicated database. The applied settings will not be reverted.
Amazon Web ServicesS3 bucketNo action will be done to the replicated bucket. The applied settings will not be reverted.
Google CloudCloud storageNo action will be done to the replicated bucket. The applied settings will not be reverted.
Google CloudKubernetes engineDelete Kubernetes clusters and disk storage. Snapshot will remain until the retention period ends.IAM role and policy created will not be deleted.
Google CloudSQL instanceNo action will be done to the replicated instance. The applied settings will not be reverted.
Google CloudVM instanceDelete VM instance created.IAM role and policy will not be deleted.

To reset the test failover data of a resilience policy, complete the following steps:

  1. On the Infrastructure resilience page, select the target policy that has run the test failover job.

  2. Click Reset test resources.

  3. In the confirmation window, click OK. A reset job will start to run. You can go to Job monitor to check the job details, including the failed over resources and the error details. For details on checking jobs, refer to Job Monitor.