Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idazure_extras.network_cloud.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.
actionStatesarrayThe current state of any in progress or completed actions. The most recent known instance of each action type is shown.
aggregatorOrSingleRackDefinitionobjectRackDefinition represents details regarding the rack.
analyticsOutputSettingsobjectThe settings for the log analytics workspace used for output of logs from this cluster.
analyticsWorkspaceIdstringField Deprecated. The resource ID of the Log Analytics Workspace that will be used for storing relevant logs.
availableUpgradeVersionsarrayThe list of cluster runtime version upgrades available for this cluster.
clusterCapacityobjectThe capacity supported by this cluster.
clusterConnectionStatusstringThe latest heartbeat status between the cluster manager and the cluster. Known values are: "Connected", "Disconnected", "Timeout", and "Undefined". (Connected, Disconnected, Timeout, Undefined)
clusterExtendedLocationobjectThe extended location (custom location) that represents the cluster's control plane location. This extended location is used to route the requests of child objects of the cluster that are handled by the platform operator.
clusterLocationstringThe customer-provided location information to identify where the cluster resides.
clusterManagerConnectionStatusstringThe latest connectivity status between cluster manager and the cluster. Known values are: "Connected" and "Unreachable". (Connected, Unreachable)
clusterManagerIdstringThe resource ID of the cluster manager that manages this cluster. This is set by the Cluster Manager when the cluster is created.
clusterServicePrincipalobjectField Deprecated: Use managed identity to provide cluster privileges. The service principal to be used by the cluster during Arc Appliance installation.
clusterTypestringThe type of rack configuration for the cluster. Required. Known values are: "SingleRack" and "MultiRack". (SingleRack, MultiRack)
clusterVersionstringThe current runtime version of the cluster. Required.
commandOutputSettingsobjectThe settings for commands run in this cluster, such as bare metal machine run read only commands and data extracts.
computeDeploymentThresholdobjectThe validation threshold indicating the allowable failures of compute machines during environment validation and deployment.
computeRackDefinitionsarrayThe list of rack definitions for the compute racks in a multi-rack cluster, or an empty list in a single-rack cluster.
detailedStatusstringThe current detailed status of the cluster. Known values are: "PendingDeployment", "Deploying", "Running", "Updating", "UpdatePaused", "Degraded", "Deleting", "Disconnected", and "Failed". (PendingDeployment, Deploying, Running, Updating, UpdatePaused, Degraded, Deleting, Disconnected, Failed)
detailedStatusMessagestringThe descriptive message about the detailed status.
etagstring"If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.").
extendedLocationobjectThe extended location of the resource. This property is required when creating the resource. Required.
hybridAksExtendedLocationobjectField Deprecated. This field will not be populated in an upcoming version. The extended location (custom location) that represents the Hybrid AKS control plane location. This extended location is used when creating provisioned clusters (Hybrid AKS clusters).
identityobjectThe managed service identities assigned to this resource.
kindstringThe type (kind) of the cluster. When specified, the value must exactly match the kind configured on the cluster manager that manages the cluster. If omitted, the service will default the value to the kind value of the cluster manager. Known values are: "Nexus" and "AzureLocal". (Nexus, AzureLocal)
lastSuccessfulVersionUpdateTimestring (date-time)The date and time of the end of the last successful version update for the cluster.
locationstringThe geo-location where the resource lives. Required.
managedCredentialsarrayThe list of credentials that are managed for the cluster and can be rotated on-demand.
managedResourceGroupConfigurationobjectThe configuration of the managed resource group associated with the resource.
manualActionCountintegerThe count of Manual Action Taken (MAT) events that have not been validated.
networkFabricIdstringThe resource ID of the Network Fabric associated with the cluster. Required.
provisioningStatestringThe provisioning state of the cluster. Known values are: "Succeeded", "Failed", "Canceled", "Accepted", "Validating", and "Updating". (Succeeded, Failed, Canceled, Accepted, Validating, Updating)
runtimeProtectionConfigurationobjectThe settings for cluster runtime protection.
secretArchiveobjectThe configuration for use of a key vault to store secrets for later retrieval by the operator.
secretArchiveSettingsobjectThe settings for the secret archive used to hold credentials for the cluster.
supportExpiryDatestringThe support end date of the runtime version of the cluster.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
updateStrategyobjectThe strategy for updating the cluster.
vulnerabilityScanningSettingsobjectThe settings for how security vulnerability scanning is applied to the cluster.
workloadResourceIdsarrayThe list of workload resource IDs that are hosted within this cluster.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, cluster_name, subscription_idGet properties of the provided cluster.
list_by_resource_groupselectresource_group_name, subscription_id$top, $skipTokenGet a list of clusters in the provided resource group.
list_by_subscriptionselectsubscription_id$top, $skipTokenGet a list of clusters in the provided subscription.
create_or_updateinsertresource_group_name, cluster_name, subscription_id, location, properties, extendedLocationCreate a new cluster or update the properties of the cluster if it exists.
updateupdateresource_group_name, cluster_name, subscription_idPatch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently.
create_or_updatereplaceresource_group_name, cluster_name, subscription_id, location, properties, extendedLocationCreate a new cluster or update the properties of the cluster if it exists.
deletedeleteresource_group_name, cluster_name, subscription_idDelete the provided cluster.
continue_update_versionexecresource_group_name, cluster_name, subscription_idTrigger the continuation of an update for a cluster with a matching update strategy that has paused after completing a segment of the update.
deployexecresource_group_name, cluster_name, subscription_idDeploy the cluster using the rack configuration provided during creation.
inspectexecresource_group_name, cluster_name, subscription_idTrigger an inspection of the cluster to perform validation and optional corrective actions based on the supplied additional actions and filters.
rotate_credentialexecresource_group_name, cluster_name, subscription_id, credentialsRotate the specified cluster credential.
scan_runtimeexecresource_group_name, cluster_name, subscription_idTriggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with the cluster configuration.
update_versionexecresource_group_name, cluster_name, subscription_id, targetClusterVersionUpdate the version of the provided cluster to one of the available supported versions.

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
$skipTokenstringThe opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. Default value is None.
$topintegerThe maximum number of resources to return from the operation. Example: '$top=10'. Default value is None.

SELECT examples

Get properties of the provided cluster.

SELECT
id,
name,
actionStates,
aggregatorOrSingleRackDefinition,
analyticsOutputSettings,
analyticsWorkspaceId,
availableUpgradeVersions,
clusterCapacity,
clusterConnectionStatus,
clusterExtendedLocation,
clusterLocation,
clusterManagerConnectionStatus,
clusterManagerId,
clusterServicePrincipal,
clusterType,
clusterVersion,
commandOutputSettings,
computeDeploymentThreshold,
computeRackDefinitions,
detailedStatus,
detailedStatusMessage,
etag,
extendedLocation,
hybridAksExtendedLocation,
identity,
kind,
lastSuccessfulVersionUpdateTime,
location,
managedCredentials,
managedResourceGroupConfiguration,
manualActionCount,
networkFabricId,
provisioningState,
runtimeProtectionConfiguration,
secretArchive,
secretArchiveSettings,
supportExpiryDate,
systemData,
tags,
type,
updateStrategy,
vulnerabilityScanningSettings,
workloadResourceIds
FROM azure_extras.network_cloud.clusters
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a new cluster or update the properties of the cluster if it exists.

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

UPDATE examples

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently.

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

REPLACE examples

Create a new cluster or update the properties of the cluster if it exists.

REPLACE azure_extras.network_cloud.clusters
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}',
identity = '{{ identity }}',
kind = '{{ kind }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND properties = '{{ properties }}' --required
AND extendedLocation = '{{ extendedLocation }}' --required
RETURNING
id,
name,
etag,
extendedLocation,
identity,
kind,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete the provided cluster.

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

Lifecycle Methods

Trigger the continuation of an update for a cluster with a matching update strategy that has paused after completing a segment of the update.

EXEC azure_extras.network_cloud.clusters.continue_update_version 
@resource_group_name='{{ resource_group_name }}' --required,
@cluster_name='{{ cluster_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"machineGroupTargetingMode": "{{ machineGroupTargetingMode }}",
"safeguardMode": "{{ safeguardMode }}"
}'
;