Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
LucasWBritz opened this issue Apr 2, 2025 · 2 comments

Comments

@LucasWBritz
Copy link

LucasWBritz commented Apr 2, 2025

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

@LucasWBritz
Copy link
Author

Adding versions:

{
  "azure-cli": "2.71.0",
  "azure-cli-core": "2.71.0",
  "azure-cli-telemetry": "1.1.0",
  "extensions": {
    "azure-iot": "0.25.0",
    "ssh": "2.0.6"
  }
}

@vilit1
Copy link
Contributor

vilit1 commented Apr 24, 2025

Hi @LucasWBritz ,

We will look into allowing you to save a partial export to a file and also throwing the error more cleanly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants