Add support of policy exemption resource type#14474
Add support of policy exemption resource type#14474wyunchi-ms merged 10 commits intoAzure:masterfrom robga:robga/exemption
Conversation
DCtheGeek
left a comment
There was a problem hiding this comment.
Minor language comments. I think we need to work on being consistent in regards to "policy set (initiative)" in all of the texts.
src/Resources/ResourceManager/Entities/Policy/PolicyExemptionProperties .cs
Outdated
Show resolved
Hide resolved
src/Resources/ResourceManager/Entities/Policy/PolicyExemptionProperties .cs
Outdated
Show resolved
Hide resolved
src/Resources/ResourceManager/Implementation/Policy/GetAzurePolicyExemption.cs
Outdated
Show resolved
Hide resolved
src/Resources/ResourceManager/Implementation/Policy/GetAzurePolicyExemption.cs
Outdated
Show resolved
Hide resolved
src/Resources/ResourceManager/Implementation/Policy/GetAzurePolicyExemption.cs
Outdated
Show resolved
Hide resolved
src/Resources/ResourceManager/Implementation/Policy/NewAzurePolicyExemption.cs
Outdated
Show resolved
Hide resolved
src/Resources/ResourceManager/Implementation/Policy/PolicyHelpStrings.cs
Outdated
Show resolved
Hide resolved
src/Resources/ResourceManager/Implementation/Policy/PolicyHelpStrings.cs
Outdated
Show resolved
Hide resolved
src/Resources/ResourceManager/Implementation/Policy/GetAzurePolicyExemption.cs
Show resolved
Hide resolved
src/Resources/ResourceManager/Implementation/Policy/NewAzurePolicyExemption.cs
Outdated
Show resolved
Hide resolved
src/Resources/ResourceManager/Implementation/Policy/SetAzurePolicyExemption.cs
Outdated
Show resolved
Hide resolved
Would also be good to add tests here to validate combinations of parameter values for the new cmdlets. These should break if parameter sets or parameters get changed in a breaking way. Refers to: src/Resources/Resources.Test/ScenarioTests/PolicyTests.ps1:1252 in 6ed9241. [](commit_id = 6ed9241, deletion_comment = False) |
Would be good to add tests for piping an assignment into New-AzPolicyExemption and any piping scenarios for Set-AzPolicyExemption that aren't already tested below (maybe modifying metadata, etc.). Refers to: src/Resources/Resources.Test/ScenarioTests/PolicyTests.ps1:1127 in 6ed9241. [](commit_id = 6ed9241, deletion_comment = False) |
src/Resources/ResourceManager/Implementation/Policy/GetAzurePolicyAssignment.cs
Show resolved
Hide resolved
mentat9
left a comment
There was a problem hiding this comment.
Looks good overall, left some comments.
|
Hi @robga , please follow help generation guide to add help markdown files for Get-AzPolicyExemption, New-AzPolicyExemption, Remove-AzPolicyExemption and Set-AzPolicyExemption. |
robga
left a comment
There was a problem hiding this comment.
Minor language comments. I think we need to work on being consistent in regards to "policy set (initiative)" in all of the texts.
Updated all references in the PolicyHelpStrings file at least.
I wrote some pipeline test in Test-PolicyExemptionCRUDOnPolicySet. The pattern in the three tests I added are similar. So, I mixed pipeline test into them. |
Added parameter validation tests |
Hi @BethanyZhou , I am not sure how to add ms.assetid in the help doc. I left it empty. |
Description
Checklist
CONTRIBUTING.mdChangeLog.mdfile(s) has been updated:ChangeLog.mdfile can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md## Upcoming Releaseheader -- no new version header should be added