All Posts

Python Script to list Azure Inventory for all subscriptions.

Published: 2025-10-20 15:10:59

While trying to find a proper script which can list all the resources across all the subscriptions in an Azure tenancy, I had tried few variations of PowerShell scripts, which gave some details but not what I had visualised and not in the same format or speed. I had asked Cline AI bot to help …

Continue reading “Python Script to list Azure Inventory for all subscriptions.”


Powershell script to list the .Net core version in an Azure Virtual Machine using Invoke-AzVmRunCommand

Published: 2023-02-22 18:40:04

Tasked with finding a script to list the installed .NET Core versions in an Azure VM within a locked down environment, we tried multitude option and ended up with the below provided script which helps to run a script using the Invoke-AzVMRunCommand. This script uses Azure PowerShell 7.3.1 or later and requires latest version of …

Continue reading “Powershell script to list the .Net core version in an Azure Virtual Machine using Invoke-AzVmRunCommand”


Powershell to list Azure Server Backup Report from the Azure Recovery Service Vaults

Published: 2023-02-04 09:55:51

I searched the internet for ideas and eventually wrote a PS script to retrieve the Azure Server backup details. I took the original script idea from the superuser site post https://superuser.com/questions/1716872/azure-server-backup-report and modified it to fit my needs, which worked well. The Script below is working fine and can be further modified to fit your …

Continue reading “Powershell to list Azure Server Backup Report from the Azure Recovery Service Vaults”


Powershell script to set Azure key vault key auto rotation policy

Published: 2023-02-04 09:18:30

One of the pen-testing results, as well as the Azure security advisor recommendation, is to have an expiry date for the azure key vault keys. Although not all keys can be rotated at all times because they may be associated with one or the other option depending on how they are used in any Azure …

Continue reading “Powershell script to set Azure key vault key auto rotation policy”


PowerShell script to encrypt storage accounts with a Keyvault Key

Published: 2022-11-05 14:34:57


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

Published: 2022-11-05 14:32:59

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

Published: 2022-11-05 14:30:36

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

Published: 2022-11-05 14:27:38

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


Azure Monitor Ops Procedure

Published: 2021-07-06 13:08:27

Overview of the component How component is accessed Access controls for the component How to deploy the component using Terraform An example of how to enable post-deployment configuration (if required) How to perform a backup and restoration How to conduct DR (fail-over and fail-back) and services recovery How to scale resources (in/out and up/down) where …

Continue reading “Azure Monitor Ops Procedure”


Potato mash dish

Published: 2021-07-06 08:28:06

A simple south indian style potato side dish which can be eaten along with Naan, Roti’s or rice. Ingredients: Russet Potato – 3-4 (boiled) Lemon – 1 Spices Mustard Seeds – 1/2 teaspoon Vegetable Oil – 1/2 teaspoon Turmeric Powder Coriander Leaves cumin seeds – 1/4 teaspoon Green Chilies – 1 Ginger Julienne Salt (to …

Continue reading “Potato mash dish”


Azure Key vault

Published: 2021-07-05 20:07:54

Overview of the component How component is accessed Access controls for the component How to deploy the component using Terraform An example of how to enable post-deployment configuration (if required) How to perform a backup and restoration How to conduct DR (fail-over and fail-back) and services recovery How to scale resources (in/out and up/down) where …

Continue reading “Azure Key vault”


Professional Certifications

Published: 2021-07-05 18:29:26

. .


Nosso Lar – Astral City – by Chico Xavier

Published: 2021-07-05 18:15:25

The first spiritist book i read and liked very much.   Astral City


Azure Database for PostgreSQL Disaster Recovery

Published: 2021-06-26 20:18:12

Summary To ensure resiliency of data stored in the Azure Database for PostgreSQL servers within the environment, the server instance(s) are configured to replicate data via GRS to the paired secondary region, in this case, UAE Central. This page describes the capabilities that Azure Database for PostgreSQL provides for business continuity and disaster recovery, options …

Continue reading “Azure Database for PostgreSQL Disaster Recovery”


Configure Expressroute and Site to Site in a co-existence setup using existing Gateway Subnet and Virtual Network in the same subscription

Published: 2021-06-26 19:23:16

Overview This document outlines the proposed steps to take to configure a connection from the Expressroute circuit to existing virtual network in the hub subscription. Limits and limitations Only route-based VPN gateway is supported. You must use a route-based VPN gateway. You also can use a route-based VPN gateway with a VPN connection configured for ‘policy-based traffic …

Continue reading “Configure Expressroute and Site to Site in a co-existence setup using existing Gateway Subnet and Virtual Network in the same subscription”


2021 update

Published: 2021-05-19 08:45:37

Since March 2020 I went on with the lockdown and working from home. To summarise the lockdown period till now has not been easy and has changed the perspective of thinking and trauma which will never leave. i will start with some technical blogs soon and may be worth to put in some posts about …

Continue reading “2021 update”


Lock down cooking simple and easy

Published: 2020-08-20 08:34:18


Alice Cooper – Live in Concert – London O2 October 2019

Published: 2020-05-14 10:49:59


Rod Stewart Live in Concert – London O2 Arena 20-Dec-2019

Published: 2020-05-13 12:21:53


Healthy eating….

Published: 2020-05-13 12:10:20

After the start of COVID-19 related lockdown measures, been forced to work from home till it is fully safe to get back to normal routine As a good way to relax or de-stress started to cook at home some simple meal which can be enjoyed with less effort or stress to remember complex receipe which …

Continue reading “Healthy eating….”


Back again in 2020…

Published: 2020-01-30 11:20:32

After a very long break not writing or posting anything in my blog site, i am planning to start again in 2020. 2019 was really a test in my life which has seen me struggle through almost everything, even the simplest requests or actions which takes long time to get some results. Hopefully I will …

Continue reading “Back again in 2020…”


PowerShell script to list all the extensions for a specific Azure ARM virtual machine

Published: 2018-02-02 11:36:11

We have been looking for a script which will help us enumerate and list all the extensions for Azure ARM virtual machines and their properties, e.g. Name, Tags assigned, ProvisioningState, etc. and were almost giving up when this thought came upon to write a small one on our own.   sharing here before things get lost. …

Continue reading “PowerShell script to list all the extensions for a specific Azure ARM virtual machine”


Schedule start or shutdown Azure virtual machine using Azure Automation PowerShell Workflow and Tags

Published: 2018-01-15 14:45:51

This is an Azure Automation Powershell Workflow based runbook which automates the scheduled startup and/or shutdown of virtual machines (ARM) in Azure subscription based on the Tags defined. Script logic:  The runbook implements a solution for scheduled power management of Azure virtual machines in combination with tags on virtual machines or resource groups which define …

Continue reading “Schedule start or shutdown Azure virtual machine using Azure Automation PowerShell Workflow and Tags”


Reverse Proxy Configuration in Windows Server 2012 with IIS 8.0 and ARR 3.0

Published: 2018-01-12 09:55:24

Prerequisites The following pre-requisites must be met before performing the below steps. The backend service must already be in place and fully configured to be exposed via either HTTP or HTTPS. Firewall rules need to be in place to allow traffic to the reverse proxy and from the reverse proxy to internal server and vice …

Continue reading “Reverse Proxy Configuration in Windows Server 2012 with IIS 8.0 and ARR 3.0”


PowerShell Script to Generate the Virtual Machine Inventory Hosted in Azure ARM

Published: 2017-06-01 16:34:39

Overview This is a PowerShell script to create reports for all Virtual machines in a subscription including its Resource Group / Virtual Network /IP/NIC/Data disk/Storage/Tags to readable .csv format to help you to identify the deviation and make them standard. The following guide assumes that the user has basic knowledge of using Windows and PowerShell. …

Continue reading “PowerShell Script to Generate the Virtual Machine Inventory Hosted in Azure ARM”


Step by Step Guide to Prepare a Windows Server 2003 R2 Custom VHD for Azure

Published: 2017-06-01 16:05:16

This is a hot topic after we started to work in a Data Centre migration project for a client where we chose to do a Lift-and-Shift approach to migrate their on premise physical / virtual servers to Azure.   Their key ask was to have their existing Windows 2003 servers running in Azure as they …

Continue reading “Step by Step Guide to Prepare a Windows Server 2003 R2 Custom VHD for Azure”


Custom VHD Creation using Disk2VHD tool for P2C migration to Microsoft Azure

Published: 2017-06-01 15:38:36

This is a step by step guide on how to use Disk2VHD tool (downloaded from internet) to perform a Physical to Cloud or Virtual to Cloud migration.  We used this mechanism to migrate the eCommerce servers from their on premise Data Center to Azure and completed the migration of 40+ servers in short time frame.  We …

Continue reading “Custom VHD Creation using Disk2VHD tool for P2C migration to Microsoft Azure”


Restore Virtual Machine from Blob Snapshot in Azure (Resource Manager)

Published: 2017-06-01 13:07:56

Overview Script will help you to restore a virtual machine from the existing blob snapshots. Although some familiarity with the Azure Portal would be beneficial, however, for the benefit of everyone, a step by step guide in this document is provided. Script workflow: Script executes Reads the input file which is a comma separated .CSV …

Continue reading “Restore Virtual Machine from Blob Snapshot in Azure (Resource Manager)”


Azure VM deletion using the PowerShell script

Published: 2017-04-27 15:39:14

Often you might receive a request to Delete multiple VMs from Azure. its little cumbersome to delete VM and its components from portal. Automation minimize the time and avoid human errors. This could cover the below scenarios: Delete VM, its associated NICs and disks. The following guide assumes that the user has basic knowledge of …

Continue reading “Azure VM deletion using the PowerShell script”


Azure ARM Blob Snapshot – Azure Automation

Published: 2017-04-27 12:36:48

We have had some tough time backing up virtual machines based out of customized VHD and running OS prior to Windows Server 2008 R2 SP1, The reason being, Azure Virtual Machine Guest agent does is not supported in any of these OS, i.e. Windows Server 2003 R2, Windows XP, etc. (You might wonder is it …

Continue reading “Azure ARM Blob Snapshot – Azure Automation”


Assign Tags for virtual machines provided in an input file

Published: 2017-04-03 13:58:50

Automation VM Tags Creation Overview Tagcreation.ps1 is a PowerShell script to create tags for all VMs provided in the input csv, Azure tag is an important feature that helps you to identify the deviation and make them standard. Also you can make use of tags in the Azure automation runbook to customise many automation …

Continue reading “Assign Tags for virtual machines provided in an input file”


Attach Data disks for all VMs provided in the input file

Published: 2017-04-03 13:28:12

Automation VM Disk Attachment Overview Disk_attach.ps1 is a PowerShell script to attach data disks for all VMs provided in the input csv. The following guide assumes that the user has basic knowledge of using Windows and PowerShell. Although some familiarity with the Azure Portal would be beneficial, it is absolutely not necessary, as a …

Continue reading “Attach Data disks for all VMs provided in the input file”


PowerShell script to expand an Azure VM OS disk size

Published: 2016-12-19 11:36:56

This script helps to expand an Azure VM OS disk size.   We normally can do this from the Azure Portal after we shut down the VM.  However, some of the VMs running custom VHD based out of Windows Server 2003,  we are not able to find the option to specify os disk size even …

Continue reading “PowerShell script to expand an Azure VM OS disk size”


Create a VM from existing VHD file

Published: 2016-11-18 12:44:38

A tricky task with creating an Azure ARM Virtual machine specially from an existing VHD.   We had immense trouble getting this right for a project, until we managed to find the right script to be used for the purpose. There are 2 scenarios in which you will create a Virtual Machine from a VHD …

Continue reading “Create a VM from existing VHD file”


PowerShell to create and assign Tags to Azure ARM Virtual Machines

Published: 2016-11-17 17:35:47

A script we have developed for creation of the tags for azure VM.   We use an input file to update the tags and as a test, I had done it with upto 7 tags, however, you can have a maximum of 15 tags assigned to the resources in Azure. This script however, is used to …

Continue reading “PowerShell to create and assign Tags to Azure ARM Virtual Machines”


Powershell script to deploy virtual machine with multiple vNIC in Azure ARM

Published: 2016-11-17 12:27:47

We had a requirement from one of the teams to deploy a virtual machine with multiple NIC associated with a single Virtual Machine.  The Azure portal does not provide any option to either associate a NIC ( Network Interface Card) to a Virtual Machine nor does it allow us to associate or create a Virtual …

Continue reading “Powershell script to deploy virtual machine with multiple vNIC in Azure ARM”


Network Security Groups (NSGs) and Rules Implementation Guide

Published: 2016-11-16 11:27:37

We were asked to come up with a guide on how to create NSG rule as part of the implementation for a client.   This will include a script used to set these instead of creating them via the Azure Portal. One of the many documents we had to come up but was useful. [embeddoc …

Continue reading “Network Security Groups (NSGs) and Rules Implementation Guide”


Script to Delete Azure ARM Virtual Machine

Published: 2016-11-14 14:45:43

We had a request to create a script which will take care of deleting a Virtual Machine from Azure subscription and perform the clean up of all the associated objects as a deleting the virtual machine from the azure portal will remove the VM object alone and does not delete the disks, vNICs, etc. We …

Continue reading “Script to Delete Azure ARM Virtual Machine”


Migrating a SQL Server database to Azure SQL PaaS

Published: 2016-11-14 12:28:57

ver Migrating a SQL Server database to Azure SQL PaaS Microsoft SQL Server and Azure SQL PaaS service are compatible with each other, meaning that a database can be moved from a SQL server running on a physical or virtual machine to Azure SQL service and vice versa. Prerequisites and Constraints However, there are some …

Continue reading “Migrating a SQL Server database to Azure SQL PaaS”


Azure Internal Load Balancer Implementation Guide

Published: 2016-11-11 16:59:54

We had to create this guide after having multitude efforts to get a simple iLB (Internal Load Balancer) in Azure ARM for setting up the ADFS (Active Directory Federation Services) servers to connect and work via a load-balanced IP in Azure ARM.   The tricky part was to get this working as it should, because …

Continue reading “Azure Internal Load Balancer Implementation Guide”


EXPRESSROUTE PROVISIONING GUIDE

Published: 2016-11-11 16:41:05

Overview The following guide assumes that the user has basic knowledge of using Windows. Although some familiarity with PowerShell scripting and the Azure Portal would be beneficial, it is absolutely not necessary, as the scripts are being provided in their entirety and screenshots are shown as of where and how to discover the necessary components …

Continue reading “EXPRESSROUTE PROVISIONING GUIDE”


Create Windows Server 2003 Custom VHD for Azure VM Creation

Published: 2016-11-11 16:16:26

Pre-requisites The following prerequisites must be met, before performing the Core capacity check steps. Internet connection Valid Azure Subscription The person who will perform the below steps must have one of the following roles in the Azure subscription Owner Contributor Some familiarity with the Azure Portal would be beneficial, although not necessary Latest version of …

Continue reading “Create Windows Server 2003 Custom VHD for Azure VM Creation”


Check Core Capacity for an Azure Subscription

Published: 2016-11-11 11:58:47

The following guide assumes that the user has basic knowledge of using Windows. Although some familiarity with PowerShell scripting and the Azure Portal would be beneficial, it is absolutely not necessary, as the scripts are being provided in their entirety and screenshots are shown as of where and how to discover the necessary components in …

Continue reading “Check Core Capacity for an Azure Subscription”


How to configure Azure Network Security Group (NSG) rule for ICMP traffic

Published: 2016-11-10 17:36:26

Since Azure introduced their new Azure Resource Manager (ARM) deployment model, i have seen their Network Security Group (NSG) feature evolve to be very good and similar to a normal web GUI of a firewall device page used to configure the rules. While working on an IT transformation project for a client in the UK …

Continue reading “How to configure Azure Network Security Group (NSG) rule for ICMP traffic”


Gratitude Poem by Amelia Rodrigues

Published: 2016-11-10 14:53:59

I happen to browse the website of Bezerra de Menezes Spiritist Society UK and found this wonderful blog post. Lord, thank you so much! For the air that you give to us to breath, For the bread that feed us, For the clothes that we wear, For the joy that we possess, For everything that nourish us …

Continue reading “Gratitude Poem by Amelia Rodrigues”


Movember Special

Published: 2016-11-10 08:36:00

November is a special month concerned to men’s health and a lot of them jumping up to help.   I am really glad to see few of my friends who have joined to help raise the funds for a very good cause. I would request that everyone either take part of donate to help this …

Continue reading “Movember Special”