Azure Resource Move fails with Microsoft.Compute/virtualMachines - NotFound although subscription contains no Compute resources

AlyaKoni 11 Zuverlässigkeitspunkte
2026-11-17T17:35:50.2+00:00

Title:

Azure Resource Move fails with Microsoft.Compute/virtualMachines - NotFound although subscription contains no Compute resources

Body:

Hi,

I'm trying to move Azure resources from SubA to SubB within the same Microsoft Entra tenant.

The resource move validation consistently fails with:

ResourceMoveProviderValidationFailed

The entity was not found in this Azure location.
Code: NotFound
Target: Microsoft.Compute/virtualMachines

What's confusing is that SubA contains no Microsoft.Compute resources at all.

I verified this with:

Get-AzResource |
    Where-Object ResourceType -like 'Microsoft.Compute/*'

The command returns no resources.

The resource group I originally wanted to move contains only:

Microsoft.OperationalInsights/workspaces
Microsoft.Storage/storageAccounts
Microsoft.Storage/storageAccounts

All these resources are located in Switzerland North.

To exclude dependencies or stale references in the existing resource group, I created a new Storage Account in SubA and tried to move only this newly created resource to SubB.

The validation fails with exactly the same Microsoft.Compute/virtualMachines - NotFound error.

Checks already performed

I have verified the following:

  • Both SubA and SubB are Enabled.
  • SubA and SubB belong to the same Microsoft Entra tenant.
  • I am Owner of SubB.
  • Microsoft.Compute is registered in SubB.
  • Microsoft.Compute was initially not registered in SubA.
  • I registered Microsoft.Compute in SubA as a troubleshooting step. This made no difference.
  • Microsoft.Compute/virtualMachines lists Switzerland North as an available location.
  • There are no Microsoft.Compute/* resources anywhere in SubA.
  • The issue is reproducible with a newly created Storage Account in a newly created resource group.

Activity Log

The Azure Activity Log does not provide a VM resource ID or the name of an entity that could be causing the validation failure.

It only shows the Resource Manager move validation failing:

Operation: Validate Move Resource Group Resources
Status: Failed

Microsoft.Resources/subscriptions/resourceGroups/validateMoveResources/action

ResourceMoveProviderValidationFailed
  NotFound
  Target: Microsoft.Compute/virtualMachines
  The entity was not found in this Azure location.

The validation request itself is initially accepted with HTTP status 202 and subsequently fails during resource provider validation.

Question

Has anyone seen this behavior before?

In particular, I'm trying to understand:

  1. Why does Resource Move validation invoke Microsoft.Compute/virtualMachines when SubA doesn't contain any Compute resources?
  2. Which entity is the Compute Resource Provider trying to resolve when it returns NotFound?
  3. Is there any way to obtain more detailed backend validation information for validateMoveResources than what is exposed in the Azure Activity Log?
  4. Could this indicate a stale or orphaned subscription-level reference inside Azure that is not exposed as an ARM resource?

Since the exact same error occurs with a brand-new Storage Account in a brand-new resource group, this appears to be an issue with the subscription/resource move validation rather than a dependency of the resources being moved.

Any ideas on how to further diagnose this or identify the entity causing the Microsoft.Compute/virtualMachines lookup would be greatly appreciated.

Azure Storage
Azure Storage

Global eindeutige Ressourcen, die Zugriff auf Datenverwaltungsdienste bieten und als übergeordneter Namespace für die Dienste dienen


Ihre Antwort

Antworten können von Fragestellenden als „Angenommen“ und von Moderierenden als „Empfohlen“ gekennzeichnet werden, wodurch Benutzende wissen, dass diese Antwort das Problem des Fragestellenden gelöst hat.