Month: November 2022

Just another User's blog Site

PowerShell script used to Delete resourcegroup level locks in all your Azure Subscriptions

A script used to get the list of all ResourceGroups matching a naming format in all your Azure Subscriptions. It will check for existence of a ResourceGroup level lock presence and if present, it will delete them.

PowerShell script used to create resource group level locks in all your Azure Subscriptions

A script used to get the list of all ResourceGroups in all your Azure Subscriptions. It will check for existence of a ResourceGroup level lock presence and if not present will create a lock.

Powershell script to export Azure Network Security Group rules in all of the Subscriptions

A script used to get the list of all Network Security Groups (NSGs) in all your Azure Subscriptions.Finally, it will export the report into a csv file in the location specified. Credits to Charbel Nemnom – https://charbelnemnom.com