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

New-AzContainerAppSecretVolumeItemObject

为 SecretVolumeItem 创建内存中对象。

语法

New-AzContainerAppSecretVolumeItemObject
   [-Path <String>]
   [-SecretRef <String>]
   [<CommonParameters>]

说明

为 SecretVolumeItem 创建内存中对象。

示例

示例 1:为 SecretVolumeItem 创建内存中对象。

New-AzContainerAppSecretVolumeItemObject -Path "secretVolumePath" -SecretRef "redis-secret"

Path             SecretRef
----             ---------
secretVolumePath redis-secret

为 SecretVolumeItem 创建内存中对象。

参数

-Path

项目机密的路径。 如果未提供路径,则路径默认为 secretRef 中列出的机密的名称。

类型:String
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-SecretRef

要从中拉取机密值的容器应用机密的名称。

类型:String
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

输出