Azure ARM Templates - Part 3: Deployment

In the third and final post of this series I’ll quickly cover the process to deploy the ARM template with PowerShell Deploy Open PowerShell and change directory to the location of your ARM template and parameter files. Then complete the following commands to connect to Azure and create a Resource Group to deploy the resources to: # Import the Azure Az PowerShell Module Import-Module -Name Az # Connect to Azure and authenticate Connect-AzAccount # Create the Resource Group New-AzResourceGroup -Name "rg-eu-vm" -Location "westeurope" Once the Resource Group has been created it’s time to deploy the resources using the New-AzResourceGroupDeployment cmdlet....

July 4, 2021 · 2 min · Mark kerry

Azure ARM Templates - Part 2: Testing

Following on from authoring the Azure ARM Templates - Part 1: Development post, in this one I will cover testing the ARM template. Two potential ways to test the ARM templates is by manually building a Pester test, and another is by using Microsoft’s Azure Resource Manager Template Toolkit (arm-ttk) module. You can run local tests against ARM templates using PowerShell - which I will demonstrate in the post - but most commonly template testing and validating is used during a CI pipeline....

July 3, 2021 · 4 min · Mark kerry

Azure ARM Templates - Part 1: Development

In the first of this three part series of posts, I will breakdown the components of an Azure ARM template, and the tools used to develop one. Then in part two I will cover testing an ARM template. And finally in part three, I will cover deploying the resources in the ARM template to Azure. The ARM template will consist of the following resources: Windows VM Network Interface Public IP Virtual Network Network Security Group Storage Account Getting Started Before looking at Bicep, Terraform or Pulumi, I think it’s important to get to know the process of developing Azure ARM templates from scratch....

June 27, 2021 · 7 min · Mark kerry

Serverless LAPS Azure Function and Proactive Remediation

Based on the great solution created by John Seerden with a little help creating and deploying Azure Functions by the Serverless on Azure YouTube channel. All of the code in this post can be found in my GitHub repo I am only posting a few differences here, such as creating the Azure resources using AZ CLI and creating/testing/deploying the function using the Azure Functions Core Tools CLI. What is Serverless LAPS Local Admin Password Solution (LAPS) is a great solution from Microsoft to allow IT admins to automatically recycle local admin accounts on domain joined Windows machines....

April 25, 2021 · 9 min · Mark kerry