Skip to main content

How do I create templates?

The azd template has this file structure defined by azd conventions

โ”œโ”€โ”€ .github                    [ Configure GitHub workflow ]
โ”œโ”€โ”€ .vscode [ VS Code workspace ]
โ”œโ”€โ”€ assets [ Assets used by README.MD ]
โ”œโ”€โ”€ infra [ Creates and configures Azure resources ]
โ”‚ โ”œโ”€โ”€ main.bicep [ Main infrastructure file ]
โ”‚ โ”œโ”€โ”€ main.parameters.json [ Parameters file ]
โ”‚ โ””โ”€โ”€ resources.bicep [ Resources file ]
โ”œโ”€โ”€ src [ Contains directories for the app code ]
โ””โ”€โ”€ azure.yaml [ Describes the app and type of Azure resources]

The Azure Developer CLI (azd) tool helps you with the process of creating the template with azd init as the first step, followed by creation of the infra/ folder, updating of the azure.yaml file, and validation of template using azd up to provision and deploy resources.

the process to create an azd template: