Skip to content

Conversation

@wangzelin007
Copy link
Member

Related command

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


This checklist is used to make sure that common guidelines for a pull request are followed.

Copilot AI review requested due to automatic review settings September 17, 2025 02:26
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Sep 17, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

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

azure-client-tools-bot-prd bot commented Sep 17, 2025

⚠️AzureCLI-BreakingChangeTest
⚠️network
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd network vnet create cmd network vnet create added parameter export_bicep
⚠️ 1006 - ParaAdd network vnet create cmd network vnet create added parameter what_if
⚠️ 1006 - ParaAdd network vnet update cmd network vnet update added parameter export_bicep
⚠️ 1006 - ParaAdd network vnet update cmd network vnet update added parameter what_if
⚠️storage
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd storage account create cmd storage account create added parameter export_bicep
⚠️ 1006 - ParaAdd storage account create cmd storage account create added parameter what_if
⚠️ 1006 - ParaAdd storage account network-rule add cmd storage account network-rule add added parameter export_bicep
⚠️ 1006 - ParaAdd storage account network-rule add cmd storage account network-rule add added parameter what_if
⚠️ 1006 - ParaAdd storage container create cmd storage container create added parameter export_bicep
⚠️ 1006 - ParaAdd storage container create cmd storage container create added parameter what_if
⚠️ 1006 - ParaAdd storage share create cmd storage share create added parameter export_bicep
⚠️ 1006 - ParaAdd storage share create cmd storage share create added parameter what_if
⚠️vm
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd vm create cmd vm create added parameter export_bicep
⚠️ 1006 - ParaAdd vm create cmd vm create added parameter what_if
⚠️ 1006 - ParaAdd vm disk attach cmd vm disk attach added parameter export_bicep
⚠️ 1006 - ParaAdd vm disk attach cmd vm disk attach added parameter what_if
⚠️ 1006 - ParaAdd vm disk detach cmd vm disk detach added parameter export_bicep
⚠️ 1006 - ParaAdd vm disk detach cmd vm disk detach added parameter what_if
⚠️ 1006 - ParaAdd vm nic remove cmd vm nic remove added parameter export_bicep
⚠️ 1006 - ParaAdd vm nic remove cmd vm nic remove added parameter what_if
⚠️ 1006 - ParaAdd vm update cmd vm update added parameter export_bicep
⚠️ 1006 - ParaAdd vm update cmd vm update added parameter what_if

@yonzhan
Copy link
Collaborator

yonzhan commented Sep 17, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

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 adds support for the --what-if argument to Azure CLI commands, allowing users to preview changes before execution. The implementation includes a new what-if service client and parameter integration across VM and SQL command modules.

  • Creates a new what-if module with Azure authentication and service communication
  • Adds --what-if parameter support to VM and SQL command creation/update operations
  • Implements command interception logic to handle what-if mode execution

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/azure-cli-core/azure/cli/core/what_if.py New module implementing what-if service client with Azure authentication
src/azure-cli-core/azure/cli/core/commands/parameters.py Adds get_what_if_type() function for parameter definition
src/azure-cli-core/azure/cli/core/commands/init.py Implements command interception and what-if execution logic
src/azure-cli/azure/cli/command_modules/vm/_params.py Adds what-if parameter to VM create and update commands
src/azure-cli/azure/cli/command_modules/vm/custom.py Updates VM create function signature to accept what-if parameter
src/azure-cli/azure/cli/command_modules/sql/_params.py Adds what-if parameter to SQL server create command
src/azure-cli/azure/cli/command_modules/sql/custom.py Updates SQL server create function signature to accept what-if parameter

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@MoChilia MoChilia mentioned this pull request Sep 22, 2025
3 tasks
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.

4 participants