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

The following fields are returned by SELECT queries:

The DNS forwarding ruleset was found.

NameDatatypeDescription
etagstringETag of the DNS forwarding ruleset.
locationstringThe geo-location where the resource lives
propertiesobjectProperties of the DNS forwarding ruleset.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, dnsForwardingRulesetNameGets a DNS forwarding ruleset properties.
list_by_virtual_networkselectsubscriptionId, resourceGroupName, virtualNetworkName$topLists DNS forwarding ruleset resource IDs attached to a virtual network.
list_by_resource_groupselectsubscriptionId, resourceGroupName$topLists DNS forwarding rulesets within a resource group.
listselectsubscriptionId$topLists DNS forwarding rulesets in all resource groups of a subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, dnsForwardingRulesetName, data__propertiesIf-Match, If-None-MatchCreates or updates a DNS forwarding ruleset.
updateupdatesubscriptionId, resourceGroupName, dnsForwardingRulesetNameIf-MatchUpdates a DNS forwarding ruleset.
deletedeletesubscriptionId, resourceGroupName, dnsForwardingRulesetNameIf-MatchDeletes a DNS forwarding ruleset. WARNING: This operation cannot be undone. All forwarding rules within the ruleset will be deleted.

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
dnsForwardingRulesetNamestringThe name of the DNS forwarding ruleset.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
virtualNetworkNamestringThe name of the virtual network.
$topinteger (int32)The maximum number of results to return. If not specified, returns up to 100 results.
If-MatchstringETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
If-None-MatchstringSet to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.

SELECT examples

Gets a DNS forwarding ruleset properties.

SELECT
etag,
location,
properties,
systemData,
tags
FROM azure.dns_resolver.dns_forwarding_rulesets
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}' -- required
;

INSERT examples

Creates or updates a DNS forwarding ruleset.

INSERT INTO azure.dns_resolver.dns_forwarding_rulesets (
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
dnsForwardingRulesetName,
If-Match,
If-None-Match
)
SELECT
'{{ properties }}' /* required */,
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ dnsForwardingRulesetName }}',
'{{ If-Match }}',
'{{ If-None-Match }}'
RETURNING
etag,
location,
properties,
systemData,
tags
;

UPDATE examples

Updates a DNS forwarding ruleset.

UPDATE azure.dns_resolver.dns_forwarding_rulesets
SET
data__dnsResolverOutboundEndpoints = '{{ dnsResolverOutboundEndpoints }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
etag,
location,
properties,
systemData,
tags;

DELETE examples

Deletes a DNS forwarding ruleset. WARNING: This operation cannot be undone. All forwarding rules within the ruleset will be deleted.

DELETE FROM azure.dns_resolver.dns_forwarding_rulesets
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}' --required
AND If-Match = '{{ If-Match }}'
;