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.

Community Center | Not monitored
0 comments No comments
{count} vote

Accepted answer
  1. Leon Laude 86,026 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

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Suresh Udhayakumar 6 Reputation points
    2021-05-25T18:13:42.143+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.