From 677220e36688c13a069ee858bf9fb9524674c0cb Mon Sep 17 00:00:00 2001 From: jknash Date: Fri, 21 Feb 2020 16:00:30 -0600 Subject: [PATCH] Update domain regex to allow dash (-) Azure AD domain services allows a dash - in the domain name, but the regex that validates the domain name does not. I changed the regex from: ^[(\da-zA-Z)\.]{1,255}$ to: ^[(\da-zA-Z-)\.]{1,255}$ It's a subtle change, but we can't use the ANF provider until it is fixed, because our domain name contains a dash - --- azurerm/internal/services/netapp/resource_arm_netapp_account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/internal/services/netapp/resource_arm_netapp_account.go b/azurerm/internal/services/netapp/resource_arm_netapp_account.go index 4b606ed848ce..168d9ff80cbe 100644 --- a/azurerm/internal/services/netapp/resource_arm_netapp_account.go +++ b/azurerm/internal/services/netapp/resource_arm_netapp_account.go @@ -68,7 +68,7 @@ func resourceArmNetAppAccount() *schema.Resource { Type: schema.TypeString, Required: true, ValidateFunc: validation.StringMatch( - regexp.MustCompile(`^[(\da-zA-Z)\.]{1,255}$`), + regexp.MustCompile(`^[(\da-zA-Z-)\.]{1,255}$`), `The domain name must end with a letter or number before dot and start with a letter or number after dot and can not be longer than 255 characters in length.`, ), },