From de5003f7aa695771eaa018e07c7ff96d1d0c1ce2 Mon Sep 17 00:00:00 2001 From: Jeffrey Chen Date: Wed, 23 Jul 2025 20:04:12 +0000 Subject: [PATCH] Add `apiVersion` and `resourceGroup` properties to azure.yaml schema --- schemas/alpha/azure.yaml.json | 21 +++++++++++++++++++++ schemas/v1.0/azure.yaml.json | 26 ++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) 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": {