Forum Discussion
KayodeAyodele
Jul 10, 2023Copper Contributor
Invalid Storage Account
Iām trying to migrate a Resource Group across subscriptions but one VM in particular throws up this error
The Move Resources request contains VMs which are associated with invalid storage accounts. Please check details for these resource ids and referenced storage account names. (Code: MoveResourcesHaveInvalidState, Target: Microsoft.Compute/virtualMachines) Storage Account 'storageaccountname' either does not exist or is in an invalid state. (Code: MoveResourcesHaveInvalidState, Target: /subscriptions/subscriptionID/resourceGroups/RGName/providers/Microsoft.Compute/virtualMachines/
The referenced storage account does not exist and I have cycled the options on the boot diagnostic storage account to no avail
- Jim_FoegeCopper Contributor
I worked for me š
- Jim_FoegeCopper Contributor
I see you encountered this before too š
- hariskhurshidCopper Contributoragreed juliohernandez2790
- juliohernandez2790Copper Contributor
I solved this issue, go to the boot diagnostic in the left panel, then go to boot diagnostic settings, finally you need yo disable de boot diagnostics and save, now you can move the resource to another subscription.
- PhilistinDCopper Contributor
juliohernandez2790 ~ Thanks for the insights on this!
- Chandrasekhar_AryaSteel Contributor
Managed disks do not support move. This restriction means that several related resources cannot be moved too. You cannot move:
1.Managed disks
2.Virtual machines with the managed disks
3.Images created from managed disks
4.Snapshots created from managed disks
5.Availability sets with virtual machines with managed disks.
Virtual machines created from Marketplace resources cannot be moved across subscriptions. Deprovision the virtual machine in the current subscription, and deploy again in the new subscription.
Virtual Machines with certificate stored in Key Vault can be moved to a new resource group in the same subscription, but not across subscriptions.
You can look here for the limitations and supported services https://azure.microsoft.com/en-us/documentation/articles/resource-group-move-resources/
https://social.msdn.microsoft.com/Forums/en-US/2b05152e-8cd0-4502-bdce-30c2e9ea5534/resource-moved-failed?forum=WAVirtualMachinesforWindows