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 blob storage in azure?
List the types of roles and explain their uses?
What are Storage options available in Azure?
What is the pack?
Define the Web Function in Azure Cloud Service?
what is windows azure diagnostics?
What are the Features of Windows Azure?
What is Windows Azure Traffic Manager?
difference between web and worker roles in windows azure?
Explain what is diagnostics in windows azure?
How do web role and work role communicate with each other?
Explain cmdlet command of microsoft azure?