Skip to content

Commit d0e6b88

Browse files
committed
fix tabs, change powershell commands to az commands
1 parent f3565a1 commit d0e6b88

File tree

2 files changed

+156
-9
lines changed

2 files changed

+156
-9
lines changed

articles/container-apps/get-started.md

Lines changed: 77 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,82 @@ In this quickstart, you create and deploy your first container app using the `az
2323
- If you don't have one, you [can create one for free](https://azure.microsoft.com/free/).
2424
- Install the [Azure CLI](/cli/azure/install-azure-cli).
2525

26-
[!INCLUDE [container-apps-create-cli-steps.md](../../includes/container-apps-setup-cli-only.md)]
26+
## Setup
27+
28+
To sign in to Azure from the CLI, run the following command and follow the prompts to complete the authentication process.
29+
30+
# [Bash](#tab/bash)
31+
32+
```azurecli
33+
az login
34+
```
35+
36+
# [Azure PowerShell](#tab/azure-powershell)
37+
38+
```azurepowershell
39+
az login
40+
```
41+
42+
---
43+
44+
Ensure you're running the latest version of the CLI via the upgrade command.
45+
46+
# [Bash](#tab/bash)
47+
48+
```azurecli
49+
az upgrade
50+
```
51+
52+
# [Azure PowerShell](#tab/azure-powershell)
53+
54+
```azurepowershell
55+
az upgrade
56+
```
57+
58+
---
59+
60+
Next, install or update the Azure Container Apps extension for the CLI.
61+
62+
# [Bash](#tab/bash)
63+
64+
```azurecli
65+
az extension add --name containerapp --upgrade
66+
```
67+
68+
# [Azure PowerShell](#tab/azure-powershell)
69+
70+
71+
```azurepowershell
72+
az extension add --name containerapp --upgrade
73+
```
74+
75+
---
76+
77+
Register the `Microsoft.App` and `Microsoft.OperationalInsights` namespaces if you haven't already registered them in your Azure subscription.
78+
79+
# [Bash](#tab/bash)
80+
81+
```azurecli
82+
az provider register --namespace Microsoft.App
83+
```
84+
85+
```azurecli
86+
az provider register --namespace Microsoft.OperationalInsights
87+
```
88+
89+
# [Azure PowerShell](#tab/azure-powershell)
90+
91+
```azurepowershell
92+
az provider register --namespace Microsoft.App
93+
```
94+
95+
```azurepowershell
96+
az provider register --namespace Microsoft.OperationalInsights
97+
```
98+
99+
---
100+
101+
Now that your Azure CLI setup is complete, you can define the environment variables that are used throughout this article.
27102

28103

29104
## Create and deploy the container app
@@ -37,7 +112,6 @@ Create and deploy your first container app with the `containerapp up` command. T
37112

38113
Note that if any of these resources already exist, the command will use them instead of creating new ones.
39114

40-
```azurecli
41115

42116
# [Bash](#tab/bash)
43117

@@ -53,7 +127,7 @@ az containerapp up \
53127
--query properties.configuration.ingress.fqdn
54128
```
55129

56-
# [Azure PowerShell](#tab/powershell)
130+
# [Azure PowerShell](#tab/azure-powershell)
57131

58132
```powershell
59133
az containerapp up `

articles/container-apps/quickstart-code-to-cloud.md

Lines changed: 79 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,80 @@ To complete this project, you need the following items:
5252

5353
::: zone-end
5454

55-
[!INCLUDE [container-apps-setup-cli-only.md](../../includes/container-apps-setup-cli-only.md)]
55+
## Setup
56+
57+
To sign in to Azure from the CLI, run the following command and follow the prompts to complete the authentication process.
58+
59+
# [Bash](#tab/bash)
60+
61+
```azurecli
62+
az login
63+
```
64+
65+
# [Azure PowerShell](#tab/azure-powershell)
66+
67+
```azurepowershell
68+
az login
69+
```
70+
71+
---
72+
73+
Ensure you're running the latest version of the CLI via the upgrade command.
74+
75+
# [Bash](#tab/bash)
76+
77+
```azurecli
78+
az upgrade
79+
```
80+
81+
# [Azure PowerShell](#tab/azure-powershell)
82+
83+
```azurepowershell
84+
az upgrade
85+
```
86+
87+
---
88+
89+
Next, install or update the Azure Container Apps extension for the CLI.
90+
91+
# [Bash](#tab/bash)
92+
93+
```azurecli
94+
az extension add --name containerapp --upgrade
95+
```
96+
97+
# [Azure PowerShell](#tab/azure-powershell)
98+
99+
100+
```azurepowershell
101+
az extension add --name containerapp --upgrade
102+
```
103+
104+
---
105+
106+
Register the `Microsoft.App` and `Microsoft.OperationalInsights` namespaces if you haven't already registered them in your Azure subscription.
107+
108+
# [Bash](#tab/bash)
109+
110+
```azurecli
111+
az provider register --namespace Microsoft.App
112+
```
113+
114+
```azurecli
115+
az provider register --namespace Microsoft.OperationalInsights
116+
```
117+
118+
# [Azure PowerShell](#tab/azure-powershell)
119+
120+
```azurepowershell
121+
az provider register --namespace Microsoft.App
122+
```
123+
124+
```azurepowershell
125+
az provider register --namespace Microsoft.OperationalInsights
126+
```
127+
128+
---
56129

57130
Now that your Azure CLI setup is complete, you can define the environment variables that are used throughout this article.
58131

@@ -79,7 +152,7 @@ Next, define a container registry name unique to you.
79152
ACR_NAME="acaalbums"$GITHUB_USERNAME
80153
```
81154

82-
# [PowerShell](#tab/powershell)
155+
# [Azure PowerShell](#tab/azure-powershell)
83156

84157
Define the following variables in your PowerShell console.
85158

@@ -117,7 +190,7 @@ ENVIRONMENT="env-album-containerapps"
117190
API_NAME="album-api"
118191
```
119192

120-
# [PowerShell](#tab/powershell)
193+
# [Azure PowerShell](#tab/azure-powershell)
121194

122195
Define the following variables in your PowerShell console.
123196

@@ -227,7 +300,7 @@ az containerapp up \
227300
--source code-to-cloud/src
228301
```
229302

230-
# [PowerShell](#tab/powershell)
303+
# [Azure PowerShell](#tab/azure-powershell)
231304

232305
```powershell
233306
az containerapp up `
@@ -270,7 +343,7 @@ az containerapp up \
270343
--repo <YOUR_GITHUB_REPOSITORY_NAME>
271344
```
272345

273-
# [PowerShell](#tab/powershell)
346+
# [Azure PowerShell](#tab/azure-powershell)
274347

275348
```powershell
276349
az containerapp up `
@@ -311,7 +384,7 @@ If you're not going to continue on to the [Deploy a frontend](communicate-betwee
311384
az group delete --name $RESOURCE_GROUP
312385
```
313386

314-
# [PowerShell](#tab/powershell)
387+
# [Azure PowerShell](#tab/azure-powershell)
315388

316389
```powershell
317390
az group delete --name $RESOURCE_GROUP

0 commit comments

Comments
 (0)