Skip to content

Commit 009f725

Browse files
committed
Move to splatting
1 parent 3376346 commit 009f725

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

articles/container-registry/buffer-gate-public-content.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ az acr import \
8080
--password <Docker Hub token>
8181
```
8282

83-
# [PowerShell](#tab/azure-powershell)
83+
# [Azure PowerShell](#tab/azure-powershell)
8484

8585
As a recommended one-time step, [import](container-registry-import-images.md) base images and other public content to your Azure container registry. The [Import-AzContainerRegistryImage](/powershell/module/az.containerregistry/import-azcontainerregistryimage) command in the Azure PowerShell supports image import from public registries such as Docker Hub and Microsoft Container Registry and from other private container registries.
8686

@@ -89,14 +89,17 @@ As a recommended one-time step, [import](container-registry-import-images.md) ba
8989
Depending on your organization's needs, you can import to a dedicated registry or a repository in a shared registry.
9090

9191
```azurepowershell-interactive
92-
Import-AzContainerRegistryImage
93-
-SourceImage library/busybox:latest
94-
-ResourceGroupName $resourceGroupName
95-
-RegistryName $RegistryName
96-
-SourceRegistryUri docker.io
97-
-TargetTag busybox:latest
92+
$Params = @{
93+
SourceImage = 'library/busybox:latest'
94+
ResourceGroupName = $resourceGroupName
95+
RegistryName = $RegistryName
96+
SourceRegistryUri = 'docker.io'
97+
TargetTag = 'busybox:latest'
98+
}
99+
Import-AzContainerRegistryImage @Params
98100
```
99-
Credentials are required if the source registry is not available publicly or the admin user is disabled.
101+
102+
Credentials are required if the source registry is not available publicly or the admin user is disabled.
100103

101104
---
102105

0 commit comments

Comments
 (0)