New-AzureRmServiceBusQueue

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

Syntax

New-AzureRmServiceBusQueue
   [-ResourceGroupName] <String>
   [-Namespace] <String>
   [-Name] <String>
   [-EnablePartitioning <Boolean>]
   [-LockDuration <String>]
   [-AutoDeleteOnIdle <String>]
   [-DefaultMessageTimeToLive <String>]
   [-DuplicateDetectionHistoryTimeWindow <String>]
   [-DeadLetteringOnMessageExpiration <Boolean>]
   [-EnableExpress <Boolean>]
   [-MaxDeliveryCount <Int32>]
   [-MaxSizeInMegabytes <Int64>]
   [-MessageCount <Int64>]
   [-RequiresDuplicateDetection <Boolean>]
   [-RequiresSession <Boolean>]
   [-SizeInBytes <Int64>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<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

-Name

Queue Name.

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

Namespace Name.

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

The name of the resource group

Type:String
Aliases:ResourceGroup
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:System.Management.Automation.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:System.Nullable`1[System.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
-DefaultProfile

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

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
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
-EnableExpress

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

Type:System.Nullable`1[System.Boolean]
Parameter Sets:TRUE, FALSE
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-EnablePartitioning

Specifies whether EnablePartitioning is enabled.

Type:System.Nullable`1[System.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:System.Nullable`1[System.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:System.Nullable`1[System.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:System.Nullable`1[System.Int64]
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-RequiresDuplicateDetection

Specifies whether the queue requires duplicate detection.

Type:System.Nullable`1[System.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:System.Nullable`1[System.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:System.Nullable`1[System.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:System.Management.Automation.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 LockDuration : AccessedAt : AutoDeleteOnIdle : 10675199.02:48:05.4775807 CreatedAt : 1/20/2017 2:51:36 AM DefaultMessageTimeToLive : 10675199.02:48:05.4775807 DuplicateDetectionHistoryTimeWindow : DeadLetteringOnMessageExpiration : False EnableExpress : False EnablePartitioning : True MaxDeliveryCount : MaxSizeInMegabytes : 16384 MessageCount : CountDetails : RequiresDuplicateDetection : False RequiresSession : False SizeInBytes : Status : Active UpdatedAt : 1/20/2017 2:51:37 AM