I had the same kind of problem, I thin it's because f default values that are set in Azure but not store in the state file or something like that. If you specify this default in your code you should be good to go.
For instance specify in your code the property "retentionInDays" to 90 (default value) and after you won't have this change anymore