Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idazure_stack.azure_stack_hci.clusters

Fields

NameDatatypeDescription
aad_application_object_idtextfield from the properties object
aad_client_idtextfield from the properties object
aad_service_principal_object_idtextfield from the properties object
aad_tenant_idtextfield from the properties object
billing_modeltextfield from the properties object
cloud_idtextfield from the properties object
cloud_management_endpointtextfield from the properties object
clusterNametextfield from the properties object
connectivity_statustextfield from the properties object
desired_propertiestextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
isolated_vm_attestation_configurationtextfield from the properties object
last_billing_timestamptextfield from the properties object
last_sync_timestamptextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
registration_timestamptextfield from the properties object
reported_propertiestextfield from the properties object
resourceGroupNametextfield from the properties object
resource_provider_object_idtextfield from the properties object
service_endpointtextfield from the properties object
software_assurance_propertiestextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
trial_days_remainingtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, resourceGroupName, subscriptionIdGet HCI cluster.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all HCI clusters in a resource group.
list_by_subscriptionSELECTsubscriptionIdList all HCI clusters in a subscription.
createINSERTclusterName, resourceGroupName, subscriptionIdCreate an HCI cluster.
deleteDELETEclusterName, resourceGroupName, subscriptionIdDelete an HCI cluster.
updateUPDATEclusterName, resourceGroupName, subscriptionIdUpdate an HCI cluster.
extend_software_assurance_benefitEXECclusterName, resourceGroupName, subscriptionIdExtends Software Assurance Benefit to a cluster
upload_certificateEXECclusterName, resourceGroupName, subscriptionIdUpload certificate.

SELECT examples

List all HCI clusters in a subscription.

SELECT
aad_application_object_id,
aad_client_id,
aad_service_principal_object_id,
aad_tenant_id,
billing_model,
cloud_id,
cloud_management_endpoint,
clusterName,
connectivity_status,
desired_properties,
identity,
isolated_vm_attestation_configuration,
last_billing_timestamp,
last_sync_timestamp,
location,
provisioning_state,
registration_timestamp,
reported_properties,
resourceGroupName,
resource_provider_object_id,
service_endpoint,
software_assurance_properties,
status,
subscriptionId,
tags,
trial_days_remaining
FROM azure_stack.azure_stack_hci.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_stack.azure_stack_hci.clusters (
clusterName,
resourceGroupName,
subscriptionId,
tags,
location,
identity,
properties
)
SELECT
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ identity }}',
'{{ properties }}'
;

UPDATE example

Updates a clusters resource.

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

DELETE example

Deletes the specified clusters resource.

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