Forum Discussion
LeonBam
Feb 09, 2023Copper Contributor
Files from IoTHub in storage are not JSON
Hello, In my IotHub, I defined entrypoint for storage. While I see that the files are arrive successfully, the type of them is not JSON and I defied. The content is JSON, but the extension is emp...
LeonBam
Feb 10, 2023Copper Contributor
I will add images to clarify my case:
Here is one definition:
Here what I see now:
I am missing the json extension, whereas the content is really new-line delimited json, same as above.
LeonBam
Feb 10, 2023Copper Contributor
I found what I defined wrong. When using az cli, for creating route endpoint
az iot hub routing-endpoint create , the --file-name-format should contains also the extension.
I expected from it to use the --encoding parameter for this, but I had to add it myself.
az iot hub routing-endpoint create , the --file-name-format should contains also the extension.
I expected from it to use the --encoding parameter for this, but I had to add it myself.