Tech

How to configure Azure firewall using CLI

4 minute read Modified:

Configuring Azure Network Security Groups using Azure CLI 2.0


UPDATE 2018-03-02: Streisand project now allows fully automatic creation of VPN server instances at Azure. Hurray!

I’ve ran into some problems recently while trying to setup multiple instances of Streisand VPN. It seems that on Microsoft Azure there’s no easy way to copy or export/import firewall (Network Security Group - NSG) configuration between different resource groups using Azure Portal.

Fortunately, Azure has a CLI (version 2.0 now) available which can be used to setup network security groups in an automated fashion.