Validation failing at it is showing Provisioning state from previous validation

Akanksha 0 Reputation points
2026-08-24T15:33:00.5233333+00:00

We retried the Azure Local validation after resolving the issues identified during the previous attempt. However, the validation log from the previous run appeared to be stuck at a particular stage, even though the Azure portal showed the validation as Failed.

We deleted the stuck log file and rebooted the nodes before initiating a new validation attempt. However, the new validation is now failing because the deployment settings resource is still in a Provisioning state from the previous validation attempt.

Could you please advise us on the appropriate way to clear or reset this stale provisioning state so that we can proceed with a fresh validation? We would like to avoid making any changes that could impact the existing deployment configuration.

Azure Local

1 answer

Sort by: Oldest
  1. AI answer

    2026-08-24T15:33:19.79+00:00

    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:

    1. 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.
    2. 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.
    3. Inspect the Azure edgeDevices resource 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"
    4. Delete the stale edgeDevices resource 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.
    5. Refresh the cloud-side device data
      • On the first machine, restart the service:
             Restart-Service DeviceManagementService
        
      • Wait a few minutes, then verify the edgeDevices data is repopulated and no longer contains the unexpected switch information.
    6. 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.
    7. 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:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.