We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Manages a ServiceBus Topic.
Note Topics can only be created in Namespaces with an SKU of standard or higher.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleNamespace = new Azure.ServiceBus.Namespace("exampleNamespace", new Azure.ServiceBus.NamespaceArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
Sku = "Standard",
Tags =
{
{ "source", "example" },
},
});
var exampleTopic = new Azure.ServiceBus.Topic("exampleTopic", new Azure.ServiceBus.TopicArgs
{
NamespaceId = exampleNamespace.Id,
EnablePartitioning = true,
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/servicebus"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleNamespace, err := servicebus.NewNamespace(ctx, "exampleNamespace", &servicebus.NamespaceArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
Sku: pulumi.String("Standard"),
Tags: pulumi.StringMap{
"source": pulumi.String("example"),
},
})
if err != nil {
return err
}
_, err = servicebus.NewTopic(ctx, "exampleTopic", &servicebus.TopicArgs{
NamespaceId: exampleNamespace.ID(),
EnablePartitioning: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleNamespace = new azure.servicebus.Namespace("exampleNamespace", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
sku: "Standard",
tags: {
source: "example",
},
});
const exampleTopic = new azure.servicebus.Topic("exampleTopic", {
namespaceId: exampleNamespace.id,
enablePartitioning: true,
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_namespace = azure.servicebus.Namespace("exampleNamespace",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku="Standard",
tags={
"source": "example",
})
example_topic = azure.servicebus.Topic("exampleTopic",
namespace_id=example_namespace.id,
enable_partitioning=True)
Example coming soon!
Create Topic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Topic(name: string, args?: TopicArgs, opts?: CustomResourceOptions);@overload
def Topic(resource_name: str,
args: Optional[TopicArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Topic(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_delete_on_idle: Optional[str] = None,
default_message_ttl: Optional[str] = None,
duplicate_detection_history_time_window: Optional[str] = None,
enable_batched_operations: Optional[bool] = None,
enable_express: Optional[bool] = None,
enable_partitioning: Optional[bool] = None,
max_message_size_in_kilobytes: Optional[int] = None,
max_size_in_megabytes: Optional[int] = None,
name: Optional[str] = None,
namespace_id: Optional[str] = None,
namespace_name: Optional[str] = None,
requires_duplicate_detection: Optional[bool] = None,
resource_group_name: Optional[str] = None,
status: Optional[str] = None,
support_ordering: Optional[bool] = None)func NewTopic(ctx *Context, name string, args *TopicArgs, opts ...ResourceOption) (*Topic, error)public Topic(string name, TopicArgs? args = null, CustomResourceOptions? opts = null)type: azure:servicebus:Topic
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TopicArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TopicArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TopicArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azureTopicResource = new Azure.ServiceBus.Topic("azureTopicResource", new()
{
AutoDeleteOnIdle = "string",
DefaultMessageTtl = "string",
DuplicateDetectionHistoryTimeWindow = "string",
EnableBatchedOperations = false,
EnableExpress = false,
EnablePartitioning = false,
MaxMessageSizeInKilobytes = 0,
MaxSizeInMegabytes = 0,
Name = "string",
NamespaceId = "string",
RequiresDuplicateDetection = false,
Status = "string",
SupportOrdering = false,
});
example, err := servicebus.NewTopic(ctx, "azureTopicResource", &servicebus.TopicArgs{
AutoDeleteOnIdle: pulumi.String("string"),
DefaultMessageTtl: pulumi.String("string"),
DuplicateDetectionHistoryTimeWindow: pulumi.String("string"),
EnableBatchedOperations: pulumi.Bool(false),
EnableExpress: pulumi.Bool(false),
EnablePartitioning: pulumi.Bool(false),
MaxMessageSizeInKilobytes: pulumi.Int(0),
MaxSizeInMegabytes: pulumi.Int(0),
Name: pulumi.String("string"),
NamespaceId: pulumi.String("string"),
RequiresDuplicateDetection: pulumi.Bool(false),
Status: pulumi.String("string"),
SupportOrdering: pulumi.Bool(false),
})
var azureTopicResource = new com.pulumi.azure.servicebus.Topic("azureTopicResource", com.pulumi.azure.servicebus.TopicArgs.builder()
.autoDeleteOnIdle("string")
.defaultMessageTtl("string")
.duplicateDetectionHistoryTimeWindow("string")
.enableBatchedOperations(false)
.enableExpress(false)
.enablePartitioning(false)
.maxMessageSizeInKilobytes(0)
.maxSizeInMegabytes(0)
.name("string")
.namespaceId("string")
.requiresDuplicateDetection(false)
.status("string")
.supportOrdering(false)
.build());
azure_topic_resource = azure.servicebus.Topic("azureTopicResource",
auto_delete_on_idle="string",
default_message_ttl="string",
duplicate_detection_history_time_window="string",
enable_batched_operations=False,
enable_express=False,
enable_partitioning=False,
max_message_size_in_kilobytes=0,
max_size_in_megabytes=0,
name="string",
namespace_id="string",
requires_duplicate_detection=False,
status="string",
support_ordering=False)
const azureTopicResource = new azure.servicebus.Topic("azureTopicResource", {
autoDeleteOnIdle: "string",
defaultMessageTtl: "string",
duplicateDetectionHistoryTimeWindow: "string",
enableBatchedOperations: false,
enableExpress: false,
enablePartitioning: false,
maxMessageSizeInKilobytes: 0,
maxSizeInMegabytes: 0,
name: "string",
namespaceId: "string",
requiresDuplicateDetection: false,
status: "string",
supportOrdering: false,
});
type: azure:servicebus:Topic
properties:
autoDeleteOnIdle: string
defaultMessageTtl: string
duplicateDetectionHistoryTimeWindow: string
enableBatchedOperations: false
enableExpress: false
enablePartitioning: false
maxMessageSizeInKilobytes: 0
maxSizeInMegabytes: 0
name: string
namespaceId: string
requiresDuplicateDetection: false
status: string
supportOrdering: false
Topic Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Topic resource accepts the following input properties:
- Auto
Delete stringOn Idle - The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.
- Default
Message stringTtl - The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.
- Duplicate
Detection stringHistory Time Window - The ISO 8601 timespan duration during which
duplicates can be detected. Defaults to 10 minutes. (
PT10M) - Enable
Batched boolOperations - Boolean flag which controls if server-side batched operations are enabled. Defaults to false.
- Enable
Express bool - Boolean flag which controls whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage. Defaults to false.
- Enable
Partitioning bool - Boolean flag which controls whether to enable the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.
- Max
Message intSize In Kilobytes - Integer value which controls the maximum size of a message allowed on the topic for Premium SKU. For supported values see the "Large messages support" section of this document.
- Max
Size intIn Megabytes - Integer value which controls the size of memory allocated for the topic. For supported values see the "Queue/topic size" section of this document.
- Name string
- Specifies the name of the ServiceBus Topic resource. Changing this forces a new resource to be created.
- Namespace
Id string - The ID of the ServiceBus Namespace to create this topic in. Changing this forces a new resource to be created.
- Namespace
Name string - Requires
Duplicate boolDetection - Boolean flag which controls whether the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.
- Resource
Group stringName - Status string
- The Status of the Service Bus Topic. Acceptable values are
ActiveorDisabled. Defaults toActive. - Support
Ordering bool - Boolean flag which controls whether the Topic supports ordering. Defaults to false.
- Auto
Delete stringOn Idle - The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.
- Default
Message stringTtl - The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.
- Duplicate
Detection stringHistory Time Window - The ISO 8601 timespan duration during which
duplicates can be detected. Defaults to 10 minutes. (
PT10M) - Enable
Batched boolOperations - Boolean flag which controls if server-side batched operations are enabled. Defaults to false.
- Enable
Express bool - Boolean flag which controls whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage. Defaults to false.
- Enable
Partitioning bool - Boolean flag which controls whether to enable the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.
- Max
Message intSize In Kilobytes - Integer value which controls the maximum size of a message allowed on the topic for Premium SKU. For supported values see the "Large messages support" section of this document.
- Max
Size intIn Megabytes - Integer value which controls the size of memory allocated for the topic. For supported values see the "Queue/topic size" section of this document.
- Name string
- Specifies the name of the ServiceBus Topic resource. Changing this forces a new resource to be created.
- Namespace
Id string - The ID of the ServiceBus Namespace to create this topic in. Changing this forces a new resource to be created.
- Namespace
Name string - Requires
Duplicate boolDetection - Boolean flag which controls whether the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.
- Resource
Group stringName - Status string
- The Status of the Service Bus Topic. Acceptable values are
ActiveorDisabled. Defaults toActive. - Support
Ordering bool - Boolean flag which controls whether the Topic supports ordering. Defaults to false.
- auto
Delete StringOn Idle - The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.
- default
Message StringTtl - The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.
- duplicate
Detection StringHistory Time Window - The ISO 8601 timespan duration during which
duplicates can be detected. Defaults to 10 minutes. (
PT10M) - enable
Batched BooleanOperations - Boolean flag which controls if server-side batched operations are enabled. Defaults to false.
- enable
Express Boolean - Boolean flag which controls whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage. Defaults to false.
- enable
Partitioning Boolean - Boolean flag which controls whether to enable the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.
- max
Message IntegerSize In Kilobytes - Integer value which controls the maximum size of a message allowed on the topic for Premium SKU. For supported values see the "Large messages support" section of this document.
- max
Size IntegerIn Megabytes - Integer value which controls the size of memory allocated for the topic. For supported values see the "Queue/topic size" section of this document.
- name String
- Specifies the name of the ServiceBus Topic resource. Changing this forces a new resource to be created.
- namespace
Id String - The ID of the ServiceBus Namespace to create this topic in. Changing this forces a new resource to be created.
- namespace
Name String - requires
Duplicate BooleanDetection - Boolean flag which controls whether the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.
- resource
Group StringName - status String
- The Status of the Service Bus Topic. Acceptable values are
ActiveorDisabled. Defaults toActive. - support
Ordering Boolean - Boolean flag which controls whether the Topic supports ordering. Defaults to false.
- auto
Delete stringOn Idle - The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.
- default
Message stringTtl - The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.
- duplicate
Detection stringHistory Time Window - The ISO 8601 timespan duration during which
duplicates can be detected. Defaults to 10 minutes. (
PT10M) - enable
Batched booleanOperations - Boolean flag which controls if server-side batched operations are enabled. Defaults to false.
- enable
Express boolean - Boolean flag which controls whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage. Defaults to false.
- enable
Partitioning boolean - Boolean flag which controls whether to enable the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.
- max
Message numberSize In Kilobytes - Integer value which controls the maximum size of a message allowed on the topic for Premium SKU. For supported values see the "Large messages support" section of this document.
- max
Size numberIn Megabytes - Integer value which controls the size of memory allocated for the topic. For supported values see the "Queue/topic size" section of this document.
- name string
- Specifies the name of the ServiceBus Topic resource. Changing this forces a new resource to be created.
- namespace
Id string - The ID of the ServiceBus Namespace to create this topic in. Changing this forces a new resource to be created.
- namespace
Name string - requires
Duplicate booleanDetection - Boolean flag which controls whether the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.
- resource
Group stringName - status string
- The Status of the Service Bus Topic. Acceptable values are
ActiveorDisabled. Defaults toActive. - support
Ordering boolean - Boolean flag which controls whether the Topic supports ordering. Defaults to false.
- auto_
delete_ stron_ idle - The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.
- default_
message_ strttl - The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.
- duplicate_
detection_ strhistory_ time_ window - The ISO 8601 timespan duration during which
duplicates can be detected. Defaults to 10 minutes. (
PT10M) - enable_
batched_ booloperations - Boolean flag which controls if server-side batched operations are enabled. Defaults to false.
- enable_
express bool - Boolean flag which controls whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage. Defaults to false.
- enable_
partitioning bool - Boolean flag which controls whether to enable the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.
- max_
message_ intsize_ in_ kilobytes - Integer value which controls the maximum size of a message allowed on the topic for Premium SKU. For supported values see the "Large messages support" section of this document.
- max_
size_ intin_ megabytes - Integer value which controls the size of memory allocated for the topic. For supported values see the "Queue/topic size" section of this document.
- name str
- Specifies the name of the ServiceBus Topic resource. Changing this forces a new resource to be created.
- namespace_
id str - The ID of the ServiceBus Namespace to create this topic in. Changing this forces a new resource to be created.
- namespace_
name str - requires_
duplicate_ booldetection - Boolean flag which controls whether the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.
- resource_
group_ strname - status str
- The Status of the Service Bus Topic. Acceptable values are
ActiveorDisabled. Defaults toActive. - support_
ordering bool - Boolean flag which controls whether the Topic supports ordering. Defaults to false.
- auto
Delete StringOn Idle - The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.
- default
Message StringTtl - The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.
- duplicate
Detection StringHistory Time Window - The ISO 8601 timespan duration during which
duplicates can be detected. Defaults to 10 minutes. (
PT10M) - enable
Batched BooleanOperations - Boolean flag which controls if server-side batched operations are enabled. Defaults to false.
- enable
Express Boolean - Boolean flag which controls whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage. Defaults to false.
- enable
Partitioning Boolean - Boolean flag which controls whether to enable the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.
- max
Message NumberSize In Kilobytes - Integer value which controls the maximum size of a message allowed on the topic for Premium SKU. For supported values see the "Large messages support" section of this document.
- max
Size NumberIn Megabytes - Integer value which controls the size of memory allocated for the topic. For supported values see the "Queue/topic size" section of this document.
- name String
- Specifies the name of the ServiceBus Topic resource. Changing this forces a new resource to be created.
- namespace
Id String - The ID of the ServiceBus Namespace to create this topic in. Changing this forces a new resource to be created.
- namespace
Name String - requires
Duplicate BooleanDetection - Boolean flag which controls whether the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.
- resource
Group StringName - status String
- The Status of the Service Bus Topic. Acceptable values are
ActiveorDisabled. Defaults toActive. - support
Ordering Boolean - Boolean flag which controls whether the Topic supports ordering. Defaults to false.
Outputs
All input properties are implicitly available as output properties. Additionally, the Topic resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Topic Resource
Get an existing Topic resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TopicState, opts?: CustomResourceOptions): Topic@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_delete_on_idle: Optional[str] = None,
default_message_ttl: Optional[str] = None,
duplicate_detection_history_time_window: Optional[str] = None,
enable_batched_operations: Optional[bool] = None,
enable_express: Optional[bool] = None,
enable_partitioning: Optional[bool] = None,
max_message_size_in_kilobytes: Optional[int] = None,
max_size_in_megabytes: Optional[int] = None,
name: Optional[str] = None,
namespace_id: Optional[str] = None,
namespace_name: Optional[str] = None,
requires_duplicate_detection: Optional[bool] = None,
resource_group_name: Optional[str] = None,
status: Optional[str] = None,
support_ordering: Optional[bool] = None) -> Topicfunc GetTopic(ctx *Context, name string, id IDInput, state *TopicState, opts ...ResourceOption) (*Topic, error)public static Topic Get(string name, Input<string> id, TopicState? state, CustomResourceOptions? opts = null)public static Topic get(String name, Output<String> id, TopicState state, CustomResourceOptions options)resources: _: type: azure:servicebus:Topic get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Delete stringOn Idle - The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.
- Default
Message stringTtl - The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.
- Duplicate
Detection stringHistory Time Window - The ISO 8601 timespan duration during which
duplicates can be detected. Defaults to 10 minutes. (
PT10M) - Enable
Batched boolOperations - Boolean flag which controls if server-side batched operations are enabled. Defaults to false.
- Enable
Express bool - Boolean flag which controls whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage. Defaults to false.
- Enable
Partitioning bool - Boolean flag which controls whether to enable the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.
- Max
Message intSize In Kilobytes - Integer value which controls the maximum size of a message allowed on the topic for Premium SKU. For supported values see the "Large messages support" section of this document.
- Max
Size intIn Megabytes - Integer value which controls the size of memory allocated for the topic. For supported values see the "Queue/topic size" section of this document.
- Name string
- Specifies the name of the ServiceBus Topic resource. Changing this forces a new resource to be created.
- Namespace
Id string - The ID of the ServiceBus Namespace to create this topic in. Changing this forces a new resource to be created.
- Namespace
Name string - Requires
Duplicate boolDetection - Boolean flag which controls whether the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.
- Resource
Group stringName - Status string
- The Status of the Service Bus Topic. Acceptable values are
ActiveorDisabled. Defaults toActive. - Support
Ordering bool - Boolean flag which controls whether the Topic supports ordering. Defaults to false.
- Auto
Delete stringOn Idle - The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.
- Default
Message stringTtl - The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.
- Duplicate
Detection stringHistory Time Window - The ISO 8601 timespan duration during which
duplicates can be detected. Defaults to 10 minutes. (
PT10M) - Enable
Batched boolOperations - Boolean flag which controls if server-side batched operations are enabled. Defaults to false.
- Enable
Express bool - Boolean flag which controls whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage. Defaults to false.
- Enable
Partitioning bool - Boolean flag which controls whether to enable the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.
- Max
Message intSize In Kilobytes - Integer value which controls the maximum size of a message allowed on the topic for Premium SKU. For supported values see the "Large messages support" section of this document.
- Max
Size intIn Megabytes - Integer value which controls the size of memory allocated for the topic. For supported values see the "Queue/topic size" section of this document.
- Name string
- Specifies the name of the ServiceBus Topic resource. Changing this forces a new resource to be created.
- Namespace
Id string - The ID of the ServiceBus Namespace to create this topic in. Changing this forces a new resource to be created.
- Namespace
Name string - Requires
Duplicate boolDetection - Boolean flag which controls whether the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.
- Resource
Group stringName - Status string
- The Status of the Service Bus Topic. Acceptable values are
ActiveorDisabled. Defaults toActive. - Support
Ordering bool - Boolean flag which controls whether the Topic supports ordering. Defaults to false.
- auto
Delete StringOn Idle - The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.
- default
Message StringTtl - The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.
- duplicate
Detection StringHistory Time Window - The ISO 8601 timespan duration during which
duplicates can be detected. Defaults to 10 minutes. (
PT10M) - enable
Batched BooleanOperations - Boolean flag which controls if server-side batched operations are enabled. Defaults to false.
- enable
Express Boolean - Boolean flag which controls whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage. Defaults to false.
- enable
Partitioning Boolean - Boolean flag which controls whether to enable the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.
- max
Message IntegerSize In Kilobytes - Integer value which controls the maximum size of a message allowed on the topic for Premium SKU. For supported values see the "Large messages support" section of this document.
- max
Size IntegerIn Megabytes - Integer value which controls the size of memory allocated for the topic. For supported values see the "Queue/topic size" section of this document.
- name String
- Specifies the name of the ServiceBus Topic resource. Changing this forces a new resource to be created.
- namespace
Id String - The ID of the ServiceBus Namespace to create this topic in. Changing this forces a new resource to be created.
- namespace
Name String - requires
Duplicate BooleanDetection - Boolean flag which controls whether the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.
- resource
Group StringName - status String
- The Status of the Service Bus Topic. Acceptable values are
ActiveorDisabled. Defaults toActive. - support
Ordering Boolean - Boolean flag which controls whether the Topic supports ordering. Defaults to false.
- auto
Delete stringOn Idle - The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.
- default
Message stringTtl - The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.
- duplicate
Detection stringHistory Time Window - The ISO 8601 timespan duration during which
duplicates can be detected. Defaults to 10 minutes. (
PT10M) - enable
Batched booleanOperations - Boolean flag which controls if server-side batched operations are enabled. Defaults to false.
- enable
Express boolean - Boolean flag which controls whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage. Defaults to false.
- enable
Partitioning boolean - Boolean flag which controls whether to enable the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.
- max
Message numberSize In Kilobytes - Integer value which controls the maximum size of a message allowed on the topic for Premium SKU. For supported values see the "Large messages support" section of this document.
- max
Size numberIn Megabytes - Integer value which controls the size of memory allocated for the topic. For supported values see the "Queue/topic size" section of this document.
- name string
- Specifies the name of the ServiceBus Topic resource. Changing this forces a new resource to be created.
- namespace
Id string - The ID of the ServiceBus Namespace to create this topic in. Changing this forces a new resource to be created.
- namespace
Name string - requires
Duplicate booleanDetection - Boolean flag which controls whether the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.
- resource
Group stringName - status string
- The Status of the Service Bus Topic. Acceptable values are
ActiveorDisabled. Defaults toActive. - support
Ordering boolean - Boolean flag which controls whether the Topic supports ordering. Defaults to false.
- auto_
delete_ stron_ idle - The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.
- default_
message_ strttl - The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.
- duplicate_
detection_ strhistory_ time_ window - The ISO 8601 timespan duration during which
duplicates can be detected. Defaults to 10 minutes. (
PT10M) - enable_
batched_ booloperations - Boolean flag which controls if server-side batched operations are enabled. Defaults to false.
- enable_
express bool - Boolean flag which controls whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage. Defaults to false.
- enable_
partitioning bool - Boolean flag which controls whether to enable the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.
- max_
message_ intsize_ in_ kilobytes - Integer value which controls the maximum size of a message allowed on the topic for Premium SKU. For supported values see the "Large messages support" section of this document.
- max_
size_ intin_ megabytes - Integer value which controls the size of memory allocated for the topic. For supported values see the "Queue/topic size" section of this document.
- name str
- Specifies the name of the ServiceBus Topic resource. Changing this forces a new resource to be created.
- namespace_
id str - The ID of the ServiceBus Namespace to create this topic in. Changing this forces a new resource to be created.
- namespace_
name str - requires_
duplicate_ booldetection - Boolean flag which controls whether the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.
- resource_
group_ strname - status str
- The Status of the Service Bus Topic. Acceptable values are
ActiveorDisabled. Defaults toActive. - support_
ordering bool - Boolean flag which controls whether the Topic supports ordering. Defaults to false.
- auto
Delete StringOn Idle - The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.
- default
Message StringTtl - The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.
- duplicate
Detection StringHistory Time Window - The ISO 8601 timespan duration during which
duplicates can be detected. Defaults to 10 minutes. (
PT10M) - enable
Batched BooleanOperations - Boolean flag which controls if server-side batched operations are enabled. Defaults to false.
- enable
Express Boolean - Boolean flag which controls whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage. Defaults to false.
- enable
Partitioning Boolean - Boolean flag which controls whether to enable the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.
- max
Message NumberSize In Kilobytes - Integer value which controls the maximum size of a message allowed on the topic for Premium SKU. For supported values see the "Large messages support" section of this document.
- max
Size NumberIn Megabytes - Integer value which controls the size of memory allocated for the topic. For supported values see the "Queue/topic size" section of this document.
- name String
- Specifies the name of the ServiceBus Topic resource. Changing this forces a new resource to be created.
- namespace
Id String - The ID of the ServiceBus Namespace to create this topic in. Changing this forces a new resource to be created.
- namespace
Name String - requires
Duplicate BooleanDetection - Boolean flag which controls whether the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.
- resource
Group StringName - status String
- The Status of the Service Bus Topic. Acceptable values are
ActiveorDisabled. Defaults toActive. - support
Ordering Boolean - Boolean flag which controls whether the Topic supports ordering. Defaults to false.
Import
Service Bus Topics can be imported using the resource id, e.g.
$ pulumi import azure:servicebus/topic:Topic example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/microsoft.servicebus/namespaces/sbns1/topics/sntopic1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
