Inquire about automating creation of NSG firewall rules

안 남기 181 Reputation points
2022-11-19T13:10:09.683+00:00

For example, in Excel, the source address, destination address, port number...After receiving that information, I would like to ask if there is a way to automatically generate NSG firewall rules or other ways to automate them.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,762 questions
{count} votes

Accepted answer
  1. JimmySalian-2011 42,491 Reputation points
    2022-11-19T13:59:50.363+00:00

    Hi,

    Not sure if you have explored Bicep codes for deploying the resources in Azure, but I will suggest you to kindly check this article and process to deploy the NSG rules. Or Terraform to deploy it.

    manage-route-tables-and-network-security-groups-in-azure-with-bicep-and-azure-devops-pipelines
    automate-azure-nsg-rule-changes-terraform-devops-anil-shafeeque

    This is the script using Excel and PS.
    Add-Multiple-Rules-to-NSG-using-PowerShell-and-CSV

    Hope this helps.
    JS

    ==
    Please Accept the answer if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.