Create Azure Virtual Machine using powershell CloudShell how to

preview_player
Показать описание
Create a Windows VM with Azure Powershell commands
Create Azure Virtual Machine using powershell CloudShell how to
How to Create Azure Virtual Machine using PowerShell and CloudShell
Create windows VM in azure using Powershell.

This series is part of Free azure training - #70

The Azure PowerShell module is used to create and manage Azure resources from the PowerShell command line or in scripts. This quickstart shows you how to use the Azure PowerShell module to deploy a virtual machine (VM) in Azure that runs Windows Server 2016. You will also RDP to the VM and install the IIS web server, to show the VM in action.

The Azure Cloud Shell is a free interactive shell that you can use to run the steps in this article. It has common Azure tools preinstalled and configured to use with your account.

New-AzResourceGroup -Name myResourceGroup -Location EastUS
New-AzVm `
-ResourceGroupName "myResourceGroup" `
-Name "myVM" `
-Location "East US" `
-VirtualNetworkName "myVnet" `
-SubnetName "mySubnet" `
-SecurityGroupName "myNetworkSecurityGroup" `
-PublicIpAddressName "myPublicIpAddress" `
-OpenPorts 80,3389

Get-AzPublicIpAddress -ResourceGroupName "myResourceGroup" | Select "IpAddress"

mstsc /v:publicIpAddress

Install web server
Install-WindowsFeature -name Web-Server -IncludeManagementTools

Clean up resources
Remove-AzResourceGroup -Name myResourceGroup

#paddyMaddy #azuretutorial #azuretraining
#cloudComputing #microsoftazuretutorialforbeginners #azureforbeginners #azurebasics #microsoftazuretraining #Az900 #AZ500, #microsoftazurecertification, #AZ303 #AZ104
Рекомендации по теме
Комментарии
Автор

what is the parameters we have to provide to select the specific VM size and standard HDD for VM

lohithspatil