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 |
Explain azure service level agreement?
Why is Azure Active Directory used?
Can you explain Azure Service Fabric?
How you plan disaster recovery if I have 10 vms running on hyper-v on-prem and vmware environment?
What are windows azure diagnostics?
what is link a resource ?
What is Azure SLA?
difference between web and worker roles in windows azure?
Do scale sets work with Azure availability sets?
What is service bus queues?
Enlist the monitoring features that are present in the SharePoint 2010?
What was the previous name of Microsoft Azure?