Skip to main content

virtual_network_links

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

Overview

Namevirtual_network_links
TypeResource
Idazure.private_dns.virtual_network_links

Fields

The following fields are returned by SELECT queries:

Success.

NameDatatypeDescription
etagstringThe ETag of the virtual network link.
locationstringThe Azure Region where the resource lives
propertiesobjectProperties of the virtual network link to the Private DNS zone.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, privateZoneName, virtualNetworkLinkName, subscriptionIdGets a virtual network link to the specified Private DNS zone.
listselectresourceGroupName, privateZoneName, subscriptionId$topLists the virtual network links to the specified Private DNS zone.
create_or_updateinsertresourceGroupName, privateZoneName, virtualNetworkLinkName, subscriptionIdIf-Match, If-None-MatchCreates or updates a virtual network link to the specified Private DNS zone.
updateupdateresourceGroupName, privateZoneName, virtualNetworkLinkName, subscriptionIdIf-MatchUpdates a virtual network link to the specified Private DNS zone.
deletedeleteresourceGroupName, privateZoneName, virtualNetworkLinkName, subscriptionIdIf-MatchDeletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration virtual network, all auto-registered DNS records in the zone for the virtual network will also be deleted. 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
privateZoneNamestringThe name of the Private DNS zone (without a terminating dot).
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringGets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
virtualNetworkLinkNamestringThe name of the virtual network link.
$topinteger (int32)The maximum number of virtual network links to return. If not specified, returns up to 100 virtual network links.
If-MatchstringThe ETag of the virtual network link to the Private DNS zone. Omit this value to always delete the current zone. Specify the last-seen ETag value to prevent accidentally deleting any concurrent changes.
If-None-MatchstringSet to '*' to allow a new virtual network link to the Private DNS zone to be created, but to prevent updating an existing link. Other values will be ignored.

SELECT examples

Gets a virtual network link to the specified Private DNS zone.

SELECT
etag,
location,
properties,
tags
FROM azure.private_dns.virtual_network_links
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND privateZoneName = '{{ privateZoneName }}' -- required
AND virtualNetworkLinkName = '{{ virtualNetworkLinkName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates or updates a virtual network link to the specified Private DNS zone.

INSERT INTO azure.private_dns.virtual_network_links (
data__etag,
data__properties,
data__tags,
data__location,
resourceGroupName,
privateZoneName,
virtualNetworkLinkName,
subscriptionId,
If-Match,
If-None-Match
)
SELECT
'{{ etag }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ resourceGroupName }}',
'{{ privateZoneName }}',
'{{ virtualNetworkLinkName }}',
'{{ subscriptionId }}',
'{{ If-Match }}',
'{{ If-None-Match }}'
RETURNING
etag,
location,
properties,
tags
;

UPDATE examples

Updates a virtual network link to the specified Private DNS zone.

UPDATE azure.private_dns.virtual_network_links
SET
data__etag = '{{ etag }}',
data__properties = '{{ properties }}',
data__tags = '{{ tags }}',
data__location = '{{ location }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND privateZoneName = '{{ privateZoneName }}' --required
AND virtualNetworkLinkName = '{{ virtualNetworkLinkName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND If-Match = '{{ If-Match}}'
RETURNING
etag,
location,
properties,
tags;

DELETE examples

Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration virtual network, all auto-registered DNS records in the zone for the virtual network will also be deleted. This operation cannot be undone.

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