Reputation: 305
I have a PostStartupSetup
azure functions that will run on every startup
[FunctionName(nameof(PostStartupSetup))]
public async Task PostStartupSetup([TimerTrigger("0 0 0 29 2 6", RunOnStartup = true)]TimerInfo t)
{
// do startup tasks
}
I then have some functions with ServiceBusTrigger
's that relies on my PostStartupSetup
to have completed. Is it possible to somehow only activate those functions AFTER my PostStartupSetup
function have finished executed?
Upvotes: 3
Views: 1198
Reputation: 17441
No straight forward way but here are few options:
PostStartupSetup()
enable all functions by updating the app settings to enable all functions.Upvotes: 2