Skip to main content

managed_clusters

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

Overview

Namemanaged_clusters
TypeResource
Idazure.aks.managed_clusters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
extendedLocationobjectThe extended location of the Virtual Machine.
identityobjectThe identity of the managed cluster, if configured.
locationstringThe geo-location where the resource lives
propertiesobjectProperties of a managed cluster.
skuobjectThe managed cluster SKU.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, resourceName
list_by_resource_groupselectsubscriptionId, resourceGroupName
listselectsubscriptionId
create_or_updateinsertsubscriptionId, resourceGroupName, resourceName
deletedeletesubscriptionId, resourceGroupName, resourceName
update_tagsexecsubscriptionId, resourceGroupName, resourceName
reset_service_principal_profileexecsubscriptionId, resourceGroupName, resourceName, clientIdThis action cannot be performed on a cluster that is not using a service principal
reset_aad_profileexecsubscriptionId, resourceGroupName, resourceNameWARNING: This API will be deprecated. Please see AKS-managed Azure Active Directory integration to update your cluster with AKS-managed Azure AD.
rotate_cluster_certificatesexecsubscriptionId, resourceGroupName, resourceNameSee Certificate rotation for more details about rotating managed cluster certificates.
abort_latest_operationexecsubscriptionId, resourceGroupName, resourceNameAborts the currently running operation on the managed cluster. The Managed Cluster will be moved to a Canceling state and eventually to a Canceled state when cancellation finishes. If the operation completes before cancellation can take place, a 409 error code is returned.
rotate_service_account_signing_keysexecsubscriptionId, resourceGroupName, resourceName
stopexecsubscriptionId, resourceGroupName, resourceNameThis can only be performed on Azure Virtual Machine Scale set backed clusters. Stopping a cluster stops the control plane and agent nodes entirely, while maintaining all object and cluster state. A cluster does not accrue charges while it is stopped. See stopping a cluster for more details about stopping a cluster.
startexecsubscriptionId, resourceGroupName, resourceNameSee starting a cluster for more details about starting a cluster.
run_commandexecsubscriptionId, resourceGroupName, resourceName, commandAKS will create a pod to run the command. This is primarily useful for private clusters. For more information see AKS Run Command.

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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
resourceNamestringThe name of the managed cluster resource.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

OK

SELECT
extendedLocation,
identity,
location,
properties,
sku,
tags
FROM azure.aks.managed_clusters
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND resourceName = '{{ resourceName }}' -- required
;

INSERT examples

No description available.

INSERT INTO azure.aks.managed_clusters (
data__sku,
data__extendedLocation,
data__identity,
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
resourceName
)
SELECT
'{{ sku }}',
'{{ extendedLocation }}',
'{{ identity }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ resourceName }}'
RETURNING
extendedLocation,
identity,
location,
properties,
sku,
tags
;

DELETE examples

No description available.

DELETE FROM azure.aks.managed_clusters
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND resourceName = '{{ resourceName }}' --required
;

Lifecycle Methods

OK

EXEC azure.aks.managed_clusters.update_tags 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@resourceName='{{ resourceName }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;