Skip to content

Commit ee46c62

Browse files
author
naman-msft
committed
updated docs
1 parent 95a41c5 commit ee46c62

File tree

1 file changed

+13
-35
lines changed

1 file changed

+13
-35
lines changed

scenarios/azure-aks-docs/articles/aks/learn/quick-windows-container-deploy-cli.md

Lines changed: 13 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ An [Azure resource group](/azure/azure-resource-manager/management/overview) is
3535

3636
```bash
3737
export RANDOM_SUFFIX=$(openssl rand -hex 3)
38-
export REGION="eastus2"
38+
export REGION="canadacentral"
3939
export MY_RESOURCE_GROUP_NAME="myAKSResourceGroup$RANDOM_SUFFIX"
4040
az group create --name $MY_RESOURCE_GROUP_NAME --location $REGION
4141
```
@@ -82,10 +82,6 @@ export WINDOWS_PASSWORD="$(openssl rand -base64 32 | tr -d '=+/' | cut -c1-14)"
8282

8383
3. Create your cluster using the [az aks create][az-aks-create] command and specify the `--windows-admin-username` and `--windows-admin-password` parameters. The following example command creates a cluster using the values from *WINDOWS_USERNAME* and *WINDOWS_PASSWORD* you set in the previous commands. A random suffix is appended to the cluster name for uniqueness.
8484

85-
```bash
86-
export MY_AKS_CLUSTER="myAKSCluster$RANDOM_SUFFIX"
87-
```
88-
8985
```bash
9086
export MY_AKS_CLUSTER="myAKSCluster$RANDOM_SUFFIX"
9187
az aks create \
@@ -284,7 +280,17 @@ When the application runs, a Kubernetes service exposes the application front en
284280
1. Check the status of the deployed pods using the [kubectl get pods][kubectl-get] command. Make sure all pods are `Running` before proceeding.
285281

286282
```bash
287-
kubectl get pods
283+
while true; do
284+
POD_STATUS=$(kubectl get pods --no-headers | awk '{print $3}' | grep -v "Running" | wc -l)
285+
if [ "$POD_STATUS" -eq 0 ]; then
286+
echo "All pods are in the Running state."
287+
kubectl get pods
288+
break
289+
else
290+
echo "Waiting for all pods to be in the Running state..."
291+
sleep 5
292+
fi
293+
done
288294
```
289295

290296
2. Monitor progress using the [kubectl get service][kubectl-get] command with the `--watch` argument.
@@ -323,35 +329,7 @@ When the *EXTERNAL-IP* address changes from *pending* to an actual public IP add
323329
}
324330
```
325331

326-
3. See the sample app in action by opening a web browser to the external IP address of your service.
327-
328-
```bash
329-
curl -s $EXTERNAL_IP | head -n 20
330-
```
331-
332-
The following sample output shows the HTML content returned by the ASP.NET sample application:
333-
334-
<!-- expected_similarity=0.3 -->
335-
336-
```text
337-
<!DOCTYPE html>
338-
<html lang="en">
339-
<head>
340-
<meta charset="utf-8" />
341-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
342-
<title>Home Page - ASP.NET Application</title>
343-
<script src="/Scripts/modernizr.js"></script>
344-
<link href="/Content/bootstrap.css" rel="stylesheet"/>
345-
<link href="/Content/Site.css" rel="stylesheet"/>
346-
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
347-
</head>
348-
<body>
349-
<form method="post" action="./" id="form1">
350-
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="[VIEWSTATE_REMOVED]" />
351-
<script src="/bundles/MsAjaxJs" type="text/javascript"></script>
352-
<script type="text/javascript">
353-
// Script content here
354-
```
332+
See the sample app in action by opening a web browser to the external IP address of your service after a few minutes.
355333

356334
:::image type="content" source="media/quick-windows-container-deploy-cli/asp-net-sample-app.png" alt-text="Screenshot of browsing to ASP.NET sample application." lightbox="media/quick-windows-container-deploy-cli/asp-net-sample-app.png":::
357335

0 commit comments

Comments
 (0)