Skip to main content

interconnect_blocks

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

Overview

Nameinterconnect_blocks
TypeResource
Idazure.compute.interconnect_blocks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
instanceViewobjectThe Interconnect Block instance view.
interconnectBlockIdstringA unique id (GUID) generated and assigned to the Interconnect Block by the platform which does not change throughout the lifetime of the resource.
interconnectGroupobjectThe Microsoft.Network/interconnectGroups resource that this Interconnect Block is associated with. Required at create and immutable thereafter. Required.
locationstringThe geo-location where the resource lives. Required.
placementobjectPlacement section specifies the user-defined constraints for Interconnect Block hardware placement. This property cannot be changed once Interconnect Block is provisioned.
provisioningStatestringThe provisioning state, which only appears in the response.
provisioningTimestring (date-time)The date time when the Interconnect Block was last updated.
skuobjectSKU of the resource for which capacity needs to be pre-allocated. Both sku.name and sku.capacity are required at create. After create, only sku.capacity can be updated. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
timeCreatedstring (date-time)Specifies the time at which the Interconnect Block resource was created.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
virtualMachinesAssociatedarrayA list of all virtual machine resource ids that are associated with the Interconnect Block.
zonesarrayThe availability zones.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, interconnect_block_name, subscription_id$expandRetrieves information about an Interconnect Block.
list_by_resource_groupselectresource_group_name, subscription_idLists all of the Interconnect Blocks in the specified resource group. Use the nextLink property in the response to get the next page of Interconnect Blocks.
list_by_subscriptionselectsubscription_idLists all of the Interconnect Blocks in the subscription. Use the nextLink property in the response to get the next page of Interconnect Blocks.
create_or_updateinsertresource_group_name, interconnect_block_name, subscription_id, location, skuCreates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
updateupdateresource_group_name, interconnect_block_name, subscription_idUpdates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
create_or_updatereplaceresource_group_name, interconnect_block_name, subscription_id, location, skuCreates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.
deletedeleteresource_group_name, interconnect_block_name, subscription_idDeletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM instances associated with the Interconnect Block.

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_block_namestringThe name of the Interconnect Block. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$expandstringThe expand expression to apply on the operation. 'instanceView' retrieves a snapshot of the runtime properties of the Interconnect Block that is managed by the platform and can change outside of control plane operations. "instanceView" Default value is None.

SELECT examples

Retrieves information about an Interconnect Block.

SELECT
id,
name,
instanceView,
interconnectBlockId,
interconnectGroup,
location,
placement,
provisioningState,
provisioningTime,
sku,
systemData,
tags,
timeCreated,
type,
virtualMachinesAssociated,
zones
FROM azure.compute.interconnect_blocks
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND interconnect_block_name = '{{ interconnect_block_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.

INSERT INTO azure.compute.interconnect_blocks (
tags,
location,
properties,
sku,
zones,
placement,
resource_group_name,
interconnect_block_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ sku }}' /* required */,
'{{ zones }}',
'{{ placement }}',
'{{ resource_group_name }}',
'{{ interconnect_block_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
placement,
properties,
sku,
systemData,
tags,
type,
zones
;

UPDATE examples

Updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.

UPDATE azure.compute.interconnect_blocks
SET
tags = '{{ tags }}',
sku = '{{ sku }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND interconnect_block_name = '{{ interconnect_block_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
placement,
properties,
sku,
systemData,
tags,
type,
zones;

REPLACE examples

Creates or updates an Interconnect Block. When updating an Interconnect Block, only tags and sku.capacity may be modified.

REPLACE azure.compute.interconnect_blocks
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
sku = '{{ sku }}',
zones = '{{ zones }}',
placement = '{{ placement }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND interconnect_block_name = '{{ interconnect_block_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND sku = '{{ sku }}' --required
RETURNING
id,
name,
location,
placement,
properties,
sku,
systemData,
tags,
type,
zones;

DELETE examples

Deletes an Interconnect Block. The operation is only allowed when there are no virtual machines or VMSS VM instances associated with the Interconnect Block.

DELETE FROM azure.compute.interconnect_blocks
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND interconnect_block_name = '{{ interconnect_block_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;