gpt4 book ai didi

.net - 无法通过rest api创建Azure锁

转载 作者:行者123 更新时间:2023-12-02 07:08:44 24 4
gpt4 key购买 nike

无法通过rest api为某些资源创建azure锁,这里是这样说的https://learn.microsoft.com/en-us/rest/api/resources/managementlocks/createorupdateatsubscriptionlevel在请求此网址时,我得到以下信息:“具有对象 ID 的客户端无权执行操作‘Microsoft.Authorization/locks/write’同时我有 Azure 所有者订阅,什么会导致此问题?

最佳答案

While requesting this url i got the following: "The client with object id does not have authorization to perform action 'Microsoft.Authorization/locks/write' Meantime i have in azure owner subscription, what can cause this problem?

这意味着您没有权限这样做。我假设您正在使用 Azure AD 应用程序来获取访问 token 。如果是这种情况,请将申请分配给owner role 。那么它应该适合你。

enter image description here

我用 postman 测试了它。

enter image description here

关于.net - 无法通过rest api创建Azure锁,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50346422/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com