Skip to content

aks tutorial kubernetes

phaledang edited this page Dec 30, 2023 · 11 revisions

Git

git clone https://github.com/Azure-Samples/aks-store-demo.git

Az

Using Cloudshell

Go to Azure , click on icon cloud shell to open Azure cloudshell image

Verify you have the Microsoft.OperationsManagement and Microsoft.OperationalInsights providers registered on your subscription.

These Azure resource providers are required to support Container insights. Check the registration status using the following commands:

az provider show -n Microsoft.OperationsManagement -o table

az provider show -n Microsoft.OperationalInsights -o table

image

If they're not registered, register them using the following commands:

az provider register --namespace Microsoft.OperationsManagement

az provider register --namespace Microsoft.OperationalInsights

Create resources

az login

az group create --name myResourceGroup --location eastus

az aks create -g myResourceGroup -n myAKSCluster --enable-managed-identity --node-count 1 --enable-addons monitoring --enable-msi-auth-for-monitoring --generate-ssh-keys Argument '--enable-msi-auth-for-monitoring' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

View resources on https://portal.azure.com/

image image

Copilot

Copilot steps

Sources:

https://learn.microsoft.com/en-us/azure/aks/tutorial-kubernetes-prepare-app

https://learn.microsoft.com/en-us/azure/aks/learn/quick-kubernetes-deploy-cli

Clone this wiki locally