Skip to content

Commit

Permalink
fix: correct resource name condition (#71)
Browse files Browse the repository at this point in the history
The condition for Log Analytics Workspace name is currently incorrect. The correct condition as per Microsoft documentation is: "4-63 chars, Alphanumerics and hyphens. Start and end with alphanumeric."

source: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftoperationalinsights
  • Loading branch information
captainhook authored Jul 19, 2024
1 parent 3de9203 commit 46c7982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ variable "name" {
nullable = false

validation {
condition = can(regex("^[a-z0-9-]{4,63}$", var.name))
condition = can(regex("^[A-Za-z0-9-]{4,63}$", var.name))
error_message = "The name must be a valid Log Analytics Workspace name."
}
}
Expand Down

0 comments on commit 46c7982

Please sign in to comment.