Dynamic Network Config in Ansible: Local to Azure VNet

If like me you have been guilty of hard coding all of your network configuration in Ansible variables like this … Hard Code Values Lines: 12 Charaters: 359 Language: YAML 1 2 3 4 5 6 7 8 9 10 11 12 vars: network: full_range: "10.0.0.0/24" subnets: - name: "subnet1" address_range: "10.0.0.0/27" - name: "subnet2" address_range: "10.0.0.32/27" - name: "subnet3" address_range: "10.0.0.64/27" - name: "subnet4" address_range: "10.0.0.96/27" … then this post is for you....

September 21, 2024 · 13 min · Russ McKendrick
Ansible logo on a Mac background

How to Install Ansible on a Mac: A Modern Approach

As the DevOps landscape evolves, so do our methods for managing tools like Ansible. This post outlines my current preferred approach to installing and managing Ansible on macOS. The Traditional Homebrew Approach For years, many macOS users, including myself, relied on Homebrew to install and maintain Ansible. The process was straightforward: Installing Ansible using Homebrew brew install ansible While this method effectively managed the core Ansible installation, it became problematic as Ansible’s ecosystem grew more complex....

September 15, 2024 · 3 min · Russ McKendrick
Explore the world of AI image generation using Flux, fal.ai, and OpenAI. Learn how to build a Streamlit app that leverages GPT-4o for prompt tuning and Flux models for creating stunning visuals. Compare outputs with Midjourney and discover the potential of these cutting-edge tools.

Unlocking Image Creation with Flux and GPT-4o

This week I decided to see how many buzzwords I could get into one post, given the recent release of Flux by Black Forest Labs I had originally intended on trying to get it up and running locally - however it quickly became clear that my M3 MacBook Pro with its 36GB of RAM wasn’t going to cut it. Because of this, I decided to look at one of the many online services that offer access to the various Flux models via their APIs which led me to Fal....

August 11, 2024 · 14 min · Russ McKendrick
A wall of vinyl records in a home office setting

Behind the Scenes; More than just a background

If you’ve ever joined me on a Teams call from my home office, you’ve likely noticed the wall of vinyl records behind me. This post aims to answer the most common questions I get on calls, offering a glimpse into my music collection and the technology used to play it. The Collection My vinyl collection is more than just a backdrop; let me give you a tour: The Main Attraction The wall you see behind me during video calls is just the beginning:...

August 4, 2024 · 3 min · Russ McKendrick
Learn how to generate an Azure Storage Account SAS token from a Logic App using an Azure Function. This step-by-step guide covers deploying a PowerShell-based Function App, creating the SAS token generation function, and integrating it into your Logic App workflow. Overcome common challenges and enhance your Azure development skills with this practical tutorial.

Generating an Azure Storage Account SAS token using Azure Logic and Function apps

Don’t you just love it when you open your laptop first thing on a Monday morning, a fresh cup of coffee at the ready and you think to yourself … This should be a straight-forward five-minute job to start the week with … and it turns out to be anything but? That is exactly what happened to me this week, I won’t go into too much detail, but I was working on an Azure Logic App that had to interact with an external service and pass it a a fully signed SAS URL for an Azure Storage Account so that it could send some quite large files there....

July 27, 2024 · 10 min · Russ McKendrick
Explore a powerful KQL query for Azure Firewall logs. Learn how to analyze network traffic, filter by source and destination IP, and gain insights into your Azure Firewall's performance and security.

Azure Firewall KQL Query

This is a quick post to share a useful KQL query for Azure Firewalls that I’ve been using. It’s based on the default Firewall query from Microsoft, but with some added variables to allow for a more focused analysis of source and destination traffic. I’m putting it here for my future reference and in case it’s helpful for anyone else. Azure Firewall Query with Variables This query allows you to analyze Azure Firewall logs, focusing on specific source and destination IP addresses within a defined time range....

July 20, 2024 · 5 min · Russ McKendrick
Discover powerful KQL queries to enhance your Azure Virtual Desktop (AVD) management. Learn how to track user connections, analyze session times, monitor errors, and gain insights into your AVD environment's performance and security.

Azure Virtual Desktop KQL Queries

This is a quick post collating some of the notes for KQL queries for Azure Virtual Desktop I have in various documents into a single place, just in case they are helpful for anyone and also for my reference, 👋 hello future Russ. Find out all the IP addresses in the last 30 days This query looks at the past 30 days, counting connections by username and client IP address, then sorts these counts in descending order, adds geolocation data for each IP, and finally outputs the client IP, connection count, and location details (country, state, and city) to provide insights into connection patterns and frequencies across different users and locations in the Windows Virtual Desktop environment....

July 7, 2024 · 7 min · Russ McKendrick
Discover how to optimize your Azure DevOps Ansible pipeline with caching techniques. Learn to reduce execution time, improve efficiency, and maintain security checks in your infrastructure as code deployments.

Azure DevOps Ansible Pipeline; Boosting Efficiency with Caching

Back in May 2020 I published what would be one of the more popular posts on this blog Azure DevOps Ansible Pipeline, it covered the Azure DevOps pipeline I had settled upon for running my Ansible playbooks which built and interacted with workloads running in Microsoft Azure. Fast forward four years, I updated the pipeline for Chapter 15 of the second edition of Learn Ansible↗ ; this version of the pipeline, which is covered in detail in the book, can be found in the repo linked below;...

June 28, 2024 · 9 min · Russ McKendrick