Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Azure Powershell Step-by-Step
Rating: 4.4 out of 5(25 ratings)
7,968 students

Azure Powershell Step-by-Step

Azure PowerShell tasks, deploying a VM in Azure with PowerShell, resizing a VM, and managing VM states, much more
Created byVitalii Shumylo
Last updated 11/2026
English
English [Auto],

What you'll learn

  • Deploying a VM in Azure with PowerShell
  • Resizing a VM, and managing VM states
  • Deploying of VMs using PowerShell with Marketplace images
  • Creating custom images and deploying VMs from such custom images
  • Deploying and attaching of data disks using PowerShell
  • Creating of VM snapshots, and how to deploy new VMs from such snapshots
  • Deploying of availability sets and how to load balance Azure VMs
  • Much more...

Course content

5 sections • 23 lectures • 2h 21m total length
  • Getting started with Azure Powershell4:27

    Install and configure the Azure PowerShell module, set the execution policy, load the module, and connect to Azure interactively to verify subscriptions before deploying a virtual machine.

  • Deploying a virtual machine10:31

    Learn to deploy a virtual machine in Asia with PowerShell by provisioning a resource group and creating VM with Get Credential and New VM, configuring network, subnet, and security settings.

  • Demo (Azure): Windows Server VM: Data Disk, Resize, NSG Rule and Bastion17:53

    Hands-on Azure demo: one small Windows Server 2025 virtual machine in Azure with no public address, looked after the way you would look after a real one, and then deleted so nothing keeps billing. We work from SEA-ADM1 with Edge for the Azure portal and Windows Terminal for PowerShell.

    • What a VM is made of: the VM, its OS disk, a network interface, a network security group and a virtual network; stopped versus deallocated, and what still bills
    • The create-VM wizard in one resource group: region, availability options, the Windows Server 2025 Datacenter Azure Edition image with Trusted launch, and a size picked under a real quota limit
    • Public inbound ports set to None, a Standard SSD OS disk, Public IP None, Delete NIC when VM is deleted, and auto-shutdown as a safety net
    • The read-back with Get-AzResource and -ExpandProperties (no Az.Compute module needed): every resource of the group and the VM size
    • A data disk created and attached in the portal, then brought online with Run Command (Initialize-Disk, New-Partition, Format-Volume) without signing in
    • The disk grown from 32 to 64 GiB with Invoke-AzRestMethod PATCH, then the partition extended inside Windows: Azure first, Windows second
    • A resize from B2s to B2ms with its restart warning, proven with hardwareProfile and the instance view
    • The NSG default rules, a new inbound rule at priority 200, and the read-back of securityRules
    • Azure Bastion Developer: free, created on the first Connect, RDP in the browser with no public IP, and the one-connection limit
    • Deallocate and just-in-time access, availability sets, zones and scale sets described; Remove-AzResourceGroup and the proof that nothing is left
  • Performing tasks on VMs with Powershell8:50

    Manage Azure VMs with PowerShell by connecting via remote desktop using the VM public IP, resizing the VM size, and checking the power state.

  • Starting, restarting, removing VMs and Resource Groups6:27

    Learn to manage Azure VMs with PowerShell by stopping, starting, restarting, and removing VMs and resource groups. Script common tasks and verify status with Get-AzVM.

  • Lab: Inintial Tasks1:20

    Master Azure PowerShell by completing the lab common commands, deploying a VM, managing a resource group, and practicing stop, start, and remove operations.

Requirements

  • Basic PowerShell knowledge (running cmdlets)
  • A free or pay-as-you-go Azure account to follow along

Description

The course starts with covering the basics of Azure PowerShell and introduces you to basic PowerShell tasks, including the installation of Azure PowerShell and how to connect to Azure with it. It also covers remedial tasks, such as deploying a VM in Azure with PowerShell, resizing a VM, and managing VM states—all with PowerShell.

Then we start 'Working with Images', introducing a few image-related Azure tasks that can be completed with PowerShell. We'll discuss the deployment of VMs using PowerShell with Marketplace images as well as how to create custom images and how to deploy VMs from such custom images.

Working with Disks, covers more advanced topics, including the deployment and attachment of data disks using PowerShell. Also covered in this chapter is the creation of VM snapshots, and how to deploy new VMs from such snapshots.

High Availability, explores the deployment of availability sets and how to load balance Azure VMs.

Other Cool Stuff, explores various other cool tricks that you can do with Azure PowerShell. Covered in this sectionis the creation and attachment of NICs to VMs using PowerShell. Tagging VMs with PowerShell and redeploying VMs with PowerShell are also covered, as are admin password resets. Find out about the management of VMs with custom script extensions.

Who this course is for:

  • Azure Administrators
  • DevOps
  • IT Specialists
  • System Administrators