From cbe8c39d951338867ae235553eeeb26e7b822aa7 Mon Sep 17 00:00:00 2001 From: Kory Jackson Date: Mon, 6 Nov 2023 13:29:10 -0800 Subject: [PATCH] azurerm_kusto_cluster: changing regex on ClusterName to match the azure naming convention (#23790) --- internal/services/kusto/validate/name.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/kusto/validate/name.go b/internal/services/kusto/validate/name.go index 7bef9c889b01..72d305daf807 100644 --- a/internal/services/kusto/validate/name.go +++ b/internal/services/kusto/validate/name.go @@ -47,7 +47,7 @@ func EntityName(v interface{}, k string) (warnings []string, errors []error) { func ClusterName(v interface{}, k string) (warnings []string, errors []error) { name := v.(string) - if !regexp.MustCompile(`^[a-z][a-z0-9]+$`).MatchString(name) { + if !regexp.MustCompile(`^[a-z][a-z0-9\-]+$`).MatchString(name) { errors = append(errors, fmt.Errorf("%q must begin with a letter and may only contain alphanumeric characters: %q", k, name)) }