Describe the bug
We executed the following command:
az iot hub state export --hub-name IotHubName --state-file ./IotHubName -state.json
The whole process took more than 3 hours, and +or- 53K devices got exported.
Once all of them were exported, a python exception was thrown while saving the state to the file.
All the exported data was lost.
Expected behavior
Exported data is saved.
Screenshots
