New-AzContainerAppRegistryCredentialObject
Create an in-memory object for RegistryCredentials.
Syntax
New-AzContainerAppRegistryCredentialObject
[-Identity <String>]
[-PasswordSecretRef <String>]
[-Server <String>]
[-Username <String>]
[<CommonParameters>]
Description
Create an in-memory object for RegistryCredentials.
Examples
Example 1: Create a RegistryCredentials object for ContainerApp.
New-AzContainerAppRegistryCredentialObject -Identity system -PasswordSecretRef "myloginpassword" -Server azps-containerapp-1 -Username azps-container-user
Identity PasswordSecretRef Server Username
-------- ----------------- ------ --------
system myloginpassword azps-containerapp-1 azps-container-user
Create a RegistryCredentials object for ContainerApp.
Parameters
-Identity
A Managed Identity to use to authenticate with Azure Container Registry. For user-assigned identities, use the full user-assigned identity Resource ID. For system-assigned identities, use 'system'.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PasswordSecretRef
The name of the Secret that contains the registry login password.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Server
Container Registry Server.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Username
Container Registry Username.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.