Skip to content

New-AzEventGridSubscription command does not have DeliveryAttributeMapping attribute #19402

@amitdwivedi-broadcom

Description

@amitdwivedi-broadcom

Description

As per azure powershell documentation https://docs.microsoft.com/en-us/powershell/module/az.eventgrid/new-azeventgridsubscription?view=azps-8.2.0 the New-AzEventGridSubscription is supposed to have DeliveryAttributeMapping as a command line parameter.

However when i install the latest module of eventgrid, i dont see DeliveryAttributeMapping in help

Why this is needed?
I want this to set the tokens in eventgrid webhooks from function apps. I can do this by using az cli but not by using powershell cmdlets

Issue script & Debug output

**EventGrid Version**
PS /Users/ad731973/Downloads> get-InstalledModule|grep Az.EventGrid
1.3.0                Az.EventGrid                        PSGallery            Microsoft Azure PowerShell - Event Grid service cmdlets for Azure Resource …

**Help For Same**
It does not give any option for DeliveryAttributeMapping
PS /Users/ad731973/Downloads> help New-AzEventGridSubscription|grep DeliveryAttributeMapping
PS /Users/ad731973/Downloads>

Environment data

PS /Users/ad731973/Downloads> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.2.5
PSEdition                      Core
GitCommitId                    7.2.5
OS                             Darwin 21.6.0 Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:22 PDT 2022; root:xnu-8020.140.41~1/RELEASE_ARM64_T6000
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

PS /Users/ad731973/Downloads> Get-Module Az*                        

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.9.1                 Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script     1.3.0                 Az.EventGrid                        {Get-AzEventGridDomain, Get-AzEventGridDomainKey, Get-AzEventGridDomainTopic, Get-A…
Script     4.8.0                 Az.Storage                          {Add-AzRmStorageContainerLegalHold, Add-AzStorageAccountManagementPolicyAction, Add…

Error output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Event GridbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedneeds-author-feedbackMore information is needed from author to address the issue.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions