Thanks for asking question! If I have understood right you want App Service to run Composer at deployment time. If so, you need to include the Composer in your repository.
You may follow this official document: https://learn.microsoft.com/en-us/azure/app-service/configure-language-php#run-composer
Let me know if issue persists.