Skip to content

Commit b8fa2e3

Browse files
authored
Merge pull request #90 from vhvb1989/harden-getting-started-with-agents
Adding quota check for ai models
2 parents 5c69e25 + 5275bb7 commit b8fa2e3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

infra/main.bicep

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,26 @@ targetScope = 'subscription'
55
@description('Name of the the environment which is used to generate a short unique hash used in all resources.')
66
param environmentName string
77

8-
@minLength(1)
98
@description('Location for all resources')
10-
// Look for desired models on the availability table:
11-
// Agents must be supported in the region
9+
// Based on the model, creating an agent is not supported in all regions.
10+
// The combination of allowed and usageName below is for AZD to check AI model gpt-4o-mini quota only for the allowed regions for creating an agent.
11+
// If using different models, update the SKU,capacity depending on the model you use.
1212
// https://learn.microsoft.com/azure/ai-services/agents/concepts/model-region-support
1313
@allowed([
1414
'eastus'
1515
'eastus2'
1616
'swedencentral'
17-
'switzerlandnorth'
1817
'westus'
1918
'westus3'
2019
])
2120
@metadata({
2221
azd: {
2322
type: 'location'
23+
// quota-validation for ai models: gpt-4o-mini & text-embedding-3-small
24+
usageName: [
25+
'OpenAI.GlobalStandard.gpt-4o-mini,30'
26+
'OpenAI.GlobalStandard.text-embedding-3-small,30'
27+
]
2428
}
2529
})
2630
param location string

0 commit comments

Comments
 (0)