Skip to main content

firewall_policy_drafts

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

Overview

Namefirewall_policy_drafts
TypeResource
Idazure.network.firewall_policy_drafts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
basePolicyobjectReference to another subresource.
dnsSettingsobjectDNS Proxy Settings definition.
explicitProxyobjectExplicit Proxy Settings definition.
insightsobjectInsights on Firewall Policy.
intrusionDetectionobjectThe configuration for Intrusion detection.
locationstringResource location.
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.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, firewall_policy_name, subscription_idGet a draft Firewall Policy.
create_or_updateinsertresource_group_name, firewall_policy_name, subscription_idCreate or update a draft Firewall Policy.
create_or_updatereplaceresource_group_name, firewall_policy_name, subscription_idCreate or update a draft Firewall Policy.
deletedeleteresource_group_name, firewall_policy_name, subscription_idDelete a draft 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

SELECT examples

Get a draft Firewall Policy.

SELECT
id,
name,
basePolicy,
dnsSettings,
explicitProxy,
insights,
intrusionDetection,
location,
snat,
sql,
tags,
threatIntelMode,
threatIntelWhitelist,
type
FROM azure.network.firewall_policy_drafts
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND firewall_policy_name = '{{ firewall_policy_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a draft Firewall Policy.

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

REPLACE examples

Create or update a draft Firewall Policy.

REPLACE azure.network.firewall_policy_drafts
SET
id = '{{ id }}',
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
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,
location,
properties,
tags,
type;

DELETE examples

Delete a draft policy.

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