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…

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,…

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…

Creating Azure Activity Log Alerts with PowerShell

Want to create alerts from the Azure Activity Log? I will be showing how to do this with the PowerShell cmdlet Set-AzActivityLogAlert using conditions taken from a json output of the Activity Log. For the example I will be looking at alerting when a change has been made to a Network Security Group (NSG) I…

Creating automated reports using Logic Apps for Log Analytics queries

From time to time, you may want an automated report to be emailed which displays a specific Log Analytics query, in this blog I will detail how this can be done via using a Logic App. What are Logic Apps? A little resource with a big outcome, Logic Apps assist you with automated workflow; scheduling,…

Azure Datacenter IP ranges from PowerShell to XML

Azure recently released an update to inform that the Weekly publication of Azure datacenter IP ranges (also known as XML files) for Azure Public, China, and Germany will be deprecated by June 30, 2020. Below is the update that was sent out:- Instead, you can now download the updated weekly publications (also known as JSON files) or programmatically retrieve this…

Enabling Alerting for Azure Recovery Services Vault

Azure Recovery Services Vault is a backup resource within Azure, primarily used for Virtual Machine backups and Azure Site Recovery. Both of which are critical to the successful running of an environment in Azure, whether it be backing up the data on the Virtual Machine or the requirement to have Site Recovery enabled to allow…

Creating Azure Service Health Alerts in PowerShell

Azure Service Health provides you with an interactive dashboard that primarily tracks the health of your Azure Services in the regions that you have deployed to. There are three types of health events that are tracked: Health Advisories:- Changes in Azure Services that require your attention, such as quota usage being exceeded or Azure resources…

%d bloggers like this: