Skip to content

Commit 0830c9b

Browse files
authored
Merge pull request #185009 from Nickomang/aks-powershell-qs-fixes
AKS Powershell quickstart fixes
2 parents 2bc611f + 035c7f7 commit 0830c9b

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

articles/aks/kubernetes-walkthrough-powershell.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
---
22
title: 'Quickstart: Deploy an AKS cluster by using PowerShell'
3-
description: Learn how to quickly create a Kubernetes cluster, deploy an application, and monitor performance in Azure Kubernetes Service (AKS) using PowerShell.
3+
description: Learn how to quickly create a Kubernetes cluster and deploy an application in Azure Kubernetes Service (AKS) using PowerShell.
44
services: container-service
55
ms.topic: quickstart
6-
ms.date: 03/15/2021
6+
ms.date: 01/13/2022
77
ms.custom: devx-track-azurepowershell, mode-api
8-
#Customer intent: As a developer or cluster operator, I want to quickly create an AKS cluster and deploy an application so that I can see how to run and monitor applications using the managed Kubernetes service in Azure.
8+
#Customer intent: As a developer or cluster operator, I want to quickly create an AKS cluster and deploy an application so that I can see how to run applications using the managed Kubernetes service in Azure.
99
---
1010

1111
# Quickstart: Deploy an Azure Kubernetes Service cluster using PowerShell
1212

1313
Azure Kubernetes Service (AKS) is a managed Kubernetes service that lets you quickly deploy and manage clusters. In this quickstart, you will:
1414
* Deploy an AKS cluster using PowerShell.
1515
* Run a multi-container application with a web front-end and a Redis instance in the cluster.
16-
* Monitor the health of the cluster and pods that run your application.
1716

1817
To learn more about creating a Windows Server node pool, see
1918
[Create an AKS cluster that supports Windows Server containers][windows-container-powershell].
@@ -69,7 +68,7 @@ ResourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resource
6968
* [Quick steps: Create and use an SSH public-private key pair for Linux VMs in Azure](../virtual-machines/linux/mac-create-ssh-keys.md)
7069
* [How to use SSH keys with Windows on Azure](../virtual-machines/linux/ssh-from-windows.md)
7170

72-
1. Create an AKS cluster using the [New-AzAksCluster][new-azakscluster] cmdlet. Azure Monitor for containers is enabled by default.
71+
1. Create an AKS cluster using the [New-AzAksCluster][new-azakscluster] cmdlet.
7372

7473
The following example creates a cluster named **myAKSCluster** with one node.
7574

@@ -101,7 +100,7 @@ To manage a Kubernetes cluster, use the Kubernetes command-line client, [kubectl
101100
3. Verify the connection to your cluster using the [kubectl get][kubectl-get] command. This command returns a list of the cluster nodes.
102101
103102
```azurepowershell-interactive
104-
.\kubectl get nodes
103+
kubectl get nodes
105104
```
106105
107106
Output shows the single node created in the previous steps. Make sure the node status is *Ready*:
@@ -218,7 +217,7 @@ Two [Kubernetes Services][kubernetes-service] are also created:
218217
1. Deploy the application using the [kubectl apply][kubectl-apply] command and specify the name of your YAML manifest:
219218
220219
```azurepowershell-interactive
221-
.\kubectl apply -f azure-vote.yaml
220+
kubectl apply -f azure-vote.yaml
222221
```
223222
224223
Output shows the successfully created deployments and services:
@@ -237,7 +236,7 @@ When the application runs, a Kubernetes service exposes the application front en
237236
Monitor progress using the [kubectl get service][kubectl-get] command with the `--watch` argument.
238237
239238
```azurepowershell-interactive
240-
.\kubectl get service azure-vote-front --watch
239+
kubectl get service azure-vote-front --watch
241240
```
242241

243242
The **EXTERNAL-IP** output for the `azure-vote-front` service will initially show as *pending*.
@@ -257,8 +256,6 @@ To see the Azure Vote app in action, open a web browser to the external IP addre
257256

258257
![Voting app deployed in Azure Kubernetes Service](./media/kubernetes-walkthrough-powershell/voting-app-deployed-in-azure-kubernetes-service.png)
259258

260-
View the cluster nodes' and pods' health metrics captured by Azure Monitor for containers in the Azure portal.
261-
262259
## Delete the cluster
263260

264261
To avoid Azure charges, clean up your unnecessary resources. Use the [Remove-AzResourceGroup][remove-azresourcegroup] cmdlet to remove the resource group, container service, and all related resources.

0 commit comments

Comments
 (0)