Skip to content

An Azure Developer CLI (`azd`) template to deploy a C# API with Swagger UI to Azure App Service

License

Notifications You must be signed in to change notification settings

Build5Nines/azd-csharp-api-swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

azd-csharp-api-swagger Awesome

An Azure Developer CLI (azd) template to deploy a C# API with Swagger UI to Azure App Service

This app contains a really simple TODOs API just as an example to get you started using this as a template for a new project.

Prerequisites

To deploy this template you will need to have the following installed:

  • Azure Developer CLI
  • .NET 9+

Deployment

To use this template, follow these steps using the Azure Developer CLI:

  1. Log in to Azure Developer CLI. This is only required once per-install.

    azd auth login
  2. Initialize this template using azd init:

    azd init --template build5nines/azd-csharp-api-swagger
  3. Use azd up to provision your Azure infrastructure and deploy the web application to Azure.

    azd up
  4. Once provisioning and deployment has completed, navigate your browser to the Application URL, and you will see the Swagger UI for the API App.

Architecture Diagram

Diagram of Azure Resources provisioned with this template

Azure Resources

These are the Azure resources that are deployed with this template:

  • App Service Plan - The environment for hosting the App Service web app.
  • App Service - The App Service web app to deploy and run the .NET API app.

Author

This azd template was written by Chris Pietschmann, founder of Build5Nines, Microsoft MVP, HashiCorp Ambassador, and Microsoft Certified Trainer (MCT).

About

An Azure Developer CLI (`azd`) template to deploy a C# API with Swagger UI to Azure App Service

Topics

Resources

License

Stars

Watchers

Forks