I know this is an old thread, but I ran into the same error while using Linux App Service. According to the latest Azure documentation, Linux App deployment is now supported. To fix this error, add the setting (WEBSITE_WEBDEPLOY_USE_SCM = false) in the Azure App Configuration.
For more details, check the documentation: Azure App Settings.