PrepAway - Latest Free Exam Questions & Answers

Which Azure Power Shell cmdlets and values should you use?

DRAG DROP
You administer an Azure Virtual Machine (VM) named CON-CL1. CON-CL1 is in a cloud service named
ContosoService1.
You want to create a new VM named MyApp that will have a fixed IP address and be hosted by an Azure
Datacenter in the US West region.
You need to assign a fixed IP address to the MyApp VM.
Which Azure Power Shell cmdlets and values should you use? To answer, drag the appropriate cmdlet or
value to the correct location in the PowerShell command. Each cmdlet or value 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

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:
Create a Reserved IP and associate it with a cloud service (Virtual Machines)
Use the following script as a template to create a Reserved IP and then use the Reserved IP to create a
cloud service deployment (Virtual Machines).
$ReservedIP = New-AzureReservedIP -ReservedIPName “FirewallIP” -Label “WebAppFirewallIP” -Location
“Japan West”
New-AzureVMConfig -Name “WebAppVM” -InstanceSize Small -ImageName $images[60].ImageName |
Add-AzureProvisioningConfig -Windows -AdminUsername cloudguy -Password Abc123 | New-AzureVM –
ServiceName “WebApp” –ReservedIPName $ReservedIP -Location “Japan West”

New-AzureReservedIP


Leave a Reply