diff --git a/schemas/alpha/azure.yaml.json b/schemas/alpha/azure.yaml.json index 089115279a9..49981e1e90c 100644 --- a/schemas/alpha/azure.yaml.json +++ b/schemas/alpha/azure.yaml.json @@ -95,6 +95,11 @@ "host" ], "properties": { + "apiVersion": { + "type": "string", + "title": "Resource provider API version for deployments", + "description": "Optional. The resource provider API version to use for the service. If not specified, the default SDK API version is used. Only valid when host is 'containerapp'." + }, "resourceGroup": { "type": "string", "title": "Name of the Azure resource group that contains the resource", @@ -344,6 +349,22 @@ } } }, + { + "if": { + "not": { + "properties": { + "host": { + "const": "containerapp" + } + } + } + }, + "then": { + "properties": { + "apiVersion": false + } + } + }, { "properties": { "dist": { diff --git a/schemas/v1.0/azure.yaml.json b/schemas/v1.0/azure.yaml.json index 8c6e0e71d1f..52eafc80307 100644 --- a/schemas/v1.0/azure.yaml.json +++ b/schemas/v1.0/azure.yaml.json @@ -71,6 +71,16 @@ "host" ], "properties": { + "apiVersion": { + "type": "string", + "title": "Resource provider API version for deployments", + "description": "Optional. The resource provider API version to use for the service. If not specified, the default SDK API version is used. Only valid when host is 'containerapp'." + }, + "resourceGroup": { + "type": "string", + "title": "Name of the Azure resource group that contains the resource", + "description": "By default, the CLI will discover the Azure resource within the default resource group. When specified, the CLI will instead find the Azure resource within the specified resource group. Supports environment variable substitution." + }, "resourceName": { "type": "string", "title": "Name of the Azure resource that implements the service", @@ -315,6 +325,22 @@ } } }, + { + "if": { + "not": { + "properties": { + "host": { + "const": "containerapp" + } + } + } + }, + "then": { + "properties": { + "apiVersion": false + } + } + }, { "properties": { "dist": {