You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-registry/buffer-gate-public-content.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ az acr import \
80
80
--password <Docker Hub token>
81
81
```
82
82
83
-
# [PowerShell](#tab/azure-powershell)
83
+
# [Azure PowerShell](#tab/azure-powershell)
84
84
85
85
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.
86
86
@@ -89,14 +89,17 @@ As a recommended one-time step, [import](container-registry-import-images.md) ba
89
89
Depending on your organization's needs, you can import to a dedicated registry or a repository in a shared registry.
90
90
91
91
```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
98
100
```
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.
0 commit comments