尝试应用策略,合规性状态未启动时出现错误

编程入门 行业动态 更新时间:2024-10-26 18:22:08
本文介绍了尝试应用策略,合规性状态未启动时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经按照azure学习模块创建了一个示例策略。

I've created a sample policy by following an azure learning module.

这可能与我的订阅有关,这是学生订阅"Microsoft Imagine"。

This might have something to do with my subscription which is a student subscription "Microsoft Imagine"

未启动合规性状态时未应用该策略,并且显示错误:

The policy is not applied with Compliance state not started, and I'm getting an error displayed:

Failed to list 'Events' The operation is not permitted for namespace 'Microsoft.PolicyInsights'. List of permitted provider namespaces is 'Microsoft.Authorization,Microsoft.Features,microsoft.insights,Microsoft.NotificationHubs,Microsoft.Resources,Microsoft.Sql,microsoft.support,microsoft.visualstudio,Microsoft.Web,SuccessBricks.ClearDB'. Failed to list 'Events' The operation is not permitted for namespace 'Microsoft.PolicyInsights'. List of permitted provider namespaces is 'Microsoft.Authorization,Microsoft.Features,microsoft.insights,Microsoft.NotificationHubs,Microsoft.Resources,Microsoft.Sql,microsoft.support,microsoft.visualstudio,Microsoft.Web,SuccessBricks.ClearDB'. Failed to list 'Events' The operation is not permitted for namespace 'Microsoft.PolicyInsights'. List of permitted provider namespaces is 'Microsoft.Authorization,Microsoft.Features,microsoft.insights,Microsoft.NotificationHubs,Microsoft.Resources,Microsoft.Sql,microsoft.support,microsoft.visualstudio,Microsoft.Web,SuccessBricks.ClearDB'. Failed to list all non-compliant resources The operation is not permitted for namespace 'Microsoft.PolicyInsights'. List of permitted provider namespaces is 'Microsoft.Authorization,Microsoft.Features,microsoft.insights,Microsoft.NotificationHubs,Microsoft.Resources,Microsoft.Sql,microsoft.support,microsoft.visualstudio,Microsoft.Web,SuccessBricks.ClearDB'. Failed to list 'Events' The operation is not permitted for namespace 'Microsoft.PolicyInsights'. List of permitted provider namespaces is 'Microsoft.Authorization,Microsoft.Features,microsoft.insights,Microsoft.NotificationHubs,Microsoft.Resources,Microsoft.Sql,microsoft.support,microsoft.visualstudio,Microsoft.Web,SuccessBricks.ClearDB'. Failed to register the assignments scopes to {0} provider with the following failure: {1} The operation is not permitted for namespace 'Microsoft.PolicyInsights'. List of permitted provider namespaces is 'Microsoft.Authorization,Microsoft.Features,microsoft.insights,Microsoft.NotificationHubs,Microsoft.Resources,Microsoft.Sql,microsoft.support,microsoft.visualstudio,Microsoft.Web,SuccessBricks.ClearDB'. Failed to list all non-compliant policies The operation is not permitted for namespace 'Microsoft.PolicyInsights'. List of permitted provider namespaces is 'Microsoft.Authorization,Microsoft.Features,microsoft.insights,Microsoft.NotificationHubs,Microsoft.Resources,Microsoft.Sql,microsoft.support,microsoft.visualstudio,Microsoft.Web,SuccessBricks.ClearDB'.

推荐答案

所有地区都支持资源管理器,但可能并非所有地区都支持您部署的资源。此外,您的订阅可能存在限制,导致您无法使用某些支持该资源的区域。资源资源管理器显示资源类型的有效位置。

Resource Manager is supported in all regions, but the resources you deploy might not be supported in all regions. In addition, there may be limitations on your subscription that prevent you from using some regions that support the resource. The resource explorer displays valid locations for the resource type.

错误消息足够清楚"无法列出'事件'命名空间的操作不允许是'Microsoft.PolicyInsights'。"这可能是一个限制(基于区域/订阅类型的资源)

允许的提供程序名称空间列表是'Microsoft.Authorization,Microsoft.Features ,microsoft.insights,Microsoft.NotificationHubs,Microsoft.Resources,Microsoft.Sql,microsoft.support,microsoft.visualstudio,Microsoft.Web,SuccessBricks.ClearDB'。

如果您对允许提供的命名空间有任何问题,那么可以将其视为一个值得关注的问题。希望这澄清!

If you've any issues with permitted provide namespaces then it can be considered as a matter of concern. Hope this clarifies!

更多推荐

尝试应用策略,合规性状态未启动时出现错误

本文发布于:2023-08-01 16:46:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1269957.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:性状   启动时   出现错误   策略

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!