Get-AzContainerRegistryTag
Get or list ACR tag.
Syntax
Get-AzContainerRegistryTag
-RepositoryName <String>
-RegistryName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzContainerRegistryTag
-RepositoryName <String>
-Name <String>
-RegistryName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get or list ACR tag.
To use this cmdlet please run
Update-AzContainerRegistryRepository -RegistryName XXX -Repository XXX -ReadEnable $true -ListEnable $true
first.
Examples
Example 1
Get-AzContainerRegistryTag -RegistryName registry -RepositoryName alpine
Registry ImageName Tags
-------- --------- ----
registry.azurecr.io alpine {latest}
List tags for repository alpine under registry.
Example 2
Get-AzContainerRegistryTag -RegistryName registry -RepositoryName alpine -name latest
Registry ImageName Attributes
-------- --------- ----------
registry.azurecr.io alpine Microsoft.Azure.Commands.ContainerRegistry.Models.PSTagAttributeBase
Get tag latest for 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 |
-Name
Tag.
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 |
-RepositoryName
Repository Name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |