Skip to content

Commit 01ba4d3

Browse files
authored
Add ai.project resource to alpha azure.yaml schema (#4970)
1 parent 3326327 commit 01ba4d3

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

schemas/alpha/azure.yaml.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@
372372
"db.mongo",
373373
"db.cosmos",
374374
"ai.openai.model",
375+
"ai.project",
375376
"ai.search",
376377
"host.containerapp",
377378
"messaging.eventhubs",
@@ -392,6 +393,7 @@
392393
"allOf": [
393394
{ "if": { "properties": { "type": { "const": "host.containerapp" }}}, "then": { "$ref": "#/definitions/containerAppResource" } },
394395
{ "if": { "properties": { "type": { "const": "ai.openai.model" }}}, "then": { "$ref": "#/definitions/aiModelResource" } },
396+
{ "if": { "properties": { "type": { "const": "ai.project" }}}, "then": { "$ref": "#/definitions/aiProjectResource" } },
395397
{ "if": { "properties": { "type": { "const": "ai.search" }}}, "then": { "$ref": "#/definitions/resource" } },
396398
{ "if": { "properties": { "type": { "const": "db.postgres" }}}, "then": { "$ref": "#/definitions/resource"} },
397399
{ "if": { "properties": { "type": { "const": "db.mysql" }}}, "then": { "$ref": "#/definitions/resource"} },
@@ -1258,6 +1260,7 @@
12581260
"db.cosmos",
12591261
"host.containerapp",
12601262
"ai.openai.model",
1263+
"ai.project",
12611264
"ai.search",
12621265
"keyvault"
12631266
]
@@ -1445,6 +1448,67 @@
14451448
}
14461449
}
14471450
}
1451+
},
1452+
"aiProjectResource": {
1453+
"type": "object",
1454+
"description": "An Azure AI Foundry project with models.",
1455+
"additionalProperties": false,
1456+
"properties": {
1457+
"type": true,
1458+
"uses": true,
1459+
"models": {
1460+
"type": "array",
1461+
"title": "AI models to deploy",
1462+
"description": "Optional. The AI models to be deployed as part of the AI project.",
1463+
"minItems": 1,
1464+
"items": {
1465+
"type": "object",
1466+
"additionalProperties": false,
1467+
"required": ["name", "version", "format", "sku"],
1468+
"properties": {
1469+
"name": {
1470+
"type": "string",
1471+
"title": "The name of the AI model.",
1472+
"description": "Required. The name of the AI model."
1473+
},
1474+
"version": {
1475+
"type": "string",
1476+
"title": "The version of the AI model.",
1477+
"description": "Required. The version of the AI model."
1478+
},
1479+
"format": {
1480+
"type": "string",
1481+
"title": "The format of the AI model.",
1482+
"description": "Required. The format of the AI model. (Example: Microsoft, OpenAI)"
1483+
},
1484+
"sku": {
1485+
"type": "object",
1486+
"title": "The SKU configuration for the AI model.",
1487+
"description": "Required. The SKU details for the AI model.",
1488+
"additionalProperties": false,
1489+
"required": ["name", "usageName", "capacity"],
1490+
"properties": {
1491+
"name": {
1492+
"type": "string",
1493+
"title": "The name of the SKU.",
1494+
"description": "Required. The name of the SKU. (Example: GlobalStandard)"
1495+
},
1496+
"usageName": {
1497+
"type": "string",
1498+
"title": "The usage name of the SKU.",
1499+
"description": "Required. The usage name of the SKU for billing purposes. (Example: AIServices.GlobalStandard.MaaS, OpenAI.GlobalStandard.gpt-4o-mini)"
1500+
},
1501+
"capacity": {
1502+
"type": "integer",
1503+
"title": "The capacity of the SKU.",
1504+
"description": "Required. The capacity of the SKU."
1505+
}
1506+
}
1507+
}
1508+
}
1509+
}
1510+
}
1511+
}
14481512
}
14491513
}
14501514
}

0 commit comments

Comments
 (0)