title | description | ms.date | ms.custom |
---|---|---|---|
Deploy .NET Aspire projects to Azure Container Apps |
Learn how to use the Azure Developer CLI to deploy .NET Aspire projects to Azure. |
05/18/2024 |
devx-track-extended-azdevcli |
.NET Aspire projects are designed to run in containerized environments. Azure Container Apps is a fully managed environment that enables you to run microservices and containerized applications on a serverless platform. This article will walk you through creating a new .NET Aspire solution and deploying it to Microsoft Azure Container Apps using the Azure Developer CLI (azd
). You'll learn how to complete the following tasks:
[!div class="checklist"]
- Provision an Azure resource group and Container Registry
- Publish the .NET Aspire projects as container images in Azure Container Registry
- Provision a Redis container in Azure
- Deploy the apps to an Azure Container Apps environment
- View application console logs to troubleshoot application issues
[!INCLUDE aspire-prereqs]
As an alternative to this tutorial and for a more in-depth guide, see Deploy a .NET Aspire project to Azure Container Apps using azd
(in-depth guide).
With .NET Aspire and Azure Container Apps (ACA), you have a great hosting scenario for building out your cloud-native apps with .NET. We built some great new features into the Azure Developer CLI (azd
) specific for making .NET Aspire development and deployment to Azure a friction-free experience. You can still use the Azure CLI and/or Bicep options when you need a granular level of control over your deployments. But for new projects, you won't find an easier path to success for getting a new microservice topology deployed into the cloud.
As a starting point, this article assumes that you've created a .NET Aspire project from the .NET Aspire Starter Application template. For more information, see Quickstart: Build your first .NET Aspire project.
The process for installing azd
varies based on your operating system, but it is widely available via winget
, brew
, apt
, or directly via curl
. To install azd
, see Install Azure Developer CLI.
[!INCLUDE init-workflow]
[!INCLUDE azd-up-workflow]
[!INCLUDE test-deployed-app]
[!INCLUDE azd-dashboard]
[!INCLUDE clean-up-resources]