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

NameDatatypeDescription
aad_profiletextfield from the properties object
addon_profilestextfield from the properties object
agent_pool_profilestextfield from the properties object
api_server_access_profiletextfield from the properties object
auto_scaler_profiletextfield from the properties object
auto_upgrade_profiletextfield from the properties object
azure_monitor_profiletextfield from the properties object
azure_portal_fqdntextfield from the properties object
current_kubernetes_versiontextfield from the properties object
disable_local_accountstextfield from the properties object
disk_encryption_set_idtextfield from the properties object
dns_prefixtextfield from the properties object
enable_pod_security_policytextfield from the properties object
enable_rbactextfield from the properties object
extended_locationtextfield from the properties object
fqdntextfield from the properties object
fqdn_subdomaintextfield from the properties object
http_proxy_configtextfield from the properties object
identitytextIdentity for the managed cluster.
identity_profiletextfield from the properties object
ingress_profiletextfield from the properties object
kubernetes_versiontextfield from the properties object
linux_profiletextfield from the properties object
locationtextThe geo-location where the resource lives
max_agent_poolstextfield from the properties object
metrics_profiletextfield from the properties object
network_profiletextfield from the properties object
node_resource_grouptextfield from the properties object
oidc_issuer_profiletextfield from the properties object
pod_identity_profiletextfield from the properties object
power_statetextfield from the properties object
private_fqdntextfield from the properties object
private_link_resourcestextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
resource_uidtextfield from the properties object
security_profiletextfield from the properties object
service_mesh_profiletextfield from the properties object
service_principal_profiletextfield from the properties object
skutextThe SKU of a Managed Cluster.
storage_profiletextfield from the properties object
subscriptionIdtextfield from the properties object
support_plantextfield from the properties object
tagstextResource tags.
upgrade_settingstextfield from the properties object
windows_profiletextfield from the properties object
workload_auto_scaler_profiletextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionId
listSELECTsubscriptionId
list_by_resource_groupSELECTresourceGroupName, subscriptionId
create_or_updateINSERTresourceGroupName, resourceName, subscriptionId
deleteDELETEresourceGroupName, resourceName, subscriptionId
abort_latest_operationEXECresourceGroupName, resourceName, subscriptionIdAborts 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.
reset_aad_profileEXECresourceGroupName, resourceName, subscriptionIdWARNING: This API will be deprecated. Please see AKS-managed Azure Active Directory integration to update your cluster with AKS-managed Azure AD.
reset_service_principal_profileEXECresourceGroupName, resourceName, subscriptionId, data__clientIdThis action cannot be performed on a cluster that is not using a service principal
rotate_cluster_certificatesEXECresourceGroupName, resourceName, subscriptionIdSee Certificate rotation for more details about rotating managed cluster certificates.
rotate_service_account_signing_keysEXECresourceGroupName, resourceName, subscriptionId
run_commandEXECresourceGroupName, resourceName, subscriptionId, data__commandAKS will create a pod to run the command. This is primarily useful for private clusters. For more information see AKS Run Command.
startEXECresourceGroupName, resourceName, subscriptionIdSee starting a cluster for more details about starting a cluster.
stopEXECresourceGroupName, resourceName, subscriptionIdThis 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.
update_tagsEXECresourceGroupName, resourceName, subscriptionId

SELECT examples

SELECT
aad_profile,
addon_profiles,
agent_pool_profiles,
api_server_access_profile,
auto_scaler_profile,
auto_upgrade_profile,
azure_monitor_profile,
azure_portal_fqdn,
current_kubernetes_version,
disable_local_accounts,
disk_encryption_set_id,
dns_prefix,
enable_pod_security_policy,
enable_rbac,
extended_location,
fqdn,
fqdn_subdomain,
http_proxy_config,
identity,
identity_profile,
ingress_profile,
kubernetes_version,
linux_profile,
location,
max_agent_pools,
metrics_profile,
network_profile,
node_resource_group,
oidc_issuer_profile,
pod_identity_profile,
power_state,
private_fqdn,
private_link_resources,
provisioning_state,
public_network_access,
resourceGroupName,
resourceName,
resource_uid,
security_profile,
service_mesh_profile,
service_principal_profile,
sku,
storage_profile,
subscriptionId,
support_plan,
tags,
upgrade_settings,
windows_profile,
workload_auto_scaler_profile
FROM azure.aks.vw_managed_clusters
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.aks.managed_clusters (
resourceGroupName,
resourceName,
subscriptionId,
sku,
extendedLocation,
identity,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ sku }}',
'{{ extendedLocation }}',
'{{ identity }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

DELETE example

Deletes the specified managed_clusters resource.

/*+ delete */
DELETE FROM azure.aks.managed_clusters
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';