@@ -11,6 +11,7 @@ param managedIdentityObjectId string
1111param aiServicesEndpoint string
1212param aiServicesKey string
1313param aiServicesId string
14+ param aureaiFoundryEndpoint string
1415
1516param aiFoundryName string
1617param existingLogAnalyticsWorkspaceId string = ''
@@ -69,125 +70,6 @@ resource applicationInsights 'Microsoft.Insights/components@2020-02-02' = {
6970
7071var storageNameCleaned = replace (replace (replace (replace ('${storageName }cast' , '-' , '' ), '_' , '' ), '.' , '' ),'/' , '' )
7172
72-
73-
74-
75- // resource storage 'Microsoft.Storage/storageAccounts@2022-09-01' = {
76- // name: storageNameCleaned
77- // location: location
78- // sku: {
79- // name: storageSkuName
80- // }
81- // kind: 'StorageV2'
82- // identity: {
83- // type: 'SystemAssigned'
84- // }
85- // properties: {
86- // accessTier: 'Hot'
87- // allowBlobPublicAccess: false
88- // allowCrossTenantReplication: false
89- // allowSharedKeyAccess: false
90- // encryption: {
91- // keySource: 'Microsoft.Storage'
92- // requireInfrastructureEncryption: false
93- // services: {
94- // blob: {
95- // enabled: true
96- // keyType: 'Account'
97- // }
98- // file: {
99- // enabled: true
100- // keyType: 'Account'
101- // }
102- // queue: {
103- // enabled: true
104- // keyType: 'Service'
105- // }
106- // table: {
107- // enabled: true
108- // keyType: 'Service'
109- // }
110- // }
111- // }
112- // isHnsEnabled: false
113- // isNfsV3Enabled: false
114- // keyPolicy: {
115- // keyExpirationPeriodInDays: 7
116- // }
117- // largeFileSharesState: 'Disabled'
118- // minimumTlsVersion: 'TLS1_2'
119- // networkAcls: {
120- // bypass: 'AzureServices'
121- // defaultAction: 'Allow'
122- // }
123- // supportsHttpsTrafficOnly: true
124- // }
125- // }
126-
127- // @description('This is the built-in Storage Blob Data Contributor.')
128- // resource blobDataContributor 'Microsoft.Authorization/roleDefinitions@2018-01-01-preview' existing = {
129- // scope: subscription()
130- // name: 'ba92f5b4-2d11-453d-a403-e96b0029c9fe'
131- // }
132-
133- // resource storageroleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
134- // name: guid(resourceGroup().id, managedIdentityObjectId, blobDataContributor.id)
135- // scope: storage
136- // properties: {
137- // principalId: managedIdentityObjectId
138- // roleDefinitionId: blobDataContributor.id
139- // principalType: 'ServicePrincipal'
140- // }
141- // }
142-
143- // resource aiHub 'Microsoft.MachineLearningServices/workspaces@2023-08-01-preview' = {
144- // name: azureAiHubName
145- // location: location
146- // identity: {
147- // type: 'SystemAssigned'
148- // }
149- // properties: {
150- // // organization
151- // friendlyName: aiHubFriendlyName
152- // description: aiHubDescription
153-
154- // // dependent resources
155- // keyVault: keyVault.id
156- // storageAccount: storage.id
157- // }
158- // kind: 'hub'
159-
160- // resource aiServicesConnection 'connections@2024-07-01-preview' = {
161- // name: '${azureAiHubName}-connection-AzureOpenAI'
162- // properties: {
163- // category: 'AIServices'
164- // target: aiServicesEndpoint
165- // authType: 'ApiKey'
166- // isSharedToAll: true
167- // credentials: {
168- // key: aiServicesKey
169- // }
170- // metadata: {
171- // ApiType: 'Azure'
172- // ResourceId: aiServicesId
173- // }
174- // }
175- // }
176- // }
177-
178- // resource aiHubProject 'Microsoft.MachineLearningServices/workspaces@2024-01-01-preview' = {
179- // name: aiProjectName
180- // location: location
181- // kind: 'Project'
182- // identity: {
183- // type: 'SystemAssigned'
184- // }
185- // properties: {
186- // friendlyName: aiProjectFriendlyName
187- // hubResourceId: aiHub.id
188- // }
189- // }
190-
19173resource tenantIdEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
19274 parent : keyVault
19375 name : 'TENANT-ID'
@@ -244,13 +126,13 @@ resource azureOpenAIEndpointEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-
244126 }
245127}
246128
247- // resource azureAIProjectConnectionStringEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
248- // parent: keyVault
249- // name: 'AZURE- AI-PROJECT-CONN-STRING '
250- // properties: {
251- // value: '${split(aiFoundryProject.properties.discoveryUrl, '/')[2]};${subscription().subscriptionId};${resourceGroup().name};${aiFoundryProject.name}'
252- // }
253- // }
129+ resource azureAIProjectEndpointEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
130+ parent : keyVault
131+ name : 'AI-PROJECT-ENDPOINT '
132+ properties : {
133+ value : aureaiFoundryEndpoint
134+ }
135+ }
254136
255137resource azureOpenAICUApiVersionEntry 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview' = {
256138 parent : keyVault
@@ -324,5 +206,4 @@ output aiSearchName string = aiSearchName
324206output storageAccountName string = storageNameCleaned
325207
326208output logAnalyticsId string = useExisting ? existingLogAnalyticsWorkspace .id : logAnalytics .id
327- // output storageAccountId string = storage.id
328209output applicationInsightsConnectionString string = applicationInsights .properties .ConnectionString
0 commit comments