Azure / Azure/azure-powershell

Not able to retrieve policy definition

Open
#28,548 2 comments 0 reactions 0 assignees View on GitHub
Policy Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Discussed in https://github.com/Azure/azure-powershell/discussions/28542

Originally posted by **pankmishra** September 10, 2025
Hi Team, I am unable to retrieve the policy definitions using below script. However, I am able to retrieve the list of policy definitions from azure portal by manually applying the filter. I tried this to multiple subscription bt same result.
Get-AzPolicyDefinition | Where-Object {$_.Properties.metadata.category -eq 'Tags'}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.