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 Roles and why do we use them?
Can you explain the Username and Password requirements when creating a Virtual Machine?
Is azure a saas?
How to assign static ip address in azure vms?
Why should you use windows azure storage as opposed to local resources/storage?
Why do we need storage keys?
What is Azure Search?
What is documentdb?
Explain the concept of the table in windows azure.
What is the concept of the table in Windows Azure?
Differentiate between the PROC SUMMARY and PROC MEANS?
Explain the Queue storage with Azure?