尝试应用策略,合规性状态未启动时出现错误 [英] Trying to apply a policy, Compliance state Not Started with an error

查看:58
本文介绍了尝试应用策略,合规性状态未启动时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经按照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!


这篇关于尝试应用策略,合规性状态未启动时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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