Skip to content

Commit

Permalink
Use timestamp in deployment names
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-gai authored Nov 5, 2021
1 parent 16c8a5b commit bbef108
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions infrastructure/repost-app/repost-app.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ param appSettings array
// Workaround for https://github.com/Azure/azure-quickstart-templates/issues/2828
param regionName string = 'Central US'

param cosmosDeploymentName string = utcNow()
param appServiceDeploymentName string = utcNow()

resource resourceGroup 'Microsoft.Resources/resourceGroups@2020-06-01' = {
name: rgName
location: rgLocation
Expand All @@ -26,7 +29,7 @@ resource resourceGroup 'Microsoft.Resources/resourceGroups@2020-06-01' = {

module cosmosModule 'modules/cosmos-module.bicep' = {
scope: resourceGroup
name: 'cosmos'
name: cosmosDeploymentName
params: {
accountName: cosmosAccountName
location: regionName
Expand All @@ -35,7 +38,7 @@ module cosmosModule 'modules/cosmos-module.bicep' = {

module appServiceModule 'modules/appservice-module.bicep' = {
scope: resourceGroup
name: 'app-service'
name: appServiceDeploymentName
params: {
appSettings: appSettings
basicPublishingCredentialsPoliciesLocation: regionName
Expand Down

0 comments on commit bbef108

Please sign in to comment.