Azure-Nextgen: Due to slot swapping, what pulumi e...
# azure
c
Azure-Nextgen: Due to slot swapping, what pulumi expects to exist wrt. appsettings and stuff is wrong, and this causes issues. Is there any way to force it to set certain variables?
t
Does
pulumi refresh
help?
c
I would guess it would, but that would force me to run that every deployment, probably not ideal?
t
Some folks do refresh before every update (there’s an option for this in the CLI). When something changes in the cloud, the state needs to sync up. Or do you have ideas how we could handle this better?
c
Hmm, ok. No, I don't really have a better suggestion. The issue with slot swapping is that the infrastructure does change outside pulumi. But, i'm now attempting to work around it by adding a random connection string to the slot every time, which would force pulumi to update them.
n
I'm not sure if this helps, but having worked in aws for a long time and dealing with Stack Drift, I've found that trying to find ways to move the infrastructure that is changing out of the stack is helpful. For example, storing configurations in tablestorage or azure app configuration rather than an appconfig if they are going to change. That said, this input is from an architectural standpoint and not going to solve your issue in pulumi. 😄