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:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
dnsResolverOutboundEndpointsarrayThe reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers. Required.
etagstring"If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.").
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringThe current provisioning state of the DNS forwarding ruleset. This is a read-only property and any attempt to set this value will be ignored. Known values are: "Creating", "Updating", "Deleting", "Succeeded", "Failed", and "Canceled". (Creating, Updating, Deleting, Succeeded, Failed, Canceled)
resourceGuidstringThe resourceGuid for the DNS forwarding ruleset.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, dns_forwarding_ruleset_name, subscription_idGets a DNS forwarding ruleset properties.
list_by_virtual_networkselectresource_group_name, virtual_network_name, subscription_id$topLists DNS forwarding ruleset resource IDs attached to a virtual network.
list_by_resource_groupselectresource_group_name, subscription_id$topLists DNS forwarding rulesets within a resource group.
listselectsubscription_id$topLists DNS forwarding rulesets in all resource groups of a subscription.
create_or_updateinsertresource_group_name, dns_forwarding_ruleset_name, subscription_id, location, propertiesCreates or updates a DNS forwarding ruleset.
updateupdateresource_group_name, dns_forwarding_ruleset_name, subscription_idUpdates a DNS forwarding ruleset.
create_or_updatereplaceresource_group_name, dns_forwarding_ruleset_name, subscription_id, location, propertiesCreates or updates a DNS forwarding ruleset.
deletedeleteresource_group_name, dns_forwarding_ruleset_name, subscription_idDeletes 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
dns_forwarding_ruleset_namestringThe name of the DNS forwarding ruleset. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
virtual_network_namestringThe name of the VirtualNetwork. Required.
$topintegerThe maximum number of results to return. If not specified, returns up to 100 results. Default value is None.

SELECT examples

Gets a DNS forwarding ruleset properties.

SELECT
id,
name,
dnsResolverOutboundEndpoints,
etag,
location,
provisioningState,
resourceGuid,
systemData,
tags,
type
FROM azure.dns_resolver.dns_forwarding_rulesets
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND dns_forwarding_ruleset_name = '{{ dns_forwarding_ruleset_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a DNS forwarding ruleset.

INSERT INTO azure.dns_resolver.dns_forwarding_rulesets (
tags,
location,
properties,
resource_group_name,
dns_forwarding_ruleset_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ dns_forwarding_ruleset_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates a DNS forwarding ruleset.

UPDATE azure.dns_resolver.dns_forwarding_rulesets
SET
dnsResolverOutboundEndpoints = '{{ dnsResolverOutboundEndpoints }}',
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND dns_forwarding_ruleset_name = '{{ dns_forwarding_ruleset_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates or updates a DNS forwarding ruleset.

REPLACE azure.dns_resolver.dns_forwarding_rulesets
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND dns_forwarding_ruleset_name = '{{ dns_forwarding_ruleset_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type;

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 resource_group_name = '{{ resource_group_name }}' --required
AND dns_forwarding_ruleset_name = '{{ dns_forwarding_ruleset_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;