Add multiple NSGs to multiple subnets in Azure

Hey Scripters! Today quite easy script but very usefull to add multiple nsgs tu subnets in Azure. Script is using JSON structure to define NSGs (Network Security Groups) and subnets to which they should apply. In NSGs JSON we simply define only NSGs which will be used in next JSON. In nsgAssignment JSON we are providing name of the nsgs and provide as array list of subnets to which they …

Get Azure virtual machines without NSG and ASG assigned

Hi Scripters! Today I’ve got for you awesome script which will generate report with information about Azure virtual machines without NSG and ASG assigned. For non-Azure related people – Network Security Groups and Application Secuirty Groups are Azure network security concepts, which allows to filter/block virtual machines network traffic and easily group them according to ports which should be used by specific type of application. Both NSG and ASG are …

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 …