Share via

Error creating php web app with mysql database when using wizard: outboundSubnetDeployment - Could not find member 'tags' on object of type 'Subnet'. Path 'tags', line 1, position 8. (Code: InvalidJson)

PennyMx 10 Reputation points
2025-11-24T10:32:04.3633333+00:00

When trying to create a new web app (PHP 8.4) with a mysql database on UK South using Basic B1, I always get an error on the outboundSubnetDeployment : Could not find member 'tags' on object of type 'Subnet'. Path 'tags', line 1, position 8. (Code: InvalidJson) and the deployment fails.

I am not using a custom template, simply using the azure create web app wizard. Is this a bug with the wizard created template? Would anyone know how to fix this please?

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Jerald Felix 13,335 Reputation points Volunteer Moderator
    2025-11-28T10:27:35.67+00:00

    Hello PennyMx,

    Thanks for raising this question in Q&A forum.

    I understand that you are encountering a deployment failure when attempting to use the "Web App + Database" wizard in the Azure Portal to create a PHP app with MySQL.

    This is a common issue with the bundled marketplace wizard. It often occurs because the template tries to provision a MySQL Flexible Server in a specific configuration (Availability Zone or SKU) that may not be available in your selected region or within your current subscription quota (especially common with Free Trial or Student subscriptions).

    Here is the recommended workaround to resolve this:

    1. Create Resources Separately (Best Practice): Instead of using the "Web App + Database" wizard, create the resources individually to isolate the error.
      • Step A: Search for "Azure Database for MySQL - Flexible Server" and create it first. This allows you to specifically select a compute SKU (like B1ms) and a Region that passes validation.
      • Step B: Once the database exists, create your "Web App" (PHP).
      • Step C: Connect them by adding the database credentials (Host, Username, Password) to the Web App's Environment Variables (in Settings > Environment variables).
    2. Check Resource Provider:
      • Ensure the Microsoft.DBforMySQL resource provider is registered for your subscription.
      • Go to Subscriptions > Select your subscription > Resource providers > Search for MySQL and click Register.
    3. Password Complexity:
      • The wizard sometimes fails silently if the database password does not meet strict complexity requirements (e.g., must contain 3 of 4 categories: Uppercase, Lowercase, Numbers, Symbols). Ensure you are using a strong password.

    If helps, approve the answer.

    Best Regards,

    Jerald Felix

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.