azure-mgmt-policyinsights
Microsoft Azure Policyinsights Management Client Library for Python
Decision gist · record as of 2026-08-14
Yes. This is the official Azure SDK client for policy insights, actively maintained with no known vulnerabilities, low install friction, and broad Python version support. Install it if you need to programmatically query Azure policy compliance, events, or restrictions. The only caveat is that license treatment is unclear in the metadata.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9+.
- Requires Azure subscription and environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID.
- Low friction: pure Python wheel with only three lightweight runtime dependencies (isodate, azure-mgmt-core, typing-extensions).
License · maintenance · safety
(unclear)
last release 2026-05-19 (87 days) · last repo commit 2026-08-14 · 5,588 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 6,908,048 downloads/mo, #1,815 on PyPI
Alternatives
Verify before relying
pip install azure-mgmt-policyinsights
from azure.mgmt.policyinsights import PolicyInsightsClient
from azure.identity import DefaultAzureCredential
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = PolicyInsightsClient(credential=DefaultAzureCredential(), subscription_id=sub_id)- Whether additional Azure SDK components are required for full functionality in production scenarios.
- Performance characteristics when querying large numbers of policy compliance records or events.
- Actual license terms, as license treatment is marked unclear in metadata.
What it is and what it does
azure-mgmt-policyinsights is the official Microsoft Azure SDK client library for querying and managing Azure Policy Insights. It exposes operations to retrieve policy compliance data, policy events, and policy restrictions across your Azure infrastructure. The library handles authentication via Azure Active Directory and provides a Pythonic interface to the Azure Policy Insights REST API.
The package is built on azure-mgmt-core and integrates with the broader Azure SDK ecosystem. It requires Python 3.9 or later and depends on isodate for date handling and typing-extensions for type hints. The library is actively maintained as part of the official Azure SDK for Python, with support for current Python versions.
Use it for
- Query policy compliance states and summaries across subscriptions, resource groups, or individual resources.
- Retrieve policy events to audit when and why resources were evaluated against Azure policies.
- Check policy restrictions to determine what actions are allowed on resources before attempting them.
- Integrate policy insights into compliance dashboards or automated governance workflows.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is the official Azure SDK client for policy insights, actively maintained with no known vulnerabilities, low install friction, and broad Python version support. Install it if you need to programmatically query Azure policy compliance, events, or restrictions. The only caveat is that license treatment is unclear in the metadata.
Install
azure-mgmt-policyinsights on PyPI
Before you install
Low friction: pure Python wheel with only three lightweight runtime dependencies (isodate, azure-mgmt-core, typing-extensions). Active maintenance with a recent release 87 days ago.
Requires Python 3.9+. Requires Azure subscription and environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID.
Quickstart
pip install azure-mgmt-policyinsights
from azure.mgmt.policyinsights import PolicyInsightsClient
from azure.identity import DefaultAzureCredential
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = PolicyInsightsClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Verify before relying
- Whether additional Azure SDK components are required for full functionality in production scenarios.
- Performance characteristics when querying large numbers of policy compliance records or events.
- Actual license terms, as license treatment is marked unclear in metadata.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesisodateazure-mgmt-coretyping-extensions |
| Maintenance | Actively maintained 87 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,908,048 / month, #1,815 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: azure_mgmt_policyinsights-1.0.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “azure policy compliance query”
- azure-mgmt-policyinsightsProvides programmatic access to Azure Policy Insights, allowing you…
- c7n-azureAn Azure plugin for Cloud Custodian that automates policy-driven…
- azure-mgmt-securityManages Azure Security Center resources programmatically, providing…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also azure-mgmt-applicationinsights · azure-mgmt-monitor · azure-mgmt-managementpartner · azure-mgmt-msi · azure-mgmt-iothubprovisioningservices · azure-mgmt-resourcegraph · azure-mgmt-managedservices · azure-mgmt-commerce · azure-mgmt-advisor · azure-applicationinsights