question

AdamB-4111 avatar image
0 Votes"
AdamB-4111 asked SatishBoddu-MSFT commented

[SOLVED] Bad Request when trying to create new product in Azure Sphere (BadRequest)

Hi Folks, I am getting an error when I am trying to create a new product for an azure sphere tenant.

I have a product called "Blinky" but I want to create another product which is code for a temperature/humidity sensor (SHT31).

However, when I try to create a new product in both the CLI and VS-Code I get the same "BadRequest" error.

What does the "BadRequest" response mean? I'm pretty sure I'm following the syntax requested.


Here is the attempt with the Azure Sphere CLI
133677-new-product-in-azsphere-bad-request.png


Here is the same attempt with VS Code

133648-vs-code-start.png
133678-vs-code-error.png


azure-sphere
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

AdamB-4111 avatar image
2 Votes"
AdamB-4111 answered SatishBoddu-MSFT commented

I found the root cause!

The name I was trying to use for the product "SHT31_Sensor" is not allowed.

When I changed the name to "temp" it worked

I am pretty sure the "_" underscore was the issue.

· 1
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.

Thank you @AdamB-4111 for sharing your experience on this forum.

0 Votes 0 ·