Azure CLI – the cross-platform way

After having a ton of fun with raw PowerShell in both ASM (‘Classic’) and the far more sensible ARM models, I then discovered the stunning simplicity of JSON templates. See the Quickstart gallery here: https://github.com/Azure/azure-quickstart-templates Combining the templates and DSC gives ‘infrastructure as code’ in a surprisingly simple/elegant way. However this week I spent time…

2

PowerShell – Analogue Clock

# analogue-clock.ps1 # Set-StrictMode -Version latest Add-Type -AssemblyName System.Drawing Add-Type -AssemblyName System.Windows.Forms $DegreesToRadians = [Math]::PI/180 $PSicon = [Drawing.Icon]::ExtractAssociatedIcon((Get-Command -Name powershell).Path) ################################# function Initialize-Clock() { # create the form to display the clock $script:form = New-Object  -TypeName Windows.Forms.Form $script:form.Icon = $PSicon $script:form.Text = ‘Analogue Clock’ $script:form.Height = 700 $script:form.Width = $form.Height $script:form.BackColor=[Drawing.Color]::White $script:form.Location.X = 1000 $script:form.TransparencyKey…

2

Azure – ARM replacing ASM in Azure PowerShell

What Is Switch-AzureMode And Why Are We Deprecating It? https://github.com/Azure/azure-powershell/wiki/Deprecation-of-Switch-AzureMode-in-Azure-PowerShell

1