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

NameDatatypeDescription
etagtextThe ETag of the virtual network link.
locationtextThe Azure Region where the resource lives
privateZoneNametextfield from the properties object
provisioning_statetextfield from the properties object
registration_enabledtextfield from the properties object
resolution_policytextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
virtualNetworkLinkNametextfield from the properties object
virtual_networktextfield from the properties object
virtual_network_link_statetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTprivateZoneName, resourceGroupName, subscriptionId, virtualNetworkLinkNameGets a virtual network link to the specified Private DNS zone.
listSELECTprivateZoneName, resourceGroupName, subscriptionIdLists the virtual network links to the specified Private DNS zone.
create_or_updateINSERTprivateZoneName, resourceGroupName, subscriptionId, virtualNetworkLinkNameCreates or updates a virtual network link to the specified Private DNS zone.
deleteDELETEprivateZoneName, resourceGroupName, subscriptionId, virtualNetworkLinkNameDeletes 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.
updateUPDATEprivateZoneName, resourceGroupName, subscriptionId, virtualNetworkLinkNameUpdates a virtual network link to the specified Private DNS zone.

SELECT examples

Lists the virtual network links to the specified Private DNS zone.

SELECT
etag,
location,
privateZoneName,
provisioning_state,
registration_enabled,
resolution_policy,
resourceGroupName,
subscriptionId,
tags,
virtualNetworkLinkName,
virtual_network,
virtual_network_link_state
FROM azure.private_dns.vw_virtual_network_links
WHERE privateZoneName = '{{ privateZoneName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.private_dns.virtual_network_links (
privateZoneName,
resourceGroupName,
subscriptionId,
virtualNetworkLinkName,
etag,
properties,
tags,
location
)
SELECT
'{{ privateZoneName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ virtualNetworkLinkName }}',
'{{ etag }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a virtual_network_links resource.

/*+ update */
UPDATE azure.private_dns.virtual_network_links
SET
etag = '{{ etag }}',
properties = '{{ properties }}',
tags = '{{ tags }}',
location = '{{ location }}'
WHERE
privateZoneName = '{{ privateZoneName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkLinkName = '{{ virtualNetworkLinkName }}';

DELETE example

Deletes the specified virtual_network_links resource.

/*+ delete */
DELETE FROM azure.private_dns.virtual_network_links
WHERE privateZoneName = '{{ privateZoneName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkLinkName = '{{ virtualNetworkLinkName }}';