Skip to content

Commit

Permalink
remove tags
Browse files Browse the repository at this point in the history
  • Loading branch information
luxu-ms committed May 9, 2024
1 parent d273300 commit ccdaa5e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Environments/Todo-Mongo-AKS/main.bicep
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
@minLength(1)
@maxLength(64)
@description('Name of the the environment which is used to generate a short unique hash used in all resources.')
param environmentName string


@minLength(1)
@description('Primary location for all resources')
Expand All @@ -17,15 +14,14 @@ param sharedAKSEnvironmentName string
var sharedAKSResourceGroup = '${sharedAKSProjectName}-${sharedAKSEnvironmentName}'

var abbrs = loadJsonContent('./abbreviations.json')
var resourceToken = toLower(uniqueString(subscription().id, environmentName, location))
var resourceToken = toLower(uniqueString(subscription().id, resourceGroup().id, location))

// Store secrets in a keyvault
module keyVault './core/security/keyvault.bicep' = {
name: 'keyvault'
params: {
name: !empty(keyVaultName) ? keyVaultName : '${abbrs.keyVaultVaults}${resourceToken}'
location: location
tags: tags
principalId: principalId
}
}
Expand Down Expand Up @@ -116,7 +112,6 @@ resource configStoreKeyValue2 'Microsoft.AppConfiguration/configurationStores/ke
properties: {
value: cosmos.outputs.databaseName
contentType: contentType
tags: tags
}
}

Expand All @@ -126,7 +121,6 @@ resource configStoreKeyValue3 'Microsoft.AppConfiguration/configurationStores/ke
properties: {
value: keyVault.outputs.endpoint
contentType: contentType
tags: tags
}
}

Expand Down

0 comments on commit ccdaa5e

Please sign in to comment.