Get-AzEventGridDomainKey

Gets the shared access keys used to publish events to an Event Grid domain.

Syntax

Get-AzEventGridDomainKey
   [-ResourceGroupName] <String>
   [-Name] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzEventGridDomainKey
   [-DomainObject] <PSDomain>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzEventGridDomainKey
   [-DomainResourceId] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Gets the shared access keys used to publish events to an Event Grid domain.

Examples

Example 1

Gets the shared access keys of Event Grid domain `Domain1` in resource group `MyResourceGroupName`.

PS C:\> Get-AzEventGridDomainKey -ResourceGroup MyResourceGroupName -Name Domain1

Key1                                         Key2
----                                         ----
                                

Example 2

Gets the shared access keys of Event Grid domain `Domain1` in resource group `MyResourceGroupName`.

PS C:\> Get-AzEventGridDomain -ResourceGroup MyResourceGroupName -Name Domain1 | Get-AzEventGridDomainKey

Key1                                         Key2
----                                         ----
                                

Parameters

-DefaultProfile

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

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DomainObject

EventGrid Domain object.

Type:Microsoft.Azure.Commands.EventGrid.Models.PSDomain
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-DomainResourceId

Resource Identifier representing the Event Grid Domain.

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

EventGrid domain name.

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

The name of the resource group.

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

Inputs

String

Microsoft.Azure.Commands.EventGrid.Models.PSDomain

Outputs

DomainSharedAccessKeys