Set-AzEventHubAuthorizationRule
Uppdaterar den angivna auktoriseringsregeln på en händelsehubb.
Syntax
Set-AzEventHubAuthorizationRule
[-ResourceGroupName] <String>
[-Namespace] <String>
[-Name] <String>
[[-InputObject] <PSSharedAccessAuthorizationRuleAttributes>]
[[-Rights] <String[]>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzEventHubAuthorizationRule
[-ResourceGroupName] <String>
[-Namespace] <String>
[-EventHub] <String>
[-Name] <String>
[[-InputObject] <PSSharedAccessAuthorizationRuleAttributes>]
[[-Rights] <String[]>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzEventHubAuthorizationRule
[-ResourceGroupName] <String>
[-Name] <String>
[-InputObject] <PSSharedAccessAuthorizationRuleAttributes>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Cmdleten Set-AzEventHubAuthorizationRule uppdaterar den angivna auktoriseringsregeln på den angivna händelsehubben.
Exempel
Exempel 1
PS C:\> Set-AzEventHubAuthorizationRule -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName -EventHubName MyEventHubName -AuthorizationRuleName MyAuthRuleName -Rights @("Manage")
Uppdaterar auktoriseringsregeln "MyAuthRuleName" för att bevilja Hantera rättigheter till händelsehubben "MyEventHubName", som begränsas av namnområdet "MyNamespaceName".
Parametrar
-Confirm
Uppmanar dig att bekräfta innan du kör cmdleten.
Typ: | SwitchParameter |
Alias: | cf |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Typ: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-EventHub
EventHub-namn
Typ: | String |
Alias: | EventHubName |
Position: | 2 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-InputObject
AuthorizationRule-objekt
Typ: | PSSharedAccessAuthorizationRuleAttributes |
Alias: | AuthRuleObj |
Position: | 4 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-Name
AuthorizationRule-namn
Typ: | String |
Alias: | AuthorizationRuleName |
Position: | 3 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-Namespace
Namn på namnområde
Typ: | String |
Alias: | NamespaceName |
Position: | 1 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-ResourceGroupName
Namnet på resursgruppen
Typ: | String |
Position: | 0 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-Rights
Rättigheter, t.ex. @("Listen","Send","Manage")
Typ: | String[] |
Godkända värden: | Listen, Send, Manage |
Position: | 4 |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-WhatIf
Visar vad som skulle hända om cmdleten kördes. Cmdleten körs inte.
Typ: | SwitchParameter |
Alias: | wi |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
Indata
PSSharedAccessAuthorizationRuleAttributes
String[]