Azure Kubernetes Service · Arazzo Workflow
Azure Kubernetes Service Provision Cluster and Fetch Credentials
Version 1.0.0
Create a managed AKS cluster, poll until it is provisioned, then retrieve admin kubeconfig.
Provider
Workflows
provision-cluster-and-fetch-credentials
Create an AKS managed cluster, wait for it to finish provisioning, and pull admin credentials.
Issues a ManagedClusters_CreateOrUpdate, then loops on ManagedClusters_Get until provisioningState is Succeeded, and finally calls ManagedClusters_ListClusterAdminCredentials to obtain the kubeconfig.
1
createCluster
ManagedClusters_CreateOrUpdate
Submit a managed cluster create-or-update request. ARM wraps cluster configuration under a properties object and returns 201 Created for an asynchronous provision.
2
pollCluster
ManagedClusters_Get
Read the cluster and inspect provisioningState. While the cluster is still Creating the flow loops back to this step; once it reports Succeeded the flow advances to retrieve credentials.
3
listAdminCredentials
ManagedClusters_ListClusterAdminCredentials
List the cluster admin credentials. The response carries a kubeconfigs array whose first entry holds the base64-encoded kubeconfig for the new cluster.