Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az vmss update fails when trying to update image url for VM scale set #2747

Closed
bishal-pdMSFT opened this issue Apr 4, 2017 · 2 comments
Closed
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Compute az vm/vmss/image/disk/snapshot
Milestone

Comments

@bishal-pdMSFT
Copy link

I am trying to update os image used in my VMSS, and ran following command but it fails:
az vmss update -g myrg -n myvmss --set virtualMachineProfile.storageProfile.osDisk.image.uri=https://mystorage.blob.core.windows.net/system/Microsoft.Compute/Images/vsts-buildimagetask/Release-2-osDisk.6efa6e4e-d44c-4554-bee5-d32361220902.vhd

Error is:
create_or_update() takes at least 4 arguments (3 given)
Traceback (most recent call last):
File "/opt/az/local/lib/python2.7/site-packages/azure/cli/main.py", line 37, in main
cmd_result = APPLICATION.execute(args)
File "/opt/az/local/lib/python2.7/site-packages/azure/cli/core/application.py", line 157, in execute
result = expanded_arg.func(params)
File "/opt/az/local/lib/python2.7/site-packages/azure/cli/core/commands/arm.py", line 309, in handler
opres = setter(client, **setterargs) if client else setter(**setterargs)
File "/opt/az/local/lib/python2.7/site-packages/azure/cli/command_modules/vm/custom.py", line 1490, in vmss_set
raw=no_wait, **kwargs)
TypeError: create_or_update() takes at least 4 arguments (3 given)

log file gist: https://gist.githubusercontent.com/bishal-pdMSFT/ffd9aa642a43de16ed56a9f887734e51/raw/2c708c0e2c281401c05ca9dad277f23d68d707d6/AzCliVmssUpdateError

Environment summary

Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: apt-get

CLI Version: What version of the CLI and modules are installed? (Available with az --version)
Answer here: 2.0.2

OS Version: What OS and version are you using?
Answer here: Ubuntu 14.04

Shell Type: What shell are you using? (e.g. bash, cmd.exe, PowerShell)
Answer here: bash

Description

@tjprescott tjprescott self-assigned this Apr 4, 2017
@tjprescott tjprescott added the Compute az vm/vmss/image/disk/snapshot label Apr 4, 2017
@tjprescott tjprescott added this to the Sprint 15 milestone Apr 4, 2017
@bishal-pdMSFT
Copy link
Author

FYI..This is a regression. Same command was working fine in earlier version of az cli.

@tjprescott tjprescott added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Apr 5, 2017
@tjprescott
Copy link
Member

I've also confirmed this affects vm availability-set update.

@haroldrandom haroldrandom added bug This issue requires a change to an existing behavior in the product in order to be resolved. Compute az vm/vmss/image/disk/snapshot labels Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Compute az vm/vmss/image/disk/snapshot
Projects
None yet
Development

No branches or pull requests

3 participants