Why microsoft learn sandbox is not letting me create AKS cluster (UI or cmd), which is required by this module excersise 3 - https://docs.microsoft.com/en-us/learn/modules/aks-secrets-configure-app/3-exercise-create-secrets

Akash Kant 6 Reputation points
2021-10-27T11:01:25.293+00:00

I have been following this azure aks-secrets-configure-app module exercise 3 - https://learn.microsoft.com/en-us/learn/modules/aks-secrets-configure-app/3-exercise-create-secrets

According to it, I need to have a - AKS cluster already created and running. But after following the below-given command i.e

$export RESOURCE_GROUP=learn-b2c3c745-841c-4480-b7a1-600096cd94ee
$export CLUSTER_NAME=ship-manager-cluster

$az aks create \
-g $RESOURCE_GROUP \
-n $CLUSTER_NAME \
--node-count 1 \
--node-vm-size Standard_B2s \
--generate-ssh-keys \
--enable-addons http_application_routing

I keep getting these 2 errors:

1)

{"code":"MultipleErrorsOccurred","message":"Multiple error occurred: NotFound,NotFound. Please see details.","details":[{"code":"ResourceGroupNotFound","message":"Resource group 'DefaultResourceGroup-WUS' could not be found."},{"code":"ResourceGroupNotFound","message":"Resource group 'DefaultResourceGroup-WUS' could not be found."}]}

2)

"code": "PreconditionFailed",
"message": "Provisioning of resource(s) for container service ship-manager-cluster in resource group learn-b2c3c745-841c-4480-b7a1-600096cd94ee failed.Message: {\n \"code\": \"PreconditionFailed\",\n \"message\": \"Provisioning of resource(s) for container service ship-manager-cluster in resource group learn-b2c3c745-841c-4480-b7a1-600096cd94ee failed. Message: The template deployment failed with multiple errors. Please see details for more information.. Details: [{\\"code\\":\\"RequestDisallowedByPolicy\\",\\"message\\":\\"Resource 'newpool-availabilitySet-65510078' was disallowed by policy. Policy identifiers: '[{\\\\"policyAssignment\\\\":{\\\\"name\\\\":\\\\"containers-assignment\\\\",\\\\"id\\\\":\\\\"/providers/Microsoft.Management/managementGroups/eab64c3d-95b6-9f1f-755f-9f8578c31e45/providers/Microsoft.Authorization/policyAssignments/containers-assignment\\\\"}
......

complete error in the attachment below 144179-aazurebug.txt

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. duongthaiha 6 Reputation points Microsoft Employee
    2022-01-28T18:24:35.987+00:00

    I have the same problem and reported the error however it has been 3 months since the question has been asked. Can you please help look into this?

    1 person found this answer helpful.
    0 comments No comments

  2. shiva patpi 13,371 Reputation points Microsoft Employee Moderator
    2021-10-27T20:06:14.687+00:00
    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.