https://pulumi.com logo
#general
Title
# general
b

brave-angle-33257

11/12/2018, 10:37 PM
hi all, trying to create an Azure Function using example here: https://github.com/pulumi/examples/tree/master/azure-ts-functions however i don't want it to be executed over HTTP but rather from a timer only. I see that it's based on
azure:HttpFunction
but I can't seem to find any docs/references for this or other similar classes
actually, i see
azure:HttpFunction
is the name of itself, and it's extending
pulumi.ComponentResource
trying to see how that maps back so I can change the triggers. Any docs around this?
w

white-balloon-205

11/13/2018, 5:00 AM
There is some work on supporting this sort of scenario more nicely in https://github.com/pulumi/pulumi-azure-serverless. But I’m not sure that yet includes support for timer sources. We’ll be fleshing our remaining event sources as part of moving this into the core azure package soon. Note that you can always put together the underlying Azure resources yourself to do this - but there’s enough boilerplate that we have tried to add some useful “sugar” here in general. /cc @lemon-spoon-91807 in case he has any other pointers that could be useful.
l

lemon-spoon-91807

11/13/2018, 5:10 AM
Yup. This is something we do want to improve.
Though, it's not happening in any immediate milestone.
In the meantime though, https://github.com/pulumi/pulumi-cloud/blob/master/azure/timer.ts is a great resource to see how you can do this
b

brave-angle-33257

11/15/2018, 3:16 PM
thanks guys, Ive been going through the AZ functions.. and, wow.. complex. When I was installing packages via a windows based console I started to ponder alternatives. I'm going to run this through AWS lambda instead for the time being, I just need a simple cron-link function running and that will be the quickest path for now 👍
i see an AWS variant, but not azure
w

white-balloon-205

11/15/2018, 3:21 PM
@brave-angle-33257 I've made that repo public now - we had been releasing the component at https://www.npmjs.com/package/@pulumi/azure-serverless but we had apparently not made the repo itself public.
b

brave-angle-33257

11/15/2018, 9:04 PM
Thanks @white-balloon-205!