Builderoom

September 28, 2026

View repo

A collection of JavaScript/TypeScript libraries for accessing and managing Azure services in Node.js and browser environments.

MIT
最小示例代码python
import { SecretClient } from "@azure/keyvault-secrets";
import { ManagedIdentityCredential } from "@azure/identity";

function removeUserAgentPolicy() {
  return {
    name: "removeUserAgentPolicy",
    sendRequest(request, next) {
      request.headers.delete("User-Agent");
      return next(request);
    },
  };
}

const credential = new ManagedIdentityCredential();
const secretClient = new SecretClient("https://your-keyvault-name.vault.azure.net", credential, {
  additionalPolicies: [
    {
      position: "perCall",
      policy: removeUserAgentPolicy(),
    },
  ],
});

Product facts

Type
API, SDK & Library
Category
Development & Engineering › Cloud Infrastructure
Pricing
Open source
License
MIT
Launched
Sep 28, 2026
Listed
Sep 28, 2026
Website
github.com

Overview

GitHubGitHub

Azure SDK for JavaScript is the official SDK repository maintained by Microsoft for interacting with Azure services in Node.js and browser environments. It contains libraries covering a wide range of Azure services, written in TypeScript and licensed under MIT.

Library Categories

Packages in the SDK fall into two categories:

  • Client libraries: Used to consume and operate existing Azure resources. Most client libraries follow the Azure SDK Design Guidelines for JavaScript & TypeScript, sharing core features such as retries, logging, transport protocols, and authentication protocols.
  • Management libraries: Used to provision and manage Azure resources via Azure Resource Manager (ARM). These packages are named with the @azure/arm- prefix and are auto-generated from Swagger files. Newer management libraries also follow the design guidelines, offering Azure Identity integration, an HTTP Pipeline with custom policies, error handling, distributed tracing, and more.

Key Capabilities

  • Supports both Node.js and browser runtime environments.
  • Unified authentication experience via the Azure Identity library.
  • Configurable HTTP Pipeline supporting custom policy injection.
  • Built-in retry mechanisms, logging, and distributed tracing.
  • Telemetry collection enabled by default; can be disabled at client construction time via a custom policy.

Target Audience

Ideal for developers who need to call Azure service APIs or manage Azure resources in JavaScript or TypeScript projects. Each service package has its own README and code samples under the /sdk directory, and is also available on npm. API reference documentation is provided for the latest version publicly and for historical versions by release.

Key features

  • Node.js and Browser Support: The same SDK runs in both Node.js server-side and browser client environments.
  • Client Libraries: Consume and operate existing Azure resources following unified design guidelines.
  • Management Libraries: Provision and manage Azure resources via ARM, with package names starting with @azure/arm-.
  • Azure Identity Integration: New management and client libraries share the Azure Identity library for authentication.
  • HTTP Pipeline: A configurable HTTP pipeline supporting custom policies for request interception and processing.
  • Retry and Error Handling: Built-in retry mechanisms and unified error handling capabilities.
  • Distributed Tracing: Supports distributed tracing for monitoring and debugging cross-service calls.
  • Telemetry Control: Usage telemetry is collected by default and can be disabled by removing the User-Agent via a custom policy.
  • Written in TypeScript: The entire SDK is developed in TypeScript and provides type definitions.

Releases

Notify me

Initial · Azure SDK for JavaScript

Q&A

What is the difference between client libraries and management libraries?AI-generated
Client libraries are used to consume and operate Azure resources that already exist. Management libraries are used to provision and manage Azure resources via Azure Resource Manager (ARM), and their package names start with @azure/arm-.
How do I disable telemetry collection in the SDK?AI-generated
Telemetry is enabled by default. When creating a client, you can pass a custom HTTP pipeline policy via the additionalPolicies option that removes the User-Agent header from requests to disable telemetry. This must be done for every new client instance.
What should I do if I encounter authentication issues after upgrading a management library?AI-generated
This may happen if you upgraded to the new SDK without updating your authentication code. New management libraries follow the updated design guidelines and use the Azure Identity library. Refer to the official migration guide to adjust your authentication logic.
Where can I find documentation and examples for each service package?AI-generated
Each package's README contains code samples and package information, located in the corresponding service folder under the /sdk directory of the repository, and also available on the package's npm page. Latest API docs are on Microsoft Learn, while older versions are on azure.github.io.
Which runtime environments does this SDK support?AI-generated
It supports Node.js and browser environments.
View repo
Bookmark

This product has no owner yet

It was listed by the platform or its author left. If it is your work, prove your relationship to become the owner.

Claim this product

Alternatives

The product content on this page was translated by AI from the author's original.