Add Azure Function key using PowerShell

In today’s article I want to show you how to add Azure Function key using PowerShell. Azure Function keys allows to authorize and authenticate at the level of the entire application or a single function using keys. In my script I’ve added only option to set same key for all of the functions in application. All input parameters are mandatory, so remember to fill them all. Script: If you will …

Check Azure VPN connection health

Hi Scripters! Today I want to show you how to check Azure VPN connection health using PowerShell. In my last post I showed you how to Setup Azure VPN. We will continue last topic about VPN but from monitoring perspective. It’s important to monitor Azure resources, specially if we connect Azure with On-premise environemnt. By default there is not standard monitoring solution which can help us to diagnose connectivty issue. …

Setup Azure VPN using PowerShell

Hey Scripters! Today I want to share with you my script for setup Azure VPN using PowerShell. In few words, script is using basic Azure module command. At the begginig you should have your VPN device already configured and once it is done, you can start configuration from Azure site. To configure VPN device you should already have public IP created in Azure. All variables depends on your on premise …

Copy managed disks between Azure subscriptions using PowerShell

Hey Folks! In todays article I want to show you how to copy managed disks between Azure subscriptions using PowerShell. Script is very easy in use. The only things which you should provide are variables on the beginning like subscription ids, resource groups etc. As a result .vhd file will be created under destination container on storage account. Remember that Azure account under which script for copy managed disks between …

PowerShell Tip of the Week: Create Invoke-WebRequest from Chrome

This week PowerShell tip will show you how to create Invoke-WebRequest from Chrome. Each scripter who wanted to properly use Invoke-WebRequest command to access some url knows that it is not so easy. Every time headers or some additional settings must be adjusted to properly gather all the data. Last update of Chrome web browser gives awesome functionality for PowerShell developers. In Chrome Dev Tools option to copy whole Invoke-WebRequest …

Get Azure Webjobs failed runs using PowerShell

Todays article will show you how to get Azure webjobs failed runs using PowerShell. Recently I was asked to prepare monitoring for Azure webjobs. I thought it will be quite simple and Application Insights can be used for this purpose. Unfortunetly to use Application Insights for this purpose additional development (telemetry implementation inside code) is needed. How script work? To get Azure webjobs failed runs script is connectig via API …

Get Azure subscription quota limits using PowerShell

Today I want to show you function to gather Azure subscription quota limits. Recently for one of the customer I had a problem with quota limit for static IP addresses. Standard limit was reached quite quickly and I had to create support request in Azure to increase this limit. To be more proactive in the future I’ve created script which gather all Azure subscription quota limits and show usage in …

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 …