-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeploy.bicep
51 lines (44 loc) · 1.08 KB
/
deploy.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
46
47
48
49
50
51
param resourcePrefix string = 'b59-eus2-aichatui'
param location string = resourceGroup().location
param azureOpenAISku string = 'S0'
param azureOpenAIDeploymentName string = 'b59-gpt-35-turbo'
var resourceTags = {
project: 'https://github.com/build5nines/AIChatUI'
}
resource azureopenai 'Microsoft.CognitiveServices/accounts@2023-10-01-preview' = {
name: '${resourcePrefix}-oai'
location: location
tags: resourceTags
kind: 'OpenAI'
sku: {
name: azureOpenAISku
}
properties: {
networkAcls: {
defaultAction: 'Allow'
virtualNetworkRules: []
ipRules: []
}
publicNetworkAccess: 'Enabled'
}
}
resource azureopenaideployment 'Microsoft.CognitiveServices/accounts/deployments@2023-05-01' = {
name: azureOpenAIDeploymentName
sku: {
capacity: 120
name: 'Standard'
}
parent: azureopenai
properties: {
model: {
format: 'OpenAI'
name: 'gpt-35-turbo'
version: '0613'
}
raiPolicyName: 'Microsoft.Default'
versionUpgradeOption: 'OnceCurrentVersionExpired'
scaleSettings: {
capacity: 120
}
}
}