-
Notifications
You must be signed in to change notification settings - Fork 787
fix: Resolve FlagMustBeSetToRestore telemetry error #932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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) | ||
|
Comment on lines
+19
to
+20
|
||
|
|
||
| @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).') | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deploymentTimedefaults toutcNow(), which makessolutionUniqueText(and thereforesolutionSuffix) change on every deployment. BecausesolutionSuffixis used in many resource names throughout this template, redeploying to the same resource group will attempt to create a brand-new set of resources rather than updating the existing ones, potentially causing unexpected duplication and data loss. Consider keeping the current deterministic default and making the timestamp/one-off suffix opt-in (e.g., defaultdeploymentTimeto empty and only include it inuniqueStringwhen explicitly provided, or add a separate boolean/seed parameter to control this behavior).