Thank you for posting in Microsoft Q&A forum.
To ensure that the packages mentioned in the requirements.txt file are deployed when you deploy your Python web app to Azure App Service, you need to enable Azure build automation and set the SCM_DO_BUILD_DURING_DEPLOYMENT app setting to true. This will ensure that Azure installs any necessary requirements and packages the application to run on Azure.
To enable build automation in Azure, you can follow the instructions in the "Quickstart: Deploy a Python (Django or Flask) web app to Azure App Service" document under the "Deploy your application code to Azure" section. Once you have enabled build automation, you can create a ZIP file of your application that includes the requirements.txt file and upload it to Azure using either Azure CLI or an HTTP client like Postman or cURL.
References:
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".