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 …

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 …

Access Azure subscription using context

Recently I was a little bit annoyed by logging each time to Azure subscription, so I’ve preperaed the script to Access Azure subscription using context. What is context? Azure Context are metadata used to authenticate Azure Resource Manager requests. For more details please visit Microsoft docs site. How script works? Function which I prepared is used to save all contexts of Azure subscriptions assgined to account. As the input parameter …

How to use Cloud Shell in Visual Studio Code

Today’s post will not show you any PowerShell script, but hope it will show you how to use cloud shell in Visual Studio Code 😉 What is Cloud Shell? If you follow our blog a little bit longer you can probably read article PowerShell in Azure Cloud Shell now available!. To make long story short, for those who are not familiar with Cloud Shell – it’s an interactive shell available from …

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 …