azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az vmss update-instances not working

Open sysadmin-exe opened this issue 6 years ago • 5 comments

I am having an issue.

az vmss update-instances --instance-ids * --name server_scaleset --resource-group web_rg

the error I get is this: The provided instanceId data.tf is invalid. It must be a non-negative integer or the character "*".

data.tf is actually the first file in the PWD where the command was run from on the terminal.

Tried same on Portal CLI and the error was: The provided instanceId clouddrive is invalid. It must be a non-negative integer or the character "*".

AZ CLI version: 2.11.1

All I can do is run the command for all instances one at a time like so az vmss update-instances --instance-ids 2 --name server_scaleset --resource-group web_rg az vmss update-instances --instance-ids 3 --name server_scaleset --resource-group web_rg

And i dont think this makes sense


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

sysadmin-exe avatar Aug 31 '20 21:08 sysadmin-exe

hi @qwordy could you pls have a look?

yungezz avatar Sep 01 '20 04:09 yungezz

I think * is translated by your terminal. Please add " around *. --instance-ids "*"

qwordy avatar Oct 12 '20 05:10 qwordy

@sysadmin-exe Do I solve your problem?

qwordy avatar Nov 16 '20 07:11 qwordy

Oh yea please @qwordy thanks.

sysadmin-exe avatar Nov 16 '20 07:11 sysadmin-exe

Oh yea please @qwordy thanks.

Cool! I will close this issue.

qwordy avatar Nov 17 '20 03:11 qwordy