Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Azure icon

Installing the Azure Az Module for PowerShell Core

The Az module in PowerShell Core is necessary for managing Azure resources. In this hands-on lab, we will show how to install the Az module and perform some basic commands for managing resources in Azure.

Azure icon

Path Info

Clock icon Beginner
Clock icon 45m
Clock icon Jan 24, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Log in to the VM

    1. Open a new terminal.
    2. Copy the public IP address, given to you along with this hands-on lab.
    3. In the terminal, enter ssh cloud_user@<PUBLIC_IP_OF_THE_VM>.
    4. Once logged in, enter pwsh to start the PowerShell prompt.
  2. Challenge

    Install the Az PowerShell Module

    1. Install the module:

      Install-Module -Name Az -AllowClobber -Scope CurrentUser
    2. Type Y to continue installing from the PowerShell gallery.

  3. Challenge

    Connect the Azure Account and Create a VM

    1. From the PowerShell prompt, enter the command Connect-AzAccount to connect to Azure.

    2. Go to, and enter the code provided in the terminal.

    3. Enter the username and password provided with this hands-on lab.

    4. Enter the following to create a new Azure VM:

      New-AzVM `
      -ResourceGroupName '<RESOURCE_GROUP_NAME_PROVIDED_IN_LAB>' `
      -Name 'myvm1234' `
      -Location 'westus' `
      -VirtualNetworkName '<VIRTUAL_NETWORK_NAME_PROVIDED_IN_LAB>' `
      -SubnetName 'default' `
      -SecurityGroupName '<NSG_PROVIDED_WITH_LAB>' `
      -PublicIpAddressName 'myvm1234pubip' `
      -OpenPorts 80,3389

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans