< Back
Remove-AzureRmNotificationHubsNamespaceAuthorizationRules
Post
NAME Remove-AzureRmNotificationHubsNamespaceAuthorizationRules
SYNOPSIS
Removes an authorization rule from a notification hub namespace.
SYNTAX
Remove-AzureRmNotificationHubsNamespaceAuthorizationRules [-ResourceGroup] <String> [-Namespace] <String> [-AuthorizationRule] <String>
[-DefaultProfile <IAzureContextContainer>] [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Remove-AzureRmNotificationHubsNamespaceAuthorizationRules cmdlet removes a Shared Access Signature (SAS) authorization rule from a
notification hub namespace.
Authorization rules manage access to a namespace. This is done by through the creation of links, as URIs, based on different permission levels.
Permission levels can be of the following:
- Listen
- Send
- Manage
Clients are directed to one of these URIs based on the appropriate permission level. For instance, a client given the Listen permission is
directed to the URI for that permission.
Removing an authorization rule also removes the corresponding user permission.
PARAMETERS
-AuthorizationRule <String>
Specifies the name of the SAS authentication rule to be removed.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Force [<SwitchParameter>]
Do not ask for confirmation.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Namespace <String>
Specifies the namespace to which the authorization rules are assigned. Namespaces provide a way to group and categorize notification hubs.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroup <String>
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.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
System.Boolean
NOTES
Example 1: Remove an authorization rule from a namespace
PS C:\\>Remove-AzureRmNotificationHubNamespaceAuthorizationRules -Namespace "ContosoNamespace" -ResourceGroup "ContosoNotificationsGroup"
-AuthorizationRule "ListenRule"
This command removes the authorization rule named ListenRule from the namespace named ContosoNamespace. When you run this command you must specify
the resource group that the namespace is assigned to.
RELATED LINKS
Online Version:
https://docs.microsoft.com/en-us/powers ... ationrules
Get-AzureRmNotificationHubsNamespaceAuthorizationRules
New-AzureRmNotificationHubsNamespaceAuthorizationRules
Set-AzureRmNotificationHubsNamespaceAuthorizationRules
SYNOPSIS
Removes an authorization rule from a notification hub namespace.
SYNTAX
Remove-AzureRmNotificationHubsNamespaceAuthorizationRules [-ResourceGroup] <String> [-Namespace] <String> [-AuthorizationRule] <String>
[-DefaultProfile <IAzureContextContainer>] [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Remove-AzureRmNotificationHubsNamespaceAuthorizationRules cmdlet removes a Shared Access Signature (SAS) authorization rule from a
notification hub namespace.
Authorization rules manage access to a namespace. This is done by through the creation of links, as URIs, based on different permission levels.
Permission levels can be of the following:
- Listen
- Send
- Manage
Clients are directed to one of these URIs based on the appropriate permission level. For instance, a client given the Listen permission is
directed to the URI for that permission.
Removing an authorization rule also removes the corresponding user permission.
PARAMETERS
-AuthorizationRule <String>
Specifies the name of the SAS authentication rule to be removed.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Force [<SwitchParameter>]
Do not ask for confirmation.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-Namespace <String>
Specifies the namespace to which the authorization rules are assigned. Namespaces provide a way to group and categorize notification hubs.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroup <String>
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.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
System.Boolean
NOTES
Example 1: Remove an authorization rule from a namespace
PS C:\\>Remove-AzureRmNotificationHubNamespaceAuthorizationRules -Namespace "ContosoNamespace" -ResourceGroup "ContosoNotificationsGroup"
-AuthorizationRule "ListenRule"
This command removes the authorization rule named ListenRule from the namespace named ContosoNamespace. When you run this command you must specify
the resource group that the namespace is assigned to.
RELATED LINKS
Online Version:
https://docs.microsoft.com/en-us/powers ... ationrules
Get-AzureRmNotificationHubsNamespaceAuthorizationRules
New-AzureRmNotificationHubsNamespaceAuthorizationRules
Set-AzureRmNotificationHubsNamespaceAuthorizationRules