你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzContainerAppSecretObject
Create an in-memory object for Secret.
Syntax
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.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-KeyVaultUrl
Azure Key Vault URL pointing to the secret referenced by the container app.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Secret Name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Value
Secret Value.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |