is this correct behaviour?, since state is maintai...
# azure
b
is this correct behaviour?, since state is maintained right?
t
Yes, this is expected, you should run
pulumi refresh
to see the difference with the actual account
b
ok when i do a refresh i see the differences
how can i enforce the actual code while resources in azure are different
the declaritive code is enforced as truth in terraform for example, even when you do changes in the cloud
is the way of thinking different in pulumi
t
Terraform is the same story but they do refresh automatically before any apply. You can opt in to do the same in Pulumi, there is an option for that.
b
ok should i do a refresh and then an apply to accomplish this?
t
You can do
pulumi up --refresh
b
ok thanks, the weird thing is does detect the changes
but it doesn’t apply them.. i just says nothing changed
in this case i changed the lifecycle policy name in azure
when i delete the management policy it’s even worse
it then says:
error: Preview failed: autorest/azure: Service returned an error. Status=404 Code="ManagementPolicyNotFound" Message="No ManagementPolicy found for account dkotst351"
it should be recreated i think right?
is this something that needs to be addressed or am i doing something wrong 😀
t
I can’t say based on the message… If you think it’s not correct, could you please open an issue with the steps to reproduce?
b
Yeah sure