question

GeraldMull-9259 avatar image
0 Votes"
GeraldMull-9259 asked SwathiDhanwada-MSFT answered

Bicep deployment failing on certain environments: New-AzResourceGroupDeployment : Unexpected character encountered while parsing value: p. Path '', line 2, position 0.

I've encountered an issue within a few development environments where the bicep deployments have begun to fail with the following error:

Error:
New-AzResourceGroupDeployment : Unexpected character encountered while parsing value: p. Path '', line 2, position 0.

Question:
Is this a know issue and is there a path to reset those environments?

azure-automation
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SwathiDhanwada-MSFT avatar image
0 Votes"
SwathiDhanwada-MSFT answered

@GeraldMull-9259 Welcome to Microsoft Q & A Community Forum. A similar question has been asked on GitHub Channel. Based on the discussion , seems due to difference in version of PowerShell and Bicep, the mentioned error is prompted. Kindly check if its the case with your issue as well.

Reference Link : https://github.com/Azure/bicep/discussions/3140

If this is not the case, kindly share below information for further analysis

  • Az CLI version or PowerShell version

  • Bicep version

  • Template that you are trying to deploy

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.