When you encounter the error stating that the resource group 'rg-avd' is being updated and cannot perform the operation, it typically indicates that the resource group is still undergoing a move or update operation. This can happen if the move process is taking longer than expected, or if there are dependencies that are still being resolved.
Here are some steps you can take to troubleshoot this issue:
- Check the Provisioning State: You have already done this using the command
az group show -n rg-avd --query "properties.provisioningState" -o tsv. If it showsMovingResources, it confirms that the operation is still in progress. - Wait for Completion: Sometimes, the operation may take longer due to various factors such as the size of the resources being moved or the current load on Azure services. It is advisable to wait for a while and check the provisioning state again.
- Review Activity Logs: Check the Azure Activity Logs for any errors or warnings related to the move operation. This can provide insights into what might be causing the delay.
- Contact Azure Support: If the resources remain in the
MovingResourcesstate for an extended period, consider reaching out to Azure support for assistance. They can provide more detailed information about the status of the operation and help resolve any underlying issues.
In summary, the error indicates that the resource group is still being updated, and it may require some time to complete the operation before you can start the virtual machines again.