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 meant by the command task?
What is worker role in windows azure and how does it help?
Differentiate between the repository and the powerhouse server?
You want to manage the azure ad connect sync process, which tool will you use for the same?
What is meant by Microsoft Azure and Azure diagnostic?
How to deploy the custom image?
Explain VNet?
What is Microsoft Azure and why is it used?
Why doesn’t azure redis cache has an msdn class library reference like some of the other azure services?
What do you mean by lookup transformation?
Name two blobs used in microsoft azure?
What is windows azure active directory?