-
Notifications
You must be signed in to change notification settings - Fork 423
Expand file tree
/
Copy pathmain.bicep
More file actions
61 lines (57 loc) · 1.54 KB
/
Copy pathmain.bicep
File metadata and controls
61 lines (57 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
param aiFoundryName string = 'resourcename'
param aiProjectName string = '${aiFoundryName}-proj'
param location string = 'westus'
/*
An AI Foundry resources is a variant of a CognitiveServices/account resource type
*/
resource aiFoundry 'Microsoft.CognitiveServices/accounts@2025-04-01-preview' = {
name: aiFoundryName
location: location
identity: {
type: 'SystemAssigned'
}
sku: {
name: 'S0'
}
kind: 'AIServices'
properties: {
allowProjectManagement: true // required to work in AI Foundry
// Defines developer API endpoint subdomain
customSubDomainName: aiFoundryName
}
}
/*
Developer APIs are exposed via a project, which groups in- and outputs that relate to one use case, including files.
Its advisable to create one project right away, so development teams can directly get started.
Projects may be granted individual RBAC permissions and identities on top of what account provides.
*/
resource aiProject 'Microsoft.CognitiveServices/accounts/projects@2025-04-01-preview' = {
name: aiProjectName
parent: aiFoundry
location: location
identity: {
type: 'SystemAssigned'
}
properties: {
displayName: 'test'
description: 'test2'
isDefault: true
}
}
/*
Optionally deploy a model to use in playground, agents and other tools.
*/
resource modelDeployment 'Microsoft.CognitiveServices/accounts/deployments@2024-10-01'= {
parent: aiFoundry
name: 'gpt-4o'
sku : {
capacity: 1
name: 'GlobalStandard'
}
properties: {
model:{
name: 'gpt-4o'
format: 'OpenAI'
}
}
}