Deploying a basic Windows VM in Azure with PowerShell

We will look at end to end commands to deploy a basic Windows VM on the Azure

  1. Before we begin the process make sure you have the required Azure module installed on your computer.
  2. Launch the PowerShell and enter the below command to login to your Azure Subscription. It will prompt with a Azure portal.

Add-AzureRmAccount

3.  Once you have successfully logged on to the portal it will display the subscription details on your PowerShell window.

4.  You can download the script from here and run each segment from the Powershell ISE

The script look like this.

Once you have successfully executed the script you can verify the VM from the console.

We will see more such Powershell deployment scripts soon.

 

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *