Get-AzEventHubNetworkRuleSet

Gets the details of an Event Hubs NetworkruleSet of namespace in the current Azure subscription.

Syntax

Get-AzEventHubNetworkRuleSet
   [-ResourceGroupName] <String>
   [-Namespace] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzEventHubNetworkRuleSet
   [-Namespace] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzEventHubNetworkRuleSet
   [-ResourceId] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Gets the details of an Event Hubs NetworkruleSet of namespace in the current Azure subscription.

Examples

Example 1

PS C:\> Get-AzEventHubNetworkRuleSet -ResourceGroupName  v-ajnavtest -Namespace Eventhub-Namespace1-1375

Get the details of Event Hubs NetworkruleSet of namespace using ResourceGroup and Namespace parameters.

Example 2

PS C:\> Get-AzEventHubNetworkRuleSet -Namespace Eventhub-Namespace1-2389

Get the details of Event Hubs NetworkruleSet of namespace using Namespace which is in the current subscription.

Example 3

PS C:\> Get-AzEventHubNetworkRuleSet -ResourceId /SubscriptionId/resourcegroups/ResourceGroup/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace1-2389

Get the details of Event Hubs NetworkruleSet of namespace using Resource Id of other Namespace

Parameters

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Namespace

Namespace Name

Type:String
Aliases:NamespaceName
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Resource Group Name

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

-ResourceId

Namespace Resource Id

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

Inputs

String

Outputs

Microsoft.Azure.Commands.EventHub.Models.PSNetworkRuleSetAttributes

Notes