How to configure Azure firewall using CLI

4 minute read Published:

Configuring Azure Network Security Groups using Azure CLI 2.0

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 virtual machines 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.