CommunityCodierung & Entwicklunggithub.com

microsoft/azure-aigateway

Agent-Fertigkeit 'azure-aigateway' aus microsoft/azure-skills. Verwenden Sie diese, wenn die Aufgabe in den Bereich dieser Fertigkeit fällt.

Was ist azure-aigateway?

Die Fertigkeit 'azure-aigateway' ist eine Komponente aus der Sammlung 'microsoft/azure-skills', die es KI-Agenten ermöglicht, mit Azure API Management und Azure OpenAI Service zu interagieren. Sie dient als zentraler Gateway-Mechanismus, um Anfragen an Azure OpenAI-Modelle (wie GPT-4) über eine einheitliche API-Schnittstelle zu routen, zu überwachen und zu verwalten. Diese Fertigkeit ist besonders nützlich für Entwickler und DevOps-Ingenieure, die bestehende Azure-Infrastruktur nutzen möchten, um KI-Funktionen sicher und skalierbar in ihre Anwendungen zu integrieren. Sie unterstützt Plattformen wie Claude Code, Cursor und Codex und arbeitet, indem sie Umgebungsvariablen wie `AZURE_OPENAI_ENDPOINT` und `API_KEY` verwendet, um die Verbindung zu Azure-Diensten herzustellen. Darüber hinaus können Richtlinien wie Ratenbegrenzung, Caching und Authentifizierung konfiguriert werden, was die Fertigkeit ideal für Produktionsumgebungen macht, in denen Kosteneffizienz, Sicherheit und Zuverlässigkeit entscheidend sind.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/microsoft/azure-skills/tree/main/skills/azure-aigateway

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht azure-aigateway?

Agent-Fertigkeit 'azure-aigateway' aus microsoft/azure-skills. Verwenden Sie diese, wenn die Aufgabe in den Bereich dieser Fertigkeit fällt.

Überblick

Diese Fertigkeit ermöglicht es KI-Agenten, über Azure API Management Gateway auf Azure OpenAI-Dienste zuzugreifen. Sie bietet eine zentrale Schnittstelle für die Verwaltung von API-Anfragen, einschließlich Ratenbegrenzung, Authentifizierung und Protokollierung.

Voraussetzungen

  • Ein aktives Azure-Abonnement
  • Ein bereitgestellter Azure API Management-Dienst
  • Ein Azure OpenAI Service-Endpunkt mit einem bereitgestellten Modell (z.B. GPT-4)
  • Die folgenden Umgebungsvariablen müssen gesetzt sein:
    • AZURE_OPENAI_ENDPOINT – der Endpunkt Ihres Azure OpenAI-Dienstes
    • API_KEY – der API-Schlüssel für den Zugriff auf den Azure OpenAI-Dienst
    • APIM_ENDPOINT – der Endpunkt Ihres Azure API Management-Dienstes

Verwendung

Die Fertigkeit kann in Agenten-Frameworks wie Claude Code, Cursor oder Codex integriert werden. Nachdem Sie die Umgebungsvariablen konfiguriert haben, kann der Agent Anfragen über das Gateway an das Azure OpenAI-Modell senden.

Beispiel-Bash-Befehl

curl -X POST "$APIM_ENDPOINT/openai/deployments/gpt-4/chat/completions?api-version=2023-05-15" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $API_KEY" \
  -d '{
    "messages": [
      {"role": "system", "content": "Sie sind ein hilfreicher Assistent."},
      {"role": "user", "content": "Hallo!"}
    ]
  }'

Konfiguration von Richtlinien

Azure API Management ermöglicht es Ihnen, benutzerdefinierte Richtlinien auf API-Ebene zu konfigurieren, wie z.B.:

  • Ratenbegrenzung: Begrenzen Sie die Anzahl der Anfragen pro Benutzer pro Minute.
  • Caching: Zwischenspeichern von Antworten zur Reduzierung der Latenz und Kosten.
  • Authentifizierung: Überprüfen Sie JWT-Token oder API-Schlüssel.

Fehlerbehebung

  • Stellen Sie sicher, dass alle oben genannten Umgebungsvariablen korrekt gesetzt sind.
  • Überprüfen Sie die Protokolle im Azure API Management-Dienst auf Fehler bei Gateway-Anfragen.
  • Bestätigen Sie, dass der Azure OpenAI-Dienst ausgeführt wird und das bereitgestellte Modell verfügbar ist.

Weitere Ressourcen

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

microsoft/airunway-aks-setup

Agent skill 'airunway-aks-setup' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/appinsights-instrumentation

Agent skill 'appinsights-instrumentation' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-ai

Agent skill 'azure-ai' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-app-onboard

Agent skill 'azure-app-onboard' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-app-onboard-prereq

Assess whether source code is ready to deploy to Azure — the check BEFORE infrastructure work. Evaluates build health, app completeness, dependencies and local services, stack compatibility, and deployment feasibility. Answers questions about what your app needs before it can be deployed — frameworks, dependencies, and configuration. Checks whether dependencies are compatible and identifies deployment blockers and unsupported frameworks. WHEN: \"evaluate my repo\", \"is my app ready to deploy\", \"what does my app need to deploy\", \"what do I need before deploying\", \"does my app need\", \"can I ship this to Azure\", \"scan my repo for issues\", \"is this app deployable\", \"check if my app is ready for Azure\", \"do I need a Dockerfile\", \"what's blocking my deployment\", \"are there any blockers\", \"are my dependencies compatible\", \"does Azure support my framework\", \"what needs to change before deploying\", \"check my app configuration\".

microsoft/azure-cloud-migrate

Agent skill 'azure-cloud-migrate' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-compliance

Agent skill 'azure-compliance' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-compute

Agent skill 'azure-compute' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-cost

Agent skill 'azure-cost' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-cost-optimization

Identify Azure cost savings from usage and spending data. USE FOR: optimize Azure costs, reduce Azure spending/expenses, analyze Azure costs, find cost savings, generate cost optimization report, identify orphaned resources to delete, rightsize VMs, reduce waste, optimize Redis costs, optimize storage costs, AKS cost analysis add-on, namespace cost, cost spike, anomaly, budget alert, AKS cost visibility. DO NOT USE FOR: deploying resources (use azure-deploy), general Azure diagnostics (use azure-diagnostics), security issues (use azure-security)

microsoft/azure-deploy

Agent skill 'azure-deploy' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-diagnostics

Agent skill 'azure-diagnostics' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-enterprise-infra-planner

Agent skill 'azure-enterprise-infra-planner' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-hosted-copilot-sdk

Build, deploy, and modify GitHub Copilot SDK apps on Azure. MANDATORY when codebase contains @github/copilot-sdk or CopilotClient in package.json. PREFER OVER azure-prepare when copilot-sdk markers detected. WHEN: copilot SDK, @github/copilot-sdk, copilot-powered app, build copilot app, prepare copilot app, add feature to copilot app, modify copilot app, BYOM, bring your own model, CopilotClient, createSession, sendAndWait, azd init copilot. DO NOT USE FOR: deploying already-prepared copilot-sdk apps (use azure-deploy), general web apps without copilot SDK (use azure-prepare), Copilot Extensions, Foundry agents (use microsoft-foundry).

microsoft/azure-kubernetes

Agent skill 'azure-kubernetes' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-kusto

Agent skill 'azure-kusto' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-messaging

Agent skill 'azure-messaging' from microsoft/azure-skills. Use when the task matches this skill's domain.

microsoft/azure-observability

Azure Observability Services including Azure Monitor, Application Insights, Log Analytics, Alerts, and Workbooks. Provides metrics, APM, distributed tracing, KQL queries, and interactive reports. USE FOR: Azure Monitor, Application Insights, Log Analytics, Alerts, Workbooks, metrics, APM, distributed tracing, KQL queries, interactive reports, observability, monitoring dashboards. DO NOT USE FOR: instrumenting apps with App Insights SDK (use appinsights-instrumentation), querying Kusto/ADX clusters (use azure-kusto), cost analysis (use azure-cost-optimization).

microsoft/azure-postgres

azure-postgres — an installable skill for AI agents.

microsoft/azure-prepare

Agent skill 'azure-prepare' from microsoft/azure-skills. Use when the task matches this skill's domain.

Verwandte Skills