sometimes you need to access AKS worker node to troubelshoot, but how to do that with AKS
Run the below command
kubectl get nodes
Output will give an idea about the worker nodes you have
Run a container image on the node by issuing the kubectl debug command in order to establish a connection to it. The following command begins the process of connecting to a privileged container that has been started on your node.
kubectl debug node/<node-name-you-wish-to-connect> -it --image=mcr.microsoft.com/dotnet/runtime-deps:6.0