From 32d538e6e54b588f8490d4bb51df0e50422c0428 Mon Sep 17 00:00:00 2001 From: NilsBusche <41150872+NilsBusche@users.noreply.github.com> Date: Mon, 11 Nov 2019 15:54:29 +0100 Subject: [PATCH] Update resource_arm_network_interface.go --- azurerm/resource_arm_network_interface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/resource_arm_network_interface.go b/azurerm/resource_arm_network_interface.go index 30d2c904f55b..33c8042d6048 100644 --- a/azurerm/resource_arm_network_interface.go +++ b/azurerm/resource_arm_network_interface.go @@ -549,7 +549,7 @@ func flattenNetworkInterfaceIPConfigurations(ipConfigs *[]network.InterfaceIPCon niIPConfig["private_ip_address_allocation"] = strings.ToLower(string(props.PrivateIPAllocationMethod)) - if props.PrivateIPAllocationMethod == network.Static { + if props.PrivateIPAddress != nil { niIPConfig["private_ip_address"] = *props.PrivateIPAddress }