Connect-AzContainerRegistry
Login to an azure container registry.
Syntax
Connect-AzContainerRegistry
-Name <String>
[-ExposeToken]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Connect-AzContainerRegistry
-Name <String>
-UserName <String>
-Password <String>
[-ExposeToken]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Login to an azure container registry.
Examples
Example 1
Connect-AzContainerRegistry -Name $RegistryName
Login to ACR with no credentials when already login to azure account.
Example 2
Connect-AzContainerRegistry -Name $RegistryName -UserName $RegistryName -Password $AdminPassWord
Login to ACR with admin username/password when admin user was enabled.
Example 3
Connect-AzContainerRegistry -Name $RegistryName -UserName $ServicePrincipal -Password $ServicePrincipalPassword
Login to ACR with service principal application ID and password.
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 |
-ExposeToken
{{ Fill ExposeToken Description }}
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Azure Container Registry Name.
Type: | String |
Aliases: | RegistryName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Password
Password For Azure Container Registry.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-UserName
User Name For Azure Container Registry.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
Outputs
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
Azure PowerShell
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ