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 swap deployments ?
What happens when you exhaust the maximum failed attempts for authenticating yourself via Azure AD?
What are the three principle segments of Windows Azure Platform?
What is the difference between Service Bus Queues and Storage Queues?
what is web role in windows azure?
what is blob?
What is Azure Search?
What are the roles, which are implemented in windows azure?
Mention in what ways cloud architecture provide automation and performance transparency? Elaborate.
What is the use of selecting block size in a block blob?
What a break-fix issue is?
What is Azure Service Fabric?