Global eindeutige Ressourcen, die Zugriff auf Datenverwaltungsdienste bieten und als übergeordneter Namespace für die Dienste dienen
Azure Resource Move fails with Microsoft.Compute/virtualMachines - NotFound although subscription contains no Compute resources
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
Ownerof SubB. -
Microsoft.Computeis registered in SubB. -
Microsoft.Computewas initially not registered in SubA. - I registered
Microsoft.Computein SubA as a troubleshooting step. This made no difference. -
Microsoft.Compute/virtualMachineslistsSwitzerland Northas 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:
- Why does Resource Move validation invoke
Microsoft.Compute/virtualMachineswhen SubA doesn't contain any Compute resources? - Which entity is the Compute Resource Provider trying to resolve when it returns
NotFound? - Is there any way to obtain more detailed backend validation information for
validateMoveResourcesthan what is exposed in the Azure Activity Log? - 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.