I need help in changing the default working directory for my Azure CLI Task. The below code is not working for me.
- task: AzureCLI@2
displayName: 'dbt debug'
inputs:
azureSubscription: XXXX
ScriptType: bash
scriptLocation: inlineScript
inlineScript: |
dbt --version
dbt debug --profiles-dir $(location)
workingDirectory: '$(System.DefaultWorkingDirectory)'
It throws the error - workingDirectory:: command not found.
It throws the error - workingDirectory:: command not found.
It seems that this is a YAML format issue.
You can try the sample:
- task: AzureCLI@2
displayName: 'dbt debug'
inputs:
azureSubscription: XXXX
ScriptType: bash
scriptLocation: inlineScript
workingDirectory: '$(System.DefaultWorkingDirectory)'
inlineScript: |
dbt --version
dbt debug --profiles-dir $(location)
Here is the doc about Azure CLI task