11
votes

I was doing some cleanup moving some Azure Cloud Services to a newly created Resource group with the following command

Find-AzureRmResource -ResourceNameContains "oldresourcename" |
Move-AzureRmResource -DestinationResourceGroupName "newresourcegroup" -Verbose

Everything was going fine, but the last one I ran seems to be taking a very long time. It is a simple CS with one worker role and one web role and small size.

The command has been in a not completed state for over an hour, and out on the Portal, both resource groups have "Moving Resources" in purple at the top of the page. I am going to wait until tomorrow to see if it still persists, but it should not be taking this long.

Is there a way to cancel or halt this operation? The concern is that both Resource Groups are locked till this process is complete, which will be an issue moving forward.

1
Have you been able to fix this. I'm also facing the same problem.Kerem Demirer
I am also facing this issue. Was anyone able to get this resolved.Aman Sharma
@KeremDemirer, can you please tell us what happened with this?nmit026
@AmanSharma, can you please tell us what happened with this? Thanks!nmit026
@nmit026 I waited for 4-6 hours and the job failed and I was able to proceed agead next day.Aman Sharma

1 Answers

2
votes

From my experience the move will eventually time out if there's an issue. I had a similar issue moving a web app and the SSL cert caused the move to fail, but it took a couple of hours for it to fail.

More information from Microsoft on what is able to move:

https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-move-resources