rapid-soccer-98878
09/30/2021, 2:38 AMrotateWhenChanged
input to trigger a rotation but it deletes the existing resource when it rotates causing any services using those credentials to fail.
Is there a way to not remove the existing resource when the app password is being rotated or is there a better approach to this problem?
This is the code that creates the app passwords
const appPassword = new azad.ApplicationPassword(
`app-client-credentials`,
{
applicationObjectId: app.objectId,
displayName: 'App',
endDateRelative: '4380h', // 6 months
// When the endTimestamp changes which is every 2 months,
// it will trigger the resource to be recreated
rotateWhenChanged: {
endTimestamp: futureEndTimestamp(2),
},
}
)