For this Azure Local validation issue, the supported reset path is to clean up the stale validation artifacts on the first machine and then restart validation from the Azure portal.
Use this sequence:
- Remove the Arc machine lock on the first machine
- In Azure portal, open the machine under Machines - Azure Arc or from the resource group.
- Go to Settings > Locks.
- Delete the DoNotDelete lock.
- Check for and remove any unintended VM switch on the first machine
- Run:
Get-VMSwitch - If an unexpected validation-created switch exists, remove it:
Remove-VMSwitch -Name "<VM Switch Name>" -Force - Risk: removing the wrong switch can affect networking. Remove only the unintended validation-created switch.
- Run:
- Inspect the Azure
edgeDevicesresource for stale switch data- On a client with Azure CLI installed, sign in and select the subscription:
az login --tenant <tenant ID> --use-device-code az account set --subscription "<Subscription ID>" - Show the resource:
az resource show --ids "/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HybridCompute/machines/<Machine Name>/providers/Microsoft.AzureStackHCI/edgeDevices/default" - In the output, check for stale
switchDetails, such as:"switchName": "ConvergedSwitch(managementcompute)", "switchType": "External"
- On a client with Azure CLI installed, sign in and select the subscription:
- Delete the stale
edgeDevicesresource so it can be refreshed- This deletion is documented as safe only when explicitly performing this remediation.
- Run:
az resource delete --ids "/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HybridCompute/machines/<Machine Name>/providers/Microsoft.AzureStackHCI/edgeDevices/default" - Verify deletion:
az resource show --ids "/subscriptions/<Subscription ID>/resourceGroups/<Resource Group Name>/providers/Microsoft.HybridCompute/machines/<Machine Name>/providers/Microsoft.AzureStackHCI/edgeDevices/default" - Expected result:
ResourceNotFound.
- Refresh the cloud-side device data
- On the first machine, restart the service:
Restart-Service DeviceManagementService - Wait a few minutes, then verify the
edgeDevicesdata is repopulated and no longer contains the unexpected switch information.
- On the first machine, restart the service:
- Restart validation from the Azure portal
- On the Basics tab, re-enter the deployment inputs by selecting the dropdown values again.
- Uncheck the nodes at the bottom of the page.
- Reselect and revalidate the nodes.
- On the Networking page, the earlier management virtual switch error should no longer appear.
- On the Validation page, the prior stale validation error should no longer appear.
- If validation completes, continue with deployment.
- Recreate the lock on the first machine after remediation
- In Azure portal, go to Settings > Locks.
- Add a lock named DoNotDelete with lock type Delete.
Also avoid selecting Try again while validation tasks are still running, because that can produce inaccurate results in this release.
References: