I am getting error that the target rg cannot be found. Target RG exists in new sub in same tenant. I have tried both 'TargetRG' and '/subscriptions/<SubscriptionI D>/resourceGrou ps/TargetRG' as values and neither works. Can you please help identify what I am doing wrong? Thanks in advance, your script is on-of-a-kind!
Hi! I am wondering if you can find your resource group, just be executing simple get-azresourcegroup -name 'yourresourcegr oup'
You can add me on Skype - nemanja.jovic_1 , we can try to troubleshoot your problem together.
How do you view the results of the operation? The API documentation indicates that you have to retrieve the URL listed in the "Location" property of the header to see results. The script seems to initiate the operation but does not show results. https://docs.microsoft.com/en- us/rest/api/res ources/resource s/validatemover esources "If validation succeeds, it returns HTTP response code 204 (no content). If validation fails, it returns HTTP response code 409 (Conflict) with an error message. Retrieve the URL in the Location header value to check the result of the long-running operation."
Hello Sam, I have sharped the code to wait for Azure AsyncOperation and return the response. Please check it out and thanks for the feedback.