Azure SDK for JavaScript

Welcome to the official documentation for the Azure SDK for JavaScript. This SDK provides a comprehensive set of tools and libraries to help you build, deploy, and manage applications on Microsoft Azure using JavaScript.

Introduction

The Azure SDK for JavaScript is designed to empower developers with efficient and idiomatic ways to interact with Azure services. Whether you're building web applications, serverless functions, or backend services, our SDKs offer robust features, seamless integration, and a developer-friendly experience.

Key Features:

Getting Started

To start using the Azure SDK for JavaScript, you'll need Node.js installed on your machine. You can install individual packages or the entire SDK.

Installation

Use npm or yarn to install the packages you need. For example, to install the Azure Blob Storage client library:

npm install @azure/storage-blob
# or
yarn add @azure/storage-blob

Authentication

Authenticating your application to Azure is straightforward. The Azure Identity library provides multiple ways to authenticate, including using connection strings, service principals, and managed identities.

import { DefaultAzureCredential } from "@azure/identity";

// Authenticate using DefaultAzureCredential
const credential = new DefaultAzureCredential();

// Example: Authenticate to Azure Storage
import { BlobServiceClient } from "@azure/storage-blob";

const blobServiceClient = new BlobServiceClient("YOUR_STORAGE_ACCOUNT_URL", credential);

Core Services

Explore how to use the Azure SDK for JavaScript with various Azure services:

Compute

Interact with Azure Virtual Machines, Container Instances, and Azure Functions.

Storage

Manage data in Azure Blob Storage, Table Storage, and Queue Storage.

Databases

Connect to and manage Azure SQL Database, Cosmos DB, and PostgreSQL.

Networking

Configure and manage Azure Virtual Networks, Load Balancers, and Application Gateways.

Identity

Securely manage access to Azure resources with Azure Active Directory and Managed Identities.

Key Vault

Store and manage secrets, keys, and certificates.

Developer Tools

The Azure SDK for JavaScript integrates seamlessly with various developer tools and services.

Azure CLI

Use the Azure CLI to provision resources and manage your Azure environment. You can also use it to generate SDK code samples.

Azure PowerShell

Similar to Azure CLI, Azure PowerShell offers cmdlets for managing Azure resources.

Azure SDKs

Understand the overall Azure SDK ecosystem and how the JavaScript SDK fits in.

Visual Studio Code

Leverage the Azure Tools for Visual Studio Code extension for an enhanced development experience, including integrated debugging and resource management.

GitHub Actions

Automate your CI/CD pipelines for JavaScript applications deployed to Azure using GitHub Actions and Azure services.

API Reference

Detailed API documentation for each Azure SDK client library is available on Microsoft Docs.

Key Packages:

Examples

Explore a collection of practical examples demonstrating how to use the Azure SDK for JavaScript to perform common tasks:

Support and Community

If you encounter issues or have questions, please refer to the following resources: