Skip to content

[Compute] az vm/vmss create/ update: Update help message for --security-type#33394

Open
william051200 wants to merge 1 commit into
Azure:devfrom
william051200:33280-security-type
Open

[Compute] az vm/vmss create/ update: Update help message for --security-type#33394
william051200 wants to merge 1 commit into
Azure:devfrom
william051200:33280-security-type

Conversation

@william051200
Copy link
Copy Markdown
Member

Related command

az vm create
az vm update
az vmss create
az vmss update

Description

Resolve #33280

As per request ASK:
image

After investigation:
CLI does not enforce Microsoft.Compute/UseStandardSecurityType AFEC registration when using --security-type Standard.

The only change required is removing the help message:
"The value Standard can be used if subscription has feature flag UseStandardSecurityType registered under Microsoft.Compute namespace."

Testing Guide

History Notes


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 May 19, 2026 01:43
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented May 19, 2026

️✔️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
️✔️postgresql
️✔️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
Copy Markdown

Hi @william051200,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

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

azure-client-tools-bot-prd Bot commented May 19, 2026

⚠️AzureCLI-BreakingChangeTest
⚠️postgresql
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd postgres flexible-server create cmd postgres flexible-server create added parameter subnet_address_prefix
⚠️ 1006 - ParaAdd postgres flexible-server create cmd postgres flexible-server create added parameter vnet_address_prefix
⚠️ 1003 - CmdPropAdd postgres flexible-server create cmd postgres flexible-server create added property deprecate_info_target
⚠️ 1006 - ParaAdd postgres flexible-server geo-restore cmd postgres flexible-server geo-restore added parameter subnet_address_prefix
⚠️ 1006 - ParaAdd postgres flexible-server geo-restore cmd postgres flexible-server geo-restore added parameter vnet_address_prefix
⚠️ 1003 - CmdPropAdd postgres flexible-server geo-restore cmd postgres flexible-server geo-restore added property deprecate_info_target
⚠️ 1006 - ParaAdd postgres flexible-server replica create cmd postgres flexible-server replica create added parameter subnet_address_prefix
⚠️ 1006 - ParaAdd postgres flexible-server replica create cmd postgres flexible-server replica create added parameter vnet_address_prefix
⚠️ 1003 - CmdPropAdd postgres flexible-server replica create cmd postgres flexible-server replica create added property deprecate_info_target
⚠️ 1006 - ParaAdd postgres flexible-server restore cmd postgres flexible-server restore added parameter subnet_address_prefix
⚠️ 1006 - ParaAdd postgres flexible-server restore cmd postgres flexible-server restore added parameter vnet_address_prefix
⚠️ 1003 - CmdPropAdd postgres flexible-server restore cmd postgres flexible-server restore added property deprecate_info_target
⚠️ 1006 - ParaAdd postgres flexible-server revive-dropped cmd postgres flexible-server revive-dropped added parameter subnet_address_prefix
⚠️ 1006 - ParaAdd postgres flexible-server revive-dropped cmd postgres flexible-server revive-dropped added parameter vnet_address_prefix
⚠️ 1003 - CmdPropAdd postgres flexible-server revive-dropped cmd postgres flexible-server revive-dropped added property deprecate_info_target

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented May 19, 2026

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

@github-actions
Copy link
Copy Markdown

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
Copy Markdown
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

Removes outdated guidance from the --security-type help text for az vm/az vmss create/update, since CRP no longer requires the Microsoft.Compute/UseStandardSecurityType AFEC feature flag to use Standard.

Changes:

  • Simplifies --security-type help on VM commands.
  • Simplifies --security-type help on VMSS commands.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@william051200 william051200 changed the title [Compute] az vm/vmss create/ update: Update help message for --security-type [Compute] az vm/vmss create/ update: Update help message for --security-type May 19, 2026
@william051200
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@william051200
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

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

Labels

act-observability-squad Auto-Assign Auto assign by bot Compute az vm/vmss/image/disk/snapshot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove check for "UseStandardSecurityType" AFEC for security-type Standard

5 participants