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 is file storage ?
How to migrate the on-premises server to azure using site recovery ?
Why should you use windows azure storage as opposed to local resources/storage?
What are the different storage options with Azure?
Define the Data storage Function in Azure Cloud Service?
How many customers subscriptions allowed in managed disks?
Is it possible to create multiple VM's (more than 15) per day. How can you handle it
what is a service package ?
What is a web role in windows azure?
How can you stop a VM using Power Shell?
What is the concept of the table in Windows Azure?
What is meant by the DeadLetter queue?