This template provides an introductory demo template for the Azure Developer CLI (azd). Run the template to provision and deploy resources to Azure and experiment with a working sample app.
Visit the Azure Developer CLI templates overview page for more information about templates. The following assets are included in the hello-azd template:
- A small sample app to demonstrate deployment and connections to services provisioned by
azd. - Infrastructure-as-code (IaC) Bicep files under the
infrafolder that demonstrate how to provision resources and setup resource tagging for azd. - A dev container configuration file under the
.devcontainerdirectory that installs infrastructure tooling by default. This can be readily used to create cloud-hosted developer environments such as GitHub Codespaces. - Continuous deployment workflows for CI providers such as GitHub Actions under the
.githubdirectory, and Azure Pipelines under the.azdodirectory that work for most use-cases.
Complete the following steps to run the template and provision resources on Azure:
-
Install the Azure Developer CLI on your device.
-
Install Docker Desktop on your device. This is needed to package the container app.
-
In the command line tool of your choice, run the
azd initcommand to clone and initialize this template repo.azd init -t hello-azd
-
Package, provision and deploy the app using a single command by running
azd up.
The template provisions and deploys the required Azure resources for the app to run, which may take several minutes. When the process completes, your browser should open to the following page:
The template completed the following tasks for you:
- Packaged up your app code for deployment.
- Created an Azure Container Registry.
- Created an Azure Container Apps environment and app.
- Created an Azure Storage account with an
attachmentsblob container andticketstable. - Created a managed identity and assigned it to the Container App.
- Assigned identity-based Blob and Table Storage access.
- Configured environment settings for Azure Storage endpoints.
- Deployed the app to Azure Container Apps.
The app is now ready to use!
Important
The deployed demo is publicly accessible and doesn't require users to sign in. Don't submit sensitive or production data, and run azd down when you finish exploring the template.
Visit the following resources for more information about working with the Azure Developer CLI and templates:
Explore some other common Azure Developer CLI templates:
