azure.yaml
1.0Schema URL
Configuration file for the Azure Developer CLI (azd)
Properties
The application name. Only lowercase letters, numbers, and hyphens (-) are allowed. The name must start and end with a letter or number.
When specified will override the resource group name used for infrastructure provisioning. Supports environment variable substitution.
1 nested properties
Optional. Provides additional configuration for Azure infrastructure provisioning.
4 nested properties
Optional. The infrastructure provisioning provider used to provision the Azure resources for the application. (Default: bicep)
Optional. The relative folder path to the Azure provisioning templates for the specified provider. (Default: infra)
Optional. The name of the Azure provisioning module used when provisioning resources. (Default: main)
Optional. Layers for Azure infrastructure provisioning.
3 nested properties
Optional. The pipeline provider to be used for continuous integration. (Default: github)
If variable is found on azd environment, it is set as a variable for the pipeline.
If variable is found on azd environment, it is set as a secret for the pipeline.
Hooks should match azd command names prefixed with pre or post depending on when the script should execute. When specifying paths they should be relative to the project path.
18 nested properties
Optional. Provides additional configuration for required versions of azd and extensions.
2 nested properties
A range of supported versions of azd for this project. If the version of azd is outside this range, the project will fail to load. Optional (allows all versions if absent).
A map of required extensions and version constraints for this project. Supports semver constraints. If version is omitted the latest version will be installed.
Optional. Provides additional configuration for state management.
1 nested properties
Optional. Provides additional configuration for remote state management such as Azure Blob Storage.
2 nested properties
Optional. The remote state backend type. (Default: AzureBlobStorage)
Optional. Provides additional configuration for platform specific features such as Azure Dev Center.
2 nested properties
Required. The platform type. (Example: devcenter)
Optional. Provides additional configuration for workflows such as override azd up behavior.
1 nested properties
Optional. Provides additional configuration for deploying to sovereign clouds such as Azure Government. The default cloud is AzureCloud.
1 nested properties
Definitions
Optional. The type of shell to use for the hook. (Default: sh)
When specifying an inline script you also must specify the shell to use. This is automatically inferred when using paths.
Optional. When set to true will continue to run the command even after a script error has occurred. (Default: false)
Optional. When set to true will bind the script to stdin, stdout & stderr of the running console. (Default: false)
7 nested properties
Optional. The type of shell to use for the hook. (Default: sh)
When specifying an inline script you also must specify the shell to use. This is automatically inferred when using paths.
Optional. When set to true will continue to run the command even after a script error has occurred. (Default: false)
Optional. When set to true will bind the script to stdin, stdout & stderr of the running console. (Default: false)
7 nested properties
Optional. The type of shell to use for the hook. (Default: sh)
When specifying an inline script you also must specify the shell to use. This is automatically inferred when using paths.
Optional. When set to true will continue to run the command even after a script error has occurred. (Default: false)
Optional. When set to true will bind the script to stdin, stdout & stderr of the running console. (Default: false)
If variable was set as a secret in the environment, the secret value will be passed to the hook.
7 nested properties
Optional. The type of shell to use for the hook. (Default: sh)
When specifying an inline script you also must specify the shell to use. This is automatically inferred when using paths.
Optional. When set to true will continue to run the command even after a script error has occurred. (Default: false)
Optional. When set to true will bind the script to stdin, stdout & stderr of the running console. (Default: false)
If variable was set as a secret in the environment, the secret value will be passed to the hook.
If variable was set as a secret in the environment, the secret value will be passed to the hook.
7 nested properties
Optional. The type of shell to use for the hook. (Default: sh)
When specifying an inline script you also must specify the shell to use. This is automatically inferred when using paths.
Optional. When set to true will continue to run the command even after a script error has occurred. (Default: false)
Optional. When set to true will bind the script to stdin, stdout & stderr of the running console. (Default: false)
7 nested properties
Optional. The type of shell to use for the hook. (Default: sh)
When specifying an inline script you also must specify the shell to use. This is automatically inferred when using paths.
Optional. When set to true will continue to run the command even after a script error has occurred. (Default: false)
Optional. When set to true will bind the script to stdin, stdout & stderr of the running console. (Default: false)
If variable was set as a secret in the environment, the secret value will be passed to the hook.
7 nested properties
Optional. The type of shell to use for the hook. (Default: sh)
When specifying an inline script you also must specify the shell to use. This is automatically inferred when using paths.
Optional. When set to true will continue to run the command even after a script error has occurred. (Default: false)
Optional. When set to true will bind the script to stdin, stdout & stderr of the running console. (Default: false)
If variable was set as a secret in the environment, the secret value will be passed to the hook.
If variable was set as a secret in the environment, the secret value will be passed to the hook.
If variable was set as a secret in the environment, the secret value will be passed to the hook.
This is only applicable for hosts that support containers
Path to the Dockerfile is relative to your service
When specified overrides the default context
If omitted, will default to value of AZURE_CONTAINER_REGISTRY_ENDPOINT environment variable. Supports environment variable substitution.
If omitted, will default to the '{appName}/{serviceName}-{environmentName}'. Supports environment variable substitution.
If omitted, will default to 'azd-deploy-{unix time (seconds)}'. Supports environment variable substitution. For example, to generate unique tags for a given release: myapp/myimage:${DOCKER_IMAGE_TAG}
Build arguments to pass to the docker build command.
Sets the networking mode for RUN instructions during build. Passed as --network to docker build. For example, use 'host' to allow the build container to access the host network.
If set to true, the image will be built remotely using the Azure Container Registry remote build feature. If the remote build fails, azd automatically falls back to building locally using Docker or Podman if available. If set to false, the image will be built locally.
When set it will override the default deployment path location for k8s deployment manifests.
When specified a new k8s namespace will be created if it does not already exist
1 nested properties
Used during deployment to ensure if the k8s deployment rollout has been completed. If not set will search for a deployment resource in the same namespace that contains the service name.
1 nested properties
Used when determining endpoints for the default service resource. If not set will search for a deployment resource in the same namespace that contains the service name.
2 nested properties
Used when determining endpoints for the default ingress resource. If not set will search for a deployment resource in the same namespace that contains the service name.
When set will be appended to the root of your ingress resource path.
2 nested properties
When set will add the helm repositories to the helm client.
When set will install the helm releases to the k8s cluster.
3 nested properties
When set will use the kustomize directory to deploy to the k8s cluster. Supports environment variable substitution.
When set will apply the edits to the kustomize directory before deployment. Supports environment variable substitution.
When set will generate a .env file in the kustomize directory. Values support environment variable substitution.
Optional. Provides additional configuration for remote state management such as Azure Blob Storage.
Required. The Azure Storage account name.
Optional. The Azure Storage container name. Defaults to project name if not specified.
Optional. The Azure Storage endpoint. (Default: blob.core.windows.net)
Optional. Provides additional project configuration for Azure Dev Center integration.
Optional. Used as the default dev center for this project.
Optional. Used as the default dev center project for this project.
Optional. Used as the default dev center catalog for this project.
Optional. Used as the default dev center environment definition for this project.
Optional. Used as the default environment type for this project.
Required. The path to the AI component configuration file or path to the AI component source code.
Optional. When omitted azd will generate a name based on the component type and the service name. Supports environment variable substitution.
Optional. Supports environment variable substitution.
Optional. When omitted azd will use the value specified in the 'AZUREAI_PROJECT_NAME' environment variable. Supports environment variable substitution.
3 nested properties
Required. The path to the AI component configuration file or path to the AI component source code.
Optional. When omitted azd will generate a name based on the component type and the service name. Supports environment variable substitution.
Optional. Supports environment variable substitution.
3 nested properties
Required. The path to the AI component configuration file or path to the AI component source code.
Optional. When omitted azd will generate a name based on the component type and the service name. Supports environment variable substitution.
Optional. Supports environment variable substitution.
3 nested properties
Required. The path to the AI component configuration file or path to the AI component source code.
Optional. When omitted azd will generate a name based on the component type and the service name. Supports environment variable substitution.
Optional. Supports environment variable substitution.
An Azure App Service web app.
Optional. The port that the web app listens on. (Default: 80)
Required. The language runtime configuration for the App Service web app.
2 nested properties
Required. The language runtime stack.
Required. The language runtime version. Format varies by stack. (Example: '22-lts' for Node, '3.13' for Python)
Optional. Startup command that will be run as part of web app startup.
A Docker-based container app.
Optional. The port that the container app listens on. (Default: 80)
A deployed, ready-to-use AI model.
Optional. When set to true, this resource will not be created and instead be used for referencing purposes. (Default: false)
The underlying AI model.
2 nested properties
Required. The name of the AI model.
Required. The version of the AI model.
A Microsoft Foundry project with models.
Optional. When set to true, this resource will not be created and instead be used for referencing purposes. (Default: false)
Optional. The AI models to be deployed as part of the AI project.
Optional. When set to true, this resource will not be created and instead be used for referencing purposes. (Default: false)
The type of resource to be created. (Example: db.postgres)
A deployed, ready-to-use Azure Cosmos DB for NoSQL database.
Containers to be created to store data. Each container stores a collection of items.
An Azure Event Hubs namespace.
Optional. When set to true, this resource will not be created and instead be used for referencing purposes. (Default: false)
An Azure Service Bus namespace.
Optional. When set to true, this resource will not be created and instead be used for referencing purposes. (Default: false)
A deployed, ready-to-use Azure Storage Account.
Optional. When set to true, this resource will not be created and instead be used for referencing purposes. (Default: false)
The container names of Azure Storage Account.
Optional. When set to true, this resource will not be created and instead be used for referencing purposes. (Default: false)