NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #1968 most downloaded on PyPI
Microsoft Azure Policyinsights Management Client Library for Python
Last release 4 months ago
02 Jun 2026
Release timing varies
gaps range from 2 weeks to 2.6 years
Most releases are documented
notes for 8 of 9 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
16 releases · first in 2018
Client PolicyInsightsClient added parameter cloud_setting in method __init__
PolicyInsightsClient added parameter cloud_setting in method __init__PolicyInsightsClient added method send_requestPolicyMetadata added property system_dataResource added property system_dataProxyResourceFieldRestriction renamed its instance variable values to values_propertyPendingField renamed its instance variable values to values_propertyPolicyMetadata moved instance variable metadata_id, category, title, owner, additional_content_url, metadata, description and requirements under property properties whose type is PolicyMetadataPropertiesSlimPolicyMetadata moved instance variable metadata_id, category, title, owner, additional_content_url and metadata under property properties whose type is PolicyMetadataSlimPropertiesComponentPolicyStatesOperations.list_query_results_for_policy_definition changed its parameter order_by/select/from_parameter/to/apply from positional_or_keyword to keyword_onlyComponentPolicyStatesOperations.list_query_results_for_resource changed its parameter order_by/select/from_parameter/to/apply/expand from positional_or_keyword to keyword_onlyComponentPolicyStatesOperations.list_query_results_for_resource_group changed its parameter order_by/select/from_parameter/to/apply from positional_or_keyword to keyword_onlyComponentPolicyStatesOperations.list_query_results_for_resource_group_level_policy_assignment changed its parameter order_by/select/from_parameter/to/apply from positional_or_keyword to keyword_onlyComponentPolicyStatesOperations.list_query_results_for_subscription changed its parameter order_by/select/from_parameter/to/apply from positional_or_keyword to keyword_onlyComponentPolicyStatesOperations.list_query_results_for_subscription_level_policy_assignment changed its parameter order_by/select/from_parameter/to/apply from positional_or_keyword to keyword_onlyAttestationsOperations.list_for_resource replaced parameter query_options with top/filterAttestationsOperations.list_for_resource_group replaced parameter query_options with top/filterAttestationsOperations.list_for_subscription replaced parameter query_options with top/filterPolicyEventsOperations.list_query_results_for_management_group replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/skip_tokenPolicyEventsOperations.list_query_results_for_policy_definition replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/skip_tokenPolicyEventsOperations.list_query_results_for_policy_set_definition replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/skip_tokenPolicyEventsOperations.list_query_results_for_resource replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/expand/skip_tokenPolicyEventsOperations.list_query_results_for_resource_group replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/skip_tokenPolicyEventsOperations.list_query_results_for_resource_group_level_policy_assignment replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/skip_tokenPolicyEventsOperations.list_query_results_for_subscription replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/skip_tokenPolicyEventsOperations.list_query_results_for_subscription_level_policy_assignment replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/skip_tokenPolicyMetadataOperations.list replaced parameter query_options with topPolicyStatesOperations.list_query_results_for_management_group replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/skip_tokenPolicyStatesOperations.list_query_results_for_policy_definition replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/skip_tokenPolicyStatesOperations.list_query_results_for_policy_set_definition replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/skip_tokenPolicyStatesOperations.list_query_results_for_resource replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/expand/skip_tokenPolicyStatesOperations.list_query_results_for_resource_group replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/skip_tokenPolicyStatesOperations.list_query_results_for_resource_group_level_policy_assignment replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/skip_tokenPolicyStatesOperations.list_query_results_for_subscription replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/skip_tokenPolicyStatesOperations.list_query_results_for_subscription_level_policy_assignment replaced parameter query_options with top/order_by/select/from_parameter/to/filter/apply/skip_tokenPolicyStatesOperations.summarize_for_management_group replaced parameter query_options with top/from_parameter/to/filterPolicyStatesOperations.summarize_for_policy_definition replaced parameter query_options with top/from_parameter/to/filterPolicyStatesOperations.summarize_for_policy_set_definition replaced parameter query_options with top/from_parameter/to/filterPolicyStatesOperations.summarize_for_resource replaced parameter query_options with top/from_parameter/to/filterPolicyStatesOperations.summarize_for_resource_group replaced parameter query_options with top/from_parameter/to/filterPolicyStatesOperations.summarize_for_resource_group_level_policy_assignment replaced parameter query_options with top/from_parameter/to/filterPolicyStatesOperations.summarize_for_subscription replaced parameter query_options with top/from_parameter/to/filterPolicyStatesOperations.summarize_for_subscription_level_policy_assignment replaced parameter query_options with top/from_parameter/to/filterPolicyTrackedResourcesOperations.list_query_results_for_management_group replaced parameter query_options with top/filterPolicyTrackedResourcesOperations.list_query_results_for_resource replaced parameter query_options with top/filterPolicyTrackedResourcesOperations.list_query_results_for_resource_group replaced parameter query_options with top/filterPolicyTrackedResourcesOperations.list_query_results_for_subscription replaced parameter query_options with top/filterRemediationsOperations.list_deployments_at_management_group replaced parameter query_options with topRemediationsOperations.list_deployments_at_resource replaced parameter query_options with topRemediationsOperations.list_deployments_at_resource_group replaced parameter query_options with topRemediationsOperations.list_deployments_at_subscription replaced parameter query_options with topRemediationsOperations.list_for_management_group replaced parameter query_options with top/filterRemediationsOperations.list_for_resource replaced parameter query_options with top/filterRemediationsOperations.list_for_resource_group replaced parameter query_options with top/filterRemediationsOperations.list_for_subscription replaced parameter query_options with top/filterErrorDefinitionAutoGenerated/ErrorDefinitionAutoGenerated2/ErrorResponseAutoGenerated/ErrorResponseAutoGenerated2/PolicyEventsQueryResults/PolicyMetadataCollection/PolicyStatesQueryResults/PolicyTrackedResourcesQueryResults/QueryOptions which actually were not used by SDK usersOne column per quarter.
Model CheckRestrictionsRequest added property include_audit_effect
CheckRestrictionsRequest added property include_audit_effectFieldRestriction added property policy_effectFieldRestriction added property reasonFieldRestrictionResult added member AUDITPolicyEvaluationResult added property effect_detailsRemediationFilters added property resource_idsCheckRestrictionEvaluationDetailsPolicyEffectDetailsAdded operation group ComponentPolicyStatesOperations
Added operation PolicyRestrictionsOperations.check_at_management_group_scope
Model Remediation has a new parameter failure_threshold
Features
Added operation group AttestationsOperations
Features
Regenerated with latest code generator tool
Model ExpressionEvaluationDetails has a new parameter expression_kind
Features
This version uses a next-generation code generator that introduces important breaking changes, but also important new features (like unified authentic…
This is beta preview version.
This version uses a next-generation code generator that introduces important breaking changes, but also important new features (like unified authentication and async programming).
General breaking changes
Credential system has been completly revamped:
azure.common.credentials or msrestazure.azure_active_directory instances are no longer supported, use the azure-identity classes instead: https://pypi.org/project/azure-identity/credentials parameter has been renamed credentialThe config attribute no longer exists on a client, configuration should be passed as kwarg. Example: MyClient(credential, subscription_id, enable_logging=True). For a complete set of
supported options, see the parameters accept in init documentation of azure-core
You can't import a version module anymore, use __version__ instead
Operations that used to return a msrest.polling.LROPoller now returns a azure.core.polling.LROPoller and are prefixed with begin_.
Exceptions tree have been simplified and most exceptions are now azure.core.exceptions.HttpResponseError (CloudError has been removed).
Most of the operation kwarg have changed. Some of the most noticeable:
raw has been removed. Equivalent feature can be found using cls, a callback that will give access to internal HTTP response for advanced userGeneral new features
typing. SDKs are mypy ready.aio namespace of your package to find the async client.Nothing published for this version
Model PolicyState has a new parameter policy_set_definition_version
Features
This version uses a next-generation code generator that might introduce breaking changes if from some import. In summary, some modules were incorrectl…
Features
Breaking changes
General Breaking Changes
This version uses a next-generation code generator that might introduce breaking changes if from some import. In summary, some modules were incorrectly visible/importable and have been renamed. This fixed several issues caused by usage of classes that were not supposed to be used in the first place. PolicyInsightsClient cannot be imported from azure.mgmt.policyinsights.policy_insights_client anymore (import from azure.mgmt.policyinsights works like before) PolicyInsightsClientConfiguration import has been moved from azure.mgmt.policyinsights.policy_insights_client to azure.mgmt.policyinsights A model MyClass from a "models" sub-module cannot be imported anymore using azure.mgmt.policyinsights.models.my_class (import from azure.mgmt.policyinsights.models works like before) An operation class MyClassOperations from an operations sub-module cannot be imported anymore using azure.mgmt.policyinsights.operations.my_class_operations (import from azure.mgmt.policyinsights.operations works like before) Last but not least, HTTP connection pooling is now enabled by default. You should always use a client as a context manager, or call close(), or use no more than one client per process.
Fix expressionValues and targetValues type
Bugfixes
Model QueryOptions has a new parameter expand
Features
Added operation group RemediationsOperations
Features
- Initial Release
Your coding agent can read these notes before it upgrades. Set up the MCP server →