Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idazure.nexus.clusters

Fields

NameDatatypeDescription
aggregator_or_single_rack_definitiontextfield from the properties object
analytics_workspace_idtextfield from the properties object
available_upgrade_versionstextfield from the properties object
clusterNametextfield from the properties object
cluster_capacitytextfield from the properties object
cluster_connection_statustextfield from the properties object
cluster_extended_locationtextfield from the properties object
cluster_locationtextfield from the properties object
cluster_manager_connection_statustextfield from the properties object
cluster_manager_idtextfield from the properties object
cluster_service_principaltextfield from the properties object
cluster_typetextfield from the properties object
cluster_versiontextfield from the properties object
command_output_settingstextfield from the properties object
compute_deployment_thresholdtextfield from the properties object
compute_rack_definitionstextfield from the properties object
detailed_statustextfield from the properties object
detailed_status_messagetextfield from the properties object
extended_locationtextfield from the properties object
hybrid_aks_extended_locationtextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
locationtextThe geo-location where the resource lives
managed_resource_group_configurationtextfield from the properties object
manual_action_counttextfield from the properties object
network_fabric_idtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
runtime_protection_configurationtextfield from the properties object
secret_archivetextfield from the properties object
subscriptionIdtextfield from the properties object
support_expiry_datetextfield from the properties object
tagstextResource tags.
update_strategytextfield from the properties object
workload_resource_idstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, resourceGroupName, subscriptionIdGet properties of the provided cluster.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet a list of clusters in the provided resource group.
list_by_subscriptionSELECTsubscriptionIdGet a list of clusters in the provided subscription.
create_or_updateINSERTclusterName, resourceGroupName, subscriptionId, data__extendedLocation, data__propertiesCreate a new cluster or update the properties of the cluster if it exists.
deleteDELETEclusterName, resourceGroupName, subscriptionIdDelete the provided cluster.
updateUPDATEclusterName, resourceGroupName, subscriptionIdPatch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently.
continue_update_versionEXECclusterName, resourceGroupName, subscriptionIdTrigger the continuation of an update for a cluster with a matching update strategy that has paused after completing a segment of the update.
deployEXECclusterName, resourceGroupName, subscriptionIdDeploy the cluster using the rack configuration provided during creation.
scan_runtimeEXECclusterName, resourceGroupName, subscriptionIdTriggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with the cluster configuration.

SELECT examples

Get a list of clusters in the provided subscription.

SELECT
aggregator_or_single_rack_definition,
analytics_workspace_id,
available_upgrade_versions,
clusterName,
cluster_capacity,
cluster_connection_status,
cluster_extended_location,
cluster_location,
cluster_manager_connection_status,
cluster_manager_id,
cluster_service_principal,
cluster_type,
cluster_version,
command_output_settings,
compute_deployment_threshold,
compute_rack_definitions,
detailed_status,
detailed_status_message,
extended_location,
hybrid_aks_extended_location,
identity,
location,
managed_resource_group_configuration,
manual_action_count,
network_fabric_id,
provisioning_state,
resourceGroupName,
runtime_protection_configuration,
secret_archive,
subscriptionId,
support_expiry_date,
tags,
update_strategy,
workload_resource_ids
FROM azure.nexus.vw_clusters
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.nexus.clusters (
clusterName,
resourceGroupName,
subscriptionId,
data__extendedLocation,
data__properties,
extendedLocation,
identity,
properties,
tags,
location
)
SELECT
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__extendedLocation }}',
'{{ data__properties }}',
'{{ extendedLocation }}',
'{{ identity }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a clusters resource.

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

DELETE example

Deletes the specified clusters resource.

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