diff --git a/internal/services/logic/validate/integration_account_certificate_name.go b/internal/services/logic/validate/integration_account_certificate_name.go index d7d59f3731cb..1e985b53fbd4 100644 --- a/internal/services/logic/validate/integration_account_certificate_name.go +++ b/internal/services/logic/validate/integration_account_certificate_name.go @@ -23,8 +23,8 @@ func IntegrationAccountCertificateName() pluginsdk.SchemaValidateFunc { return } - if !regexp.MustCompile(`^[A-Za-z0-9-().]+$`).MatchString(v) { - errors = append(errors, fmt.Errorf("%q contains only letters, numbers, dots, parentheses and hyphens.", k)) + if !regexp.MustCompile(`^[A-Za-z0-9-()._]+$`).MatchString(v) { + errors = append(errors, fmt.Errorf("%q contains only letters, numbers, dots, parentheses, hyphens and underscores.", k)) return } diff --git a/internal/services/logic/validate/integration_account_partner_business_identity_value.go b/internal/services/logic/validate/integration_account_partner_business_identity_value.go index a5e5ec7df11b..dc44761de08c 100644 --- a/internal/services/logic/validate/integration_account_partner_business_identity_value.go +++ b/internal/services/logic/validate/integration_account_partner_business_identity_value.go @@ -23,8 +23,8 @@ func IntegrationAccountPartnerBusinessIdentityValue() pluginsdk.SchemaValidateFu return } - if !regexp.MustCompile(`^[A-Za-z0-9-() .]+$`).MatchString(v) { - errors = append(errors, fmt.Errorf("%q contains only letters, numbers, dots, parentheses and hyphens", k)) + if !regexp.MustCompile(`^[A-Za-z0-9-() ._]+$`).MatchString(v) { + errors = append(errors, fmt.Errorf("%q contains only letters, numbers, dots, parentheses, hyphens and underscores", k)) return }