question

HUMBERTOLUJAN-3432 avatar image
0 Votes"
HUMBERTOLUJAN-3432 asked HUMBERTOLUJAN-3432 answered

Error creating a word press page from sandboxes learn

I am creting a word press page from a sandboxes learn. I am following the guide:https://docs.microsoft.com/es-es/learn/modules/azure-architecture-fundamentals/exercise-create-website

I am getting the following error:
"code":"InvalidTemplateDeployment","message":"No se pudo implementar la plantilla por infracción de la directiva, La directiva no permitió el recurso \"ServicePlan0b82d179-93a0\ Código: RequestDisallowedByPolicy

88778-errorwordpress.png


I used Microsoft Learn Sanbox diectory.

88779-directory.png


azure-webappsazure-webapps-content-deploymentazure-webapps-developmentmicrosoft-graph-tasks-plans
errorwordpress.png (96.4 KiB)
directory.png (50.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JayaC-MSFT avatar image
0 Votes"
JayaC-MSFT answered

Hello @HUMBERTOLUJAN-3432 , I believe these will help in this case :
https://serverfault.com/questions/981713/in-azure-sandbox-cant-create-a-wordpress-site

https://docs.microsoft.com/en-us/answers/questions/259252/the-template-deployment-failed-because-of-policy-v.html

To reiterate : Azure Policy enforces organization standards and check compliance of resources. Based on the information, there seems to be a Azure Policy Definition which allows only App Service Plan with specific tiers among the available tiers ( Free ,Shared (preview) ,Standard, Premium, PremiumV2, PremiumV3, Isolated). Kindly check the allowed tiers in your subscription. For more information , on how to check tiers allowed, refer this article. To resolve, re-run the excercise using either Free or Shared (preview) tiers of AppService resource.
Let us know if issue persists and we will gladly assist further.


If this answer helps, please Accept the answer and Up-vote so that it helps others in the community.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HUMBERTOLUJAN-3432 avatar image
0 Votes"
HUMBERTOLUJAN-3432 answered

if I could complete it. You must select the F1 rate, step 11 of the guide.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.