Azure / AKS-Construction

Accelerate your onboarding to AKS with; Helper Web App, bicep templating and CI/CD samples. Flexible & secure AKS baseline implementations in a Microsoft + community maintained reference implementation.

Home Page:https://azure.github.io/AKS-Construction/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: Always include get credentials command when provisioning via bash or PowerShell

pjlewisuk opened this issue · comments

Is your feature request related to a problem? Please describe.

When provisioning an AKS cluster with add-ons that are deployed via Helm charts, the az aks get-credentials command is included in the shell script or PowerShell script, as the user has to connect to the cluster to perform the final steps of installing those add-ons. This doesn't happen if no add-ons are selected, and the script stops after the command to provision the AKS cluster.

Describe the solution you'd like
It would be useful to always include the az aks get-credentials command with these scripts, or at least include an option to generate them, so users don't have to craft them manually or go looking for them in the Azure portal. It would be especially useful if creating multiple clusters in a short period of time, knowing that the cluster credentials are automatically added to your kubectl contexts.

Describe alternatives you've considered
Currently, I have to either craft these manually or go into the AKS portal and copy the command from the "Connect" button on the AKS cluster blade.

Additional context
Add any other context or screenshots about the feature request here.