From 7fc6cb3b5db3a116f556924e204f2178c7d937a8 Mon Sep 17 00:00:00 2001 From: jackofallops <11830746+jackofallops@users.noreply.github.com> Date: Mon, 21 Mar 2022 09:12:30 +0000 Subject: [PATCH] add missed update properties in win web and win web slot (#15883) --- internal/services/appservice/windows_web_app_resource.go | 4 ++++ internal/services/appservice/windows_web_app_slot_resource.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/internal/services/appservice/windows_web_app_resource.go b/internal/services/appservice/windows_web_app_resource.go index 94373932b87f..c71aff34018f 100644 --- a/internal/services/appservice/windows_web_app_resource.go +++ b/internal/services/appservice/windows_web_app_resource.go @@ -589,6 +589,10 @@ func (r WindowsWebAppResource) Update() sdk.ResourceFunc { existing.Identity = expandedIdentity } + if metadata.ResourceData.HasChange("key_vault_reference_identity_id") { + existing.KeyVaultReferenceIdentity = utils.String(state.KeyVaultReferenceIdentityID) + } + if metadata.ResourceData.HasChange("tags") { existing.Tags = tags.FromTypedObject(state.Tags) } diff --git a/internal/services/appservice/windows_web_app_slot_resource.go b/internal/services/appservice/windows_web_app_slot_resource.go index c12659470983..e1cb16066f7d 100644 --- a/internal/services/appservice/windows_web_app_slot_resource.go +++ b/internal/services/appservice/windows_web_app_slot_resource.go @@ -542,6 +542,10 @@ func (r WindowsWebAppSlotResource) Update() sdk.ResourceFunc { existing.Identity = expandedIdentity } + if metadata.ResourceData.HasChange("key_vault_reference_identity_id") { + existing.KeyVaultReferenceIdentity = utils.String(state.KeyVaultReferenceIdentityID) + } + if metadata.ResourceData.HasChange("tags") { existing.Tags = tags.FromTypedObject(state.Tags) }