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) }