question

Bravocosta-6763 avatar image
0 Votes"
Bravocosta-6763 asked JanardhanaVemulapalli-4101 answered

Error: Resource 'ServicePlanxxxx' was disallowed by policy. (Code: RequetsDisallowedByPolicy)

I am stuck on step 7 (Create a Website hosted in Azure)

Material link: https://docs.microsoft.com/en-us/learn/modules/welcome-to-azure/4-exercise-create-website

Error: Resource 'ServicePlanxxxxxxxxx' was disallowed by policy. (Code: RequetsDisallowedByPolicy)

Does someone can help please?

Regards,

azure-webappsazure-webapps-apis
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.

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered JohnWinegardner-7404 commented

@Bravocosta-6763, Thanks for posting this good question!

The subscription admin may have disabled provisioning of that specific App Service Plan (ASP) tier. You may try deploying the WebApp with a lower or a different ASP tier or contact your subscription admin/co-admin.
You may navigate to Azure Policies and review the policy that is applied by looking at the policy definition with the ID that you received and contact your subscription administrator who created this policy for further information.

Just to highlight more, the pricing tier of an App Service plan determines what App Service features you get and how much you pay for the plan.
We have different pricing tier (Free, Shared, Basic, Standard, Premium, PremiumV2, PremiumV3, Isolated)

For more information, please see checkout What is Azure Policy?
RequestDisallowedByPolicy Error -Symptom and Solution


Hope this helps put you on track for the course/exercise completion. Happy learning!


· 1
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.

Ajkuma,
Respectfully, please read the question carefully. Microsoft labs is the provider. This is a sandbox exercise. There is no system administrator we can contact to decide if he can grant us permission.

1 Vote 1 ·
AYUSHSINGH-6884 avatar image
0 Votes"
AYUSHSINGH-6884 answered AYUSHSINGH-6884 edited

The question appears to be old but I will try to answer it.
I got the same error initially and I realized that I was doing things incorrectly.

Steps that I was following (and I suspect other people as well) on WordPress Create Resource page are:
1. Provide app name.
2. Select a subscription. Select Concierge Subscription.
3. Select a resource group. Select learn-XXXX resource group.
4. Select database provider. Select MYSQL In App database provider.
5. App Service Plan/Location is auto selected. e.g ServicePlanXXXX(Central US)
6. Application Insights is also auto selected.
7. Click on Create.
8. And, boom, you will see RequestDisallowedByPolicy Error.

So, what I did wrong? See Step 5 and 7.

Documentation https://docs.microsoft.com/en-us/learn/modules/azure-architecture-fundamentals/exercise-create-website never said to click on Create button directly. First you need to select a Service Plan/Location.

So instead of directly clicking on Create button, first select the Service Plan/Location as described in https://docs.microsoft.com/en-us/learn/modules/azure-architecture-fundamentals/exercise-create-website.



















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.

AbhijeetDattatrayBhujbbalEuropeiCO-0112 avatar image
1 Vote"
AbhijeetDattatrayBhujbbalEuropeiCO-0112 answered

I had faced the same difficulty, carefully looked at the Pricing Tier in step 9 it was S1. From the Spec Picker selected the Dev /Test option and the F1 Pricing plan.
So basically what I understood is the error was due to the pricing plan of Production was selected for the Dev/Test

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.

JanardhanaVemulapalli-4101 avatar image
1 Vote"
JanardhanaVemulapalli-4101 answered

In Step-5, make changes to the Service Plan or create new service plan, with DEV\Test Option (Free). This should fix the error.

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.