This repository provides examples demonstrating how to use Azure Storage Blob SDK bindings with Azure Functions in Node.js (TypeScript). These examples showcase enhanced SDK-binding capabilities, enabling direct access to Azure Storage Blob SDK objects.
The repository contains three example projects illustrating different aspects of working with Azure Blob Storage in Azure Functions:
This example shows how to use the SDK binding with a Blob trigger. The function is triggered when a blob is added to a container and demonstrates:
// Key points: import "@azure/functions-extensions-blob"; // Required first import // ... export async function storageBlobTrigger( blobStorageClient: StorageBlobClient, // SDK binding provides this client context: InvocationContext ): Promise<void> { // Access full SDK capabilities const blobProperties = await blobStorageClient.blobClient.getProperties(); }2. blobClientWithReadableStream
This example demonstrates how to work with blob content as a readable stream:
This example shows how to use container client input bindings with HTTP triggers:
Each project can be run locally using Azure Functions Core Tools.
Install dependencies:
cd [project-folder] npm install
Configure local settings by creating a local.settings.json
file with your storage connection string:
{ "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "UseDevelopmentStorage=true", "FUNCTIONS_WORKER_RUNTIME": "node" } }
Start the function app:
Key Features of SDK BindingsThis project is licensed under the MIT License - see the LICENSE.md file for details.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4