Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
dc3995b
Rewrite Azure Policy CRUD commands in auto-generation
mentat9 May 16, 2025
c33ffc0
Fix policyinsights completers references
mentat9 May 16, 2025
8c10b0c
Fix linter error
mentat9 May 16, 2025
b7cc55a
Fix linter and style errors related to this change
mentat9 May 21, 2025
c31df8a
Fix remaining style violations
mentat9 May 21, 2025
4201fd7
Fix additional check failures
mentat9 May 23, 2025
2107202
Fix and rerecord PI tests that use policy CRUD commands
mentat9 Jun 30, 2025
c33c541
Merge from upstream dev branch
mentat9 Jun 30, 2025
11d6bae
Complete the merge from upstream dev
mentat9 Jun 30, 2025
1087853
Resolve conflicts
mentat9 Jul 1, 2025
e63f9ab
Merge branch 'dev' of https://github.com/Azure/azure-cli into feature…
mentat9 Jul 2, 2025
bd60323
Fix linter/style checks
mentat9 Jul 3, 2025
5ffc3e6
Fixup a couple of deployment recording files
mentat9 Jul 8, 2025
2531ca0
Remove breaking changes
mentat9 Jul 25, 2025
9c8b4e6
Add missing @staticmethod tag
mentat9 Jul 25, 2025
c973f96
Fix CI failures
mentat9 Jul 28, 2025
6754743
Merge from upstream
mentat9 Jul 29, 2025
5758af7
Update messages per PR feedback
mentat9 Aug 12, 2025
603a9e9
Refresh from upstream dev
mentat9 Aug 19, 2025
1f4af2f
Merge branch 'dev' of https://github.com/Azure/azure-cli into feature…
mentat9 Aug 25, 2025
8aa3b07
Merge branch 'dev' of https://github.com/Azure/azure-cli into feature…
mentat9 Nov 4, 2025
499ca34
Merge branch 'dev' of https://github.com/Azure/azure-cli into feature…
mentat9 Nov 19, 2025
3098b29
Add override for [de]serialization of null properties
mentat9 Nov 19, 2025
0bd1e40
Fix linter failures
mentat9 Nov 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
322 changes: 300 additions & 22 deletions src/azure-cli/azure/cli/command_modules/resource/policy.py

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interactions:
ParameterSetName:
- --name
User-Agent:
- AZURECLI/2.73.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-11-10.0.26100-SP0)
- AZURECLI/2.79.0 azsdk-python-core/1.36.0 Python/3.12.10 (Windows-11-10.0.26200-SP0)
method: GET
uri: https://management.azure.com/providers/Microsoft.Authorization/policyDefinitions/somePolicyDefinition?api-version=2024-05-01
response:
Expand All @@ -28,7 +28,7 @@ interactions:
content-type:
- application/json
date:
- Thu, 22 May 2025 19:52:31 GMT
- Wed, 19 Nov 2025 02:17:27 GMT
expires:
- '-1'
pragma:
Expand All @@ -42,7 +42,7 @@ interactions:
x-ms-operation-identifier:
- ''
x-msedge-ref:
- 'Ref A: 7B6CE64B8DAD4B09977EC0FA7E565D20 Ref B: CO6AA3150217045 Ref C: 2025-05-22T19:52:31Z'
- 'Ref A: 0173D0B9212E43F397D7862BF78EA7CF Ref B: CO6AA3150217029 Ref C: 2025-11-19T02:17:27Z'
status:
code: 404
message: Not Found
Expand All @@ -60,7 +60,7 @@ interactions:
ParameterSetName:
- --name
User-Agent:
- AZURECLI/2.73.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-11-10.0.26100-SP0)
- AZURECLI/2.79.0 azsdk-python-core/1.36.0 Python/3.12.10 (Windows-11-10.0.26200-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/somePolicyDefinition?api-version=2024-05-01
response:
Expand All @@ -75,7 +75,7 @@ interactions:
content-type:
- application/json
date:
- Thu, 22 May 2025 19:52:31 GMT
- Wed, 19 Nov 2025 02:17:27 GMT
expires:
- '-1'
pragma:
Expand All @@ -87,11 +87,11 @@ interactions:
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=3d826307-2481-45a0-a271-bcf9333f914a/westus2/53f7c5dd-b73f-4fd4-8c8d-a331a41c343a
- tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=3d826307-2481-45a0-a271-bcf9333f914a/westus/4bc6635d-e71f-4bf9-91ac-f0a25c824283
x-ms-ratelimit-remaining-subscription-global-reads:
- '16499'
x-msedge-ref:
- 'Ref A: 29CD3A9D0A3441E3B6B51443F9BD4A0F Ref B: CO6AA3150217045 Ref C: 2025-05-22T19:52:31Z'
- 'Ref A: C953DD83D25543269F4AD4CAAA4077F3 Ref B: MWH011020806029 Ref C: 2025-11-19T02:17:28Z'
status:
code: 404
message: Not Found
Expand All @@ -109,7 +109,7 @@ interactions:
ParameterSetName:
- -n
User-Agent:
- AZURECLI/2.73.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-11-10.0.26100-SP0)
- AZURECLI/2.79.0 azsdk-python-core/1.36.0 Python/3.12.10 (Windows-11-10.0.26200-SP0)
method: GET
uri: https://management.azure.com/providers/Microsoft.Authorization/policyDefinitions/fee5cb2b-9d9b-410e-afe3-2902d90d0004?api-version=2024-05-01
response:
Expand All @@ -130,7 +130,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Thu, 22 May 2025 19:52:31 GMT
- Wed, 19 Nov 2025 02:17:28 GMT
expires:
- '-1'
pragma:
Expand All @@ -144,7 +144,7 @@ interactions:
x-ms-operation-identifier:
- ''
x-msedge-ref:
- 'Ref A: 4E5051DBCD1A4DF29BF531DFC0AAD566 Ref B: CO6AA3150220039 Ref C: 2025-05-22T19:52:31Z'
- 'Ref A: 00208A4C14E14AC9A6992220A599F795 Ref B: MWH011020809060 Ref C: 2025-11-19T02:17:28Z'
status:
code: 200
message: OK
Expand All @@ -162,7 +162,7 @@ interactions:
ParameterSetName:
- --name --management-group
User-Agent:
- AZURECLI/2.73.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-11-10.0.26100-SP0)
- AZURECLI/2.79.0 azsdk-python-core/1.36.0 Python/3.12.10 (Windows-11-10.0.26200-SP0)
method: GET
uri: https://management.azure.com/providers/Microsoft.Management/managementGroups/fee5cb2b-9d9b-410e-afe3-2902d90d0004/providers/Microsoft.Authorization/policyDefinitions/fee5cb2b-9d9b-410e-afe3-2902d90d0004?api-version=2024-05-01
response:
Expand All @@ -177,7 +177,7 @@ interactions:
content-type:
- application/json
date:
- Thu, 22 May 2025 19:52:32 GMT
- Wed, 19 Nov 2025 02:17:28 GMT
expires:
- '-1'
pragma:
Expand All @@ -191,7 +191,7 @@ interactions:
x-ms-operation-identifier:
- ''
x-msedge-ref:
- 'Ref A: EB0208447711464FAF3C14B6303C6CA7 Ref B: MWH011020806060 Ref C: 2025-05-22T19:52:32Z'
- 'Ref A: 60DC27A66C674EAE8B42A554E2A9BD8E Ref B: CO6AA3150219031 Ref C: 2025-11-19T02:17:28Z'
status:
code: 404
message: Not Found
Expand Down
Loading
Loading