Azure Cosmos DB-创建容器时出现“ RequestDisallowedByPolicy”错误

时间:2020-05-20 14:39:54

标签: azure azure-cosmosdb

在创建cosmos db容器时,出现以下错误:

Error creating database: {"code":403,"message":"{\"error\":{\"code\":\"RequestDisallowedByPolicy\",\"target\":\"scolNextGen\",\"message\":\"Resource 'scolNextGen' was disallowed by policy. Policy identifiers: '[{\\\"policyAssignment\\\":{\\\"name\\\":\\\"Allowed resource types custom\\\"

1 个答案:

答案 0 :(得分:2)

按照docs

出于安全性或合规性,您的订阅管理员可能会 分配限制资源部署方式的策略。例如, 您的订阅可能具有阻止创建公共IP的策略 地址,网络安全组,用户定义的路由或路由 表。症状部分中的错误消息显示的名称 政策。要解决此问题,请查看资源策略,并 确定如何部署符合这些政策的资源。