I have a Powershell task as such in my pipeline:
- task: PowerShell@2 inputs: targetType: \'inline\' script: | az login --service-principal --