Recover from accidental deletion of resource bridge VM
In this article, you learn how to recover the Azure Arc resource bridge connection into a working state in disaster scenarios such as accidental deletion. In such cases, the connection between on-premises infrastructure and Azure is lost and any operations performed through Arc fail.
Prerequisites
The disaster recovery script must be run from the same folder where the config (.yaml) files are present. The config files are present on the machine used to run the script to deploy Arc resource bridge.
The machine being used to run the script must have bidirectional connectivity to the Arc resource bridge VM on port 6443 (Kubernetes API server) and 22 (SSH), and outbound connectivity to the Arc resource bridge VM on port 443 (HTTPS).
Recovering the Arc resource bridge if there is VM deletion
To recover from Arc resource bridge VM deletion, you need to deploy a new resource bridge with the same resource ID as the current resource bridge using the following steps.
Copy the Azure region and resource IDs of the Arc resource bridge, custom location, and vCenter Azure resources.
Find and delete the old Arc resource bridge template from your vCenter.
Download the onboarding script from the Azure portal and update the following section in the script, using the same information as the original resources in Azure.
$location = <Azure region of the resources> $applianceSubscriptionId = <subscription-id> $applianceResourceGroupName = <resource-group-name> $applianceName = <resource-bridge-name> $customLocationSubscriptionId = <subscription-id> $customLocationResourceGroupName = <resource-group-name> $customLocationName = <custom-location-name> $vCenterSubscriptionId = <subscription-id> $vCenterResourceGroupName = <resource-group-name> $vCenterName = <vcenter-name-in-azure>
Run the onboarding script again with the
--force
parameter../resource-bridge-onboarding-script.ps1 --force
Provide the inputs as prompted.
Once the script successfully finishes, the resource bridge should be recovered, and the previously disconnected Arc-enabled resources are manageable in Azure again.
Next steps
Troubleshoot Azure Arc resource bridge issues
If the recovery steps mentioned above are unsuccessful in restoring Arc resource bridge to its original state, try one of the following channels for support:
- Get answers from Azure experts through Microsoft Q&A.
- Connect with @AzureSupport, the official Microsoft Azure account for improving customer experience. Azure Support connects the Azure community to answers, support, and experts.
- Open an Azure support request.