how can i log into the az cli from a devops pipeline?

No, you don’t need az devops login. What you need is Azure CLI Task:

- task: [email protected]
  displayName: Azure CLI
  inputs:
    azureSubscription: <Name of the Azure Resource Manager service connection>
    scriptType: ps
    scriptLocation: inlineScript
    inlineScript: |
      az --version
      az account show

but then you don’t have to do any login. Please call there your az aks show --name census-k8s --resource-group Census

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top