Skip to content

Conversation

@NoriZC
Copy link
Contributor

@NoriZC NoriZC commented Nov 9, 2025

Description

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

@azure-client-tools-bot-prd
Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a shared WhatIf formatting library for Azure PowerShell and integrates DryRun functionality across Compute, Storage, and Network modules. The shared library provides reusable formatters, models, and utilities for consistent WhatIf output formatting across different resource provider modules.

Key Changes

  • Added a comprehensive shared WhatIf library with formatters, models, extensions, comparers, and utilities
  • Integrated DryRun functionality in Compute, Storage, and Network modules with HTTP-based preview capabilities
  • Added Bicep template export functionality for DryRun operations

Reviewed Changes

Copilot reviewed 39 out of 39 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/shared/WhatIf/Utilities/ResourceIdUtility.cs New utility class for parsing Azure resource IDs
src/shared/WhatIf/Formatters/*.cs Core formatting classes for colored console output
src/shared/WhatIf/Models/*.cs Interface definitions and enums for WhatIf operations
src/shared/WhatIf/Extensions/*.cs Extension methods for type conversions
src/shared/WhatIf/Comparers/*.cs Comparer classes for sorting change types
src/shared/WhatIf/*.md Documentation files (README, usage examples, integration guides)
src/Compute/Compute/Common/ComputeClientBaseCmdlet.cs Added DryRun functionality with WhatIf adapter classes
src/Storage/Storage.Management/StorageAccount/StorageAccountBaseCmdlet.cs Added DryRun functionality mirroring Compute implementation
src/Network/Network/VirtualNetwork/VirtualNetworkBaseCmdlet.cs Added DryRun functionality mirroring Compute implementation
src/*/Compute.csproj, Storage.Management.csproj, Network.csproj Added shared WhatIf library references

Copy link
Collaborator

@VeryEarly VeryEarly left a comment

Choose a reason for hiding this comment

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

<PackageReference Include="System.Management" Version="4.5.0" />
<!-- Include the following DLLs for security issue -->
<PackageReference Include="System.Security.Cryptography.Xml" Version="4.7.1" />
<PackageReference Include="Azure.Identity" Version="1.11.4" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this necessary? I thought azure identity will be brought in by az.accounts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants