Update-AzEventGridChannel

Updates the properties of an Event Grid channel.

Syntax

Update-AzEventGridChannel
      [-ResourceGroupName] <String>
      [-PartnerNamespaceName] <String>
      [-Name] <String>
      [-EventTypeKind <String>]
      [-InlineEvent <Hashtable>]
      [-ExpirationTimeIfNotActivatedUtc <DateTime>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzEventGridChannel
      [-InputObject] <PSChannel>
      [-EventTypeKind <String>]
      [-InlineEvent <Hashtable>]
      [-ExpirationTimeIfNotActivatedUtc <DateTime>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Updates the properties of an Event Grid channel.

Examples

Example 1

Update-AzEventGridChannel -ResourceGroupName MyResourceGroupName -PartnerNamespaceName PartnerNamespace1 -Name Channel1 -ExpirationTimeIfNotActivatedUtc (Get-Date).AddDays(8)

Updates the Event Grid channel so partner topics will expire 8 days from the current time if not activated.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

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

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

-EventTypeKind

The kind of event type used. Possible values include: 'Inline'

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

-ExpirationTimeIfNotActivatedUtc

Expiration time of the partner topic. If this timer expires while the partner topic is still never activated, the partner topic and corresponding event channel are deleted.

Type:Nullable<T>[DateTime]
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-InlineEvent

Hashtable representing information on inline events. The inline event keys are of type string which represents the name of the event.The inline event values are Hashtables containing the optional keys description, displayName, documentationUrl, and dataSchemaUrl which define the information about the inline event.

Type:Hashtable
Accepted values:Inline
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-InputObject

Channel object

Type:PSChannel
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

The name of the Event Grid channel.

Type:String
Aliases:ChannelName
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PartnerNamespaceName

Event Grid partner namespace name.

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

-ResourceGroupName

The name of the resource group.

Type:String
Aliases:ResourceGroup
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

PSChannel

Hashtable

Nullable<T>[[System.DateTime, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]

Outputs

PSChannel