New-​Azure​Rm​Service​Bus​Queue

Creates a Service Bus queue in the specified Service Bus namespace.

Syntax

New-AzureRmServiceBusQueue
   [-ResourceGroup] <String>
   [-NamespaceName] <String>
   [-QueueName] <String>
   [-AutoDeleteOnIdle <String>]
   [-DeadLetteringOnMessageExpiration <Boolean>]
   [-DefaultMessageTimeToLive <String>]
   [-DuplicateDetectionHistoryTimeWindow <String>]
   [-EnableBatchedOperations <Boolean>]
   [-EnableExpress <Boolean>]
   -EnablePartitioning <Boolean>
   [-IsAnonymousAccessible <Boolean>]
   [-LockDuration <String>]
   [-MaxDeliveryCount <Int32>]
   [-MaxSizeInMegabytes <Int64>]
   [-MessageCount <Int64>]
   [-RequiresDuplicateDetection <Boolean>]
   [-RequiresSession <Boolean>]
   [-SizeInBytes <Int64>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The New-AzureRmServiceBusQueue cmdlet creates a Service Bus queue in the specified Service Bus namespace.

Examples

Example 1

PS C:\> New-AzureRmServiceBusQueue -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1 -QueueName SB-Queue_exampl1 -EnablePartitioning $True

Creates a new Service Bus queue SB-Queue_exampl1 in the specified Service Bus namespace SB-Example1.

Required Parameters

-EnablePartitioning

Specifies whether EnablePartitioning is enabled.

Type:Boolean
Parameter Sets:TRUE, FALSE
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-NamespaceName

The Service Bus namespace name.

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

The Service Bus queue name.

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

The name of the resource group.

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

Optional Parameters

-AutoDeleteOnIdle

Specifies the TimeSpan idle interval, after which the queue is automatically deleted. The minimum duration is 5 minutes.

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

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DeadLetteringOnMessageExpiration

Specifies whether messages are deadlettered on expiration.

Type:Boolean
Parameter Sets:TRUE, FALSE
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-DefaultMessageTimeToLive

Specifies the default message time-to-live (TTL).

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

Specifies the duplicate detection history time window, a TimeSpan valuethat defines the duration of the duplicate detection history. The default value is 10 minutes.

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

Specifies whether server-side batched operations are enabled.

Type:Boolean
Parameter Sets:TRUE, FALSE
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-EnableExpress

Specifies whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage.

Type:Boolean
Parameter Sets:TRUE, FALSE
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-IsAnonymousAccessible

Specifies whether the message is anonymously accessible.

Type:Boolean
Parameter Sets:TRUE, FALSE
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-LockDuration

Specifies the lock duration.

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

Specifies the maximum delivery count. A message is automatically deadlettered after this number of deliveries.

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

Specifies the maximum size of the queue in megabytes, which is the size of memory allocated for the queue.

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

Specifies the number of messages in the queue.

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

Specifies whether the queue requires duplicate detection.

Type:Boolean
Parameter Sets:TRUE, FALSE
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-RequiresSession

Specifies whether this queue supports sessions.

Type:Boolean
Parameter Sets:TRUE, FALSE
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-SizeInBytes

The size of the queue in bytes.

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

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

-ResourceGroup

System.String

Inputs

-NamespaceName

System.String

Inputs

-QueueName

System.String

Inputs

-EnablePartitioning

System.Boolean?

Outputs

Microsoft.Azure.Commands.ServiceBus.Models.QueueAttributes

Name : SB-Queue_exampl1 Location : West US LockDuration : AccessedAt : AutoDeleteOnIdle : 10675199.02:48:05.4775807 EntityAvailabilityStatus : CreatedAt : 1/20/2017 2:51:36 AM DefaultMessageTimeToLive : 10675199.02:48:05.4775807 DuplicateDetectionHistoryTimeWindow : EnableBatchedOperations : True DeadLetteringOnMessageExpiration : False EnableExpress : False EnablePartitioning : True IsAnonymousAccessible : False MaxDeliveryCount : MaxSizeInMegabytes : 16384 MessageCount : CountDetails : RequiresDuplicateDetection : False RequiresSession : False SizeInBytes : Status : Active SupportOrdering : False UpdatedAt : 1/20/2017 2:51:37 AM