@Chaithra Siddappa Thanks for reaching out. Can you try adding logging to your function code to verify whether your code is able to get the query parameter values correctly when you run the function on azure. As per the 401 error it looks like an authentication issue. Without more details on the full exception whether the exception is generated from function app or storage account it would not be possible to pinpoint where exactly the authentication failed.
You can review the application insights log on your function to get more details whether the error is from function app or storage account.
Further I will suggest you to validate if the application settings are the same in your local environment and in azure. There may be chances that your code relay on some setting just to eliminate this case.
The above and more logs/application insights logs should give you more insights on this issue. You can always leverage the diagnostic and solve problem blade on your function app to know more details on the issue and mitigation steps to resolve these issues.