Error: ERROR: 'bytes' object has no attribute 'get' with azure bicep

Uday Kiran Reddy (ureddy) 86 Reputation points
2022-04-01T16:12:15.457+00:00

When trying to run azure bicep deployment, I am getting error as

Error: ERROR: 'bytes' object has no attribute 'get'

Run azure/arm-deploy@v1
Validating template...
Creating deployment...
Error: ERROR: 'bytes' object has no attribute 'get'

Error: Deployment failed.

And sometimes getting this.

Validating template...
Creating deployment...
Error: ERROR: {"error":{"code":"InternalServerError","message":"Encountered internal server error. Diagnostic information: timestamp '20220401T161715Z', subscription id '***', tracking id '89a94ed9-ccee-45d0-856d-c16258e886a5', request correlation id '89a94ed9-ccee-45d0-856d-c16258e886a5'."}}

Error: Deployment failed.

Please suggest how to fix that?

Azure Lab Services
Azure Lab Services
An Azure service that is used to set up labs for classrooms, trials, development and testing, and other scenarios.
295 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 19,782 Reputation points Microsoft Employee
    2022-04-05T21:48:59.953+00:00

    Thanks for posting your query.

    Issue Summary:
    You are seeing the error : 'bytes' object has no attribute 'get' when trying to run azure bicep deployment.

    Recommended solution:
    We have encountered this issue before and looks like updating to the latest CLI version fixed the issue.
    Could you please let me know the AzCLI version you are using? Also, please run the same above command with the parameter --debug and share the results.

    Let me know and I can further investigate. Thanks.


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.