- 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.