Hi @spurro
Running a startup command directly on the App Service instead of Kudu is not supported. Startup commands are executed in the Kudu environment, which is separate from the App Service runtime. Therefore, any dependencies or commands relying on the App Service's environment will not work in Kudu.
Unfortunately, Kudu does not allow running commands with root privileges (like apt-get), so you cannot install additional packages or dependencies not already included in the App Service container image. Kudu is primarily designed for deployment and debugging, and it does not offer the same level of access as the App Service runtime.
If your application requires specific dependencies unavailable in the Kudu environment, consider alternative approaches, such as including those dependencies in your application package or using a different container image with the required dependencies pre-installed.
References:
- Configure a Linux Python app for Azure App Service
- Run a post-deployment script
- Container startup process
Let me know if you have any further assistances needed.