Bearbeiten

Freigeben über


New-AzContainerAppSecretObject

Create an in-memory object for Secret.

Syntax

New-AzContainerAppSecretObject
   [-Identity <String>]
   [-KeyVaultUrl <String>]
   [-Name <String>]
   [-Value <String>]
   [<CommonParameters>]

Description

Create an in-memory object for Secret.

Examples

Example 1: Create an in-memory object for Secret.

New-AzContainerAppSecretObject -Name "redis-secret" -Value "redis-password"

Identity KeyVaultUrl Name         Value
-------- ----------- ----         -----
                     redis-secret redis-password

Create an in-memory object for Secret.

Parameters

-Identity

Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.

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

-KeyVaultUrl

Azure Key Vault URL pointing to the secret referenced by the container app.

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

-Name

Secret Name.

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

-Value

Secret Value.

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

Outputs

Secret