does anyone have any idea how to create webjobs wi...
# azure
m
does anyone have any idea how to create webjobs with Azure Native? It is a resource under webapps to trigger commands on a cronjob basis, e.g. like this created the portal
l
According to this, WebJobs are an optional capability of Azure app services: https://learn.microsoft.com/en-us/azure/app-service/webjobs-create?tabs=windowscode Is that what you're referring to?
m
exactly
l
Have you been able to first create an Azure app service with Pulumi?
m
yes that is all running fine
so I have the azure.web.WebApp running
l
In that case, what I said here is the only advice I have: https://pulumi-community.slack.com/archives/CRVK66N5U/p1713272344614989?thread_ts=1713267205.839709&cid=CRVK66N5U Just apply it to app service web jobs rather than static web apps: a) look at the arm template for an app service that has a working webjob; b) do a "pulumi import" of an app service with a working webjob to a separate pulumi stack to see what code is generated.
m
when importign the WebAPp itself, the jobs are not shown in the output... so it it a subresource or something
l
If you can't find anything in ARM documentation or
az
CLI documentation, it's possible that they're not accounted for in what Azure "native" supports re. automation - in which case Pulumi's use of Azure native wouldn't support it.
h
I'm not seeing it in azure classic either. I think the related resources are https://www.pulumi.com/registry/packages/azure/api-docs/appservice/