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 |
Name three types of disks used by vms?
What is Azure Search?
What is a cspack ?
Explain the fault domain?
What are the differences between the subscription administrator and directory administrator?
What are some of the Cloud services offered by Microsoft?
0 Answers SwanSoft Technologies,
What is an Availability Set?
What is hdinsight in microsoft azure?
What is Redis cache in Azure?
what is fabric?
what is a worker role ?
What is virtual machine scale sets in windows azure?