New-AzEventHubEncryptionConfig

Creates an in memory object instance of PSEncryptionConfigAttributes which can then be given as input to New-AzEventHubNamespace and Set-AzEventHubNamespace to enable encryption

Note

This is the previous version of our documentation. Please consult the most recent version for up-to-date information.

Syntax

New-AzEventHubEncryptionConfig
   [-KeyName] <String>
   [-KeyVaultUri] <String>
   [-KeyVersion <String>]
   [-UserAssignedIdentity <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The New-AzEventHubEncryptionConfig creates an in memory object. This command does not make any call or changes to the server.

Examples

Example 1

PS C:\> New-AzEventHubEncryptionConfig -KeyName key1 -KeyVaultUri https://myvaultname.vault.azure.net -UserAssignedIdentity /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/MSIName2

Refer the doc for New-AzEventHubNamespace and Set-AzEventHubNamespace on how to use this further

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-KeyName

Key Name

Type:String
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-KeyVaultUri

Key Vault Uri

Type:String
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-KeyVersion

Key Version

Type:String
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-UserAssignedIdentity

User Assigned Identity

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

Inputs

String

Outputs

PSEncryptionConfigAttributes