From d102e560f04ba2d3753c1798ad02423bf93cb5d8 Mon Sep 17 00:00:00 2001 From: royto Date: Tue, 8 Dec 2020 21:21:05 +0100 Subject: [PATCH] Add Validation on enrichment value Value cannot be empty --- azurerm/internal/services/iothub/iothub_resource.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/azurerm/internal/services/iothub/iothub_resource.go b/azurerm/internal/services/iothub/iothub_resource.go index 61e7c4a6658d3..3f45453e91c40 100644 --- a/azurerm/internal/services/iothub/iothub_resource.go +++ b/azurerm/internal/services/iothub/iothub_resource.go @@ -364,8 +364,9 @@ func resourceArmIotHub() *schema.Resource { ), }, "value": { - Type: schema.TypeString, - Required: true, + Type: schema.TypeString, + Required: true, + ValidateFunc: validation.StringIsNotEmpty, }, "endpoint_names": { Type: schema.TypeList,