From 9e76c4ecf73f342b0ab7d217b9630f0fb1f09133 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Tue, 17 Jul 2018 13:27:30 +0200 Subject: [PATCH] Load Balancer: making the `subnet_id` a nilable field Fixes https://github.com/terraform-providers/terraform-provider-azurerm/issues/1470#issuecomment-405547487 --- azurerm/resource_arm_loadbalancer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/resource_arm_loadbalancer.go b/azurerm/resource_arm_loadbalancer.go index 9c2ecd016cf6..fa6ed9d053a3 100644 --- a/azurerm/resource_arm_loadbalancer.go +++ b/azurerm/resource_arm_loadbalancer.go @@ -66,7 +66,7 @@ func resourceArmLoadBalancer() *schema.Resource { Type: schema.TypeString, Optional: true, Computed: true, - ValidateFunc: azure.ValidateResourceID, + ValidateFunc: azure.ValidateResourceIDOrEmpty, }, "private_ip_address": {