azure-storage-file-share-ts

Manage Azure Files SMB shares with the @azure/storage-file-share SDK in Node.js.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-storage-file-share-ts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-storage-file-share-ts
Source: https://github.com/davidrrowley/CortexYouV3/tree/main/.agents/skills/azure-storage-file-share-ts
Command: npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-storage-file-share-ts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides clear, runnable guidance and patterns to manage Azure Files SMB file shares programmatically from TypeScript/JavaScript applications, removing ambiguity around authentication, streaming uploads/downloads, range operations, snapshots, and SAS generation.

Core Features & Use Cases

  • Share lifecycle management: create, list, set quota, snapshot, and delete shares.
  • Directory and file operations: create/list/delete directories, upload and download files via streaming, buffers, or local file paths, perform range writes and clears, and copy between URLs.
  • Security and tooling: examples for connection strings, StorageSharedKeyCredential, DefaultAzureCredential, SAS token generation, and RestError-aware error handling.
  • Use Case: automate backing up application logs to an Azure file share, rotating snapshots before major changes, and generating SAS URLs for temporary client download access.

Quick Start

Use the skill to upload a local file to an Azure file share using a connection string and report the uploaded file's properties.

Frequently Asked Questions about azure-storage-file-share-ts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upload a local file to an Azure file share using TypeScript?

Upload a local file to an Azure file share in TypeScript by using the @azure/storage-file-share SDK to stream the file path directly to a share client, which handles the data transfer and reports file properties.

Can I use DefaultAzureCredential to authenticate with Azure Files in Node.js?

Yes, you can use DefaultAzureCredential to authenticate with Azure Files in Node.js, alongside connection strings or StorageSharedKeyCredential, to manage SMB shares and perform file operations securely.

How do I generate SAS tokens for temporary access to Azure Files?

Generate SAS tokens for temporary Azure Files access by using the @azure/storage-file-share SDK to create shared access signature URLs, granting clients time-limited permissions for downloading or viewing specific share files.

What is the best way to handle RestError when managing Azure SMB file shares?

The best way to handle RestError when managing Azure SMB file shares is to implement RestError-aware error handling in your TypeScript code, catching and inspecting the error response during share lifecycle and file operations.

Does Azure Files streaming uploads support range operations and quota management in TypeScript?

Yes, Azure Files streaming uploads support range writes and clears, while also allowing you to set and manage share quotas programmatically through the @azure/storage-file-share SDK in TypeScript.

Why do I need Node.js 18+ for the Azure storage-file-share SDK?

You need Node.js 18+ for the Azure storage-file-share SDK to ensure compatibility with the underlying runtime requirements for streaming uploads, DefaultAzureCredential authentication, and stable share lifecycle management.