azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Possible to export from azure portal and ARM?

Open sergiosolorzano opened this issue 2 years ago • 4 comments

Hi, is it possible to export IoT Hub device identities from Azure portal and ARM? If so a link to the documentation would be much appreciated. Thank you! [Enter feedback here]


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

sergiosolorzano avatar Dec 08 '22 16:12 sergiosolorzano

@sergiosolorzano Thanks for your feedback! We will investigate and update as appropriate.

AjayBathini-MSFT avatar Dec 08 '22 17:12 AjayBathini-MSFT

@sergiosolorzano I haven't found the documentation using Azure portal and ARM. If you are ok, Device identities can also be exported and imported from an IoT Hub via the Service API via either the REST API or one of the IoT Hub Service SDKs. See Iot Hub Resource

Using CLI : az iot hub device-identity export

Using PowerShell : New-AzIotHubExportDevice

Do let us know if it helps.

Also, adding @kgremban for further updates.

AshokPeddakotla-MSFT avatar Dec 13 '22 02:12 AshokPeddakotla-MSFT

Thank you @AshokPeddakotla-MSFT

sergiosolorzano avatar Dec 13 '22 05:12 sergiosolorzano

@sergiosolorzano You are welcome! Let us know if you have any further queries.

AshokPeddakotla-MSFT avatar Dec 14 '22 07:12 AshokPeddakotla-MSFT

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

AshokPeddakotla-MSFT avatar Dec 15 '22 02:12 AshokPeddakotla-MSFT

SELECT COUNT() as totalNumberOfDevices FROM devices

Santiagosaiz avatar Dec 15 '22 02:12 Santiagosaiz