Skip to main content

azure_firewalls

Creates, updates, deletes, gets or lists an azure_firewalls resource.

Overview

Nameazure_firewalls
TypeResource
Idazure.network.azure_firewalls

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
additionalPropertiesobjectThe additional properties used to further config this azure firewall.
afcConfigurationobjectAFC configuration for the Azure Firewall.
applicationRuleCollectionsarrayCollection of application rule collections used by Azure Firewall.
autoscaleConfigurationobjectProperties to provide a custom autoscale configuration to this azure firewall.
etagstringA unique read-only string that changes whenever the resource is updated.
extendedLocationobjectThe extended location of type local virtual network gateway.
firewallPolicyobjectReference to another subresource.
hubIPAddressesobjectIP addresses associated with AzureFirewall.
ipConfigurationsarrayIP configuration of the Azure Firewall resource.
ipGroupsarrayIpGroups associated with AzureFirewall.
locationstringResource location.
managementIpConfigurationobjectIP configuration of an Azure Firewall.
natRuleCollectionsarrayCollection of NAT rule collections used by Azure Firewall.
networkRuleCollectionsarrayCollection of network rule collections used by Azure Firewall.
provisioningStatestringThe provisioning state of the Azure firewall resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
skuobjectThe Azure Firewall Resource SKU.
tagsobjectResource tags.
threatIntelModestringThe operation mode for Threat Intelligence. Known values are: "Alert", "Deny", and "Off". (Alert, Deny, Off)
typestringResource type.
virtualHubobjectReference to another subresource.
zonesarrayA list of availability zones denoting where the resource needs to come from.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, azure_firewall_name, subscription_idGets the specified Azure Firewall.
listselectresource_group_name, subscription_idLists all Azure Firewalls in a resource group.
list_allselectsubscription_idGets all the Azure Firewalls in a subscription.
create_or_updateinsertresource_group_name, azure_firewall_name, subscription_idcreateAfcControlPlaneCreates or updates the specified Azure Firewall.
update_tagsupdateresource_group_name, azure_firewall_name, subscription_idUpdates tags of an Azure Firewall resource.
create_or_updatereplaceresource_group_name, azure_firewall_name, subscription_idcreateAfcControlPlaneCreates or updates the specified Azure Firewall.
deletedeleteresource_group_name, azure_firewall_name, subscription_idDeletes the specified Azure Firewall.
list_learned_prefixesexecresource_group_name, azure_firewall_name, subscription_idRetrieves a list of all IP prefixes that azure firewall has learned to not SNAT.
packet_captureexecresource_group_name, azure_firewall_name, subscription_idRuns a packet capture on AzureFirewall.
packet_capture_operationexecresource_group_name, azure_firewall_name, subscription_idRuns a packet capture operation on AzureFirewall.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
azure_firewall_namestringThe name of the Azure Firewall. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
createAfcControlPlanebooleanWhen set to true, creates an AFC control plane for the Azure Firewall. Default value is None.

SELECT examples

Gets the specified Azure Firewall.

SELECT
id,
name,
additionalProperties,
afcConfiguration,
applicationRuleCollections,
autoscaleConfiguration,
etag,
extendedLocation,
firewallPolicy,
hubIPAddresses,
ipConfigurations,
ipGroups,
location,
managementIpConfiguration,
natRuleCollections,
networkRuleCollections,
provisioningState,
sku,
tags,
threatIntelMode,
type,
virtualHub,
zones
FROM azure.network.azure_firewalls
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND azure_firewall_name = '{{ azure_firewall_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates the specified Azure Firewall.

INSERT INTO azure.network.azure_firewalls (
id,
location,
tags,
properties,
extendedLocation,
zones,
resource_group_name,
azure_firewall_name,
subscription_id,
createAfcControlPlane
)
SELECT
'{{ id }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ zones }}',
'{{ resource_group_name }}',
'{{ azure_firewall_name }}',
'{{ subscription_id }}',
'{{ createAfcControlPlane }}'
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
tags,
type,
zones
;

UPDATE examples

Updates tags of an Azure Firewall resource.

UPDATE azure.network.azure_firewalls
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND azure_firewall_name = '{{ azure_firewall_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
tags,
type,
zones;

REPLACE examples

Creates or updates the specified Azure Firewall.

REPLACE azure.network.azure_firewalls
SET
id = '{{ id }}',
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}',
zones = '{{ zones }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND azure_firewall_name = '{{ azure_firewall_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND createAfcControlPlane = {{ createAfcControlPlane}}
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
tags,
type,
zones;

DELETE examples

Deletes the specified Azure Firewall.

DELETE FROM azure.network.azure_firewalls
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND azure_firewall_name = '{{ azure_firewall_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Retrieves a list of all IP prefixes that azure firewall has learned to not SNAT.

EXEC azure.network.azure_firewalls.list_learned_prefixes 
@resource_group_name='{{ resource_group_name }}' --required,
@azure_firewall_name='{{ azure_firewall_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;