Skip to content

Commit 60fddbe

Browse files
fix: Enable Microsoft Entra Only Authentication in Sql Server (#497)
* added supported OpenAI location and solutionLocation parameter and update resource locations in Bicep files * Updated the error message in process_sample_data.sh * Add administrators configuration for SQL server in Bicep files --------- Co-authored-by: Roopan P M <[email protected]>
1 parent 215357f commit 60fddbe

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

infra/bicep/deploy_sql_db.bicep

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ resource sqlServer 'Microsoft.Sql/servers@2023-08-01-preview' = {
3030
publicNetworkAccess: 'Enabled'
3131
version: '12.0'
3232
restrictOutboundNetworkAccess: 'Disabled'
33-
// administrators: {
34-
// login: managedIdentityName
35-
// sid: managedIdentityObjectId
36-
// tenantId: subscription().tenantId
37-
// administratorType: 'ActiveDirectory'
38-
// azureADOnlyAuthentication: true
39-
// }
33+
administrators: {
34+
login: managedIdentityName
35+
sid: managedIdentityObjectId
36+
tenantId: subscription().tenantId
37+
administratorType: 'ActiveDirectory'
38+
azureADOnlyAuthentication: true
39+
}
4040
}
4141
}
4242

infra/bicep/main.bicepparam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using './main.bicep'
22

3-
param environmentName = readEnvironmentVariable('AZURE_ENV_NAME', 'env_name')
3+
param environmentName = readEnvironmentVariable('AZURE_ENV_NAME', 'byocatemplate')
44
param cosmosLocation = readEnvironmentVariable('AZURE_ENV_COSMOS_LOCATION', 'eastus2')
55
param deploymentType = readEnvironmentVariable('AZURE_ENV_MODEL_DEPLOYMENT_TYPE', 'GlobalStandard')
66
param gptModelName = readEnvironmentVariable('AZURE_ENV_MODEL_NAME', 'gpt-4o-mini')

infra/bicep/main.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@
19511951
"_generator": {
19521952
"name": "bicep",
19531953
"version": "0.34.44.8038",
1954-
"templateHash": "10479451396958857413"
1954+
"templateHash": "7638613638995120962"
19551955
}
19561956
},
19571957
"parameters": {
@@ -2013,7 +2013,14 @@
20132013
"administratorLoginPassword": "[parameters('administratorLoginPassword')]",
20142014
"publicNetworkAccess": "Enabled",
20152015
"version": "12.0",
2016-
"restrictOutboundNetworkAccess": "Disabled"
2016+
"restrictOutboundNetworkAccess": "Disabled",
2017+
"administrators": {
2018+
"login": "[parameters('managedIdentityName')]",
2019+
"sid": "[parameters('managedIdentityObjectId')]",
2020+
"tenantId": "[subscription().tenantId]",
2021+
"administratorType": "ActiveDirectory",
2022+
"azureADOnlyAuthentication": true
2023+
}
20172024
}
20182025
},
20192026
{

0 commit comments

Comments
 (0)