Azure: share resource across multiple resource group

后端 未结 2 526
终归单人心
终归单人心 2021-01-25 06:53

Is it possible to share a particular resource (redis cache in my case) across multiple resource group?

相关标签:
2条回答
  • 2021-01-25 07:32

    Resource group is just logical container. It doesn't matter in which resource group resource is. You can use resources from any resource group.

    Example:
    Imagine that you create App Service Plan in RG1 and Web App Service in RG2. This Web App Service can use App Service Plan from RG1.

    0 讨论(0)
  • 2021-01-25 07:37

    Your redis cache could be used from any code you write, whether in the cloud, on-premises, or wherever, given proper uri + access key.

    As long as you have access keys/passwords/etc. to your resources, you can use your resources no matter what resource group they're in. This includes ssh keys, vm usernames/passwords, redis cache keys, storage keys, cosmos db keys, sql database logins, etc.

    The only thing access-specific, with resource groups, is granted user permissions. That is: if you add someone as a contributor to resource group A, and not to resource group B, they won't be able to manipulate the settings in resource group B via the portal or any of the Management APIs. Still, they'd be able to work with all of the resources in resource group B, assuming they had the login details / keys / etc.

    0 讨论(0)
提交回复
热议问题