Azure Resource Mover

John Sparks 111 Reputation points
2022-12-05T11:44:41.31+00:00

Hi All, I did some testing with Azure Resource mover and now how a couple of RGs that I cant remove. I also have two moves that I cannot discard (I assume this is why I cant remove the Resource Groups).

If I go into Resource Mover> Across Regions I see the two moves, both set to "prepare pending". I've tried removing them, and discarding the move, and I just get errors.

The Discard error for the first one shows as
Error Id MoveCollectionResolveRequired
Error message The operation has failed as dependency resolution is required for one or more move resources.
Possible Causes: One or more resources in the move collection has dependencies that are yet to be resolved.
Recommended Action: Resolve dependencies and retry the operation.
Error Id MoveCollectionDiscardOperationInvalidState
Error message
The resources: [
"/subscriptions/608df3f9-de3f-4e3e-8b52-0a42f937c3d6/resourceGroups/RG01-eastus/providers/Microsoft.Network/virtualNetworks/jdbvnet01",
"PreparePending"
] are not in a valid state to execute the Discard operation.
Possible Causes: To be able to execute Discard operation, the resources should be in a state 'Commit pending' as Discard is an optional step after you initiate the move.
Recommended Action: Ensure that the following operations - prepare, initiate move are completed before trying 'Discard'.

Thanks!

Azure Resource Mover
Azure Resource Mover
An Azure service used for moving multiple resources between Azure regions.
262 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 27,971 Reputation points
    2022-12-06T08:23:17.737+00:00

    Hello @John Sparks ,

    Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.

    I understand you have tried to discard the resources out of a resource collection made for test move scenario. If the current resource collection state is "Prepare Pending" and if you want to discard, you should be able to do so. However, here the VNet "jdbvnet01" is with validation failures which is going to cause blockers for any further action.

    Error message
    The resources: [
    "/subscriptions/608df3f9-de3f-4e3e-8b52-0a42f937c3d6/resourceGroups/RG01-eastus/providers/Microsoft.Network/virtualNetworks/jdbvnet01", "PreparePending"] are not in a valid state to execute the Discard operation.

    Try to fix the validation errors on the Vnet "jdbvnet01" or remove it from the move collection and then try discarding the move collection.

    If you still see any issues, please tag me in your comment. I will help to debug further.

    Hope this helps!
    Please "Accept as Answer" and Upvote if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.


Your answer

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