Azure Wordpress tutorial creation failure

Aris Dennard 11 Reputation points
2021-10-04T18:13:04.513+00:00

Service policy failure in Sandbox
This is part of the tutorial using the Sandbox.
https://learn.microsoft.com/en-us/learn/modules/azure-architecture-fundamentals/exercise-create-website

I'm logged into my account and this is the error that returned on create.

I tried to create a support ticket but, can't.

How can I get help with this?

Thanks

{"telemetryId":"d6ed426d-81d6-4f39-a04a-1dfa080539d2","bladeInstanceId":"Blade_e066d5b09e104ff9832b8c3a68d6ac0b_6_0","galleryItemId":"WordPress.WordPress","createBlade":"CreateBlade","code":"InvalidTemplateDeployment","message":"The template deployment failed because of policy violation. Please see details for more information.","details":[{"code":"RequestDisallowedByPolicy","target":"ServicePlancf22884b-8eed","message":"Resource 'ServicePlancf22884b-8eed' was disallowed by policy. (Code: RequestDisallowedByPolicy)","additionalInfo":[{"type":"PolicyViolation","info":{"policyDefinitionDisplayName":"app-service-sku-policy","policySetDefinitionDisplayName":"webapps-initiative","evaluationDetails":{"evaluatedExpressions":[{"result":"True","expressionKind":"Field","expression":"type","path":"type","expressionValue":"Microsoft.Web/serverfarms","targetValue":"Microsoft.Web/serverFarms","operator":"Equals"},{"result":"True","expressionKind":"Field","expression":"Microsoft.Web/serverfarms/sku.name","path":"sku.name","expressionValue":"S1","targetValue":["F1","D1","Y1","WS1"],"operator":"NotIn"}]},"policyDefinitionId":"/providers/Microsoft.Management/managementGroups/learn-sandbox-prod/providers/Microsoft.Authorization/policyDefinitions/app-service-sku-policy","policySetDefinitionId":"/providers/Microsoft.Management/managementGroups/learn-sandbox-prod/providers/Microsoft.Authorization/policySetDefinitions/webapps-initiative","policyDefinitionReferenceId":"app-service-sku-policy_1","policySetDefinitionName":"webapps-initiative","policyDefinitionName":"app-service-sku-policy","policyDefinitionEffect":"Deny","policyAssignmentId":"/providers/Microsoft.Management/managementGroups/192fe359-e72a-fa7e-dcd5-95e985e7eac9/providers/Microsoft.Authorization/policyAssignments/webapps-assignment","policyAssignmentName":"webapps-assignment","policyAssignmentScope":"/providers/Microsoft.Management/managementGroups/192fe359-e72a-fa7e-dcd5-95e985e7eac9"}}],"policyDetails":[{"isInitiative":true,"assignmentId":"/providers/Microsoft.Management/managementGroups/192fe359-e72a-fa7e-dcd5-95e985e7eac9/providers/Microsoft.Authorization/policyAssignments/webapps-assignment","assignmentName":"webapps-assignment","auxDefinitions":[{"definitionName":"app-service-sku-policy","nonComplianceMessage":null}],"viewDetailsUri":"https://portal.azure.com#blade/Microsoft_Azure_Policy/EditAssignmentBladeV2/assignmentId/%2Fproviders%2FMicrosoft.Management%2FmanagementGroups%2F192fe359-e72a-fa7e-dcd5-95e985e7eac9%2Fproviders%2FMicrosoft.Authorization%2FpolicyAssignments%2Fwebapps-assignment"}]}]}

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,867 questions
{count} votes

6 answers

Sort by: Most helpful
  1. BhargaviAnnadevara-MSFT 5,446 Reputation points
    2021-10-12T19:02:29.197+00:00

    @David Robinson @Quentin Chotard First off, thank you for bringing this issue to our attention. We apologize for the inconvenience this experience has caused to you. We've received similar reports from some other customers as well. Here is a related thread.

    Quoting @Elliott Hamai 's response from the linked post:

    We recently pushed out a change to the Wordpress on App Service creation experience which simplifies the configuration for Wordpress.

    In the old experience you needed to specify database information, but in the new experience that is no longer required. Instead, we now choose a configuration that we know will work well for you to run Wordpress with the least amount of issues.

    While that happens, we're reworking the MS Learn modules to accommodate these changes to continue to be able to run the exercise within the sandbox environments.

    We shall keep you posted on further updates, and truly appreciate your patience and understanding.

    4 people found this answer helpful.

  2. BhargaviAnnadevara-MSFT 5,446 Reputation points
    2021-10-05T15:49:57.207+00:00

    @Aris Dennard Thanks for reaching out. This error had occurred because you seem to have selected the S1 pricing tier, instead of the recommended F1, resulting in the PolicyViolation error. Please note that using the F1 pricing tier is a requirement of the sandbox system when you create this WordPress site within the MS Learn Sandbox.

    While creating the WordPress website, the Spec Picker opens with the S1 pricing tier selected by default:

    137852-image.png

    You will need to select the F1 pricing tier from the Dev / Test tab for this website:

    137824-image.png

    This is also mentioned in a Note at the bottom of the Create a WordPress website section:

    137788-image.png

    I followed the guidance in the exercise as is and was able to launch a WordPress website as shown below:

    137847-image.png

    Hope this helps. Do let us know if you have further questions.

    ----------

    If an answer is helpful, please "Accept answer" and/or "Up-Vote" which might help other community members reading this thread.

    2 people found this answer helpful.

  3. Takahito Iwasa 4,841 Reputation points MVP
    2021-10-04T22:57:44.737+00:00

    Hi.

    The tutorial tells you to select "S1" when creating the App Service Plan, but from your error log it looks like you haven't selected S1. Can you confirm it?

    1 person found this answer helpful.

  4. Ronnie Wuensche 6 Reputation points
    2022-05-03T09:48:37.61+00:00

    HI there, was there ever an update on this? The instructions on the Azure Foundamentals course on coursera still require to specificy database and app service plan, but that is no longer possible. I am getting exactly the same screens as DavidRobinson-9532 above. Many thanks in advance!

    1 person found this answer helpful.
    0 comments No comments

  5. RS5 6 Reputation points
    2022-05-04T13:41:34.073+00:00

    Hello all,
    +1 stuck with the exercise. Is there a workaround for this?

    1 person found this answer helpful.
    0 comments No comments