New-AzEventGridPartnerObject

Create an in-memory object for Partner.

Syntax

New-AzEventGridPartnerObject
   [-AuthorizationExpirationTimeInUtc <DateTime>]
   [-Name <String>]
   [-RegistrationImmutableId <String>]
   [<CommonParameters>]

Description

Create an in-memory object for Partner.

Examples

Example 1: Create an in-memory object for Partner.

New-AzEventGridPartnerObject -AuthorizationExpirationTimeInUtc "2023-11-19T09:31:42.521Z" -Name "Auth0" -RegistrationImmutableId "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"

AuthorizationExpirationTimeInUtc Name  RegistrationImmutableId
-------------------------------- ----  -----------------------
2023-11-19 下午 05:31:42         Auth0 804a11ca-ce9b-4158-8e94-3c8dc7a072ec

Create an in-memory object for Partner.

Parameters

-AuthorizationExpirationTimeInUtc

Expiration time of the partner authorization. If this timer expires, any request from this partner to create, update or delete resources in subscriber's context will fail. If specified, the allowed values are between 1 to the value of defaultMaximumExpirationTimeInDays specified in PartnerConfiguration. If not specified, the default value will be the value of defaultMaximumExpirationTimeInDays specified in PartnerConfiguration or 7 if this value is not specified.

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

-Name

The partner name.

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

-RegistrationImmutableId

The immutableId of the corresponding partner registration.

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

Outputs

Partner