Skip to main content

outbound_firewall_rules

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

Overview

Nameoutbound_firewall_rules
TypeResource
Idazure.sql.outbound_firewall_rules

Fields

NameDatatypeDescription
outboundRuleFqdntextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECToutboundRuleFqdn, resourceGroupName, serverName, subscriptionIdGets an outbound firewall rule.
list_by_serverSELECTresourceGroupName, serverName, subscriptionIdGets all outbound firewall rules on a server.
create_or_updateINSERToutboundRuleFqdn, resourceGroupName, serverName, subscriptionIdCreate a outbound firewall rule with a given name.
deleteDELETEoutboundRuleFqdn, resourceGroupName, serverName, subscriptionIdDeletes a outbound firewall rule with a given name.

SELECT examples

Gets all outbound firewall rules on a server.

SELECT
outboundRuleFqdn,
provisioning_state,
resourceGroupName,
serverName,
subscriptionId
FROM azure.sql.vw_outbound_firewall_rules
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.sql.outbound_firewall_rules (
outboundRuleFqdn,
resourceGroupName,
serverName,
subscriptionId,
properties
)
SELECT
'{{ outboundRuleFqdn }}',
'{{ resourceGroupName }}',
'{{ serverName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified outbound_firewall_rules resource.

/*+ delete */
DELETE FROM azure.sql.outbound_firewall_rules
WHERE outboundRuleFqdn = '{{ outboundRuleFqdn }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';