diff --git a/azurerm/resource_arm_public_ip.go b/azurerm/resource_arm_public_ip.go index 888398c833c1d..b52bc30688d18 100644 --- a/azurerm/resource_arm_public_ip.go +++ b/azurerm/resource_arm_public_ip.go @@ -49,7 +49,10 @@ func resourceArmPublicIp() *schema.Resource { "public_ip_address_allocation": { Type: schema.TypeString, Required: true, - ValidateFunc: validation.StringInSlice([]string{"static", "dynamic"}, true), + ValidateFunc: validation.StringInSlice([]string{ + string(network.Static), + string(network.Dynamic), + }, true), DiffSuppressFunc: ignoreCaseDiffSuppressFunc, StateFunc: ignoreCaseStateFunc, },