Skip to main content

hub_virtual_network_connections

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

Overview

Namehub_virtual_network_connections
TypeResource
Idazure.network.hub_virtual_network_connections

Fields

NameDatatypeDescription
idtextResource ID.
nametextThe name of the resource that is unique within a resource group. This name can be used to access the resource.
allow_hub_to_remote_vnet_transittextfield from the properties object
allow_remote_vnet_to_use_hub_vnet_gatewaystextfield from the properties object
connectionNametextfield from the properties object
enable_internet_securitytextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
provisioning_statetextfield from the properties object
remote_virtual_networktextfield from the properties object
resourceGroupNametextfield from the properties object
routing_configurationtextfield from the properties object
subscriptionIdtextfield from the properties object
virtualHubNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTconnectionName, resourceGroupName, subscriptionId, virtualHubNameRetrieves the details of a HubVirtualNetworkConnection.
listSELECTresourceGroupName, subscriptionId, virtualHubNameRetrieves the details of all HubVirtualNetworkConnections.
create_or_updateINSERTconnectionName, resourceGroupName, subscriptionId, virtualHubNameCreates a hub virtual network connection if it doesn't exist else updates the existing one.
deleteDELETEconnectionName, resourceGroupName, subscriptionId, virtualHubNameDeletes a HubVirtualNetworkConnection.

SELECT examples

Retrieves the details of all HubVirtualNetworkConnections.

SELECT
id,
name,
allow_hub_to_remote_vnet_transit,
allow_remote_vnet_to_use_hub_vnet_gateways,
connectionName,
enable_internet_security,
etag,
provisioning_state,
remote_virtual_network,
resourceGroupName,
routing_configuration,
subscriptionId,
virtualHubName
FROM azure.network.vw_hub_virtual_network_connections
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualHubName = '{{ virtualHubName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.hub_virtual_network_connections (
connectionName,
resourceGroupName,
subscriptionId,
virtualHubName,
properties,
name,
id
)
SELECT
'{{ connectionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ virtualHubName }}',
'{{ properties }}',
'{{ name }}',
'{{ id }}'
;

DELETE example

Deletes the specified hub_virtual_network_connections resource.

/*+ delete */
DELETE FROM azure.network.hub_virtual_network_connections
WHERE connectionName = '{{ connectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualHubName = '{{ virtualHubName }}';