Azure SDK for JavaScript

repository·main·Indexed 24 days ago

https://github.com/azure/azure-sdk-for-js

A comprehensive set of libraries for Node.js and the Browser to interact with Azure services, including client libraries for resource consumption and management libraries for resource provisioning. The repository includes @azure/dev-tool, an extensible command-line utility for contributors to manage packages, run checks, and handle samples.

Tokens
874.8K
Snippets
2.1K
Records
4.3K
Agent score
81%

What's inside azure-sdk-for-js

  1. Overview of Azure Storage Queue JavaScript sample scenarios

    main

    The following sample programs demonstrate common authentication and operational scenarios using the Azure Storage Queue JavaScript client library:

    ScenarioSample File
    Authenticate using an account name and a static keysharedKeyAuth.js
    Authenticate with Azure Active DirectoryazureAdAuth.js
    Authenticate anonymously using a SAS-encoded URLanonymousAuth.js
    Authenticate using a connection stringconnectionStringAuth.js
    Use QueueServiceClient to create queues and manage messages (send/receive/delete)queueClient.js
    List queues in the account (including paging and resuming paging)listQueues.js
    Configure proxy settings for connectionsproxyAuth.js
    Use custom HTTP pipeline optionscustomPipeline.js
  2. Overview of Azure AI Agents TypeScript (Beta) samples

    main

    This collection of samples demonstrates common scenarios for using the Azure AI Agents TypeScript client libraries. Key capabilities covered include:

    • Agent Operations: Basic operations, streaming, and tracking token usage.
    • Tools: Using Code Interpreter (with and without streaming), Azure AI Search, Bing Search (Grounding), Browser Automation, Connected Agents, OpenApi, and Function tools.
    • File & Vector Management: File uploads (local and remote), file searching, and creating/managing Vector Stores (including batch operations and polling).
    • Multimodal Input: Using images via Base64, file input, or URLs.
    • Advanced Tooling: Working with multiple MCP (Model Context Protocol) servers and Toolsets.
    • Telemetry: Configuring local and remote telemetry for AIAgentClient.
  3. Overview of @azure/arm-elastic JavaScript samples

    main

    The @azure/arm-elastic client library samples for JavaScript (Beta) provide practical examples for common management scenarios involving Elastic monitor resources in Azure. These samples cover tasks such as:

    • Resource Management: Creating, updating, getting, and deleting Elastic monitor resources.
    • Traffic Control: Managing traffic filters (IP filters, Private Link filters) and associating/detaching them from monitors.
    • Observability & Monitoring: Managing monitored subscriptions, monitored resources, and VM collections.
    • AI Integration: Managing OpenAI integration rules for advanced observability.
    • Configuration: Managing external users, tag rules, and OpenAI integration status.
    • Information Retrieval: Fetching billing information, deployment details, available Elastic versions, and organization API keys.
  4. Overview of @azure/arm-newrelicobservability JavaScript samples

    main

    The @azure/arm-newrelicobservability client library (Beta) provides sample programs for common scenarios when managing New Relic observability resources within Azure.

    Key capabilities demonstrated in the samples include:

    Monitor Management

    • Create/Update: monitorsCreateOrUpdateSample.js sets up the integration between Azure and New Relic.
    • Delete: monitorsDeleteSample.js removes the integration.
    • Retrieve Details: monitorsGetSample.js retrieves configuration and status.
    • List Resources: monitorsListByResourceGroupSample.js and monitorsListBySubscriptionSample.js allow finding monitors at different scopes.
    • Advanced Actions: monitorsResubscribeSample.js (long-running action), monitorsSwitchBillingSample.js (Azure Marketplace billing), and monitorsRefreshIngestionKeySample.js (key rotation).

    Resource Monitoring & Discovery

    • List Monitored Resources: monitorsListMonitoredResourcesSample.js shows which Azure resources are currently covered.
    • Specific Resource Lists: monitorsListAppServicesSample.js (App Services) and monitorsListHostsSample.js (VMs).
    • SaaS Integration: monitorsLinkSaaSSample.js and monitorsLatestLinkedSaaSSample.js manage SaaS links to the New Relic organization.

    Tag Rules

    • Manage fine-grained observability control by creating, updating, getting, or deleting tag rules via tagRulesCreateOrUpdateSample.js, tagRulesUpdateSample.js, tagRulesGetSample.js, and tagRulesDeleteSample.js.
  5. Overview of Azure Storage Blob TypeScript samples

    main

    These samples demonstrate common scenarios when using the Azure Storage Blob client library for TypeScript. Available sample scenarios include:

    • Authentication:
      • sharedKeyAuth.ts: Using an account name and a static key.
      • azureAdAuth.ts: Using Azure Active Directory.
      • anonymousAuth.ts: Using a SAS-encoded URL.
      • connectionStringAuth.ts: Using a connection string.
    • Blob and Container Operations:
      • listBlobsByHierarchy.ts: Listing blobs by hierarchy with separators and paging options.
      • listBlobsFlat.ts: Listing blobs in a container with paging.
      • listContainers.ts: Listing containers in an account.
      • snapshots.ts: Creating and reading blob snapshots.
    • Advanced Configuration and Error Handling:
      • errorsAndResponses.ts: Exploring error scenarios and response data.
      • proxyAuth.ts: Configuring proxy settings.
      • customizedClientHeaders.ts: Customizing request headers (e.g., X-Ms-Client-Request-Id) via HTTP policies.
      • advancedRequestOptions.ts: Using advanced HTTP pipeline and request options.
      • customPipeline.ts: Using custom HTTP pipeline options.
  6. Overview of @azure/arm-computeschedule TypeScript samples

    main
    This repository contains TypeScript sample programs demonstrating common scenarios for using the @azure/arm-computeschedule client library (Beta). The samples cover various resource management tasks including managing ScheduledAction resources, handling Occurrence resources, and executing batch operations on virtual machines.
  7. Overview of @azure/arm-newrelicobservability TypeScript samples

    main
    This repository contains TypeScript sample programs demonstrating common scenarios for using the @azure/arm-newrelicobservability client library (Beta). These samples cover managing New Relic accounts, organizations, monitors, monitored subscriptions, and tag rules to integrate Azure resources with New Relic observability.
  8. Overview of @azure/arm-nginx sample programs

    main

    The @azure/arm-nginx client library provides TypeScript samples for managing Nginx deployments. Key capabilities demonstrated in the samples include:

    • API Keys: Create, update, get, list, and delete API keys for dataplane API access.
    • Certificates: Manage NGINX certificates (create, update, get, list, delete).
    • Configurations: Manage NGINX configurations, including analysis without applying changes, creating/updating, getting, listing, and resetting to default.
    • Deployments: Manage NGINX deployment resources (create, update, get, list, delete, and list by resource group).
    • WAF Policies: Manage Nginx Web Application Firewall (WAF) policies, including analysis, creation, updating, getting, listing, and resetting to default.
    • Operations: List available operations for the provider.
  9. Overview of Azure Event Hubs browser samples

    main

    The browser samples demonstrate key functionalities of the Azure Event Hubs JavaScript client library:

    • sendEvents.js: Shows how to use the send() function to transmit events to an Event Hub instance.
    • receiveEvents.js: Demonstrates using the EventHubConsumerClient to process events from all partitions of a consumer group.
    • configuration.js: Contains the necessary connection and authentication settings.
    • index.js: Connects the sample logic to the web UI.
    • index.html: The main entry point for the web application.