Azure Storage samples using JavaScript client libraries
This article provides an overview of code sample scenarios found in our developer guides and samples repository. Click on the links to view the corresponding samples, either in our developer guides or in GitHub repositories.
Developer guides are collections of articles that provide detailed information and code examples for specific scenarios related to Azure Storage services. To learn more about the Blob Storage developer guides for JavaScript or TypeScript, see the following articles:
- Get started with Azure Blob Storage and JavaScript
- Get started with Azure Blob Storage and TypeScript
Note
These samples use the latest Azure Storage JavaScript v12 library. For legacy v11 code, see Getting Started with Azure Blob Service in Node.js in the GitHub repository.
Blob samples
The following table links to Azure Blob Storage developer guides and samples that use JavaScript client libraries:
Topic | Developer guide | Samples on GitHub |
---|---|---|
Authentication/authorization | Authorize access and connect to Blob Storage: JavaScript TypeScript Create a user delegation SAS for a blob Create a service SAS for a blob Create an account SAS |
Authenticate using Microsoft Entra ID: JavaScript TypeScript Authenticate using shared key credential: JavaScript TypeScript Authenticate using connection string: JavaScript TypeScript |
Create container | Create a container: JavaScript TypeScript |
Create container: JavaScript TypeScript |
Upload | Upload a blob: JavaScript TypeScript |
Upload a blob: JavaScript TypeScript Parallel upload a stream to a blob: JavaScript TypeScript |
Download | Download a blob: JavaScript TypeScript |
Download a blob: JavaScript TypeScript Parallel download block blob: JavaScript TypeScript |
List | List containers: JavaScript TypeScript List blobs: JavaScript TypeScript |
List containers: JavaScript TypeScript List containers using an iterator: JavaScript TypeScript List containers by page: JavaScript TypeScript List blobs using an iterator: JavaScript TypeScript List blobs by page: JavaScript TypeScript List blobs by hierarchy: JavaScript TypeScript |
Delete | Delete containers: JavaScript TypeScript Delete blobs: JavaScript TypeScript |
Delete a container: JavaScript TypeScript |
Copy | Overview of copy operations: JavaScript TypeScript Copy a blob from a source object URL: JavaScript TypeScript Copy a blob with asynchronous scheduling: JavaScript TypeScript |
|
Lease | Create and manage container leases: JavaScript TypeScript Create and manage blob leases: JavaScript TypeScript |
|
Properties and metadata | Manage container properties and metadata: JavaScript TypeScript Manage blob properties and metadata: JavaScript TypeScript |
|
Index tags | Use blob index tags to manage and find data: JavaScript TypeScript |
|
Access tiers | Set or change a block blob's access tier: JavaScript TypeScript |
Set the access tier on a blob: JavaScript TypeScript |
Blob service | Create a blob service client: JavaScript TypeScript Create blob service client using a SAS URL: JavaScript TypeScript |
|
Snapshot | Create a blob snapshot: JavaScript TypeScript Download a blob snapshot: JavaScript TypeScript |
|
Troubleshooting | Trigger a recoverable error using a container client: JavaScript TypeScript |
Data Lake Storage samples
The following table links to Data Lake Storage samples that use JavaScript client libraries:
Topic | Samples on GitHub |
---|---|
Data Lake service | Create a Data Lake service client |
File system | Create a file system List file systems List paths in a file system Delete a file system |
File | Create a file Download a file |
Azure Files samples
The following table links to Azure Files samples that use JavaScript client libraries:
Queue samples
The following table links to Azure Queues samples that use JavaScript client libraries:
Table samples
The following table links to Azure Tables samples that use JavaScript client libraries:
- Authentication methods
- Create and delete a table
- Create and delete table entities
- Query tables
- Query entities
- Update and upsert entities in a table
- Send transactional batch requests
- Send transactional batch requests with TableTransaction helper
Samples for deprecated client libraries are available at Azure Table Storage samples for JavaScript.
Azure code sample libraries
To view the complete JavaScript sample libraries, go to:
- Azure Blob code samples
- Azure Data Lake code samples
- Azure Files code samples
- Azure Queue code samples
You can browse and clone the GitHub repository for each library.
Getting started guides
Check out the following guides if you are looking for instructions on how to install and get started with the Azure Storage client libraries.
- Quickstart: Azure Blob Storage client library for JavaScript
- Quickstart: Azure Queue client library for JavaScript
- Getting Started with Azure Table Service in JavaScript
Next steps
For information on samples for other languages:
- .NET: Azure Storage samples using .NET
- Java: Azure Storage samples using Java
- Python: Azure Storage samples using Python
- C++: Azure Storage samples using C++
- All other languages: Azure Storage samples