Skip to content

Commit e06ab6c

Browse files
alrios-msdanielluo-msft
authored andcommitted
Added authenticationType parameter to bicep templates
1 parent 3deb817 commit e06ab6c

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

Deployment/commonResources.bicep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ param keyVaultReaders array
88
param isManagedApplication bool
99
param managedResourceGroupName string
1010
param appConfigurationName string
11+
param authenticationType string
1112

1213
// prereqs parameters
1314
// parameters for prereqs key vault
@@ -115,6 +116,7 @@ module dataResources 'dataResources.bicep' = {
115116
sqlSkuName: sqlSkuName
116117
sqlSkuTier: sqlSkuTier
117118
tenantId: tenantId
119+
authenticationType: authenticationType
118120
}
119121
dependsOn: [
120122
prereqResources

Deployment/dataResources.bicep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ param sqlSkuFamily string
1212
param sqlSkuName string
1313
param sqlSkuTier string
1414
param tenantId string
15+
param authenticationType string
1516

1617
//data resources
1718
module dataInfrastructureTemplate '../Infrastructure/data/template.bicep' = {
@@ -31,5 +32,6 @@ module dataInfrastructureTemplate '../Infrastructure/data/template.bicep' = {
3132
sqlSkuName: sqlSkuName
3233
sqlSkuTier: sqlSkuTier
3334
tenantId: tenantId
35+
authenticationType: authenticationType
3436
}
3537
}

Deployment/localTemplate.bicep

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ param appConfigurationName string = '${solutionAbbreviation}-appConfig-${environ
1111
param appConfigurationDataOwners array
1212
@description('Must be true for the initial deployment')
1313
param grantAppConfigurationDataOwnersPermission bool = true
14-
14+
@allowed([
15+
'UserAssignedManagedIdentity'
16+
'ClientSecret'
17+
'Certificate'
18+
])
19+
param authenticationType string
1520
// prereqs parameters
1621
// parameters for prereqs key vault
1722
param graphAppCertificateName string = 'not-set'
@@ -124,6 +129,7 @@ module gmmResources 'commonResources.bicep' = {
124129
pipeline: pipeline
125130
skipADFDeployment: skipADFDeployment
126131
appConfigurationName: appConfigurationName
132+
authenticationType: authenticationType
127133
}
128134
dependsOn: [
129135
gmmResourceGroups

Deployment/parameters.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@
162162
"principalType": "Device|ForeignGroup|Group|ServicePrincipal|User"
163163
}
164164
]
165+
},
166+
"authenticationType":{
167+
"value": "UserAssignedManagedIdentity|ClientSecret|'Certificate"
165168
}
166169
}
167170
}

0 commit comments

Comments
 (0)