Вы можете использовать Лазурный узел sdk .Вот фрагмент о том, как экспортировать устройства в Blob:
registry.exportDevicesToBlob(outputSasUrl, false, function (error, result) {
if (error) {
console.error('Could not create export job: ' + error.message);
} else {
console.log('--------------\r\nDevices Export Job Identifier:--------------\r\n' + result);
var jobId = result.jobId;
var interval = setInterval(function () {
registry.getJob(jobId, function (error, result) {
if (error) {
console.error('Could not get job status: ' + error.message + ' : ' + error.responseBody);
} else {
console.log('--------------\r\njob ' + jobId + ' status:\r\n--------------\r\n' + result);
var status = result.status;
if (status === "completed") {
clearInterval(interval);
}
}
});
}, 500);
}
});