From bbef108e387183a0ff5c3c476294925200678865 Mon Sep 17 00:00:00 2001 From: Philip Gai Date: Fri, 5 Nov 2021 07:33:26 +0000 Subject: [PATCH] Use timestamp in deployment names --- infrastructure/repost-app/repost-app.bicep | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/infrastructure/repost-app/repost-app.bicep b/infrastructure/repost-app/repost-app.bicep index 2d6e5e3..da24617 100644 --- a/infrastructure/repost-app/repost-app.bicep +++ b/infrastructure/repost-app/repost-app.bicep @@ -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 @@ -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 @@ -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