Skip to main content

virtual_network_links

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

Overview

Namevirtual_network_links
TypeResource
Idazure.dns_resolver.virtual_network_links

Fields

The following fields are returned by SELECT queries:

The virtual network link to DNS forwarding ruleset was found.

NameDatatypeDescription
etagstringETag of the virtual network link.
propertiesobjectProperties of the virtual network link.
systemDataobjectMetadata pertaining to creation and last modification of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, dnsForwardingRulesetName, virtualNetworkLinkNameGets properties of a virtual network link to a DNS forwarding ruleset.
listselectsubscriptionId, resourceGroupName, dnsForwardingRulesetName$topLists virtual network links to a DNS forwarding ruleset.
create_or_updateinsertsubscriptionId, resourceGroupName, dnsForwardingRulesetName, virtualNetworkLinkName, data__propertiesIf-Match, If-None-MatchCreates or updates a virtual network link to a DNS forwarding ruleset.
updateupdatesubscriptionId, resourceGroupName, dnsForwardingRulesetName, virtualNetworkLinkNameIf-MatchUpdates a virtual network link to a DNS forwarding ruleset.
deletedeletesubscriptionId, resourceGroupName, dnsForwardingRulesetName, virtualNetworkLinkNameIf-MatchDeletes a virtual network link to a DNS forwarding ruleset. WARNING: This operation cannot be undone.

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.
virtualNetworkLinkNamestringThe name of the virtual network link.
$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 properties of a virtual network link to a DNS forwarding ruleset.

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

INSERT examples

Creates or updates a virtual network link to a DNS forwarding ruleset.

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

UPDATE examples

Updates a virtual network link to a DNS forwarding ruleset.

UPDATE azure.dns_resolver.virtual_network_links
SET
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}' --required
AND virtualNetworkLinkName = '{{ virtualNetworkLinkName }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
etag,
properties,
systemData;

DELETE examples

Deletes a virtual network link to a DNS forwarding ruleset. WARNING: This operation cannot be undone.

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