Skip to content

Added Policy API-version 2019-06-01. Policy assignment cmdlet updated to accept EnforcementMode property #10421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 6, 2019

Conversation

sandipsh
Copy link
Contributor

@sandipsh sandipsh commented Oct 29, 2019

… for new enforcementMode property

Description

Updated Policy api version to 2019-06-01. Update New-AzPolicyAssignment and Set-AzPolicyAssignment cmdlets to accept -EnforcementMode parameter. Added test for the new property. Updated help and changelog. Also updated create policy definition help examples.

Checklist

  • I have read the Submitting Changes section of CONTRIBUTING.md
  • The title of the PR is clear and informative
  • The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • The PR does not introduce breaking changes
  • If applicable, the changes made in the PR have proper test coverage
  • For public API changes to cmdlets:
    • a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
    • the markdown help files have been regenerated using the commands listed here

@adxsdkps
Copy link
Collaborator

Can one of the admins verify this patch?

@sandipsh sandipsh requested a review from mentat9 October 29, 2019 23:35
@sandipsh sandipsh changed the title Added Policy API-version 2019-06-01. Policy assignment cmdlet updated… Added Policy API-version 2019-06-01. Policy assignment cmdlet updated to accept EnforcementMode property Oct 29, 2019
mentat9
mentat9 previously approved these changes Oct 30, 2019
Copy link
Member

@mentat9 mentat9 left a comment

Choose a reason for hiding this comment

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

Approving, but I left a couple of comments you should consider.

@msJinLei
Copy link
Contributor

@sandipsh please fix the failed test case

@@ -12,6 +12,8 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using System;
Copy link
Member

Choose a reason for hiding this comment

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

Move this inside the namespace.

mentat9
mentat9 previously approved these changes Oct 31, 2019
Copy link
Member

@mentat9 mentat9 left a comment

Choose a reason for hiding this comment

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

Left a couple of minor comments. Looks good though.

@sandipsh
Copy link
Contributor Author

sandipsh commented Nov 1, 2019

Addressed all comments and updated session record json file for failing test.

@msJinLei
Copy link
Contributor

msJinLei commented Nov 5, 2019

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

Remove the new version 1.7.2
@msJinLei msJinLei merged commit c8cbc41 into Azure:master Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants