Manage all Modules on classic Azure Automation
Finally Microsoft has added API support to programmatically manage 7.2 runtime version modules on classic azure automation in the Az.Automation module. I have therefore updated the runbooks for managing modules to support both 5.1 and 7.2 modules.The nice thing is that the runbooks can either be 5.1 or 7.2, and still service both module repositories.So…
Azure Automation Runtime Environment Module Management
As Azure Automation Runtime Environment now is public preview, I have released a new version of Powershell module management Runbooks. Finally one can programmatically manage Powershell modules for both 7.x and 5.1 environments.They can be either imported directly from AA through Runbook gallery or just grab them from github. Import-PSGalleryModuleAArte Update-PSGalleryModuleAArte Happy tinkering!
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…