Hi @Niraj
I'm glad to see you were able to resolve your issue. Thanks for posting your solution so that others experiencing the same thing can easily reference this.
Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer, they can only accept answers by others, I'll repost your solution in case you'd like to Accept the answer.
Issue: You observe that your azure function was not processing all the messages. You are using the same session id for all your messages. You observe that the messages are not getting in sequence and looks like some messages are dropped.
Resolve: You have updated your code and added the message id to the message which was previously not passed.