Skip to content

Commit 0560ce0

Browse files
committed
update one at a time
1 parent 88aeac5 commit 0560ce0

File tree

6 files changed

+38
-189
lines changed

6 files changed

+38
-189
lines changed
Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
param 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
}

samples/microsoft/infrastructure-setup/02-regional-endpoint/README.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

samples/microsoft/infrastructure-setup/02-regional-endpoint/main.bicep

Lines changed: 0 additions & 60 deletions
This file was deleted.

samples/microsoft/infrastructure-setup/02-regional-endpoint/metadata.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

samples/microsoft/infrastructure-setup/50-upgrade-to-ai-foundry/README.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

samples/microsoft/infrastructure-setup/50-upgrade-to-ai-foundry/aoai-template.bicep

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)