Question: 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)

Answer: 
The easiest solution may be to flatten the different split characters to a single one:

```py
with open("example.dat", "r") as fh:
    lines = []
    for line in fh:
        lines.append( line.strip().replace("[", ",").replace("]", ",").split(",") )

```
Regex is pretty useful in such cases:

```
import re
x = 'New York City, NY[40,74]11000000'
res = re.split(', |\[|\]|,', x)
print(res)
#####
['New York City', 'NY', '40', '74', '11000000']

```