@Ben Howey I think you need to check if the config.py is correctly pulling the environment values from your app service. If you have not set them, try providing a default value and redeploy the app. Also, while creating the bot and app service, if you create the bot service first and app later, try to update its messaging endpoint after you create your App Service resource. See the steps here.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.