New-​Azure​Rm​Service​Bus​Topic

Creates a new Service Bus topic in the specified Service Bus namespace.

Syntax

New-AzureRmServiceBusTopic
   [-ResourceGroup] <String>
   [-NamespaceName] <String>
   [-TopicName] <String>
   [-AutoDeleteOnIdle <String>]
   [-DefaultMessageTimeToLive <String>]
   [-DuplicateDetectionHistoryTimeWindow <String>]
   [-EnableBatchedOperations <Boolean>]
   [-EnableExpress <Boolean>]
   -EnablePartitioning <Boolean>
   [-EnableSubscriptionPartitioning <Boolean>]
   [-FilteringMessagesBeforePublishing <Boolean>]
   [-IsAnonymousAccessible <Boolean>]
   [-IsExpress <Boolean>]
   [-MaxSizeInMegabytes <Int64>]
   [-RequiresDuplicateDetection <Boolean>]
   [-SizeInBytes <Int64>]
   [-SupportOrdering <Boolean>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The New-AzureRmServiceBusTopic cmdlet creates a new Service Bus topic in the specified Service Bus namespace.

Examples

Example 1

PS C:\> New-AzureRmServiceBusTopic -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1 -TopicName SB-Topic_exampl1 -EnablePartitioning $True

Creates a new Service Bus topic SB-Topic_exampl1 in the specified Service Bus namespace SB-Example1.

Required Parameters

-EnablePartitioning

Specifies whether to enable the topic to be partitioned across multiple message brokers.

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
-ResourceGroup

The name of the resource group.

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

The Service Bus topic name.

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

Optional Parameters

-AutoDeleteOnIdle

Specifies the TimeSpan idle interval after which the topic 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:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultMessageTimeToLive

Specifies the duration after which the message expires, starting from when the message is sent to Service Bus.

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

Specifies the TimeSpan structure that 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

Indicates 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

Indicates 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
-EnableSubscriptionPartitioning

Specifies whether to enable subscription partitioning.

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

Indicates whether filtering is enabled for messages before publishing.

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

Indicates whether the message allows anonymous access.

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

Indicates whether the topic is express enabled.

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

The maximum size of the topic in megabytes, which is the size of memory allocated for the topic.

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

Indicates whether the topic requires duplication detection.

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

Specifies the size of the topic in bytes.

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

Indicates whether the topic supports ordering.

Type:Boolean
Parameter Sets:TRUE, FALSE
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:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String

Inputs

-ResourceGroup

Inputs

-NamespaceName

Inputs

-TopicName

Inputs

-EnablePartitioning

Outputs

Microsoft.Azure.Commands.ServiceBus.Models.TopicAttributes