question

29998411 avatar image
0 Votes"
29998411 asked bharathn-msft edited

Service Bus Messages Trigger Twice

In some cases, the following message is output twice by Azure Functions of Service Bus trigger.
Is it best to implement the same to skip the processing of Azure Functions when the above log is output more than once?

# Application insights log
Trigger Details: MessageId: xxxxx, DeliveryCount: 1, EnqueuedTime: 5/14/2021 7:10:02 AM, LockedUntil: 5/14/2021 7:10:22 AM, SessionId: (null)
Trigger Details: MessageId: xxxxx, DeliveryCount: 1, EnqueuedTime: 5/14/2021 7:10:02 AM, LockedUntil: 5/14/2021 7:10:42 AM, SessionId: (null)

azure-functionsazure-service-bus
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@29998411 Could you confirm there is no error in your function execution and you don't have retry policies setup?


2 Votes 2 ·

Hi Taichi,

If you go to the Kudu console :

(See: https://docs.microsoft.com/en-us/azure/app-service/resources-kudu)

Then go to the debug console and navigate to D:/LogFiles/Application/Function/Host does it show any errors with the same timestamp?






1 Vote 1 ·
29998411 avatar image 29998411 PierreLucGiguere-5297 ·

Thank you, I found that the log file was output to the path you told me.
However, I am wondering if the above log file is output in real time.
Is there a document that describes log output and when log rotation occurs?

https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs#access-log-files

0 Votes 0 ·

0 Answers