Hello, i am creating aks cluster with typescript w...
# azure
r
Hello, i am creating aks cluster with typescript without specifying windowsProfile property. pulumi up works fine. But another pulumi up says that value windowsProfile was changed and it wants to replace all the resources which are related to k8s cluster. Is this a bug/feature?
a
We have a cluster with it and never had that problem. Could you share how do you set
windowsProfile
property?
r
we do not set it
a
ah sorry, I misread that.
r
np 🙂
a
If you’ve registered preview feature on your subscription you might need to set it. There is a warning about this and I suppose that forces you to have a windows profile.
<https://docs.microsoft.com/en-us/azure/aks/windows-container-cli>
Copy code
Any AKS cluster you create after you've successfully registered the WindowsPreview feature flag use this preview cluster experience
It might be set automatically when it hasn’t been set manually and get saved into the state. Pulumi could handle this better.
r
yikes didn't know about that behaviour. Some of my collegues had to turn it on i guess. but still i am not sure if pulumi should be trying to replace all the stuffs when desired state didnt change.
And also azure portal is saying that feature WindowsPreview is not registred in our subsciption
b
have you tried doing a
pulumi refresh
?
r
there should be no need for that
b
i agree but life is often imperfect
if that doesnt work you should be able to preview --diff and then manually edit your state file so they match
pulumi often conservatively guesses that it will replace a resource but ultimately the provider does nothing and it just updates the state - but yeah its really worrying and annoying on things like a cluster
its very likely that doing an update wouldn't actually change anything but the state
r
well and what about the pipelines 😄
b
the approach i always go for is manually editing state file until it says no changes needed
r
uhh sounds like too much work which can not be automate => long term overhead
b
IME its always one offs either related to the terraform provider changing or something about the azure api changing
once it's fixed it's fixed
supporting pre and post vmss clusters was a nightmare
t
r
yeah, seems like thats it.