.NET Aspire Tutorials

Deploying .NET Aspire Microservices to Kubernetes with Aspir8 CLI and Helm

Kubernetes is widely used for modern applications due to its auto-scaling, easy deployment, and cloud-native features. Microsoft is also pushing .NET to be more cloud-native. Recently, they introduced **.NET Aspire**, a toolset designed to make cloud-native development easier. In this guide, we’ll build a microservice project with .NET Aspire, define microservice relationships, create a Helm chart, and deploy it to Kubernetes.

Basic Auth in Aspire | Implement Basic Authentication in ASP .NET Core 9 & 8 Web API

Learn how to implement basic authentication in ASP.NET Core 9 to secure your web APIs.

CSnakes + MarkItDown: Python in .NET Made Simple

Explore how to integrate Python libraries into your .NET applications with CSnakes! Learn how to use MarkItDown to convert documents to Markdown and see a real-world example in the "Chat with Your Data" app, where markdown is stored in a Vector Store for seamless data interaction.

Aspiring .NET with Azure Open AI

In this session, we will walk through building an Aspire Application from scratch, leveraging the power of local Azure deployments to enhance functionality and performance. Attendees will gain hands-on experience with setting up and deploying a fully functional AI-driven application, exploring best practices and innovative techniques to make the most of .NET and Azure's robust infrastructure.

How to create .NET Aspire custom resource

This .NET Aspire #tutorial shows how to create custom resource and use it with Blazor app. API developed in Python and running as a Docker container is a resource that will be used.

How to use WaitFor in .NET Aspire with SQL Server, Web API and Blazor

Authorised Territory code examples - This .NET Aspire #tutorial shows how to use the WaitFor method to ensure a resource is ready before initiating another one.

.NET Aspire and Semantic Kernel AI

Let's learn how to use the .NET Aspire Azure OpenAI client. We will familiarize ourselves with the Aspire.Azure.AI.OpenAI library, which is used to register an OpenAIClient in the dependency injection (DI) container for consuming Azure OpenAI or OpenAI functionality. In addition, it enables corresponding logging and telemetry.

Add SQL Server database with seed data to .NET Aspire during app startup

Authorised Territory code examples - This .NET Aspire #tutorial shows how to add SQL Server database in App host project as resource and display it in the dashboard. In addition #sql script is executed after the sql server instance is available in the docker container.

Run eShopLite Semantic Search in Minutes with .NET Aspire & GitHub Codespaces

Discover how to set up and run the eShopLite - Semantic Search application in minutes! In this video: Learn how to create a GitHub Codespace directly from the main GitHub repository. Explore the necessary steps to configure the project locally using .NET Aspire to create the required Azure resources. See how to test and run the AI-powered eShopLite - Semantic Search application seamlessly.

The Simplest Way to Add Keycloak Authentication to Your .NET API

Learn how to secure your .NET API with Keycloak authentication in the most straightforward way possible with the help of .NET Aspire. In this tutorial, I'll show you how to integrate Keycloak JWT bearer authentication into your ASP.NET application with just a few lines of code. Whether you're building a new API or adding security to an existing one, this guide will help you implement robust authentication without the usual headaches.