diff --git a/schemas/alpha/azure.yaml.json b/schemas/alpha/azure.yaml.json index dd25b867b40..a780365567e 100644 --- a/schemas/alpha/azure.yaml.json +++ b/schemas/alpha/azure.yaml.json @@ -66,8 +66,7 @@ "type": "object", "additionalProperties": false, "required": [ - "project", - "language" + "host" ], "properties": { "resourceName": { @@ -81,10 +80,9 @@ }, "host": { "type": "string", - "title": "Type of Azure resource used for service implementation", - "description": "If omitted, App Service will be assumed.", + "title": "Required. The type of Azure resource used for service implementation", + "description": "The Azure service that will be used as the target for deployment operations for the service.", "enum": [ - "", "appservice", "containerapp", "function", @@ -176,6 +174,10 @@ } }, "then": { + "required": [ + "project", + "language" + ], "properties": { "docker": false } @@ -541,16 +543,21 @@ "title": "The platform target", "default": "amd64" }, - "tag": { - "type": "string", - "title": "The tag that will be applied to the built container image.", - "description": "If omitted, a unique tag will be generated based on the format: {appName}/{serviceName}-{environmentName}:azd-deploy-{unix time (seconds)}. Supports environment variable substitution. For example, to generate unique tags for a given release: myapp/myimage:${DOCKER_IMAGE_TAG}" - }, "registry": { "type": "string", - "title": "The container registry to push the image to.", + "title": "Optional. The container registry to push the image to.", "description": "If omitted, will default to value of AZURE_CONTAINER_REGISTRY_ENDPOINT environment variable. Supports environment variable substitution." }, + "image": { + "type": "string", + "title": "Optional. The name of the container image to use for the service.", + "description": "If omitted, will default to the '{appName}/{serviceName}-{environmentName}'. Supports environment variable substitution." + }, + "tag": { + "type": "string", + "title": "The tag that will be applied to the built container image.", + "description": "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}" + }, "buildArgs": { "type": "array", "title": "Optional. Build arguments to pass to the docker build command",