I created a service bus and 2 azure functions. One azure function is a timer trigger. It triggers every minute and pushes data into the service bus. Then the other azure function triggers and starts processing that data. This setup works well on my local machine. But when I deployed these functions, only the time trigger keep pushing data. My service bus trigger function doesn't trigger.
After the deployement, I run service bus trigger function on my local machine again. Then I recive all enqued data.
For all 3 services, I used basic plan and recomenned settings.
Is there a specific configuration to capture enqued data from deployed azure function?
CodePudding user response:
Two things to verify :
Double check if the connectionstring for "ConnectStringForEmailDispacher" is added in configuration. Go to Azure portal->function-> left pane ->configuration or depends on how you are reading in DI ( appsettings)
Can you check the service bus in azure portal if the message count is increasing?
CodePudding user response:
I have reproduced in my environment, and I got expected result. I have taken two triggers (Service Bus Queue Trigger and Timer Trigger) Then when i run locally i get the output as expected like below:
Then i added my connection : In configuration section then click on apllication settings , then click on new application settings as below:
And then save it. After that when I run my Timer Trigger it runs and when I send a message into queue it runs too. Then when I check my logs, I am able to see my two triggers are running as below: