Azure: share resource across multiple resource group

Deadly 提交于 2019-12-02 12:50:16

问题


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


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/45237117/azure-share-resource-across-multiple-resource-group

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!