From be7a3e5cab8d32d696838e6f63e6b3ad8b169b26 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Thu, 22 Nov 2018 07:16:29 +0100 Subject: [PATCH] eventhub: adding validation to ensure the storage account id is a resource id Fixes #2373 --- azurerm/resource_arm_eventhub.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/azurerm/resource_arm_eventhub.go b/azurerm/resource_arm_eventhub.go index cb89eb9a50e8..f1fd1a5106de 100644 --- a/azurerm/resource_arm_eventhub.go +++ b/azurerm/resource_arm_eventhub.go @@ -112,8 +112,9 @@ func resourceArmEventHub() *schema.Resource { Required: true, }, "storage_account_id": { - Type: schema.TypeString, - Required: true, + Type: schema.TypeString, + Required: true, + ValidateFunc: azure.ValidateResourceID, }, }, },