From acf35844ce0a1cf19653199608d982e6b7c0b747 Mon Sep 17 00:00:00 2001 From: huimiu Date: Tue, 30 Jun 2026 12:37:24 +0800 Subject: [PATCH 1/5] fix: enforce known host values in azure.yaml schema --- schemas/alpha/azure.yaml.json | 16 ++++++++++++++++ schemas/v1.0/azure.yaml.json | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/schemas/alpha/azure.yaml.json b/schemas/alpha/azure.yaml.json index f4d3cc7177a..15fb21ba6d7 100644 --- a/schemas/alpha/azure.yaml.json +++ b/schemas/alpha/azure.yaml.json @@ -222,6 +222,22 @@ "type": "string", "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", + "springapp", + "staticwebapp", + "aks", + "ai.endpoint", + "azure.ai.agent", + "microsoft.foundry", + "azure.ai.project", + "azure.ai.connection", + "azure.ai.toolbox", + "azure.ai.skill", + "azure.ai.routine" + ], "examples": [ "appservice", "containerapp", diff --git a/schemas/v1.0/azure.yaml.json b/schemas/v1.0/azure.yaml.json index 59a7ba5b7a9..09c9255b390 100644 --- a/schemas/v1.0/azure.yaml.json +++ b/schemas/v1.0/azure.yaml.json @@ -183,6 +183,22 @@ "type": "string", "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", + "springapp", + "staticwebapp", + "aks", + "ai.endpoint", + "azure.ai.agent", + "microsoft.foundry", + "azure.ai.project", + "azure.ai.connection", + "azure.ai.toolbox", + "azure.ai.skill", + "azure.ai.routine" + ], "examples": [ "appservice", "containerapp", From f636aea1d86217388b2374058cf641e248d7c62a Mon Sep 17 00:00:00 2001 From: huimiu Date: Tue, 30 Jun 2026 14:00:12 +0800 Subject: [PATCH 2/5] fix: replace enum with examples for host in azure.yaml schemas --- schemas/alpha/azure.yaml.json | 16 ---------------- schemas/v1.0/azure.yaml.json | 16 ---------------- 2 files changed, 32 deletions(-) diff --git a/schemas/alpha/azure.yaml.json b/schemas/alpha/azure.yaml.json index 15fb21ba6d7..f4d3cc7177a 100644 --- a/schemas/alpha/azure.yaml.json +++ b/schemas/alpha/azure.yaml.json @@ -222,22 +222,6 @@ "type": "string", "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", - "springapp", - "staticwebapp", - "aks", - "ai.endpoint", - "azure.ai.agent", - "microsoft.foundry", - "azure.ai.project", - "azure.ai.connection", - "azure.ai.toolbox", - "azure.ai.skill", - "azure.ai.routine" - ], "examples": [ "appservice", "containerapp", diff --git a/schemas/v1.0/azure.yaml.json b/schemas/v1.0/azure.yaml.json index 09c9255b390..59a7ba5b7a9 100644 --- a/schemas/v1.0/azure.yaml.json +++ b/schemas/v1.0/azure.yaml.json @@ -183,22 +183,6 @@ "type": "string", "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", - "springapp", - "staticwebapp", - "aks", - "ai.endpoint", - "azure.ai.agent", - "microsoft.foundry", - "azure.ai.project", - "azure.ai.connection", - "azure.ai.toolbox", - "azure.ai.skill", - "azure.ai.routine" - ], "examples": [ "appservice", "containerapp", From 186e677b295ad43c7f40becf152504e1f344ffbf Mon Sep 17 00:00:00 2001 From: huimiu Date: Tue, 30 Jun 2026 14:10:17 +0800 Subject: [PATCH 3/5] fix: enforce host enum and drop springapp and microsoft.foundry --- schemas/alpha/azure.yaml.json | 4 +--- schemas/v1.0/azure.yaml.json | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/schemas/alpha/azure.yaml.json b/schemas/alpha/azure.yaml.json index f4d3cc7177a..7c81147502e 100644 --- a/schemas/alpha/azure.yaml.json +++ b/schemas/alpha/azure.yaml.json @@ -222,16 +222,14 @@ "type": "string", "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.", - "examples": [ + "enum": [ "appservice", "containerapp", "function", - "springapp", "staticwebapp", "aks", "ai.endpoint", "azure.ai.agent", - "microsoft.foundry", "azure.ai.project", "azure.ai.connection", "azure.ai.toolbox", diff --git a/schemas/v1.0/azure.yaml.json b/schemas/v1.0/azure.yaml.json index 59a7ba5b7a9..411d2c0f9bc 100644 --- a/schemas/v1.0/azure.yaml.json +++ b/schemas/v1.0/azure.yaml.json @@ -183,16 +183,14 @@ "type": "string", "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.", - "examples": [ + "enum": [ "appservice", "containerapp", "function", - "springapp", "staticwebapp", "aks", "ai.endpoint", "azure.ai.agent", - "microsoft.foundry", "azure.ai.project", "azure.ai.connection", "azure.ai.toolbox", From 4228fb36803d835d2cfda7caa05183700260477a Mon Sep 17 00:00:00 2001 From: huimiu Date: Tue, 30 Jun 2026 18:57:35 +0800 Subject: [PATCH 4/5] fix: document host enum restriction in azure.yaml schemas --- schemas/alpha/azure.yaml.json | 2 +- schemas/v1.0/azure.yaml.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/schemas/alpha/azure.yaml.json b/schemas/alpha/azure.yaml.json index 7c81147502e..9bb8400a749 100644 --- a/schemas/alpha/azure.yaml.json +++ b/schemas/alpha/azure.yaml.json @@ -221,7 +221,7 @@ "host": { "type": "string", "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.", + "description": "The Azure service that will be used as the target for deployment operations for the service. Limited to the host types azd recognizes; hosts contributed by extensions are resolved by azd at runtime and may not be listed here.", "enum": [ "appservice", "containerapp", diff --git a/schemas/v1.0/azure.yaml.json b/schemas/v1.0/azure.yaml.json index 411d2c0f9bc..c804bbbb08d 100644 --- a/schemas/v1.0/azure.yaml.json +++ b/schemas/v1.0/azure.yaml.json @@ -182,7 +182,7 @@ "host": { "type": "string", "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.", + "description": "The Azure service that will be used as the target for deployment operations for the service. Limited to the host types azd recognizes; hosts contributed by extensions are resolved by azd at runtime and may not be listed here.", "enum": [ "appservice", "containerapp", From ad90464871b1172c472d526873ee1c6c05b1d508 Mon Sep 17 00:00:00 2001 From: huimiu Date: Thu, 9 Jul 2026 16:34:12 +0800 Subject: [PATCH 5/5] fix: keep azure yaml host examples open-ended --- schemas/alpha/azure.yaml.json | 6 ++++-- schemas/v1.0/azure.yaml.json | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/schemas/alpha/azure.yaml.json b/schemas/alpha/azure.yaml.json index 9bb8400a749..f4d3cc7177a 100644 --- a/schemas/alpha/azure.yaml.json +++ b/schemas/alpha/azure.yaml.json @@ -221,15 +221,17 @@ "host": { "type": "string", "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. Limited to the host types azd recognizes; hosts contributed by extensions are resolved by azd at runtime and may not be listed here.", - "enum": [ + "description": "The Azure service that will be used as the target for deployment operations for the service.", + "examples": [ "appservice", "containerapp", "function", + "springapp", "staticwebapp", "aks", "ai.endpoint", "azure.ai.agent", + "microsoft.foundry", "azure.ai.project", "azure.ai.connection", "azure.ai.toolbox", diff --git a/schemas/v1.0/azure.yaml.json b/schemas/v1.0/azure.yaml.json index c804bbbb08d..59a7ba5b7a9 100644 --- a/schemas/v1.0/azure.yaml.json +++ b/schemas/v1.0/azure.yaml.json @@ -182,15 +182,17 @@ "host": { "type": "string", "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. Limited to the host types azd recognizes; hosts contributed by extensions are resolved by azd at runtime and may not be listed here.", - "enum": [ + "description": "The Azure service that will be used as the target for deployment operations for the service.", + "examples": [ "appservice", "containerapp", "function", + "springapp", "staticwebapp", "aks", "ai.endpoint", "azure.ai.agent", + "microsoft.foundry", "azure.ai.project", "azure.ai.connection", "azure.ai.toolbox",