What was reported:
Issue Azure/azure-cli#31191 (closed, 44 comments): ### Describe the bug Hi there, After upgrading to az v2.71.0, my `az vm create` commands fail with `The value of parameter securityProfile.securityType is invalid.`. After downgrading the cli via `brew install --build-from-source azure-cli.rb` with the file being taken from https://github.com/Homebrew/homebrew-core/blob/4ebae799157b908501142a9752101fd0e69722ba/Formula/a/azure-cli.rb the cli version is v2.70.0 and works properly with security type of `Standard`. ### Related command ```bash az vm create --name="az-cli-test" --image="MicrosoftWindowsServer:WindowsServer:2022-datacenter-azure-edit

What works:
Resolved in Azure CLI v2.72.0. You do not need `--security-type=Standard` on every deployment, only for Gen2 VM/VMSS from PIR or Marketplace images when you need to bypass the Trusted Launch default. Gen1 images, compute gallery images, managed images, and VM sizes without Trusted Launch support do not need the flag.