Connect to nested Hyper-V VMs in Azure from another Virtual Network using VPN Gateway

Nested Hyper-V VMs in Azure has been available for a while now, its great for alot of different scenarios such as unsupported operating systems that run legacy applications to sandbox environments. After creation of these VMs in a nested Hyper-V Virtual Machine (VM) you will possibly want to connect these VMs to other VMs in … Read more

Query Azure SQL Database using Service Principal with PowerShell

Looking to query Azure SQL SQL Database using Service Principal with PowerShell? Have a look at this blog post! Recently I had been asked to configure a script that can be used to query an Azure SQL Database table data using a service principal with PowerShell; in this blog post I am going to show … Read more

Assign Network Security Group to Virtual Machine Network Interface using PowerShell

A blog post to show how you can assign a Network Security Group (NSG) to a Virtual Machine Network Interface (NIC) in Azure using PowerShell. Firstly, get the Network Security Group you want to have assigned to the Virtual Machine NIC Get the Virtual Machine NIC that you want to assign the NSG to You … Read more

Creating custom runbooks from start/stop VM solution for specific sets of VMs using tags for sequenced start/stop

Azure provides a start/stop VM solution that allows you to stop/start VMs on a schedule; it consists of multiple PowerShell runbooks. This solution offers three options when deployed:- Schedule VMs to start and stop Schedule VMs to start and stop in ascending order by using Azure Tags Autostop Vms based on low CPU usage Overtime … Read more

Copy Azure Virtual Machine Snapshots to another region and create Managed disks using PowerShell

In my previous blog, I detailed how to create Virtual Machine (VM) snapshots of all disks and restore in Azure using PowerShell, this is a follow-on blog detailing how you can copy the Virtual Machine disk snapshots to another region, for additional backup purposes for those VMs that cannot be backedup using Azure-related backup resources, … Read more

Azure Managed Disk snapshot and restore using PowerShell

Using Virtual Machines in Azure from time-to-time you may want to have a copy of the current point-in-time of your Virtual Machine, rather than taking a full backup of this using Recovery Services, can you create a snapshot of the Virtual Machine disk(s) using an Azure Snapshot Snapshots are in theory, a simple read-only copy … Read more

Azure Hub-Spoke Network Configuration with Azure Firewall DNAT using PowerShell

I am going to show you how to create a Hub-Spoke network configuration with Azure Firewall using PowerShell. What is a Hub-Spoke network? Think of the Hub-Spoke as two different networks, network1 is hub, network2 is spoke. Network1 acts as the central point of connectivity and perimeter for your network where all traffic has to … Read more

Network Security Group Ruleset to CSV

You may have a requirement from time-to-time to provide a copy of the current Network Security Group(s) rulset within your Azure subscription, in this blog I will show you how this can be be done via PowerShell Lets have a look at a sample NSG created below I am looking this ruleset to be in … Read more

Application Security Group assignment using PowerShell

What are Application Security Groups? (ASGs) ASGs are used within a NSG to apply a network security rule to a specific workload or group of VMs – defined by ASG worked as being the “network object” & expilicit IP addresses are added to this object. This provides the capability to group VMs into associated groups … Read more

Azure Point to Site VPN configuration using PowerShell

From time to time, a Point-to-Site VPN (P2S) is required to access your Azure Virtual Network securely from a range of computers. This VPN setup is configured using an Azure Gateway within your Virtual Network. In this blog, I will detail a test setup of how you can create this P2S configuration along with the … Read more