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 the distinction between windows azure service bus queues and windows azure queues?
What do you mean by the network security groups?
What is Azure Active Directory?
How many customers subscriptions allowed in managed disks?
What is a VNet?
What is storage account?
What are stateful and stateless microservices for Service Fabric?
State the difference pricing model of microsoft azure?
what is autoscaling?
What are Fault Domains?
How would you categorize windows azure?
What are the storages in windows azure?