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 happens when you exhaust the maximum failed attempts by authenticating yourself using azure ad?
Define the DevOps Function in Azure Cloud Service?
Is azure free for developers?
Give some examples of hybrid applications using windows azure?
How to create a virtual machine in azure?
What is the role of azure developer?
What do you mean by a service fabric in azure?
What is the method for creating a queue in storage account?
Your organization mandates that the custom domain name used in azure ad and on-premises should be the same, what will you configure on the on-premises domain controller to facilitate the same?
what are the options to manage session state in windows azure?
What is a web role in windows azure?
What is hdinsight in microsoft azure?