Swarnnika Singh Thank you for posting your question in Microsoft Q&A. This issue is similar to an issue in GitHub thread: node_modules\bcrypt\lib\binding\bcrypt_lib.node is not a valid Win32 application and suggest you use bcryptjs
(works in Azure environment) instead of native bcrypt
module.
Also, make sure to run npm rebuild bcrypt --build-from-source
(reference: https://stackoverflow.com/questions/60962219/error-bcrypt-lib-node-is-not-a-valid-win32-application). If you still face any issues, let me know more about the function runtime version, full exception etc.
If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.