Get-AzEventHubAuthorizationRule
Hiermee haalt u een EventHub-autorisatieregel op
Syntaxis
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
Hiermee haalt u een EventHub-autorisatieregel op
Voorbeelden
Voorbeeld 1: Een EventHub-naamruimteautorisatieregel ophalen
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}
Hiermee haalt u details op van de autorisatieregel myAuthRule
van de EventHub-naamruimte myNamespace
.
Voorbeeld 2: Een Autorisatieregel voor een EventHub-entiteit ophalen
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}
Hiermee haalt u details op van de autorisatieregel myAuthRule
van de EventHub-entiteit myEventHub
uit de naamruimte myNamespace
.
Parameters
-AliasName
De naam van de alias Voor herstel na noodgevallen
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DefaultProfile
De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.
Type: | PSObject |
Aliassen: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-EventHubName
De naam van de EventHub-entiteit.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-InputObject
Identiteitsparameter. Zie de sectie NOTES voor INPUTOBJECT-eigenschappen en maak een hash-tabel om deze samen te stellen.
Type: | IEventHubIdentity |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-Name
De naam van de autorisatieregel
Type: | String |
Aliassen: | AuthorizationRuleName |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-NamespaceName
De naam van de EventHub-naamruimte
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ResourceGroupName
De naam van de resourcegroep. De naam is niet hoofdlettergevoelig.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-SubscriptionId
De id van het doelabonnement.
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
Invoerwaarden
Uitvoerwaarden
Azure PowerShell