From 5a49ff4cc0855f8cfd9987d685d68f01018601b9 Mon Sep 17 00:00:00 2001 From: "Michael \"Gilli\" Gilliland" Date: Sun, 2 Jul 2017 22:28:37 -0400 Subject: [PATCH] Whoops! Just use the regular expression in Azure's docs. I missed that on the first eye-over. --- azurerm/resource_arm_storage_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/resource_arm_storage_table.go b/azurerm/resource_arm_storage_table.go index c4be3d9628cb8..f82ec1d8338c5 100644 --- a/azurerm/resource_arm_storage_table.go +++ b/azurerm/resource_arm_storage_table.go @@ -43,7 +43,7 @@ func validateArmStorageTableName(v interface{}, k string) (ws []string, errors [ "Table Storage %q cannot use the word `table`: %q", k, value)) } - if !regexp.MustCompile(`^[A-Za-z][A-Za-z0-9]{3,63}$`).MatchString(value) { + if !regexp.MustCompile(`^[A-Za-z][A-Za-z0-9]{2,62}$`).MatchString(value) { errors = append(errors, fmt.Errorf( "Table Storage %q cannot begin with a numeric character, only alphanumeric characters are allowed and must be between 3 and 63 characters long: %q", k, value))