PowerShell Azure – find a sku offer publisher

# who is the publisher for FreeBSD? What offer? What sku? # Find-AzureSKU bsd function Find-AzureSKU  {   Param ([parameter(Mandatory=$true,HelpMessage=’Enter a partial string of the  product’)]   [String] $sku,   [String] $location=’australiaeast’  )   $publishers = Get-AzureRmVMImagePublisher -location $location   foreach ($publisher in $publishers) {      $offers=Get-AzureRmVMImageOffer -location $location `        …


PowerShell – Expand-Aliases

#Requires -Version 3 function Expand-Aliases { <# .SYNOPSIS find any aliases in use and expand them to full cmdlet names. .DESCRIPTION Any scripts in ‘corporate’ or ‘formal’ use should have any aliases expanded. This removes ambiguity and any potential clashes or errors. .PARAMETER InputFiles The powershell .ps1 file(s) you wish to scan/repair for aliases. .EXAMPLE…

3