Skip to content

Commit c353c2e

Browse files
committed
Updating quickstart based on feedback
1 parent 30c1513 commit c353c2e

File tree

1 file changed

+16
-23
lines changed

1 file changed

+16
-23
lines changed

articles/aks/learn/quick-kubernetes-deploy-cli.md

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: 'Quickstart: Deploy an Azure Kubernetes Service (AKS) cluster using Azure CLI'
33
description: Learn how to quickly deploy a Kubernetes cluster and deploy an application in Azure Kubernetes Service (AKS) using Azure CLI.
44
ms.topic: quickstart
5-
ms.date: 04/08/2024
5+
ms.date: 04/09/2024
66
author: tamram
77
ms.author: tamram
88
ms.custom: H1Hack27Feb2017, mvc, devcenter, devx-track-azurecli, mode-api, innovation-engine, linux-related-content
@@ -11,7 +11,7 @@ ms.custom: H1Hack27Feb2017, mvc, devcenter, devx-track-azurecli, mode-api, innov
1111

1212
# Quickstart: Deploy an Azure Kubernetes Service (AKS) cluster using Azure CLI
1313

14-
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://ms.portal.azure.com/#view/Microsoft_Azure_CloudNative/SubscriptionSelectionPage.ReactView/tutorialKey/CreateAKSDeployment/isLearnMode~/true)
14+
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://go.microsoft.com/fwlink/?linkid=2262758)
1515

1616
Azure Kubernetes Service (AKS) is a managed Kubernetes service that lets you quickly deploy and manage clusters. In this quickstart, you learn how to:
1717

@@ -37,9 +37,8 @@ This quickstart assumes a basic understanding of Kubernetes concepts. For more i
3737

3838
Define the following environment variables for use throughout this quickstart:
3939

40-
```bash
40+
```azurecli-interactive
4141
export RANDOM_ID="$(openssl rand -hex 3)"
42-
export SSL_EMAIL_ADDRESS="$(az account show --query user.name --output tsv)"
4342
export MY_RESOURCE_GROUP_NAME="myAKSResourceGroup$RANDOM_ID"
4443
export REGION="westeurope"
4544
export MY_AKS_CLUSTER_NAME="myAKSCluster$RANDOM_ID"
@@ -52,12 +51,12 @@ An [Azure resource group][azure-resource-group] is a logical group in which Azur
5251

5352
Create a resource group using the [`az group create`][az-group-create] command.
5453

55-
```azurecli-interactive
56-
az group create --name $MY_RESOURCE_GROUP_NAME --location $REGION
57-
```
54+
```azurecli-interactive
55+
az group create --name $MY_RESOURCE_GROUP_NAME --location $REGION
56+
```
5857

5958
Results:
60-
59+
<!-- expected_similarity=0.3 -->
6160
```JSON
6261
{
6362
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myAKSResourceGroupxxxxxx",
@@ -74,7 +73,7 @@ Results:
7473

7574
## Create an AKS cluster
7675

77-
Create an AKS cluster using the [`az aks create`][az-aks-create] command.
76+
Create an AKS cluster using the [`az aks create`][az-aks-create] command. The following example creates a cluster with one node and enables a system-assigned managed identity.
7877

7978
```azurecli-interactive
8079
az aks create --resource-group $MY_RESOURCE_GROUP_NAME --name $MY_AKS_CLUSTER_NAME --enable-managed-identity --node-count 1 --generate-ssh-keys
@@ -95,7 +94,7 @@ To manage a Kubernetes cluster, use the Kubernetes command-line client, [kubectl
9594
9695
1. Verify the connection to your cluster using the [kubectl get][kubectl-get] command. This command returns a list of the cluster nodes.
9796
98-
```bash
97+
```azurecli-interactive
9998
kubectl get nodes
10099
```
101100
@@ -350,7 +349,7 @@ To deploy the application, you use a manifest file to create all the objects req
350349
351350
1. Deploy the application using the [`kubectl apply`][kubectl-apply] command and specify the name of your YAML manifest.
352351
353-
```bash
352+
```azurecli-interactive
354353
kubectl apply -f aks-store-quickstart.yaml
355354
```
356355
@@ -360,7 +359,7 @@ You can validate that the application is running by visiting the public IP addre
360359
361360
Get the application URL using the following commands:
362361
363-
```bash
362+
```azurecli-interactive
364363
runtime="5 minute"
365364
endtime=$(date -ud "$runtime" +%s)
366365
while [[ $(date -u +%s) -le $endtime ]]
@@ -378,12 +377,12 @@ do
378377
done
379378
```
380379

381-
```bash
380+
```azurecli-interactive
382381
curl $IP_ADDRESS
383382
```
384383

385384
Results:
386-
385+
<!-- expected_similarity=0.3 -->
387386
```JSON
388387
<!doctype html>
389388
<html lang="">
@@ -411,16 +410,10 @@ echo "You can now visit your web server at $IP_ADDRESS"
411410

412411
## Delete the cluster
413412

414-
If you don't plan on going through the [AKS tutorial][aks-tutorial], clean up unnecessary resources to avoid Azure charges.
413+
If you don't plan on going through the [AKS tutorial][aks-tutorial], clean up unnecessary resources to avoid Azure charges. You can remove the resource group, container service, and all related resources using the [`az group delete`][az-group-delete] command.
415414

416-
Remove the resource group, container service, and all related resources using the [`az group delete`][az-group-delete] command.
417-
418-
```azurecli-interactive
419-
az group delete --name $MY_RESOURCE_GROUP_NAME --yes --no-wait
420-
```
421-
422-
> [!NOTE]
423-
> The AKS cluster was created with a system-assigned managed identity, which is the default identity option used in this quickstart. The platform manages this identity so you don't need to manually remove it.
415+
> [!NOTE]
416+
> The AKS cluster was created with a system-assigned managed identity, which is the default identity option used in this quickstart. The platform manages this identity so you don't need to manually remove it.
424417
425418
## Next steps
426419

0 commit comments

Comments
 (0)