'az cli deployment fails with Python error

I am deploying ADF linked templates from ADLS through GitHub Actions and pipeline fails withy generic Python error:

ERROR: 'str' object has no attribute 'get'
INFO: Command ran in 1.201 seconds (init: 0.389, invoke: 0.812)
Error: Process completed with exit code 1.

Deployment command is:

az deployment group create
--resource-group $ADF_RESOURCE_GROUP
--name $ADF_DEPLOYMENT_NAME
--what-if
--what-if-result-format ResourceIdOnly
--template-uri $TEMPLATE_URI
--query-string $SAS_TOKEN
--parameters factoryName=$FACTORY_NAME

What-if part is only for debugging purposes.

Here is official documentation



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source