How should you complete the Azure PowerShell command??

DRAG DROP
Your company manages several Azure Web Apps that are running in an existing web-hosting plan named
plan1.
You need to move one of the Web Apps, named contoso, to a new web-hosting plan named plan2.
How should you complete the Azure PowerShell command?? To answer, drag the appropriate Azure
PowerShell segment to the correct location. Each PowerShell segment may be used once, more than once, or
not at all. You may need to drag the split bar between panes or scroll to view content.
Select and Place:

DRAG DROP
Your company manages several Azure Web Apps that are running in an existing web-hosting plan named
plan1.
You need to move one of the Web Apps, named contoso, to a new web-hosting plan named plan2.
How should you complete the Azure PowerShell command?? To answer, drag the appropriate Azure
PowerShell segment to the correct location. Each PowerShell segment may be used once, more than once, or
not at all. You may need to drag the split bar between panes or scroll to view content.
Select and Place:

Answer:

Explanation:
Example:
The following command is actually a series of commands (delimited by semi-colons) that change the values of
the properties in the $p variable.
Windows PowerShell
PS C:\\> $p.siteMode = “Basic”; $p.sku = “Basic”; $p.computeMode = “Dedicated”; $p.serverFarm = “Default2″The next command uses the Set-AzureResource cmdlet to change the change the properties of the
ContosoLabWeb2 web site. The value of the PropertyObject parameter is the $p variable that contains the
Properties object and the new values. The command saves the output (the updated resource) in the $r2
variable.
Windows PowerShell
PS C:\\> $r2 = Set-AzureResource -Name ContosoLabWeb2 -ResourceGroupName ContosoLabsRG –
ResourceType “Microsoft.Web/sites” -ApiVersion 2004-04-01 -PropertyObject $p



Leave a Reply 0

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