Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Resource Manager - How can I change the Resource Group of a Resource?

I've been combing through the Powershell commands trying to figure out how to take my currently deployed Website/SQL Database/Storage account and move them into their own Resource Group.

Is it possible to move Azure "Resources" between Resource Groups? Or do I always have to create new Resources and migrate the data/code into those new Resources?

like image 896
ericb Avatar asked Apr 08 '14 12:04

ericb


People also ask

How do you change the resource group of a resource in Azure?

Go to the Resource groups blade in the Azure portal and then navigate to the particular resource group. Step 2 — Click on Move button and then select Move to another subscription option. Step 3 — Next in the resources to move screen, review the resources that are to be moved over which are all automatically selected.

Can we move resource group in Azure?

You can move Azure resources to either another Azure subscription or another resource group under the same subscription. You can use the Azure portal, Azure PowerShell, Azure CLI, or the REST API to move resources. To learn more, see Move resources to a new resource group or subscription.


2 Answers

It is now possible to do what you want in PowerShell, I believe. This blog post provides an overview of how to do it: http://blog.kloud.com.au/2015/03/24/moving-resources-between-azure-resource-groups/

The features are available as of Azure PowerShell cmdlets v0.8.15.1, I believe.

like image 150
pbarranis Avatar answered Oct 04 '22 19:10

pbarranis


Right now Azure Resource Manager doesn't support moving resources from one group to another. There is also no storage support yet for Azure Resource Manager.

Migration is an important scenario and we're working on to get the experience better.

Guang Yang | PM | Azure

like image 22
Guang Yang Avatar answered Oct 04 '22 18:10

Guang Yang