diff --git a/azurerm/resource_arm_eventhub_namespace.go b/azurerm/resource_arm_eventhub_namespace.go index 45c7db7cab49..8dce4f6aaf35 100644 --- a/azurerm/resource_arm_eventhub_namespace.go +++ b/azurerm/resource_arm_eventhub_namespace.go @@ -58,7 +58,7 @@ func resourceArmEventHubNamespace() *schema.Resource { Type: schema.TypeInt, Optional: true, Default: 1, - ValidateFunc: validation.IntBetween(1, 100), + ValidateFunc: validation.IntBetween(1, 20), }, "auto_inflate_enabled": { @@ -77,7 +77,7 @@ func resourceArmEventHubNamespace() *schema.Resource { Type: schema.TypeInt, Optional: true, Computed: true, - ValidateFunc: validation.IntBetween(0, 100), + ValidateFunc: validation.IntBetween(0, 20), }, "default_primary_connection_string": { diff --git a/azurerm/resource_arm_eventhub_namespace_test.go b/azurerm/resource_arm_eventhub_namespace_test.go index d11fe6bd6bf8..6cb088008e59 100644 --- a/azurerm/resource_arm_eventhub_namespace_test.go +++ b/azurerm/resource_arm_eventhub_namespace_test.go @@ -228,7 +228,7 @@ func TestAccAzureRMEventHubNamespace_BasicWithCapacity(t *testing.T) { Config: config, Check: resource.ComposeTestCheckFunc( testCheckAzureRMEventHubNamespaceExists(resourceName), - resource.TestCheckResourceAttr(resourceName, "capacity", "100"), + resource.TestCheckResourceAttr(resourceName, "capacity", "20"), ), }, }, @@ -250,7 +250,7 @@ func TestAccAzureRMEventHubNamespace_BasicWithCapacityUpdate(t *testing.T) { Config: preConfig, Check: resource.ComposeTestCheckFunc( testCheckAzureRMEventHubNamespaceExists(resourceName), - resource.TestCheckResourceAttr(resourceName, "capacity", "100"), + resource.TestCheckResourceAttr(resourceName, "capacity", "20"), ), }, { @@ -311,7 +311,7 @@ func TestAccAzureRMEventHubNamespace_maximumThroughputUnitsUpdate(t *testing.T) testCheckAzureRMEventHubNamespaceExists(resourceName), resource.TestCheckResourceAttr(resourceName, "sku", "Standard"), resource.TestCheckResourceAttr(resourceName, "capacity", "2"), - resource.TestCheckResourceAttr(resourceName, "maximum_throughput_units", "100"), + resource.TestCheckResourceAttr(resourceName, "maximum_throughput_units", "20"), ), }, {