Which Power Shell cmdlet should you use?

You manage a cloud service on two instances. The service name is Service1 and the role name is
ServiceRole1.
Service1 has performance issues during heavy traffic periods.
You need to increase the existing deployment of Service1 to three instances.
Which Power Shell cmdlet should you use?

You manage a cloud service on two instances. The service name is Service1 and the role name is
ServiceRole1.
Service1 has performance issues during heavy traffic periods.
You need to increase the existing deployment of Service1 to three instances.
Which Power Shell cmdlet should you use?

A.
PS C:\\>Set-AzureService -ServiceName “Service1” -Label “ServiceRole1” -Description “Instance count=3”

B.
PS C:\\>Set-AzureRole -ServiceName “Service1” -Slot “Production” -RoleName “ServiceRole1” -Count 3

C.
PS C:\\>Add-AzureWebRole -Name “ServiceRole1” -Instances 3

D.
PS C:\\> $instancecount = New-Object Hashtable$settings[“INSTANCECOUNT=3”] PS C:\\> SetAzureWebsite -AppSettings $instancecount ServiceRole1

Explanation:
The Set-AzureRole cmdlet sets the number of instances of a specified role to run in an Azure deployment
Example
This command sets the “MyTestRole3” role running in production on the “MySvc1” service to three instances.
Windows PowerShell
C:\\PS>Set-AzureRole –ServiceName “MySvc1” –Slot “Production” –RoleName “MyTestRole3” –Count 3



Leave a Reply 1

Your email address will not be published. Required fields are marked *


Fung

Fung

ARM:
Set-AzureRMAppServicePlan -NumberofWorkers