-
Notifications
You must be signed in to change notification settings - Fork 14
/
main.bicep
45 lines (34 loc) · 953 Bytes
/
main.bicep
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
// Define the name of the Azure OpenAI resource name
param azureOpenaiResourceName string = 'dream'
// Define the name of the Azure OpenAI model name
param azureOpenaiDeploymentName string = 'gpt-4o'
//Define the OpenAI resource
resource openai 'Microsoft.CognitiveServices/accounts@2023-05-01' = {
name: azureOpenaiResourceName
location: location
sku: {
name: 'S0'
}
kind: 'OpenAI'
properties: {
}
}
// Define the OpenAI deployment
resource openaideployment 'Microsoft.CognitiveServices/accounts/deployments@2023-05-01' = {
name: azureOpenaiDeploymentName
sku: {
name: 'Standard'
capacity: 1
}
parent: openai
properties: {
model: {
name: 'gpt-4o'
format: 'OpenAI'
version: '2024-05-13'
}
raiPolicyName: 'Microsoft.Default'
versionUpgradeOption: 'OnceCurrentVersionExpired'
}
}
// value: openaideployment.name