Problem
I’d like to use simple bicep for Azure Storage deployment. However, I’m receiving odd errors.
Could it be that there is compatibility issues on Az or powershell? What commands solve the issue.
New-AzResourceGroupDeployment -TemplateFile main.bicep
New-AzResourceGroupDeployment -TemplateFile main.bicep
New-AzResourceGroupDeployment : Unexpected character encountered while parsing value: r. Path '', line 0, position 0.
+ New-AzResourceGroupDeployment -TemplateFile main.bicep
get-installedModule -Name Az
Version Name Repository Description
------- ---- ---------- -----------
3.7.0 Az PSGallery Microsoft Azure PowerShell - Cmdlets to manage resources in Azu...
az version
{
"azure-cli": "2.4.0",
"azure-cli-command-modules-nspkg": "2.0.3",
"azure-cli-core": "2.4.0",
"azure-cli-nspkg": "3.0.4",
"azure-cli-telemetry": "1.0.4",
"extensions": {}
}
I also tried CLI on the command line, but received the following error:
az deployment group create --resource-group kensbicep-rg --template-file main.bicep
Expecting value: line 1 column 1 (char 0)
Asked by Kenny_I
Post is based on https://stackoverflow.com/questions/70277185/deployment-of-bicep-fails-on-visual-studio-code-unexpected-character-encounter