Deploy an Azure Automation Runbook With PowerShell

The following will walk through the steps to deploy a PowerShell 5.1 and 7.1 runtime, Azure Automation Runbook, using PowerShell. This may be necessary if you are using a deployment script in a pipeline. There are two different methods to this depending on if you are deploying a runtime type of PowerShell 5.1 or PowerShell 7.1. If you want to use the ForEach-Object -Parrallel feature for example, then you will have to use PowerShell 7....

April 2, 2023 · 3 min · Mark kerry

Deploy an ASP.NET Core Web App to an AKS Cluster

In this post I will demonstrate containerising a simple ASP.NET Core web app, pushing it to an Azure Container Registry (ACR), and then running it in a two-node Azure Kubernetes Service (AKS) cluster. It’s not too CLI heavy, and has a lot of manual steps. But it’s a good insight into the end-to-end process of how you can develop and test an app in AKS. The prerequisites you will need installed on your machine:...

November 20, 2022 · 5 min · Mark kerry

Terraform in Azure DevOps Pipelines

The following will walkthrough deploying Azure resources using Terraform in Azure DevOps Pipelines. Although its a detailed guide, there is an expectation that the person following already has a good understanding of Git, Azure and Terraform. It’s setup with the master or main branch created in DevOps and then cloned locally. A new branch is created and then committed to DevOps (Branch policies will restrict committing directly into master/main). A Pull Request is then created and the first pipeline is run which initialites a terraform plan and terraform validate....

August 14, 2022 · 11 min · Mark kerry

Azure Functions University Python Lesson

The following will run through the Python exercise from the Azure Functions University repo and YouTube channel. Azure Functions University is a great resource for learning all about Azure Functions, including all the various triggers, languages, deployment, and Durable Functions. Also it’s worth reviewing the Azure Functions Python developer guide on Microsoft Docs. Create the Azure Function The following applications are a prerequisite to get started: Azure Functions Core Tools - To build, test and deploy the Azure Function Azure CLI - To create the Azure resources Python 3....

July 17, 2022 · 5 min · Mark kerry

Terraform Azure Provider

In the following post I will demonstrate getting started with the Terraform Azure Provider. I’ll build the configuration for: Resource Group Virtual Network Subnet Network Security Group (Allow SSH) NSG Association 2 x Linux Virtual Machines 2 x Network Interface Cards 2 x Public IPs These will all be deployed them from Azure Cloud Shell. Remote vs Local State A quick note on the Terraform state file… I have decided to create a remote state file, stored in an Azure Storage Account in order to demonstrate the “backend” configuration....

June 5, 2022 · 6 min · Mark kerry

Quick How-to: Push/Pull to Azure Container Registry

In this post I will detail the quick steps to push and pull a Docker container image from an Azure Container Registry. Using my Go app, I stopped at building the container and continued from here: Create the Azure Container Registry In the Azure portal, browse to the resource group of your choice or create a new one. Select Create > Containers > Container Registry I specified the following: Subscription Resource group Registry Name: acrmkmdsn Location: UK South Availability zones: Disabled SKU: Standard Leave the rest as default and continue on to Create....

February 20, 2022 · 2 min · Mark kerry

Automated Autopilot Tenant Move Part 1: Using Graph, Azure Functions and Azure Storage

Thanks to Powers-Hell (Ben) for the handy Get-AuthHeader and Invoke-GraphCall PowerShell functions. Introduction There may be a scenario where you need all of your Intune managed, Autopilot registered devices setup on a new tenant. But there are a few challenges you will face: An OEM may have uploaded every device’s hardware hash to Autopilot, so you do not have them to upload to the new tenant. An Autopilot device cannot be deleted from the registration service while it’s a “managed device” (enrolled in Intune)....

September 26, 2021 · 7 min · Mark kerry

Quick How-to: Using the Azure Functions Console Sandbox

Introduction In this short post I will walk through the process to create new files for your Azure Function project, using the Console tool. This may come in handy for people who develop their Azure functions from the Azure portal. As stated when opening the Console development tool: “Manage your web app environment by running common commands (‘mkdir’, ‘cd’ to change directories, etc.) This is a sandbox environment, so any commands that require elevated privileges will not work....

August 29, 2021 · 2 min · Mark kerry

Create and Deploy an Azure Container Instance with Azure Bicep

Using the Go container created in a previous post, in the post I will detail the steps to author and deploy an Azure Container Instance using Azure Bicep. Hosted in a Linux container, the image will be pulled from Docker Hub. What are Azure Container Instances Azure Container Instances provides basic container functionality for simple solutions with no orchestration. They can be deployed with public accessibility (public IP and FQDN), or deployed to a VNet for private network access....

August 22, 2021 · 4 min · Mark kerry

Azure ARM Templates - Part 4: Azure Portal Custom Deployment

In my previous posts I walked through the process to author ARM templates using VS Code and the Azure Resource Manager (ARM) Tools extension. In this post I will walk through the process to author ARM templates from scratch using the Azure portal’s Custom Deployment feature. It’s handy for getting started with ARM template authoring, but as you will see below, creates resources with old API versions, bloats the variables element, and creates the variables element at the bottom of the template....

August 1, 2021 · 4 min · Mark kerry