-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNetCoreConf2024.bicep
108 lines (92 loc) · 2.47 KB
/
NetCoreConf2024.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
@description('The name of the resource group')
param resourceGroupName string
@description('The location of the resources')
param location string = resourceGroup().location
@description('The name of the Key Vault')
param keyVaultName string
@description('The name of the Azure Cognitive Search resource')
param searchServiceName string
@description('The name of the SQL Server')
param sqlServerName string
@description('The name of the SQL Database')
param sqlDatabaseName string
@description('The admin username for the SQL Server')
param sqlAdminUsername string
@description('The admin password for the SQL Server')
@secure()
param sqlAdminPassword string
@description('The name of the Storage Account')
param storageAccountName string
@description('The name of the OpenAI resource')
param openAIResourceName string
resource keyVault 'Microsoft.KeyVault/vaults@2021-06-01-preview' = {
name: keyVaultName
location: location
properties: {
sku: {
family: 'A'
name: 'standard'
}
tenantId: subscription().tenantId
accessPolicies: []
}
}
resource searchService 'Microsoft.Search/searchServices@2020-08-01' = {
name: searchServiceName
location: location
sku: {
name: 'standard'
}
properties: {
replicaCount: 1
partitionCount: 1
}
}
resource sqlServer 'Microsoft.Sql/servers@2021-02-01-preview' = {
name: sqlServerName
location: location
properties: {
administratorLogin: sqlAdminUsername
administratorLoginPassword: sqlAdminPassword
}
}
resource sqlDatabase 'Microsoft.Sql/servers/databases@2021-02-01-preview' = {
name: '${sqlServerName}/${sqlDatabaseName}'
location: location
properties: {
sku: {
name: 'S0'
tier: 'Standard'
}
}
}
resource storageAccount 'Microsoft.Storage/storageAccounts@2021-04-01' = {
name: storageAccountName
location: location
sku: {
name: 'Standard_LRS'
}
kind: 'StorageV2'
properties: {
accessTier: 'Hot'
}
}
resource openAIResource 'Microsoft.CognitiveServices/accounts@2021-04-30' = {
name: openAIResourceName
location: location
sku: {
name: 'S0'
}
kind: 'OpenAI'
properties: {
apiProperties: {
qnaRuntimeEndpoint: 'https://<your-openai-endpoint>'
}
}
}
output keyVaultId string = keyVault.id
output searchServiceId string = searchService.id
output sqlServerId string = sqlServer.id
output sqlDatabaseId string = sqlDatabase.id
output storageAccountId string = storageAccount.id
output openAIResourceId string = openAIResource.id