Skip to content

Commit

Permalink
formated biceps
Browse files Browse the repository at this point in the history
  • Loading branch information
AjitPadhi-Microsoft committed Oct 18, 2024
1 parent c07a8fa commit 798b6ec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
21 changes: 10 additions & 11 deletions infra/app/web.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,16 @@ module web '../core/host/appservice.bicep' = {
'2023-05-01'
).key1
AZURE_COSMOSDB_ACCOUNT_KEY: (useKeyVault || cosmosDBKeyName == '')
? cosmosDBKeyName
: listKeys(
resourceId(
subscription().subscriptionId,
resourceGroup().name,
'Microsoft.DocumentDB/databaseAccounts',
cosmosDBKeyName
),
'2022-08-15'
).primaryMasterKey
? cosmosDBKeyName
: listKeys(
resourceId(
subscription().subscriptionId,
resourceGroup().name,
'Microsoft.DocumentDB/databaseAccounts',
cosmosDBKeyName
),
'2022-08-15'
).primaryMasterKey
})
keyVaultName: keyVaultName
runtimeName: runtimeName
Expand Down Expand Up @@ -202,7 +202,6 @@ module cosmosRoleDefinition '../core/database/cosmos-sql-role-def.bicep' = {
]
}


module cosmosUserRole '../core/database/cosmos-sql-role-assign.bicep' = {
name: 'cosmos-sql-user-role-${web.name}'
params: {
Expand Down
6 changes: 5 additions & 1 deletion infra/core/host/functions.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ module functions 'appservice.bicep' = {
FUNCTIONS_EXTENSION_VERSION: extensionVersion
},
!useDocker ? { FUNCTIONS_WORKER_RUNTIME: runtimeName } : {},
useKeyVault ? { AzureWebJobsStorage: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};AccountKey=${storage.listKeys().keys[0].value};EndpointSuffix=${environment().suffixes.storage}'} : {AzureWebJobsStorage__accountName: storage.name}
useKeyVault
? {
AzureWebJobsStorage: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};AccountKey=${storage.listKeys().keys[0].value};EndpointSuffix=${environment().suffixes.storage}'
}
: { AzureWebJobsStorage__accountName: storage.name }
)
clientAffinityEnabled: clientAffinityEnabled
enableOryxBuild: enableOryxBuild
Expand Down

0 comments on commit 798b6ec

Please sign in to comment.