Redigera

Dela via


New-AzEventHubKeyVaultPropertiesObject

Create an in-memory object for KeyVaultProperties.

Syntax

New-AzEventHubKeyVaultPropertiesObject
   [-KeyName <String>]
   [-KeyVaultUri <String>]
   [-KeyVersion <String>]
   [-UserAssignedIdentity <String>]
   [<CommonParameters>]

Description

Create an in-memory object for KeyVaultProperties.

Examples

Example 1: Construct an in-memory KeyVaultProperties object

New-AzEventHubKeyVaultPropertiesObject -KeyName key1 -KeyVaultUri https://testkeyvault.vault.azure.net

Creates an in-memory object of type IKeyVaultProperties. An array of IKeyVaultProperties can be fed as input to KeyVaultProperty parameter of New-AzEventHubNamespaceV2 and Set-AzEventHubNamespaceV2 to enable encryption.

Parameters

-KeyName

Name of the Key from KeyVault.

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

-KeyVaultUri

Uri of KeyVault.

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

-KeyVersion

Key Version.

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

-UserAssignedIdentity

ARM ID of user Identity selected for encryption.

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

Outputs

KeyVaultProperties