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

NameDatatypeDescription
dnsForwardingRulesetNametextfield from the properties object
etagtextETag of the virtual network link.
metadatatextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
virtualNetworkLinkNametextfield from the properties object
virtual_networktextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdnsForwardingRulesetName, resourceGroupName, subscriptionId, virtualNetworkLinkNameGets properties of a virtual network link to a DNS forwarding ruleset.
listSELECTdnsForwardingRulesetName, resourceGroupName, subscriptionIdLists virtual network links to a DNS forwarding ruleset.
create_or_updateINSERTdnsForwardingRulesetName, resourceGroupName, subscriptionId, virtualNetworkLinkName, data__propertiesCreates or updates a virtual network link to a DNS forwarding ruleset.
deleteDELETEdnsForwardingRulesetName, resourceGroupName, subscriptionId, virtualNetworkLinkNameDeletes a virtual network link to a DNS forwarding ruleset. WARNING: This operation cannot be undone.
updateUPDATEdnsForwardingRulesetName, resourceGroupName, subscriptionId, virtualNetworkLinkNameUpdates a virtual network link to a DNS forwarding ruleset.

SELECT examples

Lists virtual network links to a DNS forwarding ruleset.

SELECT
dnsForwardingRulesetName,
etag,
metadata,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
virtualNetworkLinkName,
virtual_network
FROM azure.dns_resolver.vw_virtual_network_links
WHERE dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}'
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.dns_resolver.virtual_network_links (
dnsForwardingRulesetName,
resourceGroupName,
subscriptionId,
virtualNetworkLinkName,
data__properties,
properties
)
SELECT
'{{ dnsForwardingRulesetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ virtualNetworkLinkName }}',
'{{ data__properties }}',
'{{ properties }}'
;

UPDATE example

Updates a virtual_network_links resource.

/*+ update */
UPDATE azure.dns_resolver.virtual_network_links
SET
properties = '{{ properties }}'
WHERE
dnsForwardingRulesetName = '{{ dnsForwardingRulesetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualNetworkLinkName = '{{ virtualNetworkLinkName }}';

DELETE example

Deletes the specified virtual_network_links resource.

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