当尝试在Azure Gov中获取服务总线的托管身份令牌时,我尝试使用以下资源:https://servicebus.usgovcloudapi.net/而不是https://servicebus.azure.net/,就像商业(https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-managed-service-identity)一样,但是我出现以下错误:
The resource principal named https://servicebus.usgovcloudapi.net/ was not found in the tenant named ___. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.
您还应该在政府中使用https://servicebus.azure.net/来管理身份吗?还是政府不支持Service Bus管理的身份?
答案 0 :(得分:0)
通过使用https://servicebus.azure.net/作为资源,我成功地在Azure Gov中获得了一个受管理的身份令牌,并且Service Bus接受了该身份,并将必需的RBAC应用于了受管理的身份。