Remove-AzureSBAuthorizationRule

Removes existing Service Bus authorization rule.

Syntax

Remove-AzureSBAuthorizationRule
      -Name <String>
      -Namespace <String>
      -EntityName <String>
      -EntityType <ServiceBusEntityType>
      [-PassThru]
      [-Profile <AzureSMProfile>]
      [<CommonParameters>]
Remove-AzureSBAuthorizationRule
      -Name <String>
      -Namespace <String>
      [-PassThru]
      [-Profile <AzureSMProfile>]
      [<CommonParameters>]

Description

Removes existing Service Bus authorization rule.

Examples

Example 1: Remove authorization rule at namespace level

PS C:\> Remove-AzureSBAuthorizationRule -Name MyRule -Namespace MyNamespace

Removes authorization rule MyRule from MyNamespace.

Example 2: Remove authorization rule for a Queue

PS C:\> Remove-AzureSBAuthorizationRule -Name MyRule -Namespace MyNamespace -EntityName MyEntity -EntityType Queue

Removes authorization rule called MyRule for a MyEntity Queue on MyNamespace.

Required Parameters

-EntityName

The entity name to apply rule at.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-EntityType

The entity type (Queue, Topic, Relay, NotificationHub).

Type:ServiceBusEntityType
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

The unique authorization rule name.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Namespace

The namespace name to apply the authorization rule. If no EntityName provided the rule will be on the namespace level.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-PassThru

Indicates that this cmdlet returns an object representing the item on which it operates. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False