From 4a22fa0438033f04e0958cdd0da2c9ce9c43200e Mon Sep 17 00:00:00 2001 From: Andreas Kyrris Date: Mon, 17 Oct 2016 17:52:25 +0100 Subject: [PATCH] Use Probe's property to lookup loadbalancer_id. --- builtin/providers/azurerm/resource_arm_loadbalancer_probe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/azurerm/resource_arm_loadbalancer_probe.go b/builtin/providers/azurerm/resource_arm_loadbalancer_probe.go index 99253bbdd32f..2bb2f95a468a 100644 --- a/builtin/providers/azurerm/resource_arm_loadbalancer_probe.go +++ b/builtin/providers/azurerm/resource_arm_loadbalancer_probe.go @@ -156,7 +156,7 @@ func resourceArmLoadBalancerProbeCreate(d *schema.ResourceData, meta interface{} } func resourceArmLoadBalancerProbeRead(d *schema.ResourceData, meta interface{}) error { - loadBalancer, exists, err := retrieveLoadBalancerById(d.Id(), meta) + loadBalancer, exists, err := retrieveLoadBalancerById(d.Get("loadbalancer_id").(string), meta) if err != nil { return errwrap.Wrapf("Error Getting LoadBalancer By ID {{err}}", err) }