New-AzServiceBusTopic
Creates a new Service Bus topic in the specified Service Bus namespace.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
New-AzServiceBusTopic
[-ResourceGroupName] <String>
[-Namespace] <String>
[-Name] <String>
-EnablePartitioning <Boolean>
[-AutoDeleteOnIdle <String>]
[-DefaultMessageTimeToLive <String>]
[-DuplicateDetectionHistoryTimeWindow <String>]
[-EnableBatchedOperations <Boolean>]
[-EnableExpress <Boolean>]
[-MaxSizeInMegabytes <Int64>]
[-RequiresDuplicateDetection <Boolean>]
[-SupportOrdering <Boolean>]
[-SizeInBytes <Int64>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The New-AzServiceBusTopic cmdlet creates a new Service Bus topic in the specified Service Bus namespace.
Examples
Example 1
New-AzServiceBusTopic -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1 -TopicName SB-Topic_exampl1 -EnablePartitioning $True
Name : SB-Topic_example1
Id : /subscriptions/{subscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.ServiceBus/namespaces/SB-Example1/topics/SB-Topic_example1
Type : Microsoft.ServiceBus/Namespaces/Topics
AccessedAt : 1/1/0001 12:00:00 AM
AutoDeleteOnIdle : P10675199DT2H48M5.4775807S
CreatedAt : 10/11/2018 11:51:24 PM
CountDetails : Microsoft.Azure.Management.ServiceBus.Models.MessageCountDetails
DefaultMessageTimeToLive : P10675199DT2H48M5.4775807S
DuplicateDetectionHistoryTimeWindow : PT10M
EnableBatchedOperations : True
EnableExpress : False
EnablePartitioning : False
MaxSizeInMegabytes : 81920
RequiresDuplicateDetection : False
SizeInBytes : 0
Status : Active
SubscriptionCount : 0
SupportOrdering : True
UpdatedAt : 10/11/2018 11:51:24 PM
Creates a new Service Bus topic SB-Topic_exampl1 in the specified Service Bus namespace SB-Example1.
Example 2
Creates a new Service Bus topic in the specified Service Bus namespace. (autogenerated)
New-AzServiceBusTopic -EnablePartitioning $true -MaxSizeInMegabytes <Int64> -Name SB-Topic_exampl1 -Namespace SB-Example1 -ResourceGroupName Default-ServiceBus-WestUS
Parameters
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 |
| Accept wildcard characters: | False |
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 |
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 |
| Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
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 |
| Accept wildcard characters: | False |
Indicates whether server-side batched operations are enabled.
| Type: | Nullable<T>[Boolean] |
| Accepted values: | TRUE, FALSE |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Indicates whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage.
| Type: | Nullable<T>[Boolean] |
| Accepted values: | TRUE, FALSE |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Specifies whether to enable the topic to be partitioned across multiple message brokers.
| Type: | Nullable<T>[Boolean] |
| Accepted values: | TRUE, FALSE |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
The maximum size of the topic in megabytes, which is the size of memory allocated for the topic.
| Type: | Nullable<T>[Int64] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Topic Name.
| Type: | String |
| Aliases: | TopicName |
| Position: | 2 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Namespace Name.
| Type: | String |
| Aliases: | NamespaceName |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Indicates whether the topic requires duplication detection.
| Type: | Nullable<T>[Boolean] |
| Accepted values: | TRUE, FALSE |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
The name of the resource group
| Type: | String |
| Aliases: | ResourceGroup |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Specifies the size of the topic in bytes.
| Type: | Nullable<T>[Int64] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Indicates whether the topic supports ordering.
| Type: | Nullable<T>[Boolean] |
| Accepted values: | TRUE, FALSE |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
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
Nullable<T>[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
Nullable<T>[[System.Int64, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]