CmdID / az / az aks / az aks bastion
az aks bastion tunnel
Connect to a managed Kubernetes cluster using Azure Bastion. Azure CLI extensions reference
5 options Its page in the Azure CLI extensions reference
Options
--adminUse the cluster admin credentials to connect to the bastion.--bastionThe name or resource ID of a pre-deployed Bastion resource configured to connect to the current AKS cluster.--kubeconfig-pathPath to an existing kubeconfig file to use.--portThe local port number used for the bastion connection.--yes, -yDo not prompt for confirmation.