microsoftdocs / mslearn-aks Goto Github PK
View Code? Open in Web Editor NEWSample apps for Microsoft Learn modules using Azure Kubernetes Services
License: Other
Sample apps for Microsoft Learn modules using Azure Kubernetes Services
License: Other
While doing Helm training in Microsoft Learn Sandbox, it shows this error when trying to find a resource that was not created. The same is in loop. What do you need to do? Are there any prerequisites I can do? Grateful
SubscriptionId=$(az account list --query '[0].id' -o tsv)
. <(wget -q -O - https://raw.githubusercontent.com/MicrosoftDocs/mslearn-aks/main/infrastructure/setup/setup.sh ) -s $SubscriptionId -n learn-helm-deploy-aks --use-acr false --install-dot-net false
Using Azure resource group learn-fc7e7ca2-1c6c-47ce-a080-48acba5cf96d.
Downloading code...
++ wget -q -O - https://raw.githubusercontent.com/MicrosoftDocs/mslearn-aks/main/infrastructure/setup/sparsecheckout.sh
++ bash -s infrastructure/deploy/ modules/learn-helm-deploy-aks/src/
Updating origin
remote: Enumerating objects: 302, done.
remote: Counting objects: 100% (168/168), done.
remote: Compressing objects: 100% (157/157), done.
remote: Total 302 (delta 68), reused 20 (delta 3), pack-reused 134
Receiving objects: 100% (302/302), 381.59 KiB | 838.00 KiB/s, done.
Resolving deltas: 100% (90/90), done.
From https://github.com/MicrosoftDocs/mslearn-aks
Switching to subscription c0f67ab8-e161-40e1-a505-62f00f659784...
Switching to subscription c0f67ab8-e161-40e1-a505-62f00f659784...
Creating AKS cluster "learn-helm-deploy-aks" in resource group "learn-fc7e7ca2-1c6c-47ce-a080-48acba5cf96d" and location "westus"...
az aks create -n learn-helm-deploy-aks -g learn-fc7e7ca2-1c6c-47ce-a080-48acba5cf96d --node-count 1 --node-vm-size Standard_B2s --vm-set-type VirtualMachineScaleSets -l westus --enable-managed-identity --generate-ssh-keys -o json
ERROR: (RequestDisallowedByPolicy) Provisioning of resource(s) for container service learn-helm-deploy-aks in resource group learn-fc7e7ca2-1c6c-47ce-a080-48acba5cf96d failed. Message: Resource 'aks-nodepool1-28064577-vmss' 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"},"policyDefinition":{"name":"Allowed resource types","id":"/providers/Microsoft.Authorization/policyDefinitions/a08ec900-254a-4555-9bf5-e42af04b5c5c"},"policySetDefinition":{"name":"containers-initiative","id":"/providers/Microsoft.Management/managementGroups/learn-sandbox-prod/providers/Microsoft.Authorization/policySetDefinitions/containers-initiative"}}]'.. Details:
Code: RequestDisallowedByPolicy
Message: Provisioning of resource(s) for container service learn-helm-deploy-aks in resource group learn-fc7e7ca2-1c6c-47ce-a080-48acba5cf96d failed. Message: Resource 'aks-nodepool1-28064577-vmss' 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"},"policyDefinition":{"name":"Allowed resource types","id":"/providers/Microsoft.Authorization/policyDefinitions/a08ec900-254a-4555-9bf5-e42af04b5c5c"},"policySetDefinition":{"name":"containers-initiative","id":"/providers/Microsoft.Management/managementGroups/learn-sandbox-prod/providers/Microsoft.Authorization/policySetDefinitions/containers-initiative"}}]'.. Details:
AKS cluster created.
Getting credentials for AKS...
(ResourceNotFound) The Resource 'Microsoft.ContainerService/managedClusters/learn-helm-deploy-aks' under resource group 'learn-fc7e7ca2-1c6c-47ce-a080-48acba5cf96d' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
Code: ResourceNotFound
Message: The Resource 'Microsoft.ContainerService/managedClusters/learn-helm-deploy-aks' under resource group 'learn-fc7e7ca2-1c6c-47ce-a080-48acba5cf96d' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
Installing NGINX ingress controller
error: You must be logged in to the server (the server has asked for the client to provide credentials)
error: You must be logged in to the server (the server has asked for the client to provide credentials)
Getting load balancer public IP
az aks list --query "[?name=='learn-helm-deploy-aks'&&resourceGroup=='learn-fc7e7ca2-1c6c-47ce-a080-48acba5cf96d'].nodeResourceGroup" -o tsv
Unable to obtain load balancer resource group. Retrying in 5s...
Please provide an option to either choose a region or VM Series.
In the create-aks.sh script, there's a check for $spHomepage
here during the provisioning retry. Where does this variable get set?
Error:
Failed to apply default image tag "marketplace.azurecr.io/bitnami/git@": couldn't parse image reference "marketplace.azurecr.io/bitnami/git@": invalid reference format
I've gone through the values.yaml file and updated every image tag to an appropriate image that can be found in Docker but I believe this error means something different. Any idea what its' looking for?
When I run the deployment script, it seems the available VM size name is changed from "Standard_B2S" into "standard_b2s_v2". So the setup script cannot create the AKS.
Here is the output,
WARNING!!! It appears you aren't currently running in a Microsoft Learn sandbox. Any Azure resources provisioned by this script will result in charges to your Azure subscription.
Using Azure resource group learn-helm-deploy-aks-rg.
Downloading code...
++ wget -q -O - https://raw.githubusercontent.com/MicrosoftDocs/mslearn-aks/main/infrastructure/setup/sparsecheckout.sh
++ bash -s infrastructure/deploy/ modules/learn-helm-deploy-aks/src/
Updating origin
remote: Enumerating objects: 308, done.
remote: Counting objects: 100% (174/174), done.
remote: Compressing objects: 100% (163/163), done.
remote: Total 308 (delta 71), reused 19 (delta 3), pack-reused 134
Receiving objects: 100% (308/308), 383.02 KiB | 733.00 KiB/s, done.
Resolving deltas: 100% (93/93), done.
From https://github.com/MicrosoftDocs/mslearn-aks
Switching to subscription 74e06991-823f-4978-9dd1-5bba45b27814...
Switching to subscription 74e06991-823f-4978-9dd1-5bba45b27814...
Creating resource group learn-helm-deploy-aks-rg in location westus2...
az group create -n learn-helm-deploy-aks-rg -l westus2 --output none
Creating AKS cluster "learn-helm-deploy-aks" in resource group "learn-helm-deploy-aks-rg" and location "westus2"...
az aks create -n learn-helm-deploy-aks -g learn-helm-deploy-aks-rg --node-count 1 --node-vm-size Standard_B2s --vm-set-type VirtualMachineScaleSets -l westus2 --enable-managed-identity --generate-ssh-keys -o json
ERROR: (BadRequest) The VM size of Standard_B2s is not allowed in your subscription in location 'westus2'. The available VM sizes are 'standard_b16als_v2,standard_b16as_v2,standard_b16ls_v2,standard_b16pls_v2,standard_b16ps_v2,standard_b16s_v2,standard_b2als_v2,standard_b2as_v2,standard_b2ats_v2,standard_b2ls_v2,standard_b2pls_v2,standard_b2ps_v2,standard_b2pts_v2,standard_b2s_v2,standard_b2ts_v2,standard_b32als_v2,standard_b32as_v2,standard_b32ls_v2,standard_b4als_v2,standard_b4as_v2,standard_b4ls_v2,standard_b4pls_v2,standard_b4ps_v2,standard_b4s_v2,standard_b8als_v2,standard_b8as_v2,standard_b8ls_v2,standard_b8pls_v2,standard_b8ps_v2,standard_b8s_v2,standard_d16pds_v5,standard_d16plds_v5,standard_d16pls_v5,standard_d16ps_v5,standard_d2pds_v5,standard_d2plds_v5,standard_d2pls_v5,standard_d2ps_v5,standard_d32pds_v5,standard_d32plds_v5,standard_d32pls_v5,standard_d32ps_v5,standard_d48pds_v5,standard_d48plds_v5,standard_d48pls_v5,standard_d48ps_v5,standard_d4pds_v5,standard_d4plds_v5,standard_d4pls_v5,standard_d4ps_v5,standard_d64pds_v5,standard_d64plds_v5,standard_d64pls_v5,standard_d64ps_v5,standard_d8pds_v5,standard_d8plds_v5,standard_d8pls_v5,standard_d8ps_v5,standard_dc16ds_v3,standard_dc16s_v3,standard_dc24ds_v3,standard_dc24s_v3,standard_dc2ds_v3,standard_dc2s_v3,standard_dc32ds_v3,standard_dc32s_v3,standard_dc48ds_v3,standard_dc48s_v3,standard_dc4ds_v3,standard_dc4s_v3,standard_dc8ds_v3,standard_dc8s_v3,standard_e112ibds_v5,standard_e112ibs_v5,standard_e16pds_v5,standard_e16ps_v5,standard_e20pds_v5,standard_e20ps_v5,standard_e2pds_v5,standard_e2ps_v5,standard_e32pds_v5,standard_e32ps_v5,standard_e4pds_v5,standard_e4ps_v5,standard_e8pds_v5,standard_e8ps_v5,standard_fx12mds,standard_fx24mds,standard_fx36mds,standard_fx48mds,standard_fx4mds,standard_hb120-16rs_v2,standard_hb120-32rs_v2,standard_hb120-64rs_v2,standard_hb120-96rs_v2,standard_hb120rs_v2,standard_hc44-16rs,standard_hc44-32rs,standard_hc44rs,standard_m416s_8_v2' For more details, please visit https://aka.ms/aks/quotas-skus-regions
Code: BadRequest
Message: The VM size of Standard_B2s is not allowed in your subscription in location 'westus2'. The available VM sizes are 'standard_b16als_v2,standard_b16as_v2,standard_b16ls_v2,standard_b16pls_v2,standard_b16ps_v2,standard_b16s_v2,standard_b2als_v2,standard_b2as_v2,standard_b2ats_v2,standard_b2ls_v2,standard_b2pls_v2,standard_b2ps_v2,standard_b2pts_v2,standard_b2s_v2,standard_b2ts_v2,standard_b32als_v2,standard_b32as_v2,standard_b32ls_v2,standard_b4als_v2,standard_b4as_v2,standard_b4ls_v2,standard_b4pls_v2,standard_b4ps_v2,standard_b4s_v2,standard_b8als_v2,standard_b8as_v2,standard_b8ls_v2,standard_b8pls_v2,standard_b8ps_v2,standard_b8s_v2,standard_d16pds_v5,standard_d16plds_v5,standard_d16pls_v5,standard_d16ps_v5,standard_d2pds_v5,standard_d2plds_v5,standard_d2pls_v5,standard_d2ps_v5,standard_d32pds_v5,standard_d32plds_v5,standard_d32pls_v5,standard_d32ps_v5,standard_d48pds_v5,standard_d48plds_v5,standard_d48pls_v5,standard_d48ps_v5,standard_d4pds_v5,standard_d4plds_v5,standard_d4pls_v5,standard_d4ps_v5,standard_d64pds_v5,standard_d64plds_v5,standard_d64pls_v5,standard_d64ps_v5,standard_d8pds_v5,standard_d8plds_v5,standard_d8pls_v5,standard_d8ps_v5,standard_dc16ds_v3,standard_dc16s_v3,standard_dc24ds_v3,standard_dc24s_v3,standard_dc2ds_v3,standard_dc2s_v3,standard_dc32ds_v3,standard_dc32s_v3,standard_dc48ds_v3,standard_dc48s_v3,standard_dc4ds_v3,standard_dc4s_v3,standard_dc8ds_v3,standard_dc8s_v3,standard_e112ibds_v5,standard_e112ibs_v5,standard_e16pds_v5,standard_e16ps_v5,standard_e20pds_v5,standard_e20ps_v5,standard_e2pds_v5,standard_e2ps_v5,standard_e32pds_v5,standard_e32ps_v5,standard_e4pds_v5,standard_e4ps_v5,standard_e8pds_v5,standard_e8ps_v5,standard_fx12mds,standard_fx24mds,standard_fx36mds,standard_fx48mds,standard_fx4mds,standard_hb120-16rs_v2,standard_hb120-32rs_v2,standard_hb120-64rs_v2,standard_hb120-96rs_v2,standard_hb120rs_v2,standard_hc44-16rs,standard_hc44-32rs,standard_hc44rs,standard_m416s_8_v2' For more details, please visit https://aka.ms/aks/quotas-skus-regions
AKS cluster created.
Getting credentials for AKS...
(ResourceNotFound) The Resource 'Microsoft.ContainerService/managedClusters/learn-helm-deploy-aks' under resource group 'learn-helm-deploy-aks-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
Code: ResourceNotFound
Message: The Resource 'Microsoft.ContainerService/managedClusters/learn-helm-deploy-aks' under resource group 'learn-helm-deploy-aks-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.