File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -154,12 +154,7 @@ module kvault 'deploy_keyvault.bicep' = {
154154}
155155
156156// First, add this section to store the AI Services key in Key Vault
157- resource aiServicesKeySecret 'Microsoft.KeyVault/vaults/secrets@2022-07-01' = {
158- name : '${kvault .outputs .keyvaultName }/aiServicesKey'
159- properties : {
160- value : aiServices .listKeys ().key1
161- }
162- }
157+
163158
164159// Then modify the aifoundry module to reference the secret securely
165160module aifoundry 'deploy_ai_foundry.bicep' = {
@@ -172,13 +167,10 @@ module aifoundry 'deploy_ai_foundry.bicep' = {
172167 gptModelVersion : gptModelVersion
173168 managedIdentityObjectId : managedIdentityModule .outputs .managedIdentityOutput .objectId
174169 aiServicesEndpoint : aiServices .properties .endpoint
175- aiServicesKey : '@Microsoft.KeyVault(SecretUri=${ kvault . outputs . keyVaultUri }secrets/aiServicesKey/)'
170+ aiServicesKey : aiServices . listKeys (). key1
176171 aiServicesId : aiServices .id
177172 }
178173 scope : resourceGroup (resourceGroup ().name )
179- dependsOn : [
180- aiServicesKeySecret
181- ]
182174}
183175
184176resource aoaiUserRoleDefinition 'Microsoft.Authorization/roleDefinitions@2022-05-01-preview' existing = {
You can’t perform that action at this time.
0 commit comments