Skip to content

[AutoPR azure-mgmt-resource-policy]-generated-from-SDK Generation - Python-6845337 - #49053

Open
azure-sdk-automation[bot] wants to merge 1 commit into
mainfrom
sdkauto/azure-mgmt-resource-policy-6845337
Open

azure-sdk-automation[bot] wants to merge 1 commit into
mainfrom
sdkauto/azure-mgmt-resource-policy-6845337

Conversation

@azure-sdk-automation

@azure-sdk-automation azure-sdk-automation Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Configurations: 'specification/resources/resource-manager/Microsoft.Authorization/policy/tspconfig.yaml', API Version: 2026-06-01, SDK Release Type: stable, and CommitSHA: '710828f4424a112000ac9a81896a8648f87b7548' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6845337 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. Release plan link: https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releaseplan=36570 Submitted by: dunnryan@microsoft.com

Release Plan Details

…uthorization/policy/tspconfig.yaml', API Version: 2026-06-01, SDK Release Type: stable, and CommitSHA: '710828f4424a112000ac9a81896a8648f87b7548' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6845337 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
Copilot AI balanced review requested due to automatic review settings September 16, 2026 21:22
@azure-sdk-automation azure-sdk-automation Bot added the auto-release When merged to main, release pipelines for this PR's changed packages trigger automatically. label Sep 16, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Broad generated API changes and breaking removals require final human validation.

Pull request overview

Regenerates the Azure Policy SDK for stable API version 2026-06-01 and package version 1.0.0.

Changes:

  • Adds rollout-percentage selector support.
  • Removes obsolete preview enrollment, exemption, and variable APIs.
  • Regenerates clients, models, metadata, tests, and samples.
  • Updates the changelog and package configuration.
File summaries
File Reviewed change
sdk/resources/azure-mgmt-resource-policy/tsp-location.yaml Updates the pinned specification commit.
sdk/resources/azure-mgmt-resource-policy/pyproject.toml Promotes package metadata to stable.
sdk/resources/azure-mgmt-resource-policy/generated_tests/test_policy_variables_operations.py Removes obsolete variable operation tests.
sdk/resources/azure-mgmt-resource-policy/generated_tests/test_policy_variables_operations_async.py Removes obsolete asynchronous variable tests.
sdk/resources/azure-mgmt-resource-policy/generated_tests/test_policy_variable_values_operations.py Removes obsolete variable-value tests.
sdk/resources/azure-mgmt-resource-policy/generated_tests/test_policy_variable_values_operations_async.py Removes obsolete asynchronous variable-value tests.
sdk/resources/azure-mgmt-resource-policy/generated_tests/test_policy_policy_exemptions_operations.py Removes obsolete exemption tests.
sdk/resources/azure-mgmt-resource-policy/generated_tests/test_policy_policy_exemptions_operations_async.py Removes obsolete asynchronous exemption tests.
sdk/resources/azure-mgmt-resource-policy/generated_tests/test_policy_policy_enrollments_operations.py Removes obsolete enrollment tests.
sdk/resources/azure-mgmt-resource-policy/generated_tests/test_policy_policy_enrollments_operations_async.py Removes obsolete asynchronous enrollment tests.
sdk/resources/azure-mgmt-resource-policy/generated_tests/test_policy_policy_assignments_operations.py Updates selector test payloads.
sdk/resources/azure-mgmt-resource-policy/generated_tests/test_policy_policy_assignments_operations_async.py Updates asynchronous selector test payloads.
sdk/resources/azure-mgmt-resource-policy/generated_samples/update_policy_exemption_with_resource_selectors.py Removes an obsolete exemption sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/update_policy_exemption_with_exemption_management_mode.py Removes an obsolete exemption sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/update_policy_enrollment_with_resource_selectors.py Removes an obsolete enrollment sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/update_policy_assignment_with_user_assigned_identity.py Updates the assignment sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/update_policy_assignment_with_selfserve_exemption_settings.py Updates the assignment sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/update_policy_assignment_with_resource_selectors.py Updates the assignment sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/update_policy_assignment_with_resource_rollout_percentage_selector.py Updates the rollout-percentage selector sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/update_policy_assignment_with_overrides.py Updates the assignment sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/update_policy_assignment_with_identity.py Updates the assignment sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_variables_for_subscription.py Removes an obsolete variable sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_variables_for_management_group.py Removes an obsolete variable sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_variable_values_for_subscription.py Removes an obsolete variable-value sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_variable_values_for_management_group.py Removes an obsolete variable-value sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_set_definitions.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_set_definitions_by_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_set_definition_versions.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_set_definition_versions_by_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_exemptions_for_subscription.py Removes an obsolete exemption sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_exemptions_for_resource.py Removes an obsolete exemption sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_exemptions_for_resource_group.py Removes an obsolete exemption sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_exemptions_for_management_group.py Removes an obsolete exemption sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_enrollments_for_subscription.py Removes an obsolete enrollment sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_enrollments_for_resource.py Removes an obsolete enrollment sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_enrollments_for_resource_group.py Removes an obsolete enrollment sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_enrollments_for_management_group.py Removes an obsolete enrollment sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_definitions.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_definitions_by_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_definition_versions.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_definition_versions_by_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_assignments.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_assignments_for_resource.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_assignments_for_resource_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_policy_assignments_for_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_data_policy_manifests.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_data_policy_manifests_namespace_filter.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_built_in_policy_set_definitions.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_built_in_policy_set_definition_versions.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_built_in_policy_definitions.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_built_in_policy_definition_versions.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_all_policy_set_definition_versions.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_all_policy_set_definition_versions_by_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_all_policy_definition_versions.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_all_policy_definition_versions_by_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_all_built_in_policy_set_definition_versions.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/list_all_built_in_policy_definition_versions.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_variable.py Removes an obsolete variable sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_variable_value.py Removes an obsolete variable-value sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_variable_value_at_management_group.py Removes an obsolete variable-value sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_variable_at_management_group.py Removes an obsolete variable sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_set_definition.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_set_definition_version.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_set_definition_version_at_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_set_definition_at_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_exemption_with_resource_selectors.py Removes an obsolete exemption sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_enrollment.py Removes an obsolete enrollment sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_enrollment_with_resource_selectors.py Removes an obsolete enrollment sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_definition.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_definition_version.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_definition_version_at_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_definition_at_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_assignment.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_assignment_with_user_assigned_identity.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_assignment_with_resource_selectors.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_assignment_with_resource_rollout_percentage_selector.py Updates the rollout-percentage selector sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_assignment_with_overrides.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_policy_assignment_with_identity.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_data_policy_manifest.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_builtin_policy_definition.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_builtin_policy_definition_version.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_built_in_policy_set_definition.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/get_built_in_policy_set_definition_version.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/delete_variable.py Removes an obsolete variable sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/delete_variable_value.py Removes an obsolete variable-value sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/delete_variable_value_at_management_group.py Removes an obsolete variable-value sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/delete_variable_at_management_group.py Removes an obsolete variable sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/delete_policy_set_definition.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/delete_policy_set_definition_version.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/delete_policy_set_definition_version_at_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/delete_policy_set_definition_at_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/delete_policy_exemption.py Removes an obsolete exemption sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/delete_policy_enrollment.py Removes an obsolete enrollment sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/delete_policy_definition.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/delete_policy_definition_version.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/delete_policy_definition_version_at_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/delete_policy_definition_at_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/delete_policy_assignment.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_policy_assignment.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_policy_assignment_without_enforcement.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_policy_assignment_with_user_assigned_identity.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_policy_assignment_with_selfserve_exemption_settings.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_policy_assignment_with_resource_selectors.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_policy_assignment_with_resource_rollout_percentage_selector.py Adds rollout-percentage selector usage.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_policy_assignment_with_overrides.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_policy_assignment_with_identity.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_policy_assignment_with_enroll_enforcement.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_policy_assignment_non_compliance_messages.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_variable.py Removes an obsolete variable sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_variable_value_at_management_group.py Removes an obsolete variable-value sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_variable_at_management_group.py Removes an obsolete variable sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_set_definition.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_set_definition_with_groups.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_set_definition_with_groups_at_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_set_definition_version.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_set_definition_version_at_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_set_definition_at_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_exemption.py Removes an obsolete exemption sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_exemption_with_resource_selectors.py Removes an obsolete exemption sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_exemption_with_exemption_management_mode.py Removes an obsolete exemption sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_enrollment_with_resource_selectors.py Removes an obsolete enrollment sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_definition.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_definition_version.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_definition_version_at_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_definition_external_evaluation_enforcement_settings.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_definition_at_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/create_or_update_policy_definition_advanced_params.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/acquire_policy_token.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/generated_samples/acquire_policy_token_at_management_group.py Updates the generated sample.
sdk/resources/azure-mgmt-resource-policy/CHANGELOG.md Documents the release and breaking changes. Nit: classify the four removed operation-group symbols as deleted or renamed operation groups rather than model removals.
sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/types.py Updates typed dictionary definitions.
sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/operations/__init__.py Updates synchronous operation exports.
sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/models/_models.py Adds selector progress and removes obsolete models.
sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/models/_enums.py Adds rollout selector definitions and removes obsolete enums.
sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/models/__init__.py Updates model exports.
sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/aio/operations/__init__.py Updates asynchronous operation exports.
sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/aio/_configuration.py Updates the asynchronous API version configuration.
sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/aio/_client.py Regenerates the asynchronous client.
sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_version.py Sets the package version to 1.0.0.
sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_utils/model_base.py Regenerates model infrastructure.
sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_configuration.py Updates the default API version configuration.
sdk/resources/azure-mgmt-resource-policy/azure/mgmt/resource/policy/_client.py Regenerates the client and operation groups.
sdk/resources/azure-mgmt-resource-policy/apiview-properties.json Updates API mappings.
sdk/resources/azure-mgmt-resource-policy/api.metadata.yml Updates API metadata.
sdk/resources/azure-mgmt-resource-policy/_metadata.json Updates API and generator metadata.
Review details

Suppressed comments (1)

sdk/resources/azure-mgmt-resource-policy/CHANGELOG.md:36

  • These four symbols are operation-group classes, not models, so documenting them under the model removals is inaccurate and makes migration guidance harder to follow. Please label them as deleted or renamed operation groups, consistent with the PolicyClient.* entries above.
  - Deleted or renamed model `PolicyEnrollmentsOperations`
  - Deleted or renamed model `PolicyExemptionsOperations`
  - Deleted or renamed model `VariableValuesOperations`
  - Deleted or renamed model `VariablesOperations`
  • Files reviewed: 146/148 changed files
  • Comments generated: 0
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-release When merged to main, release pipelines for this PR's changed packages trigger automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants