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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
basePolicyobjectReference to another subresource.
childPoliciesarrayList of references to Child Firewall Policies.
dnsSettingsobjectDNS Proxy Settings definition.
etagstringA unique read-only string that changes whenever the resource is updated.
explicitProxyobjectExplicit Proxy Settings definition.
firewallsarrayList of references to Azure Firewalls that this Firewall Policy is associated with.
identityobjectThe identity of the firewall policy.
insightsobjectInsights on Firewall Policy.
intrusionDetectionobjectThe configuration for Intrusion detection.
locationstringResource location.
provisioningStatestringThe provisioning state of the firewall policy resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
ruleCollectionGroupsarrayList of references to FirewallPolicyRuleCollectionGroups.
sizestringA read-only string that represents the size of the FirewallPolicyPropertiesFormat in MB. (ex 0.5MB).
skuobjectThe Firewall Policy SKU.
snatobjectThe private IP addresses/IP ranges to which traffic will not be SNAT.
sqlobjectSQL Settings definition.
tagsobjectResource tags.
threatIntelModestringThe operation mode for Threat Intelligence. Known values are: "Alert", "Deny", and "Off". (Alert, Deny, Off)
threatIntelWhitelistobjectThreatIntel Whitelist for Firewall Policy.
transportSecurityobjectTLS Configuration definition.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, firewall_policy_name, subscription_id$expandGets the specified Firewall Policy.
listselectresource_group_name, subscription_idLists all Firewall Policies in a resource group.
list_allselectsubscription_idGets all the Firewall Policies in a subscription.
create_or_updateinsertresource_group_name, firewall_policy_name, subscription_idCreates or updates the specified Firewall Policy.
update_tagsupdateresource_group_name, firewall_policy_name, subscription_idUpdates tags of a Azure Firewall Policy resource.
create_or_updatereplaceresource_group_name, firewall_policy_name, subscription_idCreates or updates the specified Firewall Policy.
deletedeleteresource_group_name, firewall_policy_name, subscription_idDeletes the specified Firewall Policy.

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
firewall_policy_namestringThe name of the Firewall Policy. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$expandstringExpands referenced resources. Default value is None.

SELECT examples

Gets the specified Firewall Policy.

SELECT
id,
name,
basePolicy,
childPolicies,
dnsSettings,
etag,
explicitProxy,
firewalls,
identity,
insights,
intrusionDetection,
location,
provisioningState,
ruleCollectionGroups,
size,
sku,
snat,
sql,
tags,
threatIntelMode,
threatIntelWhitelist,
transportSecurity,
type
FROM azure.network.firewall_policies
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND firewall_policy_name = '{{ firewall_policy_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Creates or updates the specified Firewall Policy.

INSERT INTO azure.network.firewall_policies (
id,
location,
tags,
properties,
identity,
resource_group_name,
firewall_policy_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ firewall_policy_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
identity,
location,
properties,
tags,
type
;

UPDATE examples

Updates tags of a Azure Firewall Policy resource.

UPDATE azure.network.firewall_policies
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND firewall_policy_name = '{{ firewall_policy_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
identity,
location,
properties,
tags,
type;

REPLACE examples

Creates or updates the specified Firewall Policy.

REPLACE azure.network.firewall_policies
SET
id = '{{ id }}',
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND firewall_policy_name = '{{ firewall_policy_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
identity,
location,
properties,
tags,
type;

DELETE examples

Deletes the specified Firewall Policy.

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