Skip to content

VM/VMSS support add-proxy-agent-extension parameter #32124

@huiminyan2017

Description

@huiminyan2017

Preconditions
Need Python SDK release 2025-04-01. ETA: 09/30

Related command

Add a new parameter --add-proxy-agent-extension for vm/vmss create/update:
Single VM:

az vm create --add-proxy-agent-extension
az vm update --add-proxy-agent-extension {false, true}
az vmss create --add-proxy-agent-extension
az vmss update --add-proxy-agent-extension {false, true}

Resource Provider
Microsoft.Compute

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

How to test:
Please test with a linux image:

set resourceGroupName="huiya-eastus2euap"
set locationName="WestUS2"
set vmName="vm2"
set adminPassword="your password"
az login
az vm create -g %resourceGroupName% --location %locationName% --image Canonical:0001-com-ubuntu-server-jammy:22_04-lts:latest --size Standard_D2s_v5 --admin-username test_admin --admin-password %adminPassword% --enable-proxy-agent --add-proxy-agent-extension --name %vmName%

Without setting add-proxy-agent-extension, the creation will fail with: :[{"code":"OSProvisioningInternalError","message":"OS Provisioning failed for VM 'vm2' due to an internal error."}]
with setting add-proxy-agent-extension, the creation will success.

Swagger PR link / SDK link
Azure/azure-rest-api-specs#36669

Describe alternatives you've considered

Additional context

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions