Create Azure VNET peering using PowerShell

Today I want to show you how in easy way create Azure VNET peering using PowerShell. What is VNET peering? VNET peering allows to connect virtual networks to each other. When virtual networks are peered, all resourcses inside those networks are able to communicate the same way and with the same bandwidth if the resources will be created in the same virtual network. Script: Example of usage: I hope it …

Get Azure VNET private IPs which are in use

In my previous article I showed you how to set IP restirctions on WebApp. Today I want to show you how to get Azure VNET private IPs which are in use. Recently I was looking for PowerShell script which will help me to find VNET IPs which are already in use. The only command which I found was Test-AzureRmPrivateIPAddressAvailability. Unfortunately command can only check if specific IP address is available …

Get and set Azure WebApp IP restrictions using PowerShell

Today I want to share with you my 2 functions which will help you to manage Azure WebApp IP restrictions using PowerShell. IP restrictions in Azure WebApp allows define IPs from which WebApp / API will be available. All requests which will not match IPs defined in IP restrictions will be blocked. How functions works? Both functions are using Azure Resource Manager module in order to gather and set all …

Get API versions for specific Azure resource

Hello scripters! Today I want to share with you my script for check API versions for specific Azure resource. For people who are using ARM templates it’s very important to know all of the available API versions for specific Azure resource. If wrong API version will be provided it can cause problem during ARM templates deployment, which is very annoying. How it works? Script which I prepared connects to specific …

Clear resources in Azure subscription

Christmas is coming, so it’s good time to clear resources in Azure subscription :). Today’s article will show you how easly do it via Powershell. To make long story short – script is scanning for all resource groups in selected subscription. For each of the resource group it displays all resources and user can decide if whole resource group should be removed or not. Script: Output: Attention! Powershellbros do not …

Secure resources in your Azure subscription by simple Powershell script

Today I want to tell you a little bit about Azure locks. Frequent problem which I observed in some of the organizations is unexpected removal of resources. Situation is always the same, user created some test resource group and another user remove this resource group. Explanation is always similar to “I thought that is not used anylonger”. Locks can help with preventing this kind of situation. There are two types …