Forum Discussion
Ayush151025
Jun 13, 2024Copper Contributor
After deploying my Python Bot in azure its not working
I am trying to create an Azure bot using the Python Azure sdk framework and deploy it on azure app service azure bot. The bot works well on my local with emulator (windows laptop). But once I deploy...
Kidd_Ip
Jan 28, 2025MVP
Please consider on below:
- Check Network Configuration:
- Ensure your App Service is configured correctly to allow inbound traffic on port 8000.
- Verify that there are no firewall rules blocking the traffic.
- Startup Command:
- Double-check your startup command. It should be python3 -m aiohttp.web -H 0.0.0.0 -P 8000 app:init_func.
- Ensure that the command matches exactly with your bot's configuration.
- Dependencies:
- Make sure all necessary dependencies are installed and included in your deployment package.
- Check if there's any missing dependency that might be causing the bot to fail during startup.
- Logging and Error Details:
- Look into the detailed logs in the Azure Portal. They often provide more specific error messages.
- Ensure your logging is configured to capture any startup errors, and review those logs for clues.
- Configuration Settings:
- Double-check your DefaultConfig settings, especially APP_ID, APP_PASSWORD, and PORT.
- Ensure that environment variables are correctly set in Azure.
- Aiohttp Web Application:
- Ensure the init_func function correctly initializes your web application and routes.
- Verify that there are no errors within this function or within the middleware configuration.