Get-AzEventHubKey
Hämtar en EventHub SAS-nyckel
Syntax
Get-AzEventHubKey
-Name <String>
-NamespaceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[<CommonParameters>]
Get-AzEventHubKey
-Name <String>
-NamespaceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
-AliasName <String>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[<CommonParameters>]
Get-AzEventHubKey
-Name <String>
-NamespaceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
-EventHubName <String>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[<CommonParameters>]
Description
Hämtar en EventHub SAS-nyckel
Exempel
Exempel 1: Hämta nycklar för en auktoriseringsregel för EventHub-namnområde
Get-AzEventHubKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name RootManageSharedAccessKey
AliasPrimaryConnectionString :
AliasSecondaryConnectionString :
KeyName : RootManageSharedAccessKey
PrimaryConnectionString : 000000000000
PrimaryKey : 000000000000
SecondaryConnectionString : {ConnectionString}
SecondaryKey : {ConnectionString}
Hämtar nycklar för auktoriseringsregeln RootManageSharedAccessKey
för EventHub-namnområdet myNamespace
.
Exempel 2: Hämta nycklar för en HändelseHub-entitetsauktoriseringsregel
Get-AzEventHubKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -EventHubName myEventHub -Name RootManageSharedAccessKey
AliasPrimaryConnectionString :
AliasSecondaryConnectionString :
KeyName : RootManageSharedAccessKey
PrimaryConnectionString : 000000000000
PrimaryKey : 000000000000
SecondaryConnectionString : {ConnectionString}
SecondaryKey : {ConnectionString}
Hämtar nycklar för auktoriseringsregeln för RootManageSharedAccessKey
Entiteten myEventHub
EventHub från namnområdet myNamespace
.
Parametrar
-AliasName
Namnet på haveriberedskapsaliaset
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AsJob
Kör kommandot som ett jobb
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EventHubName
Namnet på EventHub-entiteten.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Namnet på auktoriseringsregeln
Type: | String |
Aliases: | AuthorizationRuleName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NamespaceName
Namnet på EventHub-namnområdet
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NoWait
Kör kommandot asynkront
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Namnet på resursgruppen. Namnet är skiftlägesokänsligt.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
ID för målprenumerationen.
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Utdata
Azure PowerShell
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för