Skip to main content

managed_clusters_cluster_user_credentials

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

Overview

Namemanaged_clusters_cluster_user_credentials
TypeResource
Idazure.aks.managed_clusters_cluster_user_credentials

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
kubeconfigsarrayBase64-encoded Kubernetes configuration file.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, resourceGroupName, resourceNameserver-fqdn, format

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.
formatstringOnly apply to AAD clusters, specifies the format of returned kubeconfig. Format 'azure' will return azure auth-provider kubeconfig; format 'exec' will return exec format kubeconfig, which requires kubelogin binary in the path.
server-fqdnstringserver fqdn type for credentials to be returned

SELECT examples

OK

SELECT
kubeconfigs
FROM azure.aks.managed_clusters_cluster_user_credentials
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND resourceName = '{{ resourceName }}' -- required
AND server-fqdn = '{{ server-fqdn }}'
AND format = '{{ format }}'
;