Hi anonymous user-1179,
If you're using a custom container, that could be the reason you're getting EHOSTUNREACH
error. Check https://learn.microsoft.com/en-us/azure/app-service/configure-linux-open-ssh-session which links to the instructions for how to configure SSH for a custom container.
This, however, shouldn't prevent you from using pyodbc in your application. With the module in your requirements.txt file and SCM_DO_BUILD_DURING_DEPLOYMENT
in your application settings set to true, then you shouldn't have any issue connecting to a cloud base server. I say cloud based because you will run into database lock issues if you were to use a file-based database like MySQL inside the app service. Using SCM_DO_BUILD_DURING_DEPLOYMENT
app setting will allow the platform to create a virtual environment for downloading and installing your Python packages.