Editar

Compartilhar via


Get-AzContainerRegistryRepository

Get or list ACR repositories.

Syntax

Get-AzContainerRegistryRepository
   [-First <Int32>]
   -RegistryName <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzContainerRegistryRepository
   -Name <String>
   -RegistryName <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get or list ACR repositories. List returns repository names only.

Examples

Example 1

Get-AzContainerRegistryRepository -RegistryName registry

alpine
test/busybox0
test/busybox1
test/busybox10

List all repositories in registry.

Example 2

Get-AzContainerRegistryRepository -RegistryName registry -First 3

alpine
test/busybox0
test/busybox1

List first 3 repositories in registry.

Example 3

Get-AzContainerRegistryRepository -RegistryName registry -Name alpine

Registry             : registry.azurecr.io
ImageName            : alpine
CreatedTime          : 2020-10-13T05:45:25.5896115Z
LastUpdateTime       : 2021-01-04T08:31:46.2406505Z
ManifestCount        : 7
TagCount             : 1
ChangeableAttributes : Microsoft.Azure.Commands.ContainerRegistry.Models.PSChangeableAttribute

Get repository alpine under registry.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-First

First n results.

Type:Nullable<T>[Int32]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Repository Name.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-RegistryName

Azure Container Registry Name.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

Outputs

String

PSRepositoryAttribute