I based a small demo of deploying a typescript cloud function on this, https://github.com/pulumi/examples/blob/master/azure-ts-functions/index.ts example. It works fine if everything is done correct first time, but for me changing the value https://github.com/pulumi/examples/blob/master/azure-ts-functions/index.ts#L35 didn't update the actual cloud function it seemed. So to test it I had to delete the whole stack (just a demo) and deploy again. What is the right approach to update the function if the content of the blob is changed? @tall-librarian-49374 I noticed that you are one of the contributors to that example.
wet-noon-14291
10/22/2021, 10:51 PM
Does anyone else has an answer to this? Basically it seems like the function isn't restarted when it is deployed.
e
enough-butcher-66045
10/24/2021, 11:02 PM
If you are deploying this via devops or similar, you can presumably trigger a restart with azure cli after pulumi up runs?
w
wet-noon-14291
10/25/2021, 11:40 AM
yeah, looks like that is the what I have to do, but I thought azure functions would be smart enough and recongnize that the data in the storage has changed and restart itself.