
Explore installing PowerShell 7 on Azure IaaS with Visual Studio Code, and build scripts that manage multiple resources, and use parallel ForEach-Object and reporting.
Install PowerShell 7 on Windows by downloading Visual Studio Code, the Microsoft PowerShell extension, and choose a 64-bit installer, then configure settings without overwriting Windows PowerShell 5.1.
Install and configure the PowerShell 7 azure module, choose and install a specific version from the publisher gallery, then authenticate to your azure subscription and write scripts in visual studio.
Explore string basics in PowerShell 7 on Azure IaaS, including declaring strings with single or double quotes, concatenation, variables, and methods like split and uppercase.
Define and manipulate arrays in PowerShell 7 on Azure by creating arrays, adding mixed elements, counting items, and retrieving values via zero-based and negative indexing, plus inspecting types and properties.
Master PowerShell 7 automatic variables, including $$, $?, and $_, to inspect command success, iterate over object collections, and extract properties like virtual machine names on Azure IaaS.
Use select-object in PowerShell 7 to extract specific properties from virtual machine objects, such as name and vm size, then parse values with split and export to CSP format.
Filter Azure resources using Where-Object in PowerShell 7 to display running virtual machines, show their resource group and location, and use -match to select groups by default.
Learn how to use PowerShell 7's group-object to group disk volumes by their attached virtual machines, extract VM names from a complex property, and display per-VM volume counts.
Learn how to use PowerShell 7's out-gridview to present an interactive window of Azure locations, select a single value, and pass it into your script for daily resource operations.
Master PowerShell 7 on Azure IaaS teaches building a do-until and foreach loop to create multiple resource groups from user input, collecting names and location while filtering out empty values.
Learn to handle multiple Azure subscriptions in PowerShell 7 by gathering subscriptions, looping with ForEach, selecting each subscription by id, and performing create, pull, or modify operations.
Use PowerShell 7 to create multiple availability sets with a for loop and if-else logic, taking user input for naming, count, and resource group via interactive prompts.
Learn to create multiple Azure network security groups using PowerShell 7 by importing CSV data with Import-Csv and iterating with ForEach to set resource group, location, and name.
Learn to validate multiple storage account names in PowerShell 7 on Microsoft Azure IaaS using New-Object to build results, capture availability and reasons, and export to CSV.
Create a hash table for tags with name and value, then apply these tags to a resource or all resources in a resource group using a foreach loop.
Master PowerShell 7 on Microsoft Azure by creating a network, validating IP addresses with IP address class, and handling errors with try, catch, and break to stop on invalid input.
PowerShell 7 demonstrates using range and foreach to create and attach multiple Azure data disks to a server with a naming standard, using the format operator for zero-padded numbers.
Use foreach-object -parallel in PowerShell 7 to create multiple operating system disk snapshots on Azure by importing a data file of VM details, extracting OS IDs, and provisioning snapshots concurrently.
Use ForEach-Object with -Parallel in PowerShell 7 to create multiple OS disk snapshots from VM disks, configuring snapshot settings and deriving unique names for each snapshot in a resource group.
Learn to build a basic PowerShell 7 function that outputs VM details by selecting properties such as social group name, poster, and sites from a command.
Learn to add a single mandatory parameter to a PowerShell 7 function, set its type and position, and export data via the pipeline.
Learn to create an advanced PowerShell function that accepts pipeline input, uses parameter binding and value from pipeline, and displays or filters virtual machine details.
Master PowerShell 7 splatting to streamline new vm creation by organizing parameters into blocks, defining vm config, and applying network, storage, and naming settings in a single script.
learn to move a resource between resource groups using PowerShell 7, including cross-subscription moves, with the partial command, resource IDs, and confirmation prompts.
Learn to move multiple resources between resource groups with PowerShell 7 by selecting resources via Out-GridView and migrating them to a target resource group using a foreach loop.
Create a PowerShell 7 progress bar with a for loop and write-progress, displaying activity, status, and percent complete using start-sleep. Explore nested progress for operations like copying files between containers.
Build an interactive PowerShell 7 menu that prompts for input and uses a switch statement to execute option-specific blocks and define functions to display machine details and source group.
Learn to pull all Azure virtual machines, capture their name, resource group, and status, and convert the data into an html table using ConvertTo-Html for a daily report.
This course is not for beginners, you must have basic knowledge of PowerShell scripting and Microsoft Azure.
This course will teach you how you can use PowerShell cmdlet to build logic to Implement or Automate Azure resources.
This course covers some basic cmdlets that you will use many times during script and logic creation on Azure
What is PowerShell 7?
PowerShell 7.0 is an open-source, cross-platform (Windows, macOS, and Linux) edition of PowerShell, built to manage heterogeneous environments and hybrid cloud.
Where can I install PowerShell?
PowerShell 7 currently supports the following operating systems on x64, including:
Windows 8.1, and 10
Windows Server 2012, 2012 R2, 2016, and 2019
macOS 10.13+
Red Hat Enterprise Linux (RHEL) / CentOS 7
Fedora 30+
Debian 9
Ubuntu LTS 16.04+
Alpine Linux 3.8+
Additionally, PowerShell 7.0 supports ARM32 and ARM64 flavors of Debian, Ubuntu, and ARM64 Alpine Linux.
What will you learn in this course?
1. Introduction of PowerShell
2. Installation of Powershell and How to set up Visual Studio Code and required extensions.
3. How to Install Azure PowerShell module
4. Understanding of PowerShell String, Arrays, and Automatic Variables
5. Practical demonstration of some important command like Select-Object, Where-Object, Group-Object.
6. In Section 5 we will start with logic building in PowerShell
7. In Section 6 we will cover some advanced logic building using PowerShell