Skip to main content

dns_forwarding_rulesets

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

Overview

Namedns_forwarding_rulesets
TypeResource
Idazure.dns_resolver.dns_forwarding_rulesets

Fields

NameDatatypeDescription
dnsForwardingRulesetNametextfield from the properties object
dns_resolver_outbound_endpointstextfield from the properties object
etagtextETag of the DNS forwarding ruleset.
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdnsForwardingRulesetName, resourceGroupName, subscriptionIdGets a DNS forwarding ruleset properties.
listSELECTsubscriptionIdLists DNS forwarding rulesets in all resource groups of a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists DNS forwarding rulesets within a resource group.
list_by_virtual_networkSELECTresourceGroupName, subscriptionId, virtualNetworkNameLists DNS forwarding ruleset resource IDs attached to a virtual network.
create_or_updateINSERTdnsForwardingRulesetName, resourceGroupName, subscriptionId, data__propertiesCreates or updates a DNS forwarding ruleset.
deleteDELETEdnsForwardingRulesetName, resourceGroupName, subscriptionIdDeletes a DNS forwarding ruleset. WARNING: This operation cannot be undone. All forwarding rules within the ruleset will be deleted.
updateUPDATEdnsForwardingRulesetName, resourceGroupName, subscriptionIdUpdates a DNS forwarding ruleset.

SELECT examples

Lists DNS forwarding rulesets in all resource groups of a subscription.

SELECT
dnsForwardingRulesetName,
dns_resolver_outbound_endpoints,
etag,
location,
provisioning_state,
resourceGroupName,
resource_guid,
subscriptionId,
system_data,
tags
FROM azure.dns_resolver.vw_dns_forwarding_rulesets
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dns_resolver.dns_forwarding_rulesets (
dnsForwardingRulesetName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
tags,
location
)
SELECT
'{{ dnsForwardingRulesetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a dns_forwarding_rulesets resource.

/*+ update */
UPDATE azure.dns_resolver.dns_forwarding_rulesets
SET
dnsResolverOutboundEndpoints = '{{ dnsResolverOutboundEndpoints }}',
tags = '{{ tags }}'
WHERE
dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified dns_forwarding_rulesets resource.

/*+ delete */
DELETE FROM azure.dns_resolver.dns_forwarding_rulesets
WHERE dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';