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

Gerald Mull 1 Reputation point
2021-08-19T19:11:38.743+00:00

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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,257 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 18,771 Reputation points
    2021-08-23T05:39:07.263+00:00

    @Gerald Mull 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
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.