Skip to main content

subgroups

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

Overview

Namesubgroups
TypeResource
Idazure.network.subgroups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringName of the resource.
interconnectBlockobjectReference to another subresource.
internalSubgroupIdstringThe unique identifier of the subgroup.
provisioningStatestringThe provisioning state of the subgroup. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
typestringResource type.
virtualMachinesarrayA list of virtual machine references.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, interconnect_group_name, subgroup_name, subscription_idGets the specified subgroup in an interconnect group.
listselectresource_group_name, interconnect_group_name, subscription_idGets all subgroups in an interconnect group.

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
interconnect_group_namestringThe name of the interconnect group. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subgroup_namestringThe name of the subgroup. Required.
subscription_idstring

SELECT examples

Gets the specified subgroup in an interconnect group.

SELECT
id,
name,
interconnectBlock,
internalSubgroupId,
provisioningState,
type,
virtualMachines
FROM azure.network.subgroups
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND interconnect_group_name = '{{ interconnect_group_name }}' -- required
AND subgroup_name = '{{ subgroup_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;