Skip to content

Commit

Permalink
azurerm_powerbi_embedded - improve the error message for name validation
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-yechenwei committed Dec 10, 2024
1 parent fd180b3 commit e8b6515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/powerbi/validate/embedded_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8b6515

Please sign in to comment.