Tag: Azure

Just another User's blog Site

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

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…
Read more

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

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…
Read more

Powershell script to set Azure key vault key auto rotation policy

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…
Read more

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

Azure Database for PostgreSQL Disaster Recovery

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…
Read more

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

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…
Read more

Assign Tags for virtual machines provided in an input file

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…
Read more