azure logo
Azure Classic v5.38.0, Mar 21 23

azure.servicebus.Topic

Manages a ServiceBus Topic.

Note Topics can only be created in Namespaces with an SKU of standard or higher.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleNamespace = new Azure.ServiceBus.Namespace("exampleNamespace", new()
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
        Sku = "Standard",
        Tags = 
        {
            { "source", "example" },
        },
    });

    var exampleTopic = new Azure.ServiceBus.Topic("exampleTopic", new()
    {
        NamespaceId = exampleNamespace.Id,
        EnablePartitioning = true,
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/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
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.servicebus.Namespace;
import com.pulumi.azure.servicebus.NamespaceArgs;
import com.pulumi.azure.servicebus.Topic;
import com.pulumi.azure.servicebus.TopicArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()        
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .sku("Standard")
            .tags(Map.of("source", "example"))
            .build());

        var exampleTopic = new Topic("exampleTopic", TopicArgs.builder()        
            .namespaceId(exampleNamespace.id())
            .enablePartitioning(true)
            .build());

    }
}
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)
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,
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleNamespace:
    type: azure:servicebus:Namespace
    properties:
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
      sku: Standard
      tags:
        source: example
  exampleTopic:
    type: azure:servicebus:Topic
    properties:
      namespaceId: ${exampleNamespace.id}
      enablePartitioning: true

Create Topic Resource

new Topic(name: string, args: TopicArgs, opts?: CustomResourceOptions);
@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,
          requires_duplicate_detection: Optional[bool] = None,
          status: Optional[str] = None,
          support_ordering: Optional[bool] = None)
@overload
def Topic(resource_name: str,
          args: TopicArgs,
          opts: Optional[ResourceOptions] = None)
func NewTopic(ctx *Context, name string, args TopicArgs, opts ...ResourceOption) (*Topic, error)
public Topic(string name, TopicArgs args, CustomResourceOptions? opts = null)
public Topic(String name, TopicArgs args)
public Topic(String name, TopicArgs args, CustomResourceOptions options)
type: azure:servicebus:Topic
properties: # The arguments to resource properties.
options: # 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.
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.

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

The Topic resource accepts the following input properties:

NamespaceId string

The ID of the ServiceBus Namespace to create Changing this forces a new resource to be created. this topic in. Changing this forces a new resource to be created.

AutoDeleteOnIdle string

The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.

DefaultMessageTtl string

The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.

DuplicateDetectionHistoryTimeWindow string

The ISO 8601 timespan duration during which duplicates can be detected. Defaults to 10 minutes. (PT10M)

EnableBatchedOperations bool

Boolean flag which controls if server-side batched operations are enabled.

EnableExpress 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.

EnablePartitioning bool

Boolean flag which controls whether to enable Changing this forces a new resource to be created. the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.

MaxMessageSizeInKilobytes int

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.

MaxSizeInMegabytes int

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.

RequiresDuplicateDetection bool

Boolean flag which controls whether Changing this forces a new resource to be created. the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.

Status string

The Status of the Service Bus Topic. Acceptable values are Active or Disabled. Defaults to Active.

SupportOrdering bool

Boolean flag which controls whether the Topic supports ordering.

NamespaceId string

The ID of the ServiceBus Namespace to create Changing this forces a new resource to be created. this topic in. Changing this forces a new resource to be created.

AutoDeleteOnIdle string

The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.

DefaultMessageTtl string

The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.

DuplicateDetectionHistoryTimeWindow string

The ISO 8601 timespan duration during which duplicates can be detected. Defaults to 10 minutes. (PT10M)

EnableBatchedOperations bool

Boolean flag which controls if server-side batched operations are enabled.

EnableExpress 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.

EnablePartitioning bool

Boolean flag which controls whether to enable Changing this forces a new resource to be created. the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.

MaxMessageSizeInKilobytes int

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.

MaxSizeInMegabytes int

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.

RequiresDuplicateDetection bool

Boolean flag which controls whether Changing this forces a new resource to be created. the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.

Status string

The Status of the Service Bus Topic. Acceptable values are Active or Disabled. Defaults to Active.

SupportOrdering bool

Boolean flag which controls whether the Topic supports ordering.

namespaceId String

The ID of the ServiceBus Namespace to create Changing this forces a new resource to be created. this topic in. Changing this forces a new resource to be created.

autoDeleteOnIdle String

The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.

defaultMessageTtl String

The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.

duplicateDetectionHistoryTimeWindow String

The ISO 8601 timespan duration during which duplicates can be detected. Defaults to 10 minutes. (PT10M)

enableBatchedOperations Boolean

Boolean flag which controls if server-side batched operations are enabled.

enableExpress 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.

enablePartitioning Boolean

Boolean flag which controls whether to enable Changing this forces a new resource to be created. the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.

maxMessageSizeInKilobytes Integer

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.

maxSizeInMegabytes Integer

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.

requiresDuplicateDetection Boolean

Boolean flag which controls whether Changing this forces a new resource to be created. the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.

status String

The Status of the Service Bus Topic. Acceptable values are Active or Disabled. Defaults to Active.

supportOrdering Boolean

Boolean flag which controls whether the Topic supports ordering.

namespaceId string

The ID of the ServiceBus Namespace to create Changing this forces a new resource to be created. this topic in. Changing this forces a new resource to be created.

autoDeleteOnIdle string

The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.

defaultMessageTtl string

The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.

duplicateDetectionHistoryTimeWindow string

The ISO 8601 timespan duration during which duplicates can be detected. Defaults to 10 minutes. (PT10M)

enableBatchedOperations boolean

Boolean flag which controls if server-side batched operations are enabled.

enableExpress 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.

enablePartitioning boolean

Boolean flag which controls whether to enable Changing this forces a new resource to be created. the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.

maxMessageSizeInKilobytes number

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.

maxSizeInMegabytes number

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.

requiresDuplicateDetection boolean

Boolean flag which controls whether Changing this forces a new resource to be created. the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.

status string

The Status of the Service Bus Topic. Acceptable values are Active or Disabled. Defaults to Active.

supportOrdering boolean

Boolean flag which controls whether the Topic supports ordering.

namespace_id str

The ID of the ServiceBus Namespace to create Changing this forces a new resource to be created. this topic in. Changing this forces a new resource to be created.

auto_delete_on_idle str

The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.

default_message_ttl str

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_history_time_window str

The ISO 8601 timespan duration during which duplicates can be detected. Defaults to 10 minutes. (PT10M)

enable_batched_operations bool

Boolean flag which controls if server-side batched operations are enabled.

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.

enable_partitioning bool

Boolean flag which controls whether to enable Changing this forces a new resource to be created. the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.

max_message_size_in_kilobytes int

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_in_megabytes int

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.

requires_duplicate_detection bool

Boolean flag which controls whether Changing this forces a new resource to be created. the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.

status str

The Status of the Service Bus Topic. Acceptable values are Active or Disabled. Defaults to Active.

support_ordering bool

Boolean flag which controls whether the Topic supports ordering.

namespaceId String

The ID of the ServiceBus Namespace to create Changing this forces a new resource to be created. this topic in. Changing this forces a new resource to be created.

autoDeleteOnIdle String

The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.

defaultMessageTtl String

The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.

duplicateDetectionHistoryTimeWindow String

The ISO 8601 timespan duration during which duplicates can be detected. Defaults to 10 minutes. (PT10M)

enableBatchedOperations Boolean

Boolean flag which controls if server-side batched operations are enabled.

enableExpress 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.

enablePartitioning Boolean

Boolean flag which controls whether to enable Changing this forces a new resource to be created. the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.

maxMessageSizeInKilobytes Number

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.

maxSizeInMegabytes Number

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.

requiresDuplicateDetection Boolean

Boolean flag which controls whether Changing this forces a new resource to be created. the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.

status String

The Status of the Service Bus Topic. Acceptable values are Active or Disabled. Defaults to Active.

supportOrdering Boolean

Boolean flag which controls whether the Topic supports ordering.

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.

NamespaceName string
ResourceGroupName string
Id string

The provider-assigned unique ID for this managed resource.

NamespaceName string
ResourceGroupName string
id String

The provider-assigned unique ID for this managed resource.

namespaceName String
resourceGroupName String
id string

The provider-assigned unique ID for this managed resource.

namespaceName string
resourceGroupName string
id str

The provider-assigned unique ID for this managed resource.

namespace_name str
resource_group_name str
id String

The provider-assigned unique ID for this managed resource.

namespaceName String
resourceGroupName String

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) -> Topic
func 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)
Resource lookup is not supported in YAML
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.
The following state arguments are supported:
AutoDeleteOnIdle string

The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.

DefaultMessageTtl string

The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.

DuplicateDetectionHistoryTimeWindow string

The ISO 8601 timespan duration during which duplicates can be detected. Defaults to 10 minutes. (PT10M)

EnableBatchedOperations bool

Boolean flag which controls if server-side batched operations are enabled.

EnableExpress 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.

EnablePartitioning bool

Boolean flag which controls whether to enable Changing this forces a new resource to be created. the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.

MaxMessageSizeInKilobytes int

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.

MaxSizeInMegabytes int

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.

NamespaceId string

The ID of the ServiceBus Namespace to create Changing this forces a new resource to be created. this topic in. Changing this forces a new resource to be created.

NamespaceName string
RequiresDuplicateDetection bool

Boolean flag which controls whether Changing this forces a new resource to be created. the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.

ResourceGroupName string
Status string

The Status of the Service Bus Topic. Acceptable values are Active or Disabled. Defaults to Active.

SupportOrdering bool

Boolean flag which controls whether the Topic supports ordering.

AutoDeleteOnIdle string

The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.

DefaultMessageTtl string

The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.

DuplicateDetectionHistoryTimeWindow string

The ISO 8601 timespan duration during which duplicates can be detected. Defaults to 10 minutes. (PT10M)

EnableBatchedOperations bool

Boolean flag which controls if server-side batched operations are enabled.

EnableExpress 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.

EnablePartitioning bool

Boolean flag which controls whether to enable Changing this forces a new resource to be created. the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.

MaxMessageSizeInKilobytes int

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.

MaxSizeInMegabytes int

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.

NamespaceId string

The ID of the ServiceBus Namespace to create Changing this forces a new resource to be created. this topic in. Changing this forces a new resource to be created.

NamespaceName string
RequiresDuplicateDetection bool

Boolean flag which controls whether Changing this forces a new resource to be created. the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.

ResourceGroupName string
Status string

The Status of the Service Bus Topic. Acceptable values are Active or Disabled. Defaults to Active.

SupportOrdering bool

Boolean flag which controls whether the Topic supports ordering.

autoDeleteOnIdle String

The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.

defaultMessageTtl String

The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.

duplicateDetectionHistoryTimeWindow String

The ISO 8601 timespan duration during which duplicates can be detected. Defaults to 10 minutes. (PT10M)

enableBatchedOperations Boolean

Boolean flag which controls if server-side batched operations are enabled.

enableExpress 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.

enablePartitioning Boolean

Boolean flag which controls whether to enable Changing this forces a new resource to be created. the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.

maxMessageSizeInKilobytes Integer

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.

maxSizeInMegabytes Integer

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.

namespaceId String

The ID of the ServiceBus Namespace to create Changing this forces a new resource to be created. this topic in. Changing this forces a new resource to be created.

namespaceName String
requiresDuplicateDetection Boolean

Boolean flag which controls whether Changing this forces a new resource to be created. the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.

resourceGroupName String
status String

The Status of the Service Bus Topic. Acceptable values are Active or Disabled. Defaults to Active.

supportOrdering Boolean

Boolean flag which controls whether the Topic supports ordering.

autoDeleteOnIdle string

The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.

defaultMessageTtl string

The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.

duplicateDetectionHistoryTimeWindow string

The ISO 8601 timespan duration during which duplicates can be detected. Defaults to 10 minutes. (PT10M)

enableBatchedOperations boolean

Boolean flag which controls if server-side batched operations are enabled.

enableExpress 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.

enablePartitioning boolean

Boolean flag which controls whether to enable Changing this forces a new resource to be created. the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.

maxMessageSizeInKilobytes number

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.

maxSizeInMegabytes number

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.

namespaceId string

The ID of the ServiceBus Namespace to create Changing this forces a new resource to be created. this topic in. Changing this forces a new resource to be created.

namespaceName string
requiresDuplicateDetection boolean

Boolean flag which controls whether Changing this forces a new resource to be created. the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.

resourceGroupName string
status string

The Status of the Service Bus Topic. Acceptable values are Active or Disabled. Defaults to Active.

supportOrdering boolean

Boolean flag which controls whether the Topic supports ordering.

auto_delete_on_idle str

The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.

default_message_ttl str

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_history_time_window str

The ISO 8601 timespan duration during which duplicates can be detected. Defaults to 10 minutes. (PT10M)

enable_batched_operations bool

Boolean flag which controls if server-side batched operations are enabled.

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.

enable_partitioning bool

Boolean flag which controls whether to enable Changing this forces a new resource to be created. the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.

max_message_size_in_kilobytes int

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_in_megabytes int

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 Changing this forces a new resource to be created. this topic in. Changing this forces a new resource to be created.

namespace_name str
requires_duplicate_detection bool

Boolean flag which controls whether Changing this forces a new resource to be created. the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.

resource_group_name str
status str

The Status of the Service Bus Topic. Acceptable values are Active or Disabled. Defaults to Active.

support_ordering bool

Boolean flag which controls whether the Topic supports ordering.

autoDeleteOnIdle String

The ISO 8601 timespan duration of the idle interval after which the Topic is automatically deleted, minimum of 5 minutes.

defaultMessageTtl String

The ISO 8601 timespan duration of TTL of messages sent to this topic if no TTL value is set on the message itself.

duplicateDetectionHistoryTimeWindow String

The ISO 8601 timespan duration during which duplicates can be detected. Defaults to 10 minutes. (PT10M)

enableBatchedOperations Boolean

Boolean flag which controls if server-side batched operations are enabled.

enableExpress 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.

enablePartitioning Boolean

Boolean flag which controls whether to enable Changing this forces a new resource to be created. the topic to be partitioned across multiple message brokers. Defaults to false. Changing this forces a new resource to be created.

maxMessageSizeInKilobytes Number

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.

maxSizeInMegabytes Number

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.

namespaceId String

The ID of the ServiceBus Namespace to create Changing this forces a new resource to be created. this topic in. Changing this forces a new resource to be created.

namespaceName String
requiresDuplicateDetection Boolean

Boolean flag which controls whether Changing this forces a new resource to be created. the Topic requires duplicate detection. Defaults to false. Changing this forces a new resource to be created.

resourceGroupName String
status String

The Status of the Service Bus Topic. Acceptable values are Active or Disabled. Defaults to Active.

supportOrdering Boolean

Boolean flag which controls whether the Topic supports ordering.

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

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.