diff --git a/azurerm/resource_arm_storage_account.go b/azurerm/resource_arm_storage_account.go index 46ae820f59c07..3a4cde72eeb5c 100644 --- a/azurerm/resource_arm_storage_account.go +++ b/azurerm/resource_arm_storage_account.go @@ -438,8 +438,8 @@ func resourceArmStorageAccountDelete(d *schema.ResourceData, meta interface{}) e func validateArmStorageAccountName(v interface{}, k string) (ws []string, es []error) { input := v.(string) - if !regexp.MustCompile(`\A([a-z0-9]{3,24})\z`).MatchString(input) { - es = append(es, fmt.Errorf("name can only consist of lowercase letters and numbers, and must be between 3 and 24 characters long")) + if !regexp.MustCompile(`\A([A-Za-z][A-Za-z0-9]{2,62})\z`).MatchString(input) { + es = append(es, fmt.Errorf("name can only consist of lowercase letters and numbers, must be between 3 and 24 characters long and must begin with a letter")) } return