Skip to content

Commit

Permalink
add missed update properties in win web and win web slot (#15883)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackofallops authored Mar 21, 2022
1 parent bb3ddf0 commit 7fc6cb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/services/appservice/windows_web_app_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
4 changes: 4 additions & 0 deletions internal/services/appservice/windows_web_app_slot_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 7fc6cb3

Please sign in to comment.