[Resources] Amend what-if noise notice to point to Deployment Stacks - #30077
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Alex Frankel (@alex-frankel) — this replaces the earlier PR you reviewed. Your feedback is implemented verbatim:
The standalone |
There was a problem hiding this comment.
Pull request overview
Updates Az.Resources user-facing messaging around template deployment what-if “noise” to point users to Deployment Stacks as a noise-reduction option, while removing the prior issue-filing/“NOTICE” wording.
Changes:
- Rewrites
WhatIfNoiseNoticeto a single, less promotional sentence that links to Deployment Stacks what-if. - Keeps the generated
Resources.Designer.csXML doc comment aligned with the updated.resxcontent. - Rewords the unreleased changelog entry to reflect the new notice behavior without embedding the removed issue-filing URL.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/Resources/Resources/ChangeLog.md |
Updates the upcoming release note to describe the amended what-if noise notice and removal of the issue-filing line. |
src/Resources/ResourceManager/Properties/Resources.resx |
Replaces the multi-line what-if noise notice with a single sentence pointing to Deployment Stacks. |
src/Resources/ResourceManager/Properties/Resources.Designer.cs |
Updates the generated XML summary text for WhatIfNoiseNotice to match the new message. |
Files not reviewed (1)
- src/Resources/ResourceManager/Properties/Resources.Designer.cs: Generated file
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
🤖 PR Validation —⚠️ Review suggested
️✔️Az.Accounts
️✔️Az.KeyVault
️✔️Az.ManagedServiceIdentity
️✔️Az.Monitor
️✔️Az.Network
Description
Replaces #30048, which is now closed. This PR is branched from current
mainand implements Alex Frankel (@alex-frankel)'s review feedback from that PR.Review feedback being addressed
Alex Frankel (@alex-frankel), reviewing
Resources.resxon #30048:What changed as a result:
NOTICE! - Want to get What-if without noise? Move to ...line, which was the part that read like an ad.Note:sentence in place instead of appending a new line, exactly as requested.https://aka.ms/WhatIfIssuesissue-filing line, so the notice is a single sentence with one next step.what-if.Also addresses the automated review note on #30048 that the changelog entry itself still embedded the
aka.ms/WhatIfIssuesURL — the entry has been reworded so no URL remains.Affected output:
New-AzDeploymentWhatIf/New-AzResourceGroupDeploymentWhatIfand the equivalent subscription, management group, and tenant cmdlets, plus the what-if preview rendered by the deployment create cmdlets.Before (current
main)After
Changes
src/Resources/ResourceManager/Properties/Resources.resx— updated theWhatIfNoiseNoticevalue to the single amended sentence.src/Resources/ResourceManager/Properties/Resources.Designer.cs— kept the generated doc comment in sync with the.resx. Comment only; the accessor is unchanged.src/Resources/Resources/ChangeLog.md— reworded the existing unreleased entry to describe the final behavior, with no embedded URL.Scope / risk
WhatIfNoiseNoticeis consumed only byWhatIfOperationResultFormatter.FormatNoiseNotice(), which formatsPSWhatIfOperationResultfor template deployment what-if.PSDeploymentStackWhatIfResultand is formatted separately, so it is not touched.https://aka.ms/WhatIfIssuesnow has no remaining references undersrc/.src/Resources/Resources.Test/Formatters/WhatIfOperationResultFormatterTests.csassert withAssert.Contains/Assert.EndsWithagainst legend, change, stats, and diagnostic content. None include the noise notice, and theAssert.EndsWithcase targets the trailing stats line while the notice is emitted at the top, so no test updates are required.