AuthorizationFailed:客户端< clientid>对象ID为< objectid>没有执行操作'Microsoft.Sql/servers/elasticPools/read或'Microsoft.Sql/servers/elasticPools/write的权限 [英] AuthorizationFailed: The client <clientid> with object id <objectid> does not have authorization to perform action 'Microsoft.Sql/servers/elasticPools/read or 'Microsoft.Sql/servers/elasticPools/write

查看:139
本文介绍了AuthorizationFailed:客户端< clientid>对象ID为< objectid>没有执行操作'Microsoft.Sql/servers/elasticPools/read或'Microsoft.Sql/servers/elasticPools/write的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

功能-通过Mvc Web应用程序(C#)创建弹性池.

Feature-  create elastic pool via Mvc web app (C#).

我们已经为WebApp/Api完成的应用程序注册和操作以及在Azure Portal上的Azure Active Directory中进行配置.

What we already Did- App Registration for WebApp/Api and Configure in Azure active Directory on Azure Portal .

操作- 当我们通过.Net应用程序项目调用Api时,SqlClient连接成功建立,但无法执行读/写操作,例如创建新的ElasticPool或获取现有的ElasticPool.    

Operation-  when we calling Api Via .Net Application Project ,SqlClient connection successfully establish ,but not able to perform Read/Write Operation like Create of new ElasticPool Or Getting Existing ElasticPool      .

错误说明-


推荐答案

你好,

Hello,

Please consider to grant the application permission to access resources:


New-AzureRoleAssignment -ObjectId '<some-id>' -ResourceGroupName <resource-group-name> -RoleDefinitionName Reader


Take the Object ID from the error message.


Hope this helps.



Regards,

Alberto Morillo
SQLCoffee.com


这篇关于AuthorizationFailed:客户端&lt; clientid&gt;对象ID为&lt; objectid&gt;没有执行操作'Microsoft.Sql/servers/elasticPools/read或'Microsoft.Sql/servers/elasticPools/write的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆