Dynamic PowerShell Help using Azure Az Predictor

When you create a PowerShell script for Azure, typically, you type the needed cmdlet and then, how to know which parameters you have to insert? You must go to the Microsoft Document or use the Get-Help cmdlet.

Thanks to the Az Predictor PowerShell module, it’s over! You will have something close to “AI” (e.g Artificial Intelligence) that will help you and will show you some suggestions.

Installation

First, you must install PowerShell 7.2.0 Preview 3 at least.

Then, run the following commands:

Install-Module -Name PSReadLine -AllowPrerelease

Install-module -name Az.Tools.Predictor

Now, you can enable the module

Enable-AzPredictor -AllSession

When you enable Az Predictor, your PowerShell profile will be updated

Move the right arrow of your keyboard to select the line

To switch from argument to argument, click ATL+A on your keyboard

Now, you can enable the second mode called ListView which give you more suggestions

Move the right arrow of your keyboard to select a line

Thanks for reading! You can follow me on Twitter @PrigentNico

About Nicolas 282 Articles
I work as an IT Production Manager, based in Paris (France) with a primary focus on Microsoft technologies. I have 10 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSE: Cloud Platform and Infrastructure", "MCSA: Windows Servers", "Administering & Deploying SCCM", and CheckPoint CCSA certified.