https://pulumi.com logo
Title
w

worried-knife-31967

04/30/2021, 1:19 PM
Question about deployments beyond the initial one. In this example... https://github.com/pulumi/examples/tree/master/azure-cs-functions If the deployment zip is updated, would the function pick up the change? I've not seen anything that suggests it would, so I'm curious as to how that would work.
t

tall-librarian-49374

04/30/2021, 1:23 PM
The
Blob
resource should get replaced, which causes
codeBlobUrl
to change, which causes the web app settings update, which should lead to the new code deployed after Azure figures it out.
w

worried-knife-31967

04/30/2021, 1:31 PM
interesting...
well... lets find out 😄
Don't suppose you've done something similar with slot switching?
t

tall-librarian-49374

04/30/2021, 1:41 PM
I haven’t done it with the native provider.
w

worried-knife-31967

04/30/2021, 2:46 PM
interesting... have you done this with a .NET 5.0 function yet?
t

tall-librarian-49374

04/30/2021, 2:59 PM
No. But I expect no difference in deployment.
w

worried-knife-31967

04/30/2021, 3:02 PM
there's some notes about the fact that .NET 5 can only be deployed using the functions commandline right now
t

tall-librarian-49374

04/30/2021, 3:04 PM
Ah I didn’t know that
w

worried-knife-31967

05/01/2021, 2:45 PM
what's interesting here is that the blob url remains the same as the code for the example creates it with a static name, and doesn't appear to detect that the code in the publish folder has changed.
Managed to get .NET 5 working, relatively simple, just needs the runtime changing to
dotnet-isolated
t

tall-librarian-49374

05/01/2021, 6:36 PM
what’s interesting here is that the blob url remains the same as the code for the example creates it with a static name
is there no autoname suffix? or does it not change between updates?
w

worried-knife-31967

05/01/2021, 8:23 PM
the autoname doesn't change, as it seems like it thinks the resource has been created.
t

tall-librarian-49374

05/01/2021, 8:36 PM
oh, I think it might be a bug then. could you open an issue and I will check next week?
w

worried-knife-31967

05/01/2021, 9:05 PM
I think it's actually a little worse than that... even having the name include the datetime is causing problems with the azure function now.
hopefully shortly I'll have a fully replicatable example for you to clone.
hmm, it's at least not killing my function now...
https://github.com/martinjt/pulumi-dotnet5 That's the example, working "ish", but I'd prefer to have the function app's zip container not be deleted each time.