A great feature in Azure is the possibility to move resources to:

– Another resource group

– Another subscription

– Another region

The list of resources that you can move is available here: Move operation support by resource type – Azure Resource Manager | Microsoft Docs

In this example, I will move a MySQL Database Server from a subscription A to a subscription B. By the portal, it is easy, but it can take a long time to do the validation and the move:

Move resources

After waiting each time the long validation period, I find another way to do not wait so many time: with CLI.

The first command to execute to validate that we can do the move is az resource invoke-action. Let’s do this for our resource:

If the answer is empty, you are good to go to move the resource. Otherwise, you will have the error, for example, if you use Private Endpoint, you will not be able to move your resource:Private Endpoint

Private Endpoint 2

In my case I can move the resource. I will use the az resource move command to do the job:

After few minutes, we can see that the resource moved to the other subscription:The resource moved to the other subscription

The resource moved to the other subscription 2

Resource group

Like this it is very simple to automate the move of resources to another resource group/subscription/region. The only limitation is that not all resources can move at this time.

StarWind Backup Appliance (BA) is an industry-first all-NVMe backup appliance that provides unprecedented levels of backup and recovery speed. It comes as a tiny, pre-configured, ready-to-backup solution that eliminates the backup server storage bottleneck and fits even the strictest RTPO. Consisting of the best commodity hardware, your chosen hypervisor, and a StarWind SDS engine backed by 24/7/365 ProActive Support, StarWind BA ushers in a new age of a future-proof, eco-friendly, transparent, and reasonably priced backup infrastructure. Explore Backup Appliance from StarWind StarWind Backup Appliance Datasheet
Back to blog