You can move a VM and its associated resources to another resource group by using the Azure portal.
-
Go to the Azure portal to manage the resource group containing the VM to move. Search for and select Resource groups.
-
Choose the resource group containing the VM that you would like to move.
-
At the top of the page for the resource group, select Move and then select Move to another resource group. The Move resources page opens.
-
Select each of the resources to move. In most cases, you should move all of the related resources that are listed.
-
Select an existing Resource group, or enter a name to have a new resource group created.
-
When you are done, select that you understand that new resource IDs will be created and that the new IDs will need to be used with the VM after it is moved, and then select OK.
Hope this helps!!
If you need to know more about Azure, then you should join Microsoft Azure certification course today.
Thank you!!