Skip to main content

azure_firewalls

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

Overview

Nameazure_firewalls
TypeResource
Idazure.network.azure_firewalls

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
additional_propertiestextfield from the properties object
application_rule_collectionstextfield from the properties object
autoscale_configurationtextfield from the properties object
azureFirewallNametextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
firewall_policytextfield from the properties object
hub_ip_addressestextfield from the properties object
ip_configurationstextfield from the properties object
ip_groupstextfield from the properties object
locationtextResource location.
management_ip_configurationtextfield from the properties object
nat_rule_collectionstextfield from the properties object
network_rule_collectionstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
threat_intel_modetextfield from the properties object
typetextResource type.
virtual_hubtextfield from the properties object
zonestextA list of availability zones denoting where the resource needs to come from.

Methods

NameAccessible byRequired ParamsDescription
getSELECTazureFirewallName, resourceGroupName, subscriptionIdGets the specified Azure Firewall.
listSELECTresourceGroupName, subscriptionIdLists all Azure Firewalls in a resource group.
list_allSELECTsubscriptionIdGets all the Azure Firewalls in a subscription.
create_or_updateINSERTazureFirewallName, resourceGroupName, subscriptionIdCreates or updates the specified Azure Firewall.
deleteDELETEazureFirewallName, resourceGroupName, subscriptionIdDeletes the specified Azure Firewall.
packet_captureEXECazureFirewallName, resourceGroupName, subscriptionIdRuns a packet capture on AzureFirewall.
update_tagsEXECazureFirewallName, resourceGroupName, subscriptionIdUpdates tags of an Azure Firewall resource.

SELECT examples

Gets all the Azure Firewalls in a subscription.

SELECT
id,
name,
additional_properties,
application_rule_collections,
autoscale_configuration,
azureFirewallName,
etag,
firewall_policy,
hub_ip_addresses,
ip_configurations,
ip_groups,
location,
management_ip_configuration,
nat_rule_collections,
network_rule_collections,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
tags,
threat_intel_mode,
type,
virtual_hub,
zones
FROM azure.network.vw_azure_firewalls
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new azure_firewalls resource.

/*+ create */
INSERT INTO azure.network.azure_firewalls (
azureFirewallName,
resourceGroupName,
subscriptionId,
properties,
zones,
id,
location,
tags
)
SELECT
'{{ azureFirewallName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ zones }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified azure_firewalls resource.

/*+ delete */
DELETE FROM azure.network.azure_firewalls
WHERE azureFirewallName = '{{ azureFirewallName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';