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

Unable to pass multiple instance IDs into --instance-ids parameter

Open AgSync-Aaron opened this issue 7 years ago • 4 comments

$ CURRENT_INSTANCE_IDS="11 14"
$ az vmss delete-instances --name=$VMSS_NAME --resource-group=$VMSS_RG --instance-ids="$CURRENT_INSTANCE_IDS"
The provided instanceId 11 14 is invalid. It must be a non-negative integer or the character "*".

Your documentation says > Space-separated list of IDs (ex: 1 2 3 ...) or * for all instances.

Can you please provide an example of how to pass multiple instance IDs into the parameter --instance-ids?

Thanks


Document Details

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

AgSync-Aaron avatar Jul 12 '19 23:07 AgSync-Aaron

🤦🏻‍♂️ it doesn't like the = sign

$ az vmss delete-instances --name=$VMSS_NAME --resource-group=$VMSS_RG --instance-ids $CURRENT_INSTANCE_IDS

AgSync-Aaron avatar Jul 12 '19 23:07 AgSync-Aaron

I tried creating a vmss on an existing subnet and it keeps creating a new one:

--subnet XX
--vnet-name XX \

I also tried just the Resource ID of the subnet --subnet /resources/*** but it does not work.

Any ideas?

andresbarcenas avatar Dec 23 '19 17:12 andresbarcenas

this is closed but I am having the same issue. The command here is without a = sign

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.10.1

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

I notice you opened a new issue. So we will not update here.

qwordy avatar Sep 02 '20 09:09 qwordy