Skip to content

Commit 67225f2

Browse files
fix: update Key Vault and AI Services configurations for public network access
1 parent bd244c7 commit 67225f2

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

infra/deploy_keyvault.bicep

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ resource keyVault 'Microsoft.KeyVault/vaults@2022-07-01' = {
3232
enabledForDeployment: true
3333
enabledForDiskEncryption: true
3434
enabledForTemplateDeployment: true
35-
enableSoftDelete: false
3635
enableRbacAuthorization: true
3736
publicNetworkAccess: 'enabled'
3837
sku: {

infra/main.bicep

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ targetScope = 'resourceGroup'
2626
'westus3'
2727
])
2828
@description('Location for all Ai services resources. This location can be different from the resource group location.')
29-
param azureOpenAILocation string = 'eastus2' // The location used for all deployed resources. This location must be in the same region as the resource group.
29+
param azureOpenAILocation string = 'eastus2'
3030

3131
@minLength(3)
3232
@maxLength(20)
@@ -129,6 +129,7 @@ resource aiServices 'Microsoft.CognitiveServices/accounts@2024-04-01-preview' =
129129
//statisticsEnabled: false
130130
}
131131
disableLocalAuth: true
132+
publicNetworkAccess: 'Enabled'
132133
}
133134
}
134135

infra/main.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.35.1.17967",
9-
"templateHash": "4208201882676728802"
9+
"templateHash": "2907054203534234249"
1010
}
1111
},
1212
"parameters": {
1313
"azureOpenAILocation": {
1414
"type": "string",
15+
"defaultValue": "eastus2",
1516
"allowedValues": [
1617
"australiaeast",
1718
"brazilsouth",
@@ -454,7 +455,8 @@
454455
"properties": {
455456
"customSubDomainName": "[variables('aiServicesName')]",
456457
"apiProperties": {},
457-
"disableLocalAuth": true
458+
"disableLocalAuth": true,
459+
"publicNetworkAccess": "Enabled"
458460
}
459461
},
460462
"aiServicesDeployments": {
@@ -810,7 +812,7 @@
810812
"_generator": {
811813
"name": "bicep",
812814
"version": "0.35.1.17967",
813-
"templateHash": "4587248441449388111"
815+
"templateHash": "7119862929918770475"
814816
}
815817
},
816818
"parameters": {
@@ -858,7 +860,6 @@
858860
"enabledForDeployment": true,
859861
"enabledForDiskEncryption": true,
860862
"enabledForTemplateDeployment": true,
861-
"enableSoftDelete": false,
862863
"enableRbacAuthorization": true,
863864
"publicNetworkAccess": "enabled",
864865
"sku": {

0 commit comments

Comments
 (0)