New-AzContainerAppSecretObject
Create an in-memory object for Secret.
Syntax
Default (Default)
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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-KeyVaultUrl
Azure Key Vault URL pointing to the secret referenced by the container app.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
Secret Name.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Value
Secret Value.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.