PrepAway - Latest Free Exam Questions & Answers

Solution: You run the following Azure PowerShell comman…

Note: This question is part of a series of questions that present the same scenario. Each question in the series
contains a unique solution that might meet the stated goals. Some question sets might have more than one
correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will
not appear in the review screen.
You deploy a Virtual Machine Scale Set (VMSS) named CorpWebVMSS to Azure by using Azure PowerShell
and set the instance count to 1. The VMSS includes a storage account, load balancer, public IP address. and
six Standard_A1 Windows virtual machines (VMs) that run Internet Information Services (IIS). All components
are deployed to a resource group named CorpWebRG.
You must increase the instance count to support the increased load on IIS.
You need to manually scale out the number of VMs in the scale set to 5.
Solution: You run the following Azure PowerShell commands:
$vmss = Get-AzureRmVmss -ResourceGroupName CorpWebRG –VMScalesSetName CorpWebVMSS
$vmss.Sku.Capacity = 5
Update-AzureRmVmss -ResourceGroupName CorpWebRG -Name CorpWebVMSS -VirtualMachineScaleSet
$vmss
Does the solution meet the goal?

PrepAway - Latest Free Exam Questions & Answers

A.
Yes

B.
No

2 Comments on “Solution: You run the following Azure PowerShell comman…

  1. fiber says:

    Correct, example in link provided by Sandy.

    Note:
    Update 11/8/17: Starting with the November Azure PowerShell release 5.0.0, you can update scale set capacity with a single command:

    Update-AzureRmVmss -ResourceGroupName myrg -VMScaleSetName myvmss -SkuCapacity 3




    5



    0

Leave a Reply