The Azure Firewall builder (azureFirewall
) is used to create Azure Firewall instances.
Microsoft.Network/azureFirewalls
)Resource | Keyword | Purpose |
---|---|---|
azureFirewall | name | Sets the name of the azure firewall |
azureFirewall | sku | Sets the name and tier of the azure firewall sku |
azureFirewall | link_to_unmanaged_firewall_policy | Configure the azure firewall to use an existing firewall policy |
azureFirewall | link_to_firewall_policy | Configure the azure firewall to use a firewall policy deployed by Farmer |
azureFirewall | link_to_unmanaged_vhub | Specify the existing virtual hub to which the azure firewall belongs |
azureFirewall | link_to_vhub | Specify the virtual hub deployed by farmer to which the azure firewall belongs |
azureFirewall | public_ip_reservation_count | Specify the number of Public IP addresses associated with the azure firewall |
azureFirewall | depends_on | Specify resources deployed by farmer the azure firewall depends on |
open Farmer
open Farmer.Builders
let firewall = azureFirewall {
name "farmer_firewall"
sku SkuName.AZFW_Hub SkuTier.Standard
public_ip_reservation_count 2
link_to_unmanaged_vhub (virtualHubs.resourceId "unmanaged-vhub")
}
let deployment = arm {
location Location.NorthEurope
add_resource firewall
}