Dela via


Get-AzEventHubAuthorizationRule

Hämtar en EventHub-auktoriseringsregel

Syntax

Get-AzEventHubAuthorizationRule
   -NamespaceName <String>
   -ResourceGroupName <String>
   [-Name <String>]
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzEventHubAuthorizationRule
   -NamespaceName <String>
   -ResourceGroupName <String>
   [-Name <String>]
   [-SubscriptionId <String[]>]
   -EventHubName <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzEventHubAuthorizationRule
   -NamespaceName <String>
   -ResourceGroupName <String>
   [-Name <String>]
   [-SubscriptionId <String[]>]
   -AliasName <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzEventHubAuthorizationRule
   -InputObject <IEventHubIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Hämtar en EventHub-auktoriseringsregel

Exempel

Exempel 1: Hämta en EventHub-namnområdesauktoriseringsregel

Get-AzEventHubAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myAuthRule

Id                           : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace/authorizationRules
                               /myAuthRule
Location                     : Central US
Name                         : myAuthRule
ResourceGroupName            : myResourceGroup
Rights                       : {Listen, Manage, Send}

Hämtar information om auktoriseringsregeln myAuthRule för EventHub-namnområdet myNamespace.

Exempel 2: Hämta en auktoriseringsregel för EventHub-entitet

Get-AzEventHubAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -EventHubName myEventHub -Name myAuthRule

Id                           : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace/eventhubs/myEventHub/authorizationRules
                               /myAuthRule
Location                     : Central US
Name                         : myAuthRule
ResourceGroupName            : myResourceGroup
Rights                       : {Listen, Manage, Send}

Hämtar information om auktoriseringsregeln för myAuthRule Entiteten myEventHub EventHub från namnområdet myNamespace.

Parametrar

-AliasName

Namnet på haveriberedskapsaliaset

Typ:String
Position:Named
standardvärde:None
Obligatorisk:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.

Typ:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
standardvärde:None
Obligatorisk:False
Accept pipeline input:False
Accept wildcard characters:False

-EventHubName

Namnet på EventHub-entiteten.

Typ:String
Position:Named
standardvärde:None
Obligatorisk:True
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Identitetsparameter. Information om hur du skapar finns i AVSNITTET ANTECKNINGAR för INPUTOBJECT-egenskaper och skapa en hash-tabell.

Typ:IEventHubIdentity
Position:Named
standardvärde:None
Obligatorisk:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

Namnet på auktoriseringsregeln

Typ:String
Aliases:AuthorizationRuleName
Position:Named
standardvärde:None
Obligatorisk:False
Accept pipeline input:False
Accept wildcard characters:False

-NamespaceName

Namnet på EventHub-namnområdet

Typ:String
Position:Named
standardvärde:None
Obligatorisk:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Namnet på resursgruppen. Namnet är skiftlägesokänsligt.

Typ:String
Position:Named
standardvärde:None
Obligatorisk:True
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

ID för målprenumerationen.

Typ:String[]
Position:Named
standardvärde:(Get-AzContext).Subscription.Id
Obligatorisk:False
Accept pipeline input:False
Accept wildcard characters:False

Indata

IEventHubIdentity

Utdata

IAuthorizationRule