Azure PowerShell Cmdlets - Az.ContainerRegistry Reference

Connect-AzContainerRegistry

Description

Connects to an Azure container registry.

Syntax

Connect-AzContainerRegistry -RegistryName [-ResourceGroupName ] [-SubscriptionId ] [-DefaultProfile ] []

Parameters

  • -RegistryName: The name of the container registry.
  • -ResourceGroupName: The name of the resource group.
  • -SubscriptionId: The ID of the subscription.
  • -DefaultProfile: The default Azure context to use.
New-AzContainerRegistry

Description

Creates a new Azure container registry.

Syntax

New-AzContainerRegistry -Name -ResourceGroupName -Location [-Sku ] [-AdminUserEnabled ] [-Tags ] [-DefaultProfile ] []

Parameters

  • -Name: The name for the new container registry.
  • -ResourceGroupName: The name of the resource group to create the registry in.
  • -Location: The Azure region for the registry.
  • -Sku: The SKU for the registry (e.g., Basic, Standard, Premium).
  • -AdminUserEnabled: Enable or disable the admin user.
  • -Tags: A dictionary of tags to assign to the registry.
Get-AzContainerRegistry

Description

Gets information about one or more Azure container registries.

Syntax

Get-AzContainerRegistry [-Name ] [-ResourceGroupName ] [-SubscriptionId ] [-DefaultProfile ] []

Parameters

  • -Name: The name of the container registry to retrieve.
  • -ResourceGroupName: The name of the resource group.
  • -SubscriptionId: The ID of the subscription.
Update-AzContainerRegistry

Description

Updates an existing Azure container registry.

Syntax

Update-AzContainerRegistry -Name -ResourceGroupName [-AdminUserEnabled ] [-Tags ] [-DefaultProfile ] []

Parameters

  • -Name: The name of the container registry to update.
  • -ResourceGroupName: The name of the resource group.
  • -AdminUserEnabled: Enable or disable the admin user.
  • -Tags: A dictionary of tags to assign or update.
Remove-AzContainerRegistry

Description

Removes an Azure container registry.

Syntax

Remove-AzContainerRegistry -Name -ResourceGroupName [-Force] [-AsJob] [-WhatIf] [-Confirm] [-DefaultProfile ] []

Parameters

  • -Name: The name of the container registry to remove.
  • -ResourceGroupName: The name of the resource group.
  • -Force: Suppress confirmation messages.
Login-AzContainerRegistry

Description

Logs in to an Azure container registry using admin credentials or service principal.

Syntax

Login-AzContainerRegistry -RegistryName [-Username ] [-Password ] [-TenantId ] [-ServicePrincipalClientId ] [-ServicePrincipalClientSecret ] [-ResourceGroupName ] [-SubscriptionId ] [-DefaultProfile ] []

Parameters

  • -RegistryName: The name of the container registry to log in to.
  • -Username: The username for authentication.
  • -Password: The password for authentication.
  • -TenantId: The Azure AD tenant ID.
  • -ServicePrincipalClientId: The client ID of the service principal.
  • -ServicePrincipalClientSecret: The client secret of the service principal.