Pester 5 test Powershell code in pipeline
Some time ago I created Pester tests for Azure Automation Runbooks as part of a pipeline to validate code before getting checked into a repo. Though this was pre version 5 of Pester, and as 5 came around there where some changes that had to be done for everything to keep working. I will go…
Update AA module management
Just a quick post, I updated the Import-PSGalleryModulesToAA.ps1 runbook to also handle running on a new Azure Automation account. The runbook will now bring AzureRM.Profile, AzureRM.Automation, AzureRM.Resources up to the latest version before importing other modules. You will need to also set the parameters AutomationAccountName and AutomationResourceGroupName as the logic that automatically discovers the AA account does…
AzDO: AzureAD pipeline task
So I was trying to add owners on AzureAD groups and found that this was not something you currently could do by using the Az-module from the built-in Azure Powershell task. I knew this was supported using the AzureAD modules, though there was no existing way of using this directly in AzDO. I therefor set…
AzP: Terraform modules private repo
So Terraform is all the rage at the moment, so why not cash in on some of that action? So here is the pitch, write IaC with Terraform you should at least go down the path of creating modules and reference them in your code. This is a good move and something we know from…
AzD Passing Artifact Path Name to Release
On the path to make something generic, one task is to make as much as possible be variable based. By that I mean one place to define a value as a variable, then use it throughout the pipeline by referencing saied variable . This is good practise because it will make it more robust for…
Azure DevOps pass variable from Build to Release
Update: The code is updated to allow for other existing variables in the variable group without removing them. In my work creating a pipeline for Azure Automation Runbooks I came across a challenge I wanted to share one solution for. My specific challenge was to only import Runbooks that had changed from one PR to…
Refactoring AA Solution Onboarding to give Linux some love
So some of us are using the free update management and change management solution offered through Azure Automation. There have been some code in the AA team github repo for some time, though as with all code it degrades over time as dependencies change. This logic seemed to support onboarding both Windows and Linux, and…
Intune Win32 & Powershell
I did not find the complete story anywhere so I put this together so it would be easier for others to get PS and Intune making nice. I expect some familiarity with Intune and Win32 apps, as I will skip most of the pretext. As most of you know creating Win32 apps one needs to…
Azure Automation: Refactor module update logic
As I had a good go creating logic to handle modules on hybriod workers, I decided to also update some existing code the Automation team has had on their github for awhile. This code has become stale and does not work that good anymore. The team is also deprecating their github soon as it does…
Azure Automation: Update Management Runbook
This will be a quick one. As I was looking for a solution to add Azure VM to update management through Terraform I came up short. Therefore we opted to have Terraform do a web call to trigger a Runbook in Azure Automation. I went spelunking and found that the AA team had already done…