你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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 |