This provides sample Aspire-orchestrated apps that summarise a YouTube video transcript to a given language.
- .NET 8 SDK
- Visual Studio 2022 17.9 or later with the .NET Aspire workload installed
- Docker Desktop
- Azure Developer CLI
- Azure CLI
- GitHub CLI
- PowerShell
- Azure subscription
- Azure OpenAI Service subscription
-
Checkout to the
existing
taggit checkout tags/existing dotnet restore && dotnet build
-
Rename
appsettings.Development.sample.json
in theApiApp
project toappsettings.Development.json
and add Azure OpenAI Service details – endpoint, API key and deployment ID – to the file. You can get these details from the Azure Portal. -
Run the API app in a terminal
dotnet run --project AspireYouTubeSummariser.ApiApp
-
Run the web app in another terminal
dotnet run --project AspireYouTubeSummariser.WebApp
-
Checkout to the
aspire
taggit checkout tags/aspire dotnet restore && dotnet build
-
Run the Aspire AppHost app
dotnet run --project AspireYouTubeSummariser.AppHost
-
Checkout to the
redis
taggit checkout tags/redis dotnet restore && dotnet build
-
Run the Aspire AppHost app
dotnet run --project AspireYouTubeSummariser.AppHost
-
Checkout to the
polly
taggit checkout tags/polly dotnet restore && dotnet build
-
Run the Aspire AppHost app
dotnet run --project AspireYouTubeSummariser.AppHost
-
Checkout to the
queue
taggit checkout tags/queue dotnet restore && dotnet build
-
Rename
appsettings.Development.sample.json
in theWorker
project toappsettings.Development.json
and add Azure OpenAI Service details – endpoint, API key and deployment ID – to the file. You can get these details from the Azure Portal. -
Rename
appsettings.Development.sample.json
in theAppHost
project toappsettings.Development.json
and add Azure Queue/Table Storage Account details – connection strings – to the file You can get these details from the Azure Portal. -
Run the Aspire AppHost app
dotnet run --project AspireYouTubeSummariser.AppHost
-
Checkout to the
main
branchgit switch main dotnet restore && dotnet build
-
Rename
appsettings.Development.sample.json
in theAppHost
project toappsettings.Development.json
. -
Add Azure OpenAI Service details – endpoint, API key and deployment ID – to the file. You can get these details from the Azure Portal.
-
Add Azure Queue/Table Storage Account details – connection strings – to the file You can get these details from the Azure Portal.
-
Run the following commands in order:
# Initialise azd AZURE_ENV_NAME="aspire$RANDOM" azd init -e $AZURE_ENV_NAME # Provision resources to Azure azd provision # Provision GitHub Actions environment azd pipeline config pwsh Set-GitHubActionsVariables.ps1 -GitHubAlias <GitHubAlias> # Provision rest of resources to Azure outside Aspire pwsh Run-PostProvision.ps1 -GitHubAlias <GitHubAlias> # Deploy apps to Azure azd deploy
-
Push code changes to the GitHub repository to trigger a GitHub Actions workflow.