How can one create a Virtual Machine in Powershell?
VM creation using Powershell:
1) create resource:
New-AzResourceGroup -Name myResourceGroup -Location EastUS
2) create to VM:
New-AzVm `
-ResourceGroupName "myResourceGroup" `
-Name "myVM" `
-Location "East US" `
-VirtualNetworkName "myVnet" `
-SubnetName "mySubnet" `
-SecurityGroupName "myNetworkSecurityGroup" `
-PublicIpAddressName "myPublicIpAddress" `
-OpenPorts 80,3389
3) connect to VM:
Get-AzPublicIpAddress -ResourceGroupName "myResourceGroup" | Select "IpAddress"
4)find out the Public IP:
mstsc /v:publicIpAddress
5) Install IIS:
Install-WindowsFeature -name Web-Server -IncludeManagementTools
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the three main components of the windows azure platform?
Is it possible to create multiple VM's (more than 15) per day. How can you handle it
What is windows azure traffic manager? What are its benefits?
Explain what is federation in sql azure?
What is the difference between Service Bus Queues and Storage Queues?
What are unconnected lookups?
What is azure hd insight?
what are the roles available in windows azure?
How can you demonstrate between azure mobile service and web api?
What is azure app service?
what is csrun?
Which azure certification is best?