helm registry login --password-stdin in Azure DevOps pipeline

0 votes

- task: AzureCLI@2

  inputs:

    azureSubscription: $(azureSubscriptionForACR)

    scriptType: 'ps'

    scriptLocation: 'inlineScript'

    inlineScript: |

      $password = az acr credential show -n $(azureAcrName) --query passwords[0].value

      helm registry login $(azureContainerRegistry) --username $(azureAcrUserName) --password $password

I tried to log in to my private ACR using Azure DevOps pipeline using this method and it works but it shows a warning

"WARNING: Using --password via the CLI is insecure. Use --password-stdin."

please suggest a way to avoid this warning.

I am using the new helm 3.8.0.

Mar 23 in Other DevOps Questions by Kichu
• 16,250 points
40 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Other DevOps Questions

0 votes
0 answers
0 votes
1 answer
0 votes
0 answers
0 votes
0 answers
0 votes
1 answer

Fetch AzureVm name from private IP in powershell

If by a better way you mean ...READ MORE

answered Jul 17, 2018 in DevOps on Cloud by DareDev
• 6,890 points
1,129 views
0 votes
1 answer

How do I use Powershell to create an Azure Web App that runs on Linux?

Try the command below: New-AzureRmResource -ResourceGroupName <ResourceGroupName> -Location ...READ MORE

answered Mar 25 in Azure by Edureka
• 5,460 points
34 views
0 votes
0 answers
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP