{"id":17855,"date":"2020-08-26T10:29:23","date_gmt":"2020-08-26T10:29:23","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?p=17855"},"modified":"2022-04-13T10:28:16","modified_gmt":"2022-04-13T10:28:16","slug":"moving-windows-vm-to-another-azure-subscription-or-resource-group","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/moving-windows-vm-to-another-azure-subscription-or-resource-group\/","title":{"rendered":"Moving Windows VM to another Azure subscription or resource group"},"content":{"rendered":"\n<p class=\"has-text-align-right\"><strong><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-104-microsoft-azure-administrator-associate\/\" target=\"_blank\" rel=\"noreferrer noopener\">Return to AZ-104 Tutorial Page<\/a><\/strong><\/p>\n\n\n\n<p>Here you will learn Azure subscription and how to move a Windows VM between resource groups. You&#8217;ll also have a thorough understanding of subscriptions, which will come in handy if you originally built a virtual machine in a personal subscription. After that, the subscription is transferred to your company&#8217;s subscription so that the job can continue. The VM does not need to be stopped in order to be moved, and it should remain operational during the process.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Using the Azure portal to move a VM to a different subscription<\/strong><\/h4>\n\n\n\n<p>Understand you can move a VM and its associated resources to a various subscription by using the Azure portal. So, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>First of all, visit the Azure portal to maintain the resource group containing the VM to move. Now, search for and click Resource groups.<\/li><li>After this, choose the resource group containing the VM that you wish to move.<\/li><li>Now, select Move and then select Move to another subscription. The Move resources page automatically opens.<\/li><li>After this, select all the resources to move.&nbsp;<\/li><li>After this, select the Subscription where you want the VM to be moved.<\/li><li>Now, select an existing Resource Group, and enter a name to have a new resource group created.<\/li><li>Lastly, 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.<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Using the Azure portal to move a VM to another resource group<\/strong><\/h4>\n\n\n\n<p>Using the Azure interface, relocate a VM and its associated resources to a different resource group.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Firstly, go to the Azure portal to manage the resource group containing the VM to move. Search for and select Resource groups.<\/li><li>Now, choose the resource group containing the VM that you would like to move.<\/li><li>After this, select Move and then select Move to another resource group. The Move resources page opens.<\/li><li>Furthermore, select each of the resources to move.&nbsp;<\/li><li>Next, select an existing Resource Group, and enter a name to have a new resource group created.<\/li><li>After completion, 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.<\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-administrator-associate-az-104-free-practice-test\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/06\/practice-test-2.png\" alt=\"Azure subscription 1\"\/><\/a><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Using Powershell to move a VM<\/strong><\/h4>\n\n\n\n<p>When moving a virtual machine to a different resource group, make sure you move the dependant resources as well. Use the Get-AzResource cmdlet to get a list of all of these resources&#8217; resource IDs.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Get-AzResource -ResourceGroupName myResourceGroup | Format-table -wrap -Property ResourceId<\/pre>\n\n\n\n<p>You can also use the output of the previous command to create a comma-separated list of resource IDs that you can pass to Move-AzResource to move each resource to the desired location.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Move-AzResource -DestinationResourceGroupName \"myDestinationResourceGroup\" `<br>-ResourceId<\/pre>\n\n\n\n<p>To move the resources to different subscription, include the -DestinationSubscriptionId parameter.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-administrator-associate-az-104-online-course\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/testpreptraining.ai-2-750x117.png\" alt=\"Azure subscription\"\/><\/a><\/figure><\/div>\n\n\n\n<p class=\"has-text-align-right\"><strong>Reference: <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/windows\/move-vm\" target=\"_blank\" rel=\"noreferrer noopener\">Microsoft Documentation<\/a><\/strong><\/p>\n\n\n\n<p><strong><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-104-microsoft-azure-administrator-associate\/\" target=\"_blank\" rel=\"noreferrer noopener\">Return to AZ-104 Tutorial Page<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Return to AZ-104 Tutorial Page Here you will learn Azure subscription and how to move a Windows VM between resource groups. You&#8217;ll also have a thorough understanding of subscriptions, which will come in handy if you originally built a virtual machine in a personal subscription. After that, the subscription is transferred to your company&#8217;s subscription&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-17855","page","type-page","status-publish","hentry","category-uncategorized"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Moving Windows VM to another Azure subscription or resource group<\/title>\n<meta name=\"description\" content=\"Increase your skills by learning about Azure Subscription with Azure compute resources using Microsoft Azure AZ-104 online course Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/moving-windows-vm-to-another-azure-subscription-or-resource-group\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Moving Windows VM to another Azure subscription or resource group\" \/>\n<meta property=\"og:description\" content=\"Increase your skills by learning about Azure Subscription with Azure compute resources using Microsoft Azure AZ-104 online course Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/moving-windows-vm-to-another-azure-subscription-or-resource-group\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-13T10:28:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/06\/practice-test-2.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/moving-windows-vm-to-another-azure-subscription-or-resource-group\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/moving-windows-vm-to-another-azure-subscription-or-resource-group\/\",\"name\":\"Moving Windows VM to another Azure subscription or resource group\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-08-26T10:29:23+00:00\",\"dateModified\":\"2022-04-13T10:28:16+00:00\",\"description\":\"Increase your skills by learning about Azure Subscription with Azure compute resources using Microsoft Azure AZ-104 online course Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/moving-windows-vm-to-another-azure-subscription-or-resource-group\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/moving-windows-vm-to-another-azure-subscription-or-resource-group\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/moving-windows-vm-to-another-azure-subscription-or-resource-group\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Moving Windows VM to another Azure subscription or resource group\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Moving Windows VM to another Azure subscription or resource group","description":"Increase your skills by learning about Azure Subscription with Azure compute resources using Microsoft Azure AZ-104 online course Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/moving-windows-vm-to-another-azure-subscription-or-resource-group\/","og_locale":"en_US","og_type":"article","og_title":"Moving Windows VM to another Azure subscription or resource group","og_description":"Increase your skills by learning about Azure Subscription with Azure compute resources using Microsoft Azure AZ-104 online course Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/moving-windows-vm-to-another-azure-subscription-or-resource-group\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2022-04-13T10:28:16+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/06\/practice-test-2.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/moving-windows-vm-to-another-azure-subscription-or-resource-group\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/moving-windows-vm-to-another-azure-subscription-or-resource-group\/","name":"Moving Windows VM to another Azure subscription or resource group","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-08-26T10:29:23+00:00","dateModified":"2022-04-13T10:28:16+00:00","description":"Increase your skills by learning about Azure Subscription with Azure compute resources using Microsoft Azure AZ-104 online course Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/moving-windows-vm-to-another-azure-subscription-or-resource-group\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/moving-windows-vm-to-another-azure-subscription-or-resource-group\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/moving-windows-vm-to-another-azure-subscription-or-resource-group\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Moving Windows VM to another Azure subscription or resource group"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/17855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=17855"}],"version-history":[{"count":4,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/17855\/revisions"}],"predecessor-version":[{"id":54527,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/17855\/revisions\/54527"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=17855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=17855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=17855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}