From c661f5f03839640eb8c50092dd9acf682cb68b86 Mon Sep 17 00:00:00 2001 From: Neil Ye Date: Tue, 10 Dec 2024 15:11:47 +0800 Subject: [PATCH] azurerm_powerbi_embedded - improve the error message for name validation (#28231) --- internal/services/powerbi/validate/embedded_name.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/powerbi/validate/embedded_name.go b/internal/services/powerbi/validate/embedded_name.go index be955ed79327..3b850e6ee694 100644 --- a/internal/services/powerbi/validate/embedded_name.go +++ b/internal/services/powerbi/validate/embedded_name.go @@ -12,7 +12,7 @@ func EmbeddedName(v interface{}, k string) (warnings []string, errors []error) { value := v.(string) if !regexp.MustCompile(`^[a-z][a-z0-9]{3,63}$`).MatchString(value) { - errors = append(errors, fmt.Errorf("%q must be between 4 and 64 characters in length and contains only lowercase letters or numbers.", k)) + errors = append(errors, fmt.Errorf("%q must be between 4 and 64 characters in length and starts with a letter and contains only lowercase letters or numbers.", k)) } return warnings, errors