Conversation
| Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
There was a problem hiding this comment.
Pull request overview
This PR adds CmdletOutputBreakingChangeWithVersion attributes to nine PolicyInsights cmdlets to notify users about upcoming output type changes planned for Az version 16.0.0 / module version 2.0.0. These notices inform users about deprecated and new output properties, replacement output type names, and behavioral changes (such as new NoWait switch parameters for remediation cmdlets).
Changes:
- Added
CmdletOutputBreakingChangeWithVersionattributes to all affected Attestation cmdlets (Get,New,Set) - Added
CmdletOutputBreakingChangeWithVersionattributes to all Remediation cmdlets (Get,Start,Stop) and general Policy cmdlets (GetAzureRmPolicyEvent,GetAzureRmPolicyState,GetAzureRmPolicyStateSummary,GetAzPolicyMetadata) - Reorganized
usingdirectives in each file to follow a consistent ordering (Microsoft namespaces first, then System namespaces)
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
GetAzureRmPolicyAttestation.cs |
Added breaking change notice for PSAttestation output type changes (SystemData deprecated, new flattened SystemData properties) |
NewAzureRmPolicyAttestation.cs |
Added same breaking change notice as Get/Set for attestation output type changes |
SetAzureRmPolicyAttestation.cs |
Added same breaking change notice as Get/New for attestation output type changes |
GetAzureRmPolicyRemediation.cs |
Added breaking change notice for PSRemediation output type; deprecated Filters, DeploymentSummary, FailureThreshold, ParallelDeployments; added new flattened properties |
StartAzureRmPolicyRemediation.cs |
Added breaking change notice for PSRemediation output type with same property changes, plus behavioral change (new NoWait parameter) |
StopAzureRmPolicyRemediation.cs |
Added breaking change notice for bool output type with ReplacementCmdletOutputTypeName = "Remediation" and a new NoWait parameter description |
GetAzureRmPolicyEvent.cs |
Added breaking change notice for PolicyEvent output type with property renames; contains a typo ("Vales" instead of "Values") |
GetAzureRmPolicyState.cs |
Added breaking change notice for PolicyState output type with property renames |
GetAzureRmPolicyStateSummary.cs |
Added breaking change notice for PolicyStateSummary output type with property renames |
GetAzPolicyMetadata.cs |
Added breaking change notice for PSPolicyMetadata output type with a new ResourceGroupName property |
src/PolicyInsights/PolicyInsights/Cmdlets/GetAzureRmPolicyEvent.cs
Outdated
Show resolved
Hide resolved
src/PolicyInsights/PolicyInsights/Cmdlets/Remediation/StopAzureRmPolicyRemediation.cs
Show resolved
Hide resolved
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
Hi @dunnryan Please update the changelog accordingly https://github.com/dunnryan/azure-powershell/blob/main/src/PolicyInsights/PolicyInsights/ChangeLog.md |
|
This PR was labeled "needs-revision" because it has unresolved review comments or CI failures. |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Description
Adding a breaking change notice for the PolicyInsights cmdlets.
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.mdand reviewed the following information:ChangeLog.mdfile(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.## Upcoming Releaseheader in the past tense.ChangeLog.mdif no new release is required, such as fixing test case only.