Seeing if anyone else using Drupal on Azure Linux App service has managed to get Drush to work.

I know it's more of an issue with the App service team as per issue below:

https://github.com/Azure/app-service-linux-docs/issues/83

Still waiting on any reply. So just checking in here.

Scenario

  • Azure Linux App Service Plan B1
  • Dev & Prod App Service (Kudu container)
  • Drupal 9 application code
  • Azure DevOps CI/CD (composer installs drush/webpack builds Bootstrap 4 etc/deploys to app service)
  • MySQL hosted on Azure VM

Drupal 9 website running just fine on Azure app service with AzDO deploying code to Dev and prod app services OK.

On local machine Drush is used for command line updates (clear cache, update DB and config import/export)

When deploying to the App Services Drush does not work, as the command is not found, it is deployed to the vendor folder. I beleive the underlying App Service Kudu Container won't allow the drush install/path to be set.

This means the browser has to be used for all related commands which is manual, slow and prone to error.

Any help appreciated.

Comments

harivenuv’s picture

it could be Azure app service environment variable didn't passed to container.