A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Azure-Samples/azure-functions-blob-sdk-bindings-nodejs below:

Azure-Samples/azure-functions-blob-sdk-bindings-nodejs: Supercharge your Azure Functions with the latest SDK bindings—seamlessly work with powerful Azure SDK types like BlobClient and ContainerClient. These samples show real-world scenarios using blob and HTTP triggers for richer, more flexible blob operations.

Azure Functions Samples for Blob Storage SDK Bindings for Node.js

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:

3. containerClientInputBinding

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 Bindings

This 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