[Compute] az vm/vmss create/update: Update help message for --security-type - #33394
Conversation
️✔️AzureCLI-FullTest
|
|
Hi William (@william051200), |
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
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). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
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-typehelp on VM commands. - Simplifies
--security-typehelp on VMSS commands.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
--security-typeaz vm/vmss create/ update: Update help message for --security-type
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
az vm/vmss create/ update: Update help message for --security-typeaz vm/vmss create/update: Update help message for --security-type

Related command
az vm createaz vm updateaz vmss createaz vmss updateDescription
Resolve #33280
As per request ASK:

After investigation:
CLI does not enforce
Microsoft.Compute/UseStandardSecurityTypeAFEC 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.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.