diff --git a/infra/main.bicep b/infra/main.bicep index 2b4868715..95e22b21a 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -12,9 +12,12 @@ metadata description = '''This module contains the resources required to deploy @maxLength(16) param solutionName string = 'macae' +@description('Optional. Deployment timestamp used to generate unique resource names per deployment.') +param deploymentTime string = utcNow() + @maxLength(5) -@description('Optional. A unique text value for the solution. This is used to ensure resource names are unique for global resources. Defaults to a 5-character substring of the unique string generated from the subscription ID, resource group name, and solution name.') -param solutionUniqueText string = take(uniqueString(subscription().id, resourceGroup().name, solutionName), 5) +@description('Optional. A unique text value for the solution. This is used to ensure resource names are unique for global resources. Defaults to a 5-character substring of the unique string generated from the subscription ID, resource group name, solution name, and deployment time.') +param solutionUniqueText string = take(uniqueString(subscription().id, resourceGroup().name, solutionName, deploymentTime), 5) @metadata({ azd: { type: 'location' } }) @description('Required. Azure region for all services. Regions are restricted to guarantee compatibility with paired regions and replica locations for data redundancy and failover scenarios based on articles [Azure regions list](https://learn.microsoft.com/azure/reliability/regions-list) and [Azure Database for MySQL Flexible Server - Azure Regions](https://learn.microsoft.com/azure/mysql/flexible-server/overview#azure-regions).')