Skip to content

[bug] az iot hub state export fails while saving exported data to the file #738

@LucasWBritz

Description

@LucasWBritz

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
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions