Resource and Resource Group

ST Koay 26 Reputation points
2020-05-23T08:36:58.393+00:00

In https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/overview

It was mentioned that "Each resource can only exist in one resource group."

What does it mean ?

I created a VM (Windows server named VM-01) in resource group (RG-01). I created a similar VM (Windows server named VM-01) in resource group (RG-02). Both creations have no issue.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
26,829 questions
0 comments No comments
{count} vote

Accepted answer
  1. Leon Laude 85,206 Reputation points
    2020-05-23T09:24:18.147+00:00

    Hi,

    What the following statement "Each resource can only exist in one resource group." means is that you can only have one (1) unique named resource in each resource group.

    For example:

    The Azure virtual machine "VM-01" can only exist once in the resource group "RG-01", if you attempt to move your other "VM-01" which resides in the resource group "RG-02" to the resource group "RG-01" it will say "Virtual machine name must be unique in the current resource group."
    Or if you attempt to create new Azure virtual machine with the name "VM-01" to the resource group "RG-01" it won't work.

    Best regards,
    Leon

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful