Creating Azure resources with .NET Aspire and azd
Here, we’ll look into how to easily create Azure resources from the development system. First, we use some resources from the Azure cloud, while most of the projects are running locally on the development system, before we publish the complete solution to Azure.
Provisioning Azure resources while debugging
When creating API services and using databases, you might not need any Azure resources when debugging the application locally. The API can run locally; even building Docker images is not required here. To run the database, a Docker image can be used easily, as you’ve already seen in Chapter 5. However, for some Azure resources that you might also use during development, creating and connecting Azure resources is required. One example is Azure Application Insights (which is covered in detail in Chapter 8).
To use Azure resources with the application map in the AppHost
project, you need to add the A
spire.Hosting...