I created the aks cluster with azure service principal id and i provided the contributer role according to the subscription and resource group.

For each and every time when i executed the pipeline the sign-in is asking and after i authenticated it is getting the data.

Also the "kubectl get" task is taking more than 30 min and is getting "Kubectl Server Version: Could not find kubectl server version"

*To sign in, use a web browser to open the page <https://microsoft.com/devicelogin> and enter the code CRA2XssWEXUUA to authenticate*

Thanks in advance

[![enter image description here](https://i.stack.imgur.com/wxXk9.png)](https://i.stack.imgur.com/wxXk9.png)