nerdexam
Microsoft

AZ-104 · Question #78

A team needs to deploy a scaleset to Azure. You have to create the required Azure CLI script for the same. You have to write the part of the script to scale the scaleset to a new capacity of 4…

The correct answer is B. az vmss scale --resource-group "whizlabs-rg" --name lead2passset --new-capacity 4. The correct Azure CLI command to scale a Virtual Machine Scale Set (VMSS) uses 'az vmss scale' with the '--new-capacity' parameter to specify the desired number of instances. Option B correctly uses both the proper subcommand ('az vmss scale') and the correct parameter name…

Submitted by eva_at· Mar 4, 2026Implement and Manage Azure Compute Infrastructure - Configure scaling for Azure Virtual Machine Scale Sets using CLI automation

Question

A team needs to deploy a scaleset to Azure. You have to create the required Azure CLI script for the same. You have to write the part of the script to scale the scaleset to a new capacity of 4. Which of the following is the right command for this?

Exhibit

AZ-104 question #78 exhibit

Options

  • Aaz vmss scale --resource-group "whizlabs-rg" --name lead2passset --scale-capacity 4
  • Baz vmss scale --resource-group "whizlabs-rg" --name lead2passset --new-capacity 4
  • Caz vmss new-scale --resource-group "whizlabs-rg" --name lead2passset --new-capacity 4
  • Daz vmss new-scale --resource-group "whizlabs-rg" --name lead2passset --scale-capacity 4

How the community answered

(25 responses)
  • A
    4% (1)
  • B
    80% (20)
  • C
    4% (1)
  • D
    12% (3)

Explanation

The correct Azure CLI command to scale a Virtual Machine Scale Set (VMSS) uses 'az vmss scale' with the '--new-capacity' parameter to specify the desired number of instances. Option B correctly uses both the proper subcommand ('az vmss scale') and the correct parameter name ('--new-capacity 4'), which is the exact syntax required by the Azure CLI to change the instance count of an existing scale set.

Topics

#Azure CLI#Virtual Machine Scale Sets#VMSS Scaling#Azure Compute

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice