Skip to content

Commit 5083e99

Browse files
committed
Updates.
1 parent 7f8707a commit 5083e99

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

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

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,9 @@ cd code-to-cloud/src
176176
az acr config authentication-as-arm show --registry "$ACR_NAME"
177177
```
178178
179-
TODO1 Use PS command
179+
TODO1 Verify
180180
# [Azure PowerShell](#tab/azure-powershell)
181181
```powershell
182-
$acr = Get-AzContainerRegistry -Name $ACRName
183182
$acr.Config.AuthenticationAsArm
184183
```
185184
@@ -200,7 +199,7 @@ TODO1 Use PS command
200199
az acr config authentication-as-arm update --registry "$ACR_NAME" --status enabled
201200
```
202201
203-
TODO1 Use PS command
202+
TODO1 Verify
204203
# [Azure PowerShell](#tab/azure-powershell)
205204
```powershell
206205
$acr.Config.AuthenticationAsArm.Enabled = $true
@@ -229,7 +228,7 @@ To avoid using administrative credentials, pull images from private repositories
229228
230229
# [Azure PowerShell](#tab/azure-powershell)
231230
232-
TODO1 Use PS command
231+
TODO1 Verify
233232
```powershell
234233
$IdentityName="<YOUR_IDENTITY_NAME>"
235234
$Identity = New-AzUserAssignedIdentity -ResourceGroupName $ResourceGroup -Name $IdentityName
@@ -251,7 +250,7 @@ TODO1 Use PS command
251250
252251
# [Azure PowerShell](#tab/azure-powershell)
253252
254-
TODO1 Use PS command
253+
TODO1 Verify
255254
```powershell
256255
$IdentityId = $identity.Id
257256
```
@@ -276,7 +275,7 @@ az acr build --registry $ACR_NAME --image $API_NAME .
276275

277276
# [Azure PowerShell](#tab/azure-powershell)
278277

279-
TODO1 Was this already in here? We think there is no PS equivalent for az acr build. If so, verify that. We think we say so elsewhere. Or maybe it's that there is no PS equivalent for az containerapp up.
278+
TODO1 Verify
280279
```azurepowershell
281280
New-AzAcrBuildTask -RegistryName $ACRName -ImageName $APIName -ContextPath "."
282281
@@ -324,14 +323,20 @@ az acr login --name $ACR_NAME
324323

325324
# [Azure PowerShell](#tab/azure-powershell)
326325

327-
TODO1 Use PS command
326+
TODO1 Verify
328327
```powershell
329328
Connect-AzContainerRegistry -Name $ACRName
330329
```
331330

332331
---
333332

334-
TODO1 Shouldn't az acr build take care of this? Try skipping this.
333+
TODO1 Shouldn't az acr build take care of this? Try skipping this. What az acr build command did we use in the other tutorial?
334+
az acr build \
335+
--registry "$CONTAINER_REGISTRY_NAME" \
336+
--image "$CONTAINER_IMAGE_NAME" \
337+
"https://github.com/Azure-Samples/container-apps-event-driven-jobs-tutorial.git"
338+
Okay, but in our case, we specify . instead of a URL. Which should push the dockerfile in . to the registry.
339+
335340
Now, push the image to your registry.
336341

337342
# [Bash](#tab/bash)

0 commit comments

Comments
 (0)