11param aiFoundryName string = 'uniquename'
2- param location string = 'westeurope'
2+ param aiProjectName string = '${aiFoundryName }-proj'
3+ param location string = 'eastus2'
34
45/*
56 An AI Foundry resources is a variant of a CognitiveServices/account resource type
67*/
7- resource aiFoundry 'Microsoft.CognitiveServices/accounts@2025-06 -01' = {
8+ resource aiFoundry 'Microsoft.CognitiveServices/accounts@2025-04 -01-preview ' = {
89 name : aiFoundryName
910 location : location
1011 identity : {
@@ -18,11 +19,42 @@ resource aiFoundry 'Microsoft.CognitiveServices/accounts@2025-06-01' = {
1819 // required to work in AI Foundry
1920 allowProjectManagement : true
2021
21- publicNetworkAccess : 'Enabled'
22+ // Defines developer API endpoint subdomain
23+ customSubDomainName : aiFoundryName
2224
23- // was 'uniquename' before, could update to below
24- customSubDomainName : ''
25+ disableLocalAuth : true
26+ }
27+ }
2528
26- disableLocalAuth : false
29+ /*
30+ Developer APIs are exposed via a project, which groups in- and outputs that relate to one use case, including files.
31+ Its advisable to create one project right away, so development teams can directly get started.
32+ Projects may be granted individual RBAC permissions and identities on top of what account provides.
33+ */
34+ resource aiProject 'Microsoft.CognitiveServices/accounts/projects@2025-04-01-preview' = {
35+ name : aiProjectName
36+ parent : aiFoundry
37+ location : location
38+ identity : {
39+ type : 'SystemAssigned'
40+ }
41+ properties : {}
42+ }
43+
44+ /*
45+ Optionally deploy a model to use in playground, agents and other tools.
46+ */
47+ resource modelDeployment 'Microsoft.CognitiveServices/accounts/deployments@2024-10-01' = {
48+ parent : aiFoundry
49+ name : 'gpt-4o'
50+ sku : {
51+ capacity : 1
52+ name : 'GlobalStandard'
53+ }
54+ properties : {
55+ model :{
56+ name : 'gpt-4o'
57+ format : 'OpenAI'
58+ }
2759 }
2860}
0 commit comments