New-AzContainerAppEnvironmentVarObject
Create an in-memory object for EnvironmentVar.
Syntax
New-AzContainerAppEnvironmentVarObject
[-Name <String>]
[-SecretRef <String>]
[-Value <String>]
[<CommonParameters>]
Description
Create an in-memory object for EnvironmentVar.
Examples
Example 1: Create an EnvironmentVar object for Env.
New-AzContainerAppEnvironmentVarObject -Name "envVarName" -SecretRef "redis-secret" -Value "value"
Name SecretRef Value
---- --------- -----
envVarName redis-secret value
Create an EnvironmentVar object for Env.
Parameters
-Name
Environment variable name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SecretRef
Name of the Container App secret from which to pull the environment variable value.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Value
Non-secret environment variable value.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.
Azure PowerShell