Hi @MT ,
Thanks for reaching out to Microsoft QnA Platform. Apologies for he delay in response.
From the above commands posted by you, I can see the password is stored in two different variables for both the commands, one is $SP_PASSWD, and the other one is $SP_PASSWORD. Could you please check and verify if you are providing the the variable name correctly.
Also, I checked and the helm registry login works fine. Please see the below output.
~$ echo -n "$password" | helm registry login $registry -u $username --password-stdin
Login Succeeded
~$ helm version
version.BuildInfo{Version:"v3.8.0", GitCommit:"d14138609b01886f544b2025f5000351c9eb092e", GitTreeState:"clean", GoVersion:"go1.17.5"
Please let me know if the issue is still persisting and if the my above response helps.
----------------------------
Please don't forget to "Accept as Answer" and "Upvote" and if you think my response was helpful, so that it can help others in the community looking for help on similar issues.