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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell