Azure-docs: Is there a powershell command to validate resources that can be moved?

Created on 29 May 2018  Â·  6Comments  Â·  Source: MicrosoftDocs/azure-docs

Looking for powershell command to check if a resource in RG/Subscription can be moved to a new RG/Subscription


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 assigned-to-author azure-resource-managesvc product-question triaged unspecifieprod

Most helpful comment

I have created this Powershell wrapper around the API in order to simplify this process.
https://gallery.technet.microsoft.com/Validate-Move-Resources-854bf278?redir=0

All 6 comments

@mganeshphani Your question has been shared with the content owner for further review.

@femsulu Thankyou. I did find a rest API which helps in this regard
https://docs.microsoft.com/en-us/rest/api/resources/resources/validatemoveresources

and also think I can use following command to invoke the api action mentioned above
https://docs.microsoft.com/en-us/powershell/module/azurerm.resources/invoke-azurermresourceaction?view=azurermps-6.1.0

however would appreciate if there is a PowerShell command already abstracting this API action.. rather than me creating the functionality myself

@mganeshphani - thanks for your question. Currently, there is not a PowerShell command for validating a move operation. The best place to request that addition is the product feedback forum.

please-close

@mganeshphani We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

I have created this Powershell wrapper around the API in order to simplify this process.
https://gallery.technet.microsoft.com/Validate-Move-Resources-854bf278?redir=0

@nemanja-jovic really nice job you have done there.
Please correct me if i'am not wrong. The script can only validate move inside the same subscription?
Do you have another one to validate the move to another subscription?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sudharma picture Sudharma  Â·  48Comments

keithdv picture keithdv  Â·  41Comments

tvperez76 picture tvperez76  Â·  55Comments

smcd253 picture smcd253  Â·  44Comments

TechTrooper picture TechTrooper  Â·  41Comments