Skip to content

Get-AzPolicyStateSummary does not return compliant resource count, only noncompliant ones #16286

@evanrappe

Description

@evanrappe

Get-AzPolicyStateSummary does not return compliant resource count

Per the docs this is by design, but why?

For metric/KPI purposes it is required to know both compliant and noncompliant totals for a given assignment. The equivalent azcli command az policy state summarize returns both values, but PowerShell does not.

Metadata

Metadata

Assignees

Labels

Policy InsightsService AttentionThis issue is responsible by Azure service team.customer-reportedneeds-team-attentionThis issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions