Hi @Joao Claudio Paco,
Thank you for reaching out to Microsoft Q&A forum!
The “ASP-GPPY01-bd9b Application Service Plan BadGateway” error typically occurs when there’s an issue with the Azure Function App deployment. Let’s troubleshoot this together! Here are a few steps you can take to resolve it:
Check Basic Authentication:
- Ensure that basic authentication is enabled when creating your Azure App Service. Sometimes, this setting can cause issues if not properly configured1.
Review Deployment Configuration:
- Double-check your deployment configuration. Make sure you’re deploying to the correct resource group and function app.
- Verify that the function app name and resource group match the ones you’re targeting in your deployment command.
**Inspect Detailed Logs**:
- Look at the detailed logs to identify the root cause. You can find these logs in the Azure portal or by using the Azure CLI.
- Use the following command to retrieve the logs for your function app:
```dockerfile
az webapp log tail --name <function-app-name> --resource-group <resource-group-name>
```
- Look for any specific error messages related to the BadGateway issue.
**Check Dependencies and Code**:
- Ensure that your function app’s dependencies (such as Python packages) are correctly specified.
- Review your Python code for any issues that might cause the BadGateway error during execution.
**Retry Deployment**:
- Sometimes, transient issues can cause deployment failures. Retry the deployment after verifying the above steps.
Remember to replace <function-app-name>
and <resource-group-name>
with your actual function app name and resource group. If you continue to encounter issues, consider reaching out to Azure support for further assistance.
Best regards,