https://pulumi.com logo
#azure
Title
# azure
c

calm-motorcycle-72397

11/27/2020, 7:13 AM
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

tall-librarian-49374

11/27/2020, 7:28 AM
Does
pulumi refresh
help?
c

calm-motorcycle-72397

11/27/2020, 8:40 AM
I would guess it would, but that would force me to run that every deployment, probably not ideal?
t

tall-librarian-49374

11/27/2020, 8:43 AM
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

calm-motorcycle-72397

11/27/2020, 8:46 AM
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

nice-oyster-71086

11/27/2020, 6:32 PM
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. 😄
3 Views