Skip to main content

attached_networks

Creates, updates, deletes, gets or lists an attached_networks resource.

Overview

Nameattached_networks
TypeResource
Idazure.devcenter.attached_networks

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 of the network. This is populated based on the referenced Network Connection. Known values are: "HybridAzureADJoin" and "AzureADJoin".
healthCheckStatusstringHealth check status values. Known values are: "Unknown", "Pending", "Running", "Passed", "Warning", and "Failed".
networkConnectionIdstringThe resource ID of the NetworkConnection you want to attach.
networkConnectionLocationstringThe geo-location where the NetworkConnection resource specified in 'networkConnectionResourceId' property lives.
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".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
get_by_dev_centerselectresource_group_name, dev_center_name, attached_network_connection_name, subscription_idGets an attached NetworkConnection.
get_by_projectselectresource_group_name, project_name, attached_network_connection_name, subscription_idGets an attached NetworkConnection.
list_by_projectselectresource_group_name, project_name, subscription_id$topLists the attached NetworkConnections for a Project.
list_by_dev_centerselectresource_group_name, dev_center_name, subscription_id$topLists the attached NetworkConnections for a DevCenter.
create_or_updateinsertresource_group_name, dev_center_name, attached_network_connection_name, subscription_idCreates or updates an attached NetworkConnection.
create_or_updatereplaceresource_group_name, dev_center_name, attached_network_connection_name, subscription_idCreates or updates an attached NetworkConnection.
deletedeleteresource_group_name, dev_center_name, attached_network_connection_name, subscription_idUn-attach a NetworkConnection.

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
attached_network_connection_namestringThe name of the attached NetworkConnection. Required.
dev_center_namestringThe name of the devcenter. Required.
project_namestringThe name of the project. 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 an attached NetworkConnection.

SELECT
id,
name,
domainJoinType,
healthCheckStatus,
networkConnectionId,
networkConnectionLocation,
provisioningState,
systemData,
type
FROM azure.devcenter.attached_networks
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND dev_center_name = '{{ dev_center_name }}' -- required
AND attached_network_connection_name = '{{ attached_network_connection_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates an attached NetworkConnection.

INSERT INTO azure.devcenter.attached_networks (
properties,
resource_group_name,
dev_center_name,
attached_network_connection_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ dev_center_name }}',
'{{ attached_network_connection_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Creates or updates an attached NetworkConnection.

REPLACE azure.devcenter.attached_networks
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND dev_center_name = '{{ dev_center_name }}' --required
AND attached_network_connection_name = '{{ attached_network_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Un-attach a NetworkConnection.

DELETE FROM azure.devcenter.attached_networks
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND dev_center_name = '{{ dev_center_name }}' --required
AND attached_network_connection_name = '{{ attached_network_connection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;