I have an Azure CLI task which references a PowerShell script (via build artifact) running az
commands. Most of these commands work successfully, but when attempting to execute the following command:
az appconfig kv import --name $resourceName -s file --path appconfig.json --format json
I've noticed that the information was not present against the Azure resource and the log file has "File is not available".
I must be referencing the file incorrectly from the build artifact but if anyone could provide some clarity around this that would be great.
$(System.ArtifactsDirectory)/xxx
to the path?System.ArtifactsDirectory
: The directory to which artifacts are downloaded during deployment of a release. In addition , you can setsystem.debug=true
to get more detailed log and share the error message here. – Hugh Lin