@sidh c It sounds like you are installing the packages in the Kudu environment CMD, which is not a persistent environment. When you restart the App Service, the Kudu environment is also restarted, which means any changes made to it are lost.
To ensure that the packages are installed persistently, you can include the package installation commands in your Python script itself. This way, the packages will be installed every time the script is run, regardless of whether the App Service has been restarted or not.
Alternatively, you can create a requirements.txt file that lists all the required packages and their versions and upload it to your App Service. This file can be used to install the packages automatically whenever the App Service is restarted. You can refer to the Azure documentation on how to use requirements.txt file to install packages in App Service.
Regarding the survey that you submitted, we remind you that the survey is for the support provided on the forum and not regarding the product. As engineers we are held to these surveys so, please let me know if there is anything else that I can do to make you happy regarding the support provided on the forum. If you are now satisfied with your experience, please consider accepting this answer or feel free to take a new survey.
Thank you for your understanding.