Get-AzNotificationHubsNamespace
Gets information about a notification hub namespace.
Syntax
Get-AzNotificationHubsNamespace
[[-ResourceGroup] <String>]
[[-Namespace] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzNotificationHubsNamespace cmdlet gets information about notification hub namespaces. This cmdlet provides you the option of getting information for all your namespaces, information about the namespaces assigned to a specified resource group; or for returning information about a specific namespace. Namespaces are logical containers that help you organize and manage your notification hubs. You must have at least one notification hub namespace: all notification hubs must be assigned to a namespace. A single namespace can house multiple hubs which means that you might only need one namespace in your organization. However, you can also have multiple namespaces to better organize your hubs, or to give specific individuals permission to manage a selected subset of hubs. The Get-AzNotificationHubsNamespace cmdlet returns basic information about the namespace itself. To get information about the authorization rules associated with a namespace use Get-AzNotificationHubsNamespaceAuthorizationRules.
Examples
Example 1: Get information for all notification hub namespaces
Get-AzNotificationHubsNamespace
This command returns information for all your notification hub namespaces.
Example 2: Get information for a single notification hub namespace
Get-AzNotificationHubsNamespace -Namespace "ContosoNamespace"
This command gets information for a single notification hub namespace: ContosoNamespace.
Example 3: Get information for all notification hubs assigned to a specific namespace
Get-AzNotificationHubsNamespace -ResourceGroup "ContosoNotificationsGroup"
This command gets information for all notification hub namespaces assigned to the resource group ContosoNotificationsGroup.
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
Specifies a unique name for the namespace. Namespaces provide a way to group and categorize notification hubs.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroup
Specifies the resource group to which the namespace is assigned. Resource groups organize items such as namespaces, notification hubs, and authorization rules in ways that help simply inventory management and Azure administration.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |