Skip to main content

firewall_policies

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

Overview

Namefirewall_policies
TypeResource
Idazure.network.firewall_policies

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
base_policytextfield from the properties object
child_policiestextfield from the properties object
dns_settingstextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
explicit_proxytextfield from the properties object
firewallPolicyNametextfield from the properties object
firewallstextfield from the properties object
identitytextIdentity for the resource.
insightstextfield from the properties object
intrusion_detectiontextfield from the properties object
locationtextResource location.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
rule_collection_groupstextfield from the properties object
sizetextfield from the properties object
skutextfield from the properties object
snattextfield from the properties object
sqltextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
threat_intel_modetextfield from the properties object
threat_intel_whitelisttextfield from the properties object
transport_securitytextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTfirewallPolicyName, resourceGroupName, subscriptionIdGets the specified Firewall Policy.
listSELECTresourceGroupName, subscriptionIdLists all Firewall Policies in a resource group.
list_allSELECTsubscriptionIdGets all the Firewall Policies in a subscription.
create_or_updateINSERTfirewallPolicyName, resourceGroupName, subscriptionIdCreates or updates the specified Firewall Policy.
deleteDELETEfirewallPolicyName, resourceGroupName, subscriptionIdDeletes the specified Firewall Policy.
update_tagsEXECfirewallPolicyName, resourceGroupName, subscriptionIdUpdates tags of a Azure Firewall Policy resource.

SELECT examples

Gets all the Firewall Policies in a subscription.

SELECT
id,
name,
base_policy,
child_policies,
dns_settings,
etag,
explicit_proxy,
firewallPolicyName,
firewalls,
identity,
insights,
intrusion_detection,
location,
provisioning_state,
resourceGroupName,
rule_collection_groups,
size,
sku,
snat,
sql,
subscriptionId,
tags,
threat_intel_mode,
threat_intel_whitelist,
transport_security,
type
FROM azure.network.vw_firewall_policies
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.firewall_policies (
firewallPolicyName,
resourceGroupName,
subscriptionId,
properties,
identity,
id,
location,
tags
)
SELECT
'{{ firewallPolicyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified firewall_policies resource.

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