From 16fad2d1fab6e72725f11bd55074b0e197a406d8 Mon Sep 17 00:00:00 2001 From: Daniel Mabbett <15195905+DanielMabbett@users.noreply.github.com> Date: Thu, 13 May 2021 15:43:59 +0100 Subject: [PATCH] fix(bastion_host): Add ForceNew field to ipconf values --- azurerm/internal/services/network/bastion_host_resource.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azurerm/internal/services/network/bastion_host_resource.go b/azurerm/internal/services/network/bastion_host_resource.go index e5575e762fed..d40f838f5355 100644 --- a/azurerm/internal/services/network/bastion_host_resource.go +++ b/azurerm/internal/services/network/bastion_host_resource.go @@ -61,16 +61,19 @@ func resourceBastionHost() *schema.Resource { "name": { Type: schema.TypeString, Required: true, + ForceNew: true, ValidateFunc: validate.BastionIPConfigName, }, "subnet_id": { Type: schema.TypeString, Required: true, + ForceNew: true, ValidateFunc: azure.ValidateResourceID, }, "public_ip_address_id": { Type: schema.TypeString, Required: true, + ForceNew: true, ValidateFunc: azure.ValidateResourceID, }, },