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

New-AzCloudServiceVaultSecretGroupObject

Create a in-memory object for Vault Secret Group

Syntax

New-AzCloudServiceVaultSecretGroupObject
   [-Id <String>]
   [-CertificateUrl <String[]>]
   [<CommonParameters>]

Description

Create a in-memory object for Secret Group

Examples

Example 1: Create vault secret group object

$keyVault = Get-AzKeyVault -VaultName 'ContosoKeyVault'
$certificate = Get-AzKeyVaultCertificate -VaultName 'ContosoKeyVault' -Name 'ContosoCert'
$secretGroup = New-AzCloudServiceVaultSecretGroupObject -Id $keyVault.ResourceId -CertificateUrl $certificate.SecretId

This command creates vault secret group object which is used for creating or updating a cloud service. For more details see New-AzCloudService.

Parameters

-CertificateUrl

This is the URL of a certificate that has been uploaded to Key Vault as a secret.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Id

Key Vault Resource Id.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

CloudServiceVaultSecretGroup