Skip to main content

network_connections

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

Overview

Namenetwork_connections
TypeResource
Idazure.devcenter.network_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
namestringThe name of the resource.
domainJoinTypestringAAD Join type. Known values are: "HybridAzureADJoin" and "AzureADJoin".
domainNamestringActive Directory domain name.
domainPasswordstringThe password for the account used to join domain.
domainUsernamestringThe username of an Active Directory account (user or service account) that has permissions to create computer objects in Active Directory. Required format: admin@contoso.com.
healthCheckStatusstringOverall health status of the network connection. Health checks are run on creation, update, and periodically to validate the network connection. Known values are: "Unknown", "Pending", "Running", "Passed", "Warning", and "Failed".
locationstringThe geo-location where the resource lives. Required.
networkingResourceGroupNamestringThe name for resource group where NICs will be placed.
organizationUnitstringActive Directory domain Organization Unit (OU).
provisioningStatestringThe provisioning state of the resource. Known values are: "NotSpecified", "Accepted", "Running", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "Succeeded", "Failed", "Canceled", "MovingResources", "TransientFailure", "RolloutInProgress", and "StorageProvisioningFailed".
subnetIdstringThe subnet to attach Virtual Machines to.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, network_connection_name, subscription_idGets a network connection resource.
list_by_resource_groupselectresource_group_name, subscription_id$topLists network connections in a resource group.
list_by_subscriptionselectsubscription_id$topLists network connections in a subscription.
create_or_updateinsertresource_group_name, network_connection_name, subscription_id, locationCreates or updates a Network Connections resource.
updateupdateresource_group_name, network_connection_name, subscription_idPartially updates a Network Connection.
create_or_updatereplaceresource_group_name, network_connection_name, subscription_id, locationCreates or updates a Network Connections resource.
deletedeleteresource_group_name, network_connection_name, subscription_idDeletes a Network Connections resource.
list_health_detailsexecresource_group_name, network_connection_name, subscription_id$topLists health check status details.
list_outbound_network_dependencies_endpointsexecresource_group_name, network_connection_name, subscription_id$topLists the endpoints that agents may call as part of Dev Box service administration. These FQDNs should be allowed for outbound access in order for the Dev Box service to function.
get_health_detailsexecresource_group_name, network_connection_name, subscription_idGets health check status details.
run_health_checksexecresource_group_name, network_connection_name, subscription_idTriggers a new health check run. The execution and health check result can be tracked via the network Connection health check details.

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
network_connection_namestringName of the Network Connection that can be applied to a Pool. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$topintegerThe maximum number of resources to return from the operation. Example: '$top=10'. Default value is None.

SELECT examples

Gets a network connection resource.

SELECT
id,
name,
domainJoinType,
domainName,
domainPassword,
domainUsername,
healthCheckStatus,
location,
networkingResourceGroupName,
organizationUnit,
provisioningState,
subnetId,
systemData,
tags,
type
FROM azure.devcenter.network_connections
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND network_connection_name = '{{ network_connection_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a Network Connections resource.

INSERT INTO azure.devcenter.network_connections (
tags,
location,
properties,
resource_group_name,
network_connection_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ network_connection_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Partially updates a Network Connection.

UPDATE azure.devcenter.network_connections
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_connection_name = '{{ network_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates or updates a Network Connections resource.

REPLACE azure.devcenter.network_connections
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_connection_name = '{{ network_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a Network Connections resource.

DELETE FROM azure.devcenter.network_connections
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND network_connection_name = '{{ network_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Lists health check status details.

EXEC azure.devcenter.network_connections.list_health_details 
@resource_group_name='{{ resource_group_name }}' --required,
@network_connection_name='{{ network_connection_name }}' --required,
@subscription_id='{{ subscription_id }}' --required,
@$top='{{ $top }}'
;