Skip to main content

network_connections

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

Overview

Namenetwork_connections
TypeResource
Idazure.dev_center.network_connections

Fields

NameDatatypeDescription
domain_join_typetextfield from the properties object
domain_nametextfield from the properties object
domain_passwordtextfield from the properties object
domain_usernametextfield from the properties object
health_check_statustextfield from the properties object
locationtextThe geo-location where the resource lives
networkConnectionNametextfield from the properties object
networking_resource_group_nametextfield from the properties object
organization_unittextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subnet_idtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTnetworkConnectionName, resourceGroupName, subscriptionIdGets a network connection resource
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists network connections in a resource group
list_by_subscriptionSELECTsubscriptionIdLists network connections in a subscription
create_or_updateINSERTnetworkConnectionName, resourceGroupName, subscriptionIdCreates or updates a Network Connections resource
deleteDELETEnetworkConnectionName, resourceGroupName, subscriptionIdDeletes a Network Connections resource
updateUPDATEnetworkConnectionName, resourceGroupName, subscriptionIdPartially updates a Network Connection
run_health_checksEXECnetworkConnectionName, resourceGroupName, subscriptionIdTriggers a new health check run. The execution and health check result can be tracked via the network Connection health check details

SELECT examples

Lists network connections in a subscription

SELECT
domain_join_type,
domain_name,
domain_password,
domain_username,
health_check_status,
location,
networkConnectionName,
networking_resource_group_name,
organization_unit,
provisioning_state,
resourceGroupName,
subnet_id,
subscriptionId,
tags
FROM azure.dev_center.vw_network_connections
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dev_center.network_connections (
networkConnectionName,
resourceGroupName,
subscriptionId,
tags,
location,
properties
)
SELECT
'{{ networkConnectionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a network_connections resource.

/*+ update */
UPDATE azure.dev_center.network_connections
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
networkConnectionName = '{{ networkConnectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified network_connections resource.

/*+ delete */
DELETE FROM azure.dev_center.network_connections
WHERE networkConnectionName = '{{ networkConnectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';