Skip to main content

connected_clusters

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

Overview

Nameconnected_clusters
TypeResource
Idazure.hybrid_kubernetes.connected_clusters

Fields

NameDatatypeDescription
aad_profiletextfield from the properties object
agent_public_key_certificatetextfield from the properties object
agent_versiontextfield from the properties object
arc_agent_profiletextfield from the properties object
arc_agentry_configurationstextfield from the properties object
azure_hybrid_benefittextfield from the properties object
clusterNametextfield from the properties object
connectivity_statustextfield from the properties object
distributiontextfield from the properties object
distribution_versiontextfield from the properties object
gatewaytextfield from the properties object
identitytextIdentity for the connected cluster.
infrastructuretextfield from the properties object
kindtextIndicates the kind of Arc connected cluster based on host infrastructure.
kubernetes_versiontextfield from the properties object
last_connectivity_timetextfield from the properties object
locationtextThe geo-location where the resource lives
managed_identity_certificate_expiration_timetextfield from the properties object
miscellaneous_propertiestextfield from the properties object
offeringtextfield from the properties object
oidc_issuer_profiletextfield from the properties object
private_link_scope_resource_idtextfield from the properties object
private_link_statetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
security_profiletextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
total_core_counttextfield from the properties object
total_node_counttextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, resourceGroupName, subscriptionIdReturns the properties of the specified connected cluster, including name, identity, properties, and additional cluster details.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdAPI to enumerate registered connected K8s clusters under a Resource Group
list_by_subscriptionSELECTsubscriptionIdAPI to enumerate registered connected K8s clusters under a Subscription
create_or_updateINSERTclusterName, resourceGroupName, subscriptionId, data__identity, data__propertiesAPI to register a new Kubernetes cluster and create a tracked resource in Azure Resource Manager (ARM).
deleteDELETEclusterName, resourceGroupName, subscriptionIdDelete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM).
updateUPDATEclusterName, resourceGroupName, subscriptionIdAPI to update certain properties of the connected cluster resource

SELECT examples

API to enumerate registered connected K8s clusters under a Subscription

SELECT
aad_profile,
agent_public_key_certificate,
agent_version,
arc_agent_profile,
arc_agentry_configurations,
azure_hybrid_benefit,
clusterName,
connectivity_status,
distribution,
distribution_version,
gateway,
identity,
infrastructure,
kind,
kubernetes_version,
last_connectivity_time,
location,
managed_identity_certificate_expiration_time,
miscellaneous_properties,
offering,
oidc_issuer_profile,
private_link_scope_resource_id,
private_link_state,
provisioning_state,
resourceGroupName,
security_profile,
subscriptionId,
system_data,
tags,
total_core_count,
total_node_count
FROM azure.hybrid_kubernetes.vw_connected_clusters
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.hybrid_kubernetes.connected_clusters (
clusterName,
resourceGroupName,
subscriptionId,
data__identity,
data__properties,
identity,
kind,
properties,
tags,
location
)
SELECT
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__identity }}',
'{{ data__properties }}',
'{{ identity }}',
'{{ kind }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a connected_clusters resource.

/*+ update */
UPDATE azure.hybrid_kubernetes.connected_clusters
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified connected_clusters resource.

/*+ delete */
DELETE FROM azure.hybrid_kubernetes.connected_clusters
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';