@@ -176,10 +176,9 @@ cd code-to-cloud/src
176
176
az acr config authentication-as-arm show --registry "$ACR_NAME"
177
177
```
178
178
179
- TODO1 Use PS command
179
+ TODO1 Verify
180
180
# [Azure PowerShell](#tab/azure-powershell)
181
181
```powershell
182
- $acr = Get-AzContainerRegistry -Name $ACRName
183
182
$acr.Config.AuthenticationAsArm
184
183
```
185
184
@@ -200,7 +199,7 @@ TODO1 Use PS command
200
199
az acr config authentication-as-arm update --registry "$ACR_NAME" --status enabled
201
200
```
202
201
203
- TODO1 Use PS command
202
+ TODO1 Verify
204
203
# [Azure PowerShell](#tab/azure-powershell)
205
204
```powershell
206
205
$acr.Config.AuthenticationAsArm.Enabled = $true
@@ -229,7 +228,7 @@ To avoid using administrative credentials, pull images from private repositories
229
228
230
229
# [Azure PowerShell](#tab/azure-powershell)
231
230
232
- TODO1 Use PS command
231
+ TODO1 Verify
233
232
```powershell
234
233
$IdentityName="<YOUR_IDENTITY_NAME>"
235
234
$Identity = New-AzUserAssignedIdentity -ResourceGroupName $ResourceGroup -Name $IdentityName
@@ -251,7 +250,7 @@ TODO1 Use PS command
251
250
252
251
# [Azure PowerShell](#tab/azure-powershell)
253
252
254
- TODO1 Use PS command
253
+ TODO1 Verify
255
254
```powershell
256
255
$IdentityId = $identity.Id
257
256
```
@@ -276,7 +275,7 @@ az acr build --registry $ACR_NAME --image $API_NAME .
276
275
277
276
# [ Azure PowerShell] ( #tab/azure-powershell )
278
277
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
280
279
``` azurepowershell
281
280
New-AzAcrBuildTask -RegistryName $ACRName -ImageName $APIName -ContextPath "."
282
281
@@ -324,14 +323,20 @@ az acr login --name $ACR_NAME
324
323
325
324
# [ Azure PowerShell] ( #tab/azure-powershell )
326
325
327
- TODO1 Use PS command
326
+ TODO1 Verify
328
327
``` powershell
329
328
Connect-AzContainerRegistry -Name $ACRName
330
329
```
331
330
332
331
---
333
332
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
+
335
340
Now, push the image to your registry.
336
341
337
342
# [ Bash] ( #tab/bash )
0 commit comments