Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idazure_stack.azure_stack_hci.clusters

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.
aadApplicationObjectIdstringObject id of cluster AAD identity.
aadClientIdstringApp id of cluster AAD identity.
aadServicePrincipalObjectIdstringId of cluster identity service principal.
aadTenantIdstringTenant id of cluster AAD identity.
billingModelstringType of billing applied to the resource.
billingPropertiesobjectBilling properties of the cluster, including upcoming billing model details.
cloudIdstringUnique, immutable resource id.
cloudManagementEndpointstringEndpoint configured for management from the Azure portal.
clusterPatternstringSupported Storage Type for HCI Cluster. Known values are: "Standard" and "RackAware". (Standard, RackAware)
confidentialVmPropertiesobjectRepresents the Confidential Virtual Machine (CVM) support intent and current status for the cluster resource.
connectivityStatusstringOverall connectivity status for the cluster resource. Indicates whether the cluster is connected to Azure, partially connected, or has not recently communicated. Known values are: "NotYetRegistered", "Connected", "NotConnectedRecently", "PartiallyConnected", "Disconnected", and "NotSpecified". (NotYetRegistered, Connected, NotConnectedRecently, PartiallyConnected, Disconnected, NotSpecified)
desiredPropertiesobjectDesired properties of the cluster.
identityobjectThe managed service identities assigned to this resource.
identityProviderstringIdentity Provider for the cluster. Known values are: "ActiveDirectory" and "LocalIdentity". (ActiveDirectory, LocalIdentity)
isManagementClusterbooleanIs Management Cluster, when true indicates that the cluster is used for managing other clusters.
isolatedVmAttestationConfigurationobjectAttestation configurations for isolated VM (e.g. TVM, CVM) of the cluster.
kindstringThis property identifies the purpose of the Cluster deployment. For example, a valid value is AzureLocal.
lastBillingTimestampstring (date-time)Most recent billing meter timestamp.
lastSyncTimestampstring (date-time)Most recent cluster sync timestamp.
localAvailabilityZonesarrayLocal Availability Zone information for HCI cluster.
locationstringThe geo-location where the resource lives. Required.
logCollectionPropertiesobjectLog Collection properties of the cluster.
provisioningStatestringProvisioning state. Indicates the current lifecycle status of the resource, including creation, update, deletion, connectivity, and error states. Known values are: "NotSpecified", "Error", "Succeeded", "Failed", "Canceled", "Connected", "Disconnected", "Deleted", "Creating", "Updating", "Deleting", "Moving", "PartiallySucceeded", "PartiallyConnected", "InProgress", "Accepted", "Provisioning", and "DisableInProgress". (NotSpecified, Error, Succeeded, Failed, Canceled, Connected, Disconnected, Deleted, Creating, Updating, Deleting, Moving, PartiallySucceeded, PartiallyConnected, InProgress, Accepted, Provisioning, DisableInProgress)
registrationTimestampstring (date-time)First cluster sync timestamp.
remoteSupportPropertiesobjectRemoteSupport properties of the cluster.
reportedPropertiesobjectProperties reported by cluster agent.
resourceProviderObjectIdstringObject id of RP Service Principal.
ringstringThe ring to which this cluster belongs to.
sdnPropertiesobjectSoftware Defined Networking Properties of the cluster.
secretsLocationsarrayList of secret locations.
serviceEndpointstringRegion specific DataPath Endpoint of the cluster.
softwareAssurancePropertiesobjectSoftware Assurance properties of the cluster.
statusstringStatus of the cluster agent. Indicates the current connectivity, validation, and deployment state of the agent within the cluster. Known values are: "NotYetRegistered", "ConnectedRecently", "NotConnectedRecently", "Disconnected", "Error", "NotSpecified", "ValidationInProgress", "ValidationSuccess", "ValidationFailed", "DeploymentInProgress", "DeploymentFailed", and "DeploymentSuccess". (NotYetRegistered, ConnectedRecently, NotConnectedRecently, Disconnected, Error, NotSpecified, ValidationInProgress, ValidationSuccess, ValidationFailed, DeploymentInProgress, DeploymentFailed, DeploymentSuccess)
storageTypestringStorage type of the cluster. Indicates whether the cluster uses S2D, SAN, or a combination. Known values are: "S2D", "SAN", and "SANS2D". (S2D, SAN, SANS2D)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
trialDaysRemainingnumberNumber of days remaining in the trial period.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, cluster_name, subscription_idGet HCI cluster.
list_by_resource_groupselectresource_group_name, subscription_idList all HCI clusters in a resource group.
list_by_subscriptionselectsubscription_idList all HCI clusters in a subscription.
createinsertresource_group_name, cluster_name, subscription_id, locationCreate an HCI cluster.
updateupdateresource_group_name, cluster_name, subscription_idUpdate an HCI cluster.
deletedeleteresource_group_name, cluster_name, subscription_idDelete an HCI cluster.
update_secrets_locationsexecresource_group_name, cluster_name, subscription_idUpdate cluster secrets locations.
upload_certificateexecresource_group_name, cluster_name, subscription_idUpload certificate.
create_identityexecresource_group_name, cluster_name, subscription_idCreate cluster identity.
extend_software_assurance_benefitexecresource_group_name, cluster_name, subscription_idExtends Software Assurance Benefit to a cluster.
change_ringexecresource_group_name, cluster_name, subscription_idChanges ring of a cluster.
trigger_log_collectionexecresource_group_name, cluster_name, subscription_idTrigger Log Collection on a cluster.
configure_remote_supportexecresource_group_name, cluster_name, subscription_idConfigure RemoteSupport on a cluster.

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
cluster_namestringThe name of the cluster. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get HCI cluster.

SELECT
id,
name,
aadApplicationObjectId,
aadClientId,
aadServicePrincipalObjectId,
aadTenantId,
billingModel,
billingProperties,
cloudId,
cloudManagementEndpoint,
clusterPattern,
confidentialVmProperties,
connectivityStatus,
desiredProperties,
identity,
identityProvider,
isManagementCluster,
isolatedVmAttestationConfiguration,
kind,
lastBillingTimestamp,
lastSyncTimestamp,
localAvailabilityZones,
location,
logCollectionProperties,
provisioningState,
registrationTimestamp,
remoteSupportProperties,
reportedProperties,
resourceProviderObjectId,
ring,
sdnProperties,
secretsLocations,
serviceEndpoint,
softwareAssuranceProperties,
status,
storageType,
systemData,
tags,
trialDaysRemaining,
type
FROM azure_stack.azure_stack_hci.clusters
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create an HCI cluster.

INSERT INTO azure_stack.azure_stack_hci.clusters (
tags,
location,
properties,
identity,
kind,
resource_group_name,
cluster_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ kind }}',
'{{ resource_group_name }}',
'{{ cluster_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
kind,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update an HCI cluster.

UPDATE azure_stack.azure_stack_hci.clusters
SET
tags = '{{ tags }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
kind,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete an HCI cluster.

DELETE FROM azure_stack.azure_stack_hci.clusters
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Update cluster secrets locations.

EXEC azure_stack.azure_stack_hci.clusters.update_secrets_locations 
@resource_group_name='{{ resource_group_name }}' --required,
@cluster_name='{{ cluster_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;