PowerShell SnippetRace 41-44/2024

PlatyPS, Azure functions, ExchangeOnlineManagement, VM

Events

Snippets

Announcing PlatyPS Preview to write Get-Help help.

When using an unknown module or script, it is essential to know how it does its job. This information should be available via Get-Help. Unfortunately, many developers and scripters avoid filling up the help-information of their code. PlatyPS should make this job much easier. PlatyPS is now available as a preview-1 version. See this link for details aboiut the version and hints: https://devblogs.microsoft.com/powershell/announcing-platyps-100-preview1/

Create your first Azure PowerShell Function

Azure functions are out for a while and Powershell support has been released quite early as well. If you still havent tried to write an Azure function in Powershell, use Adam Bertrams step-by-step tutorial lined here: https://adamtheautomator.com/powershell-azure-function-tutorial/

Optional Help file loading for the Exchange Online Module

The ExchangeOnlineManagement PowerShell module, currently available in version 3.6 will get a feature to NOT load the help file. Loading help requires time and doesnt make sense in many automation scenarios. Version 3.7 of the module will NOT load help by default, but can be turned on with the new parameter -LoadCmdletHelp. Read the original article here: Link: https://techcommunity.microsoft.com/t5/exchange-team-blog/announcing-optional-help-file-loading-in-exchange-online/ba-p/4281296

Automating VM Deployment in Azure with PowerShell

VM´s are maybe still the most used workload on Azure. If you are still creating them menually, take a look at Adams sample script to create Azure VMs by code and a few parameters. See: https://adamtheautomator.com/automating-azure-vm/

Happy reading / regards / Roman

Foto von Hubert Buratynski auf Unsplash

Leave a Reply