Which resources can exist outside of a resource group?

意 知 0 Reputation points
2024-06-25T09:26:04.8533333+00:00

I only have resource group-level permissions, yet I can access subscription-level resources. For example, GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages?api-version=2023-09-01

Is this a design flaw?

Azure Resource Mover
Azure Resource Mover
An Azure service used for moving multiple resources between Azure regions.
220 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SadiqhAhmed-MSFT 40,026 Reputation points Microsoft Employee
    2024-06-25T12:39:45.4466667+00:00

    Hello @意 知 Thank you for reaching out to us on Microsoft Q&A platform. Happy to answer any questions you may have!

    To answer your question, It is not a design flaw. Azure Resource Manager allows you to access resources at a higher level of scope if you have access to a lower level of scope. This is known as "inherited permissions".

    For example, if you have access to a resource group, you can access all resources within that resource group, including resources that are at the subscription level. However, you cannot access resources that are in a different resource group or subscription unless you have been granted access to those resources explicitly.

    In your case, since you have resource group-level permissions, you can access resources within that resource group as well as any resources that are at the subscription level. This is by design and is intended to make it easier for you to manage your resources.

    Hope this helps. Please write back to us If you have any questions.


    If the response helped, do "Accept Answer" and up-vote it