Hi @Anonymous
If you're having trouble integrating WordPress with a new Azure Resource Group, it might be due to database connectivity, networking settings, or domain configuration. First, make sure your WordPress is set up to connect to Azure Database for MySQL or whichever database you're using. Check your wp-config.php file and ensure the database name, username, password, and host are correct. Also, verify that your database firewall rules allow inbound connections from your App Service's outbound IPs. More details are available here.
If it's a networking and virtual network integration issue, ensure your Azure Virtual Network (VNet) is set up right. Sometimes, even after deleting a resource, the VNet keeps service delegation links, blocking integration. To fix this, go to Azure Portal > Virtual Networks > Subnets, check for service delegation, and remove any lingering links. If it still doesn't work, you might need to contact Azure Support. More info can be found in this guide.
For those having email integration issues, Azure App Service doesn't natively support sending emails. You can set up SMTP settings in WordPress using a service like SendGrid or Azure Communication Services. Make sure your SMTP port (587) is open for outbound connections and use an SMTP plugin like WP Mail SMTP. A step-by-step guide is available here.
Finally, if you're deploying WordPress with Terraform and getting source_control field errors, remember that this field is exported and can't be used directly. Instead, use a Terraform local-exec provisioner to run an Azure CLI or PowerShell script after deployment to set up the source control manually. A workaround is discussed in this Stack Overflow post.
If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.
Let me know if you have any assistances.