From dd327bc5b329cf426fc7efc77b3679db1743e5ab Mon Sep 17 00:00:00 2001 From: DANIEL CIUCUR Date: Tue, 13 Jun 2023 16:12:18 +0300 Subject: [PATCH 1/3] Mark ip_configuration as Required --- website/docs/r/bastion_host.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/r/bastion_host.html.markdown b/website/docs/r/bastion_host.html.markdown index 4dcbc3063846..c1448df3f0f0 100644 --- a/website/docs/r/bastion_host.html.markdown +++ b/website/docs/r/bastion_host.html.markdown @@ -74,7 +74,7 @@ The following arguments are supported: * `sku` - (Optional) The SKU of the Bastion Host. Accepted values are `Basic` and `Standard`. Defaults to `Basic`. -* `ip_configuration` - (Optional) A `ip_configuration` block as defined below. Changing this forces a new resource to be created. +* `ip_configuration` - (Required) A `ip_configuration` block as defined below. Changing this forces a new resource to be created. * `ip_connect_enabled` - (Optional) Is IP Connect feature enabled for the Bastion Host. Defaults to `false`. From 0993d8b6dfeafcbb3049869dd2f154c3f0e54119 Mon Sep 17 00:00:00 2001 From: DANIEL CIUCUR Date: Tue, 13 Jun 2023 17:44:03 +0300 Subject: [PATCH 2/3] Make ip_configuration a required attribute --- internal/services/network/bastion_host_resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/network/bastion_host_resource.go b/internal/services/network/bastion_host_resource.go index 9210eb41b9ff..3fd515bd1c8d 100644 --- a/internal/services/network/bastion_host_resource.go +++ b/internal/services/network/bastion_host_resource.go @@ -66,7 +66,7 @@ func resourceBastionHost() *pluginsdk.Resource { "ip_configuration": { Type: pluginsdk.TypeList, ForceNew: true, - Optional: true, + Optional: false, MaxItems: 1, Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ From ba0bbb3bf3b35c45687a20537af56d8e180536d0 Mon Sep 17 00:00:00 2001 From: kt Date: Thu, 15 Jun 2023 19:45:11 -0700 Subject: [PATCH 3/3] Update internal/services/network/bastion_host_resource.go --- internal/services/network/bastion_host_resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/network/bastion_host_resource.go b/internal/services/network/bastion_host_resource.go index 3fd515bd1c8d..b767bc5f6b72 100644 --- a/internal/services/network/bastion_host_resource.go +++ b/internal/services/network/bastion_host_resource.go @@ -66,7 +66,7 @@ func resourceBastionHost() *pluginsdk.Resource { "ip_configuration": { Type: pluginsdk.TypeList, ForceNew: true, - Optional: false, + Required: true, MaxItems: 1, Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{