From 4d929a7a55260fc9392c2c99340673be2eaba76f Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Tue, 19 Dec 2017 16:11:09 +0000 Subject: [PATCH] User Metadata can be a max of 1024 chars --- azurerm/resource_arm_eventhub_consumer_group.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/azurerm/resource_arm_eventhub_consumer_group.go b/azurerm/resource_arm_eventhub_consumer_group.go index af0f7567415c..489d454e11ea 100644 --- a/azurerm/resource_arm_eventhub_consumer_group.go +++ b/azurerm/resource_arm_eventhub_consumer_group.go @@ -6,6 +6,7 @@ import ( "github.com/Azure/azure-sdk-for-go/arm/eventhub" "github.com/hashicorp/terraform/helper/schema" + "github.com/hashicorp/terraform/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils" ) @@ -43,8 +44,9 @@ func resourceArmEventHubConsumerGroup() *schema.Resource { "location": deprecatedLocationSchema(), "user_metadata": { - Type: schema.TypeString, - Optional: true, + Type: schema.TypeString, + Optional: true, + ValidateFunc: validation.StringLenBetween(1, 1024), }, }, }