-
Notifications
You must be signed in to change notification settings - Fork 817
Description
Bicep version
0.41.2
Describe the bug
In powershell .ps1 script when setting
az config set bicep.use_binary_from_path=false --only-show-errors
az config set bicep.check_version=True --only-show-errors
$deployment_output = az deployment group create....................
Then in .bicep file, using this at the end
output containerapp_output object = containerAppResource
output fqdn_output string = containerAppResource.properties.configuration.ingress.fqdn
In powershell .ps1 script after deployment is done:
$fqdn = ($deployment_output | ConvertFrom-Json).properties.outputs.fqdn_output.value
ERROR:
$fqdn = ($deployment_output | ConvertFrom-Json).properties.outputs.fq …
| ~~~~~~~~~~~~~~~~
| Conversion from JSON failed with error: Unexpected character encountered while parsing value: B. Path '', line 0,
| position 0.
Because the containerapp_output array gets an added string that breaks the JSON as shown below.
The string below gets inserted into the JSON returned by az deployment group create.
It doesn't belong in that JSON string.
This error started with bicep 0.41.2
[
"Bicep CLI is already installed at 'C:\Users\user\.azure\bin\bicep.exe'. Skipping installation as no specific version was requested.",
"{",
To Reproduce
In description
Additional context
This only happens when the value = false below.
az config set bicep.use_binary_from_path=false --only-show-errors
Metadata
Metadata
Assignees
Labels
Type
Projects
Status