in a bicep file it fails the analyzing, but I can deploy it to Azure the correct way.
Error: Unable to expand resources because the source file '/home/runner/work/iac/iac/Azure/Templates/ALZ/LandingZones/Corp/alz-it-eu/avd.bicep' was not valid. An error occurred evaluating expression '[if(parameters('useSharedImage'), json(format('{{''id'': ''{0}''}}', parameters('avdImageTemplataDefinitionId'))), parameters('marketPlaceGalleryWindows'))]' line 21507. Invalid character after parsing property name. Expected ':' but got: i. Path '', line 1, position 3.
Description of the issue
when using:
in a bicep file it fails the analyzing, but I can deploy it to Azure the correct way.
Error: Unable to expand resources because the source file '/home/runner/work/iac/iac/Azure/Templates/ALZ/LandingZones/Corp/alz-it-eu/avd.bicep' was not valid. An error occurred evaluating expression '[if(parameters('useSharedImage'), json(format('{{''id'': ''{0}''}}', parameters('avdImageTemplataDefinitionId'))), parameters('marketPlaceGalleryWindows'))]' line 21507. Invalid character after parsing property name. Expected ':' but got: i. Path '', line 1, position 3.
To Reproduce
https://github.com/Azure/avdaccelerator/blob/main/workload/bicep/avd-modules/avd-session-hosts.bicep
Expected behaviour
should not error out on this
[info] Using repository: PSGallery [info] Installing PSRule: 2.3.2
Captured output from
$PSVersionTable
:Additional context