Feedback: Error in CLI command - https://docs.microsoft.com/en-us/learn/modules/control-azure-services-with-cli/5-exercise-create-website-using-the-cli

Created on 29 Jul 2019  Â·  18Comments  Â·  Source: MicrosoftDocs/feedback

I always get this error (see at the end):

jonas_reusser@Azure:~$ export RESOURCE_GROUP=Learn-00d7cb47-7ebc-4fa6-a822-dd444b6acbfb
jonas_reusser@Azure:~$ export AZURE_REGION=westus2
jonas_reusser@Azure:~$ export AZURE_APP_PLAN=popupappplan-$RANDOM
jonas_reusser@Azure:~$ export AZURE_WEB_APP=popupwebapp-$RANDOM
jonas_reusser@Azure:~$ az group list --output table
Name Location Status


Learn-00d7cb47-7ebc-4fa6-a822-dd444b6acbfb westus Succeeded
jonas_reusser@Azure:~$ az group list --query "[?name == '$RESOURCE_GROUP']"
[
{
"id": "/subscriptions/946bd22e-d665-41a1-951c-24999bb3847d/resourceGroups/Learn-00d7cb47-7ebc-4fa6-a822-dd444b6acbfb",
"location": "westus",
"managedBy": null,
"name": "Learn-00d7cb47-7ebc-4fa6-a822-dd444b6acbfb",
"properties": {
"provisioningState": "Succeeded"
},
"tags": {
"x-created-by": "freelearning",
"x-created-for": "daab74bc-29bc-4626-9deb-01ad9860d30e"
},
"type": null
}
]
jonas_reusser@Azure:~$ az appservice plan create --name $AZURE_APP_PLAN --resource-group $RESOURCE_GROUP --location $AZURE_REGION
RequestDisallowedByPolicy - Resource 'popupappplan-2111' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"AppService-SKU","id":"/providers/Microsoft.Management/managementGroups/triplecrown2/providers/Microsoft.Authorization/policyAssignments/7bb64c0aa90247de8b4491c3"},"policyDefinition":{"name":"AppService-SKU","id":"/providers/Microsoft.Management/managementGroups/604c1504-c6a3-4080-81aa-b33091104187/providers/Microsoft.Authorization/policyDefinitions/e790fdfe-5672-403f-9a29-e1aa564ac680"}}]'.

Sandbox in this site:
https://docs.microsoft.com/en-us/learn/modules/control-azure-services-with-cli/5-exercise-create-website-using-the-cli

I can't finish the learn path!

Thanks

learn

All 18 comments

Thank you for creating the issue! One of our team members will get back to you shortly with additional information. If this is a product issue, please close this and contact the particular product's support instead (see https://support.microsoft.com/allproducts for the list of support websites).

@markjulmar can you take a look at this issue?

I get the same error.

laurens_koppenol@Azure:~$ export RESOURCE_GROUP=Learn-019b069c-b885-400a-8f47-2e009b6990c2
laurens_koppenol@Azure:~$ az group list
[
  {
    "id": "/subscriptions/5e175973-2afd-4610-9172-eecac2215518/resourceGroups/Learn-019b069c-b885-400a-8f47-2e009b6990c2",
    "location": "westus",
    "managedBy": null,
    "name": "Learn-019b069c-b885-400a-8f47-2e009b6990c2",
    "properties": {
      "provisioningState": "Succeeded"
    },
    "tags": {
      "x-created-by": "freelearning",
      "x-created-for": "4075864d-a450-49c0-9933-601f564be709"
    },
    "type": null
  }
]
laurens_koppenol@Azure:~$ export AZURE_REGION=westus2
laurens_koppenol@Azure:~$ export AZURE_APP_PLAN=popupappplan-$RANDOM
laurens_koppenol@Azure:~$ export AZURE_WEB_APP=popupwebapp-$RANDOM
laurens_koppenol@Azure:~$ az appservice plan create --name $AZURE_APP_PLAN --resource-group $RESOURCE_GROUP --location $AZURE_REGION

RequestDisallowedByPolicy - Resource 'popupappplan-3148' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"AppService-SKU","id":"/providers/Microsoft.Management/managementGroups/triplecrown2/providers/Microsoft.Authorization/policyAssignments/7bb64c0aa90247de8b4491c3"},"policyDefinition":{"name":"AppService-SKU","id":"/providers/Microsoft.Management/managementGroups/604c1504-c6a3-4080-81aa-b33091104187/providers/Microsoft.Authorization/policyDefinitions/e790fdfe-5672-403f-9a29-e1aa564ac680"}}]'.

laurens_koppenol@Azure:~$ export AZURE_APP_PLAN=asdasdasd1231312312312313$RANDOM
laurens_koppenol@Azure:~$ az appservice plan create --name $AZURE_APP_PLAN --resource-group $RESOURCE_GROUP --location $AZURE_REGION

RequestDisallowedByPolicy - Resource 'asdasdasd123131231231231331311' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"AppService-SKU","id":"/providers/Microsoft.Management/managementGroups/triplecrown2/providers/Microsoft.Authorization/policyAssignments/7bb64c0aa90247de8b4491c3"},"policyDefinition":{"name":"AppService-SKU","id":"/providers/Microsoft.Management/managementGroups/604c1504-c6a3-4080-81aa-b33091104187/providers/Microsoft.Authorization/policyDefinitions/e790fdfe-5672-403f-9a29-e1aa564ac680"}}]'.

laurens_koppenol@Azure:~$ az appservice plan create --name $AZURE_APP_PLAN --resource-group $RESOURCE_GROUP --location westus

RequestDisallowedByPolicy - Resource 'asdasdasd123131231231231331311' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"AppService-SKU","id":"/providers/Microsoft.Management/managementGroups/triplecrown2/providers/Microsoft.Authorization/policyAssignments/7bb64c0aa90247de8b4491c3"},"policyDefinition":{"name":"AppService-SKU","id":"/providers/Microsoft.Management/managementGroups/604c1504-c6a3-4080-81aa-b33091104187/providers/Microsoft.Authorization/policyDefinitions/e790fdfe-5672-403f-9a29-e1aa564ac680"}}]'.

I am having the exact same issue as described by OP. Today however something strange happened.

This morning I tried again starting up the sandbox hoping it would start a session to see if this issue was solved. According to my expectation, no change, exactly same error.

However, this afternoon, I went back again for a reproduction of the issue. But now I couldn't even start the sandbox. When I clicked to activate, it gave me a new return message.

Unauthorized Sandbox use detected. Your sandbox has been terminated.

sandbox issue

Tried again in a new private browser window to no avail.

same here. Now I also get this error message: Unauthorized Sandbox use detected. Your sandbox has been terminated.
Please fix it as soon as possible, thanks!

Found another issue that's similar. Just for reference.
https://github.com/MicrosoftDocs/feedback/issues/1727

@markjulmar
Any news?

Same problem on store-app-data-with-azure-blob-storage/7-blob-uploads-and-downloads

laurens_koppenol@Azure:~$ az appservice plan create --name blob-exercise-plan-laurens123 --resource-group Learn-d6225da3-75dd-4070-9921-168c54e23fa5

RequestDisallowedByPolicy - Resource 'blob-exercise-plan-laurens123' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"AppService-SKU","id":"/providers/Microsoft.Management/managementGroups/triplecrown2/providers/Microsoft.Authorization/policyAssignments/7bb64c0aa90247de8b4491c3"},"policyDefinition":{"name":"AppService-SKU","id":"/providers/Microsoft.Management/managementGroups/604c1504-c6a3-4080-81aa-b33091104187/providers/Microsoft.Authorization/policyDefinitions/e790fdfe-5672-403f-9a29-e1aa564ac680"}}]'.

@mairaw
Unfortunately we do not get any answer! Can you help to assign to an active analyst?

i need more XP

Same issue here. I also get the error message "Unauthorized Sandbox use detected. Your sandbox has been terminated" for Sandbox in this site:
https://docs.microsoft.com/en-us/learn/modules/control-azure-services-with-cli/5-exercise-create-website-using-the-cli

I get the same error.
`
az group list
[
{
"id": "/subscriptions/1b9fe108-b941-495b-aaf6-539c16640cc3/resourceGroups/Learn-578802cc-e07b-42e6-b733-c86d6bd1769e",
"location": "westus",
"managedBy": null,
"name": "Learn-578802cc-e07b-42e6-b733-c86d6bd1769e",
"properties": {
"provisioningState": "Succeeded"
},
"tags": {
"x-created-by": "freelearning",
"x-created-for": "5443536c-a52d-4210-b87f-7a74392e597f"
},
"type": null
}
]

export RESOURCE_GROUP=Learn-578802cc-e07b-42e6-b733-c86d6bd1769e
export AZURE_REGION=westus
export AZURE_APP_PLAN=popupappplan-9876543210
export AZURE_WEB_APP=popupwebapp-9876543210
az appservice plan create --name $AZURE_APP_PLAN --resource-group $RESOURCE_GROUP --location $AZURE_REGION
_RequestDisallowedByPolicy - Resource 'popupappplan-9876543210' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"AppService-SKU","id":"/providers/Microsoft.Management/managementGroups/triplecrown2/providers/Microsoft.Authorization/policyAssignments/7bb64c0aa90247de8b4491c3"},"policyDefinition":{"name":"AppService-SKU","id":"/providers/Microsoft.Management/managementGroups/604c1504-c6a3-4080-81aa-b33091104187/providers/Microsoft.Authorization/policyDefinitions/e790fdfe-5672-403f-9a29-e1aa564ac680"}}]'._
`

Same issue here. I also get the error message "Unauthorized Sandbox use detected. Your sandbox has been terminated" for Sandbox in this site:
https://docs.microsoft.com/en-us/learn/modules/manage-secrets-with-azure-key-vault/3-creating-vaults-storing-secrets

@mairaw @markjulmar

Hi,

I fully understand and appreciate that Microsoft developed and published the new learning journey, free of charge, to accommodate an interested public willing to learn more about Microsoft technology and its applications.

I apply myself to learn and get certified by putting in the time, money and effort to take full advantage. However, I have put my learning journey on hold (and scheduling my exam), till I can actually practice the Azure CLI through the various modules and units.

So, can I respectfully ask for an update on this issue (or the other related issue)? I understand if the people involved are busy, but at least something like a message that resolving this issue is not started or in progress.... anything please!

So after some more digging, apparently another team (or same team) is working on this issue.

Microsoft has so many channels for communication!!
This is a twitter feed from the Docs team. https://twitter.com/docsmsft

and

Just in case you haven't read it yet, there is an update.
https://twitter.com/docsmsft/status/1163964265117523970

Unfortunately the module I would really like to finish, doesn't work (yet). I guess I will give it another try next week or so.
https://docs.microsoft.com/en-us/learn/modules/control-azure-services-with-cli/5-exercise-create-website-using-the-cli

In the other thread with a similar problem there is a post informing on the new 'appeal' functionality.
https://github.com/MicrosoftDocs/feedback/issues/1797#issuecomment-527238521

Duplicate of #1797

Was this page helpful?
0 / 5 - 0 ratings