Azure Storage Management SDK for JavaScript

Manage your Azure Storage resources using the official JavaScript SDK.

Introduction

The Azure Storage Management SDK for JavaScript provides a comprehensive set of APIs to interact with your Azure Storage accounts. This SDK allows you to create, manage, and monitor your storage resources programmatically, automating tasks and integrating your applications with Azure Storage. It supports various storage services including Blob Storage, Queue Storage, Table Storage, and File Storage.

Key Features

Getting Started

To get started, you'll need to install the SDK and configure your authentication.

Installation

              npm install @azure/storage-js
            

Example Code

              
                const StorageManagementClient = require("@azure/storage-js");

                async function main() {
                  try {
                    const storageAccountClient = new StorageManagementClient("", {
                        authType: "MSIdentity"
                    });

                    const result = await storageAccountClient.listAccounts();
                    console.log(result);

                  } catch (err) {
                    console.error("Error:", err);
                  }
                }

                main();