This provides a proxy server application of Azure OpenAI Service API that round-robins multiple Azure OpenAI Service instances.
- Azure Subscription
- Azure OpenAI Subscription
- .NET SDK 8.0.300+ + Aspire workload
- Visual Studio 2022 17.10+ or Visual Studio Code + C# DevKit
- Docker Desktop or Podman
- PowerShell 7.4+
- Azure Developer CLI
- Azure CLI + Container Apps extension
- GitHub CLI
-
Login to Azure and GitHub.
# Login to Azure Dev CLI azd auth login # Login to Azure CLI az login # Login to GitHub gh auth login
-
Check login status.
# Azure Dev CLI azd auth login --check-status # Azure CLI az account show # GitHub CLI gh auth status
-
Fork this repository to your account and clone the forked repository to your local machine.
gh repo fork aliencube/azure-openai-sdk-proxy --clone --default-branch-only
-
Run the following commands in order to provision and deploy the app.
# zsh/bash AZURE_ENV_NAME="proxy$((RANDOM%9000+1000))" azd init -e $AZURE_ENV_NAME azd up # PowerShell $AZURE_ENV_NAME = "proxy$(Get-Random -Minimum 1000 -Maximum 9999)" azd init -e $AZURE_ENV_NAME azd up