question

RafaelM avatar image
0 Votes"
RafaelM asked msrini-MSFT answered

Associate Azure Firewall Policy With a VNET Using Powershell or Azure CLI

I have a firewall policy, and I would like to associate it to a VNET via Powershell, Azure CLI or Terraform, right now the only option I found was via Azure portal only:

146517-2021-11-04-13-37-38-firewall-manager-microsoft-azu.png

I really need this to be scripted, I can't do that manually because we are using Terraform to automate this process. Do you have any ideas?


azure-firewall
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

msrini-MSFT avatar image
0 Votes"
msrini-MSFT answered

@RafaelM,

Associating a firewall policy to a VNET is similar to deploying a Firewall in the subscription.

Use this document to create Azure Firewall with the created Policy in your VNET: https://docs.microsoft.com/en-us/azure/firewall/deploy-ps-policy

Regards,
Karthik Srinivas

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.