We recommend using Azure Native.
azure.servicebus.Queue
Manages a ServiceBus Queue.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "my-servicebus",
    location: "West Europe",
});
const exampleNamespace = new azure.servicebus.Namespace("example", {
    name: "tfex-servicebus-namespace",
    location: example.location,
    resourceGroupName: example.name,
    sku: "Standard",
    tags: {
        source: "example",
    },
});
const exampleQueue = new azure.servicebus.Queue("example", {
    name: "tfex_servicebus_queue",
    namespaceId: exampleNamespace.id,
    partitioningEnabled: true,
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="my-servicebus",
    location="West Europe")
example_namespace = azure.servicebus.Namespace("example",
    name="tfex-servicebus-namespace",
    location=example.location,
    resource_group_name=example.name,
    sku="Standard",
    tags={
        "source": "example",
    })
example_queue = azure.servicebus.Queue("example",
    name="tfex_servicebus_queue",
    namespace_id=example_namespace.id,
    partitioning_enabled=True)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/servicebus"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("my-servicebus"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleNamespace, err := servicebus.NewNamespace(ctx, "example", &servicebus.NamespaceArgs{
			Name:              pulumi.String("tfex-servicebus-namespace"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			Sku:               pulumi.String("Standard"),
			Tags: pulumi.StringMap{
				"source": pulumi.String("example"),
			},
		})
		if err != nil {
			return err
		}
		_, err = servicebus.NewQueue(ctx, "example", &servicebus.QueueArgs{
			Name:                pulumi.String("tfex_servicebus_queue"),
			NamespaceId:         exampleNamespace.ID(),
			PartitioningEnabled: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "my-servicebus",
        Location = "West Europe",
    });
    var exampleNamespace = new Azure.ServiceBus.Namespace("example", new()
    {
        Name = "tfex-servicebus-namespace",
        Location = example.Location,
        ResourceGroupName = example.Name,
        Sku = "Standard",
        Tags = 
        {
            { "source", "example" },
        },
    });
    var exampleQueue = new Azure.ServiceBus.Queue("example", new()
    {
        Name = "tfex_servicebus_queue",
        NamespaceId = exampleNamespace.Id,
        PartitioningEnabled = true,
    });
});
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.Queue;
import com.pulumi.azure.servicebus.QueueArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("my-servicebus")
            .location("West Europe")
            .build());
        var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()
            .name("tfex-servicebus-namespace")
            .location(example.location())
            .resourceGroupName(example.name())
            .sku("Standard")
            .tags(Map.of("source", "example"))
            .build());
        var exampleQueue = new Queue("exampleQueue", QueueArgs.builder()
            .name("tfex_servicebus_queue")
            .namespaceId(exampleNamespace.id())
            .partitioningEnabled(true)
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: my-servicebus
      location: West Europe
  exampleNamespace:
    type: azure:servicebus:Namespace
    name: example
    properties:
      name: tfex-servicebus-namespace
      location: ${example.location}
      resourceGroupName: ${example.name}
      sku: Standard
      tags:
        source: example
  exampleQueue:
    type: azure:servicebus:Queue
    name: example
    properties:
      name: tfex_servicebus_queue
      namespaceId: ${exampleNamespace.id}
      partitioningEnabled: true
API Providers
This resource uses the following Azure API Providers:
- Microsoft.ServiceBus- 2024-01-01
Create Queue Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Queue(name: string, args: QueueArgs, opts?: CustomResourceOptions);@overload
def Queue(resource_name: str,
          args: QueueArgs,
          opts: Optional[ResourceOptions] = None)
@overload
def Queue(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          namespace_id: Optional[str] = None,
          lock_duration: Optional[str] = None,
          max_message_size_in_kilobytes: Optional[int] = None,
          default_message_ttl: Optional[str] = None,
          duplicate_detection_history_time_window: Optional[str] = None,
          express_enabled: Optional[bool] = None,
          forward_dead_lettered_messages_to: Optional[str] = None,
          forward_to: Optional[str] = None,
          auto_delete_on_idle: Optional[str] = None,
          dead_lettering_on_message_expiration: Optional[bool] = None,
          max_size_in_megabytes: Optional[int] = None,
          max_delivery_count: Optional[int] = None,
          name: Optional[str] = None,
          batched_operations_enabled: Optional[bool] = None,
          partitioning_enabled: Optional[bool] = None,
          requires_duplicate_detection: Optional[bool] = None,
          requires_session: Optional[bool] = None,
          status: Optional[str] = None)func NewQueue(ctx *Context, name string, args QueueArgs, opts ...ResourceOption) (*Queue, error)public Queue(string name, QueueArgs args, CustomResourceOptions? opts = null)type: azure:servicebus:Queue
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 QueueArgs
- 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 QueueArgs
- 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 QueueArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args QueueArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args QueueArgs
- 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 queueResource = new Azure.ServiceBus.Queue("queueResource", new()
{
    NamespaceId = "string",
    LockDuration = "string",
    MaxMessageSizeInKilobytes = 0,
    DefaultMessageTtl = "string",
    DuplicateDetectionHistoryTimeWindow = "string",
    ExpressEnabled = false,
    ForwardDeadLetteredMessagesTo = "string",
    ForwardTo = "string",
    AutoDeleteOnIdle = "string",
    DeadLetteringOnMessageExpiration = false,
    MaxSizeInMegabytes = 0,
    MaxDeliveryCount = 0,
    Name = "string",
    BatchedOperationsEnabled = false,
    PartitioningEnabled = false,
    RequiresDuplicateDetection = false,
    RequiresSession = false,
    Status = "string",
});
example, err := servicebus.NewQueue(ctx, "queueResource", &servicebus.QueueArgs{
	NamespaceId:                         pulumi.String("string"),
	LockDuration:                        pulumi.String("string"),
	MaxMessageSizeInKilobytes:           pulumi.Int(0),
	DefaultMessageTtl:                   pulumi.String("string"),
	DuplicateDetectionHistoryTimeWindow: pulumi.String("string"),
	ExpressEnabled:                      pulumi.Bool(false),
	ForwardDeadLetteredMessagesTo:       pulumi.String("string"),
	ForwardTo:                           pulumi.String("string"),
	AutoDeleteOnIdle:                    pulumi.String("string"),
	DeadLetteringOnMessageExpiration:    pulumi.Bool(false),
	MaxSizeInMegabytes:                  pulumi.Int(0),
	MaxDeliveryCount:                    pulumi.Int(0),
	Name:                                pulumi.String("string"),
	BatchedOperationsEnabled:            pulumi.Bool(false),
	PartitioningEnabled:                 pulumi.Bool(false),
	RequiresDuplicateDetection:          pulumi.Bool(false),
	RequiresSession:                     pulumi.Bool(false),
	Status:                              pulumi.String("string"),
})
var queueResource = new com.pulumi.azure.servicebus.Queue("queueResource", com.pulumi.azure.servicebus.QueueArgs.builder()
    .namespaceId("string")
    .lockDuration("string")
    .maxMessageSizeInKilobytes(0)
    .defaultMessageTtl("string")
    .duplicateDetectionHistoryTimeWindow("string")
    .expressEnabled(false)
    .forwardDeadLetteredMessagesTo("string")
    .forwardTo("string")
    .autoDeleteOnIdle("string")
    .deadLetteringOnMessageExpiration(false)
    .maxSizeInMegabytes(0)
    .maxDeliveryCount(0)
    .name("string")
    .batchedOperationsEnabled(false)
    .partitioningEnabled(false)
    .requiresDuplicateDetection(false)
    .requiresSession(false)
    .status("string")
    .build());
queue_resource = azure.servicebus.Queue("queueResource",
    namespace_id="string",
    lock_duration="string",
    max_message_size_in_kilobytes=0,
    default_message_ttl="string",
    duplicate_detection_history_time_window="string",
    express_enabled=False,
    forward_dead_lettered_messages_to="string",
    forward_to="string",
    auto_delete_on_idle="string",
    dead_lettering_on_message_expiration=False,
    max_size_in_megabytes=0,
    max_delivery_count=0,
    name="string",
    batched_operations_enabled=False,
    partitioning_enabled=False,
    requires_duplicate_detection=False,
    requires_session=False,
    status="string")
const queueResource = new azure.servicebus.Queue("queueResource", {
    namespaceId: "string",
    lockDuration: "string",
    maxMessageSizeInKilobytes: 0,
    defaultMessageTtl: "string",
    duplicateDetectionHistoryTimeWindow: "string",
    expressEnabled: false,
    forwardDeadLetteredMessagesTo: "string",
    forwardTo: "string",
    autoDeleteOnIdle: "string",
    deadLetteringOnMessageExpiration: false,
    maxSizeInMegabytes: 0,
    maxDeliveryCount: 0,
    name: "string",
    batchedOperationsEnabled: false,
    partitioningEnabled: false,
    requiresDuplicateDetection: false,
    requiresSession: false,
    status: "string",
});
type: azure:servicebus:Queue
properties:
    autoDeleteOnIdle: string
    batchedOperationsEnabled: false
    deadLetteringOnMessageExpiration: false
    defaultMessageTtl: string
    duplicateDetectionHistoryTimeWindow: string
    expressEnabled: false
    forwardDeadLetteredMessagesTo: string
    forwardTo: string
    lockDuration: string
    maxDeliveryCount: 0
    maxMessageSizeInKilobytes: 0
    maxSizeInMegabytes: 0
    name: string
    namespaceId: string
    partitioningEnabled: false
    requiresDuplicateDetection: false
    requiresSession: false
    status: string
Queue 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 Queue resource accepts the following input properties:
- NamespaceId string
- The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
- AutoDelete stringOn Idle 
- The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
- BatchedOperations boolEnabled 
- Boolean flag which controls whether server-side batched operations are enabled. Defaults to true.
- DeadLettering boolOn Message Expiration 
- Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to false.
- DefaultMessage stringTtl 
- The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
- DuplicateDetection stringHistory Time Window 
- The ISO 8601 timespan duration during which duplicates can be detected. Defaults to PT10M(10 Minutes).
- ExpressEnabled bool
- Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to - falsefor Basic and Standard. For Premium, it MUST be set to- false.- Note: Service Bus Premium namespaces do not support Express Entities, so - express_enabledMUST be set to- false.
- ForwardDead stringLettered Messages To 
- The name of a Queue or Topic to automatically forward dead lettered messages to.
- ForwardTo string
- The name of a Queue or Topic to automatically forward messages to. Please see the documentation for more information.
- LockDuration string
- The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to PT1M(1 Minute).
- MaxDelivery intCount 
- Integer value which controls when a message is automatically dead lettered. Defaults to 10.
- MaxMessage intSize In Kilobytes 
- Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of this document.
- MaxSize intIn Megabytes 
- Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of Service Bus Quotas.
- Name string
- Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
- PartitioningEnabled bool
- Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to - falsefor Basic and Standard.- Note: Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has - premium_messaging_partitionssets to- 1, the namespace is not partitioned.
- RequiresDuplicate boolDetection 
- Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to false.
- RequiresSession bool
- Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to false.
- Status string
- The status of the Queue. Possible values are Active,Creating,Deleting,Disabled,ReceiveDisabled,Renaming,SendDisabled,Unknown. Note thatRestoringis not accepted. Defaults toActive.
- NamespaceId string
- The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
- AutoDelete stringOn Idle 
- The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
- BatchedOperations boolEnabled 
- Boolean flag which controls whether server-side batched operations are enabled. Defaults to true.
- DeadLettering boolOn Message Expiration 
- Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to false.
- DefaultMessage stringTtl 
- The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
- DuplicateDetection stringHistory Time Window 
- The ISO 8601 timespan duration during which duplicates can be detected. Defaults to PT10M(10 Minutes).
- ExpressEnabled bool
- Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to - falsefor Basic and Standard. For Premium, it MUST be set to- false.- Note: Service Bus Premium namespaces do not support Express Entities, so - express_enabledMUST be set to- false.
- ForwardDead stringLettered Messages To 
- The name of a Queue or Topic to automatically forward dead lettered messages to.
- ForwardTo string
- The name of a Queue or Topic to automatically forward messages to. Please see the documentation for more information.
- LockDuration string
- The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to PT1M(1 Minute).
- MaxDelivery intCount 
- Integer value which controls when a message is automatically dead lettered. Defaults to 10.
- MaxMessage intSize In Kilobytes 
- Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of this document.
- MaxSize intIn Megabytes 
- Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of Service Bus Quotas.
- Name string
- Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
- PartitioningEnabled bool
- Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to - falsefor Basic and Standard.- Note: Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has - premium_messaging_partitionssets to- 1, the namespace is not partitioned.
- RequiresDuplicate boolDetection 
- Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to false.
- RequiresSession bool
- Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to false.
- Status string
- The status of the Queue. Possible values are Active,Creating,Deleting,Disabled,ReceiveDisabled,Renaming,SendDisabled,Unknown. Note thatRestoringis not accepted. Defaults toActive.
- namespaceId String
- The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
- autoDelete StringOn Idle 
- The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
- batchedOperations BooleanEnabled 
- Boolean flag which controls whether server-side batched operations are enabled. Defaults to true.
- deadLettering BooleanOn Message Expiration 
- Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to false.
- defaultMessage StringTtl 
- The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
- duplicateDetection StringHistory Time Window 
- The ISO 8601 timespan duration during which duplicates can be detected. Defaults to PT10M(10 Minutes).
- expressEnabled Boolean
- Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to - falsefor Basic and Standard. For Premium, it MUST be set to- false.- Note: Service Bus Premium namespaces do not support Express Entities, so - express_enabledMUST be set to- false.
- forwardDead StringLettered Messages To 
- The name of a Queue or Topic to automatically forward dead lettered messages to.
- forwardTo String
- The name of a Queue or Topic to automatically forward messages to. Please see the documentation for more information.
- lockDuration String
- The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to PT1M(1 Minute).
- maxDelivery IntegerCount 
- Integer value which controls when a message is automatically dead lettered. Defaults to 10.
- maxMessage IntegerSize In Kilobytes 
- Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of this document.
- maxSize IntegerIn Megabytes 
- Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of Service Bus Quotas.
- name String
- Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
- partitioningEnabled Boolean
- Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to - falsefor Basic and Standard.- Note: Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has - premium_messaging_partitionssets to- 1, the namespace is not partitioned.
- requiresDuplicate BooleanDetection 
- Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to false.
- requiresSession Boolean
- Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to false.
- status String
- The status of the Queue. Possible values are Active,Creating,Deleting,Disabled,ReceiveDisabled,Renaming,SendDisabled,Unknown. Note thatRestoringis not accepted. Defaults toActive.
- namespaceId string
- The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
- autoDelete stringOn Idle 
- The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
- batchedOperations booleanEnabled 
- Boolean flag which controls whether server-side batched operations are enabled. Defaults to true.
- deadLettering booleanOn Message Expiration 
- Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to false.
- defaultMessage stringTtl 
- The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
- duplicateDetection stringHistory Time Window 
- The ISO 8601 timespan duration during which duplicates can be detected. Defaults to PT10M(10 Minutes).
- expressEnabled boolean
- Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to - falsefor Basic and Standard. For Premium, it MUST be set to- false.- Note: Service Bus Premium namespaces do not support Express Entities, so - express_enabledMUST be set to- false.
- forwardDead stringLettered Messages To 
- The name of a Queue or Topic to automatically forward dead lettered messages to.
- forwardTo string
- The name of a Queue or Topic to automatically forward messages to. Please see the documentation for more information.
- lockDuration string
- The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to PT1M(1 Minute).
- maxDelivery numberCount 
- Integer value which controls when a message is automatically dead lettered. Defaults to 10.
- maxMessage numberSize In Kilobytes 
- Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of this document.
- maxSize numberIn Megabytes 
- Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of Service Bus Quotas.
- name string
- Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
- partitioningEnabled boolean
- Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to - falsefor Basic and Standard.- Note: Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has - premium_messaging_partitionssets to- 1, the namespace is not partitioned.
- requiresDuplicate booleanDetection 
- Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to false.
- requiresSession boolean
- Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to false.
- status string
- The status of the Queue. Possible values are Active,Creating,Deleting,Disabled,ReceiveDisabled,Renaming,SendDisabled,Unknown. Note thatRestoringis not accepted. Defaults toActive.
- namespace_id str
- The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
- auto_delete_ stron_ idle 
- The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
- batched_operations_ boolenabled 
- Boolean flag which controls whether server-side batched operations are enabled. Defaults to true.
- dead_lettering_ boolon_ message_ expiration 
- Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to false.
- default_message_ strttl 
- The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
- duplicate_detection_ strhistory_ time_ window 
- The ISO 8601 timespan duration during which duplicates can be detected. Defaults to PT10M(10 Minutes).
- express_enabled bool
- Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to - falsefor Basic and Standard. For Premium, it MUST be set to- false.- Note: Service Bus Premium namespaces do not support Express Entities, so - express_enabledMUST be set to- false.
- forward_dead_ strlettered_ messages_ to 
- The name of a Queue or Topic to automatically forward dead lettered messages to.
- forward_to str
- The name of a Queue or Topic to automatically forward messages to. Please see the documentation for more information.
- lock_duration str
- The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to PT1M(1 Minute).
- max_delivery_ intcount 
- Integer value which controls when a message is automatically dead lettered. Defaults to 10.
- max_message_ intsize_ in_ kilobytes 
- Integer value which controls the maximum size of a message allowed on the queue 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 queue. For supported values see the "Queue or topic size" section of Service Bus Quotas.
- name str
- Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
- partitioning_enabled bool
- Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to - falsefor Basic and Standard.- Note: Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has - premium_messaging_partitionssets to- 1, the namespace is not partitioned.
- requires_duplicate_ booldetection 
- Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to false.
- requires_session bool
- Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to false.
- status str
- The status of the Queue. Possible values are Active,Creating,Deleting,Disabled,ReceiveDisabled,Renaming,SendDisabled,Unknown. Note thatRestoringis not accepted. Defaults toActive.
- namespaceId String
- The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
- autoDelete StringOn Idle 
- The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
- batchedOperations BooleanEnabled 
- Boolean flag which controls whether server-side batched operations are enabled. Defaults to true.
- deadLettering BooleanOn Message Expiration 
- Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to false.
- defaultMessage StringTtl 
- The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
- duplicateDetection StringHistory Time Window 
- The ISO 8601 timespan duration during which duplicates can be detected. Defaults to PT10M(10 Minutes).
- expressEnabled Boolean
- Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to - falsefor Basic and Standard. For Premium, it MUST be set to- false.- Note: Service Bus Premium namespaces do not support Express Entities, so - express_enabledMUST be set to- false.
- forwardDead StringLettered Messages To 
- The name of a Queue or Topic to automatically forward dead lettered messages to.
- forwardTo String
- The name of a Queue or Topic to automatically forward messages to. Please see the documentation for more information.
- lockDuration String
- The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to PT1M(1 Minute).
- maxDelivery NumberCount 
- Integer value which controls when a message is automatically dead lettered. Defaults to 10.
- maxMessage NumberSize In Kilobytes 
- Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of this document.
- maxSize NumberIn Megabytes 
- Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of Service Bus Quotas.
- name String
- Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
- partitioningEnabled Boolean
- Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to - falsefor Basic and Standard.- Note: Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has - premium_messaging_partitionssets to- 1, the namespace is not partitioned.
- requiresDuplicate BooleanDetection 
- Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to false.
- requiresSession Boolean
- Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to false.
- status String
- The status of the Queue. Possible values are Active,Creating,Deleting,Disabled,ReceiveDisabled,Renaming,SendDisabled,Unknown. Note thatRestoringis not accepted. Defaults toActive.
Outputs
All input properties are implicitly available as output properties. Additionally, the Queue resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- NamespaceName string
- ResourceGroup stringName 
- Id string
- The provider-assigned unique ID for this managed resource.
- NamespaceName string
- ResourceGroup stringName 
- id String
- The provider-assigned unique ID for this managed resource.
- namespaceName String
- resourceGroup StringName 
- id string
- The provider-assigned unique ID for this managed resource.
- namespaceName string
- resourceGroup stringName 
- id str
- The provider-assigned unique ID for this managed resource.
- namespace_name str
- resource_group_ strname 
- id String
- The provider-assigned unique ID for this managed resource.
- namespaceName String
- resourceGroup StringName 
Look up Existing Queue Resource
Get an existing Queue 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?: QueueState, opts?: CustomResourceOptions): Queue@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auto_delete_on_idle: Optional[str] = None,
        batched_operations_enabled: Optional[bool] = None,
        dead_lettering_on_message_expiration: Optional[bool] = None,
        default_message_ttl: Optional[str] = None,
        duplicate_detection_history_time_window: Optional[str] = None,
        express_enabled: Optional[bool] = None,
        forward_dead_lettered_messages_to: Optional[str] = None,
        forward_to: Optional[str] = None,
        lock_duration: Optional[str] = None,
        max_delivery_count: Optional[int] = 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,
        partitioning_enabled: Optional[bool] = None,
        requires_duplicate_detection: Optional[bool] = None,
        requires_session: Optional[bool] = None,
        resource_group_name: Optional[str] = None,
        status: Optional[str] = None) -> Queuefunc GetQueue(ctx *Context, name string, id IDInput, state *QueueState, opts ...ResourceOption) (*Queue, error)public static Queue Get(string name, Input<string> id, QueueState? state, CustomResourceOptions? opts = null)public static Queue get(String name, Output<String> id, QueueState state, CustomResourceOptions options)resources:  _:    type: azure:servicebus:Queue    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.
- AutoDelete stringOn Idle 
- The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
- BatchedOperations boolEnabled 
- Boolean flag which controls whether server-side batched operations are enabled. Defaults to true.
- DeadLettering boolOn Message Expiration 
- Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to false.
- DefaultMessage stringTtl 
- The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
- DuplicateDetection stringHistory Time Window 
- The ISO 8601 timespan duration during which duplicates can be detected. Defaults to PT10M(10 Minutes).
- ExpressEnabled bool
- Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to - falsefor Basic and Standard. For Premium, it MUST be set to- false.- Note: Service Bus Premium namespaces do not support Express Entities, so - express_enabledMUST be set to- false.
- ForwardDead stringLettered Messages To 
- The name of a Queue or Topic to automatically forward dead lettered messages to.
- ForwardTo string
- The name of a Queue or Topic to automatically forward messages to. Please see the documentation for more information.
- LockDuration string
- The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to PT1M(1 Minute).
- MaxDelivery intCount 
- Integer value which controls when a message is automatically dead lettered. Defaults to 10.
- MaxMessage intSize In Kilobytes 
- Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of this document.
- MaxSize intIn Megabytes 
- Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of Service Bus Quotas.
- Name string
- Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
- NamespaceId string
- The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
- NamespaceName string
- PartitioningEnabled bool
- Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to - falsefor Basic and Standard.- Note: Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has - premium_messaging_partitionssets to- 1, the namespace is not partitioned.
- RequiresDuplicate boolDetection 
- Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to false.
- RequiresSession bool
- Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to false.
- ResourceGroup stringName 
- Status string
- The status of the Queue. Possible values are Active,Creating,Deleting,Disabled,ReceiveDisabled,Renaming,SendDisabled,Unknown. Note thatRestoringis not accepted. Defaults toActive.
- AutoDelete stringOn Idle 
- The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
- BatchedOperations boolEnabled 
- Boolean flag which controls whether server-side batched operations are enabled. Defaults to true.
- DeadLettering boolOn Message Expiration 
- Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to false.
- DefaultMessage stringTtl 
- The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
- DuplicateDetection stringHistory Time Window 
- The ISO 8601 timespan duration during which duplicates can be detected. Defaults to PT10M(10 Minutes).
- ExpressEnabled bool
- Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to - falsefor Basic and Standard. For Premium, it MUST be set to- false.- Note: Service Bus Premium namespaces do not support Express Entities, so - express_enabledMUST be set to- false.
- ForwardDead stringLettered Messages To 
- The name of a Queue or Topic to automatically forward dead lettered messages to.
- ForwardTo string
- The name of a Queue or Topic to automatically forward messages to. Please see the documentation for more information.
- LockDuration string
- The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to PT1M(1 Minute).
- MaxDelivery intCount 
- Integer value which controls when a message is automatically dead lettered. Defaults to 10.
- MaxMessage intSize In Kilobytes 
- Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of this document.
- MaxSize intIn Megabytes 
- Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of Service Bus Quotas.
- Name string
- Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
- NamespaceId string
- The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
- NamespaceName string
- PartitioningEnabled bool
- Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to - falsefor Basic and Standard.- Note: Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has - premium_messaging_partitionssets to- 1, the namespace is not partitioned.
- RequiresDuplicate boolDetection 
- Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to false.
- RequiresSession bool
- Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to false.
- ResourceGroup stringName 
- Status string
- The status of the Queue. Possible values are Active,Creating,Deleting,Disabled,ReceiveDisabled,Renaming,SendDisabled,Unknown. Note thatRestoringis not accepted. Defaults toActive.
- autoDelete StringOn Idle 
- The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
- batchedOperations BooleanEnabled 
- Boolean flag which controls whether server-side batched operations are enabled. Defaults to true.
- deadLettering BooleanOn Message Expiration 
- Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to false.
- defaultMessage StringTtl 
- The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
- duplicateDetection StringHistory Time Window 
- The ISO 8601 timespan duration during which duplicates can be detected. Defaults to PT10M(10 Minutes).
- expressEnabled Boolean
- Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to - falsefor Basic and Standard. For Premium, it MUST be set to- false.- Note: Service Bus Premium namespaces do not support Express Entities, so - express_enabledMUST be set to- false.
- forwardDead StringLettered Messages To 
- The name of a Queue or Topic to automatically forward dead lettered messages to.
- forwardTo String
- The name of a Queue or Topic to automatically forward messages to. Please see the documentation for more information.
- lockDuration String
- The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to PT1M(1 Minute).
- maxDelivery IntegerCount 
- Integer value which controls when a message is automatically dead lettered. Defaults to 10.
- maxMessage IntegerSize In Kilobytes 
- Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of this document.
- maxSize IntegerIn Megabytes 
- Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of Service Bus Quotas.
- name String
- Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
- namespaceId String
- The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
- namespaceName String
- partitioningEnabled Boolean
- Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to - falsefor Basic and Standard.- Note: Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has - premium_messaging_partitionssets to- 1, the namespace is not partitioned.
- requiresDuplicate BooleanDetection 
- Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to false.
- requiresSession Boolean
- Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to false.
- resourceGroup StringName 
- status String
- The status of the Queue. Possible values are Active,Creating,Deleting,Disabled,ReceiveDisabled,Renaming,SendDisabled,Unknown. Note thatRestoringis not accepted. Defaults toActive.
- autoDelete stringOn Idle 
- The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
- batchedOperations booleanEnabled 
- Boolean flag which controls whether server-side batched operations are enabled. Defaults to true.
- deadLettering booleanOn Message Expiration 
- Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to false.
- defaultMessage stringTtl 
- The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
- duplicateDetection stringHistory Time Window 
- The ISO 8601 timespan duration during which duplicates can be detected. Defaults to PT10M(10 Minutes).
- expressEnabled boolean
- Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to - falsefor Basic and Standard. For Premium, it MUST be set to- false.- Note: Service Bus Premium namespaces do not support Express Entities, so - express_enabledMUST be set to- false.
- forwardDead stringLettered Messages To 
- The name of a Queue or Topic to automatically forward dead lettered messages to.
- forwardTo string
- The name of a Queue or Topic to automatically forward messages to. Please see the documentation for more information.
- lockDuration string
- The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to PT1M(1 Minute).
- maxDelivery numberCount 
- Integer value which controls when a message is automatically dead lettered. Defaults to 10.
- maxMessage numberSize In Kilobytes 
- Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of this document.
- maxSize numberIn Megabytes 
- Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of Service Bus Quotas.
- name string
- Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
- namespaceId string
- The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
- namespaceName string
- partitioningEnabled boolean
- Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to - falsefor Basic and Standard.- Note: Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has - premium_messaging_partitionssets to- 1, the namespace is not partitioned.
- requiresDuplicate booleanDetection 
- Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to false.
- requiresSession boolean
- Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to false.
- resourceGroup stringName 
- status string
- The status of the Queue. Possible values are Active,Creating,Deleting,Disabled,ReceiveDisabled,Renaming,SendDisabled,Unknown. Note thatRestoringis not accepted. Defaults toActive.
- auto_delete_ stron_ idle 
- The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
- batched_operations_ boolenabled 
- Boolean flag which controls whether server-side batched operations are enabled. Defaults to true.
- dead_lettering_ boolon_ message_ expiration 
- Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to false.
- default_message_ strttl 
- The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
- duplicate_detection_ strhistory_ time_ window 
- The ISO 8601 timespan duration during which duplicates can be detected. Defaults to PT10M(10 Minutes).
- express_enabled bool
- Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to - falsefor Basic and Standard. For Premium, it MUST be set to- false.- Note: Service Bus Premium namespaces do not support Express Entities, so - express_enabledMUST be set to- false.
- forward_dead_ strlettered_ messages_ to 
- The name of a Queue or Topic to automatically forward dead lettered messages to.
- forward_to str
- The name of a Queue or Topic to automatically forward messages to. Please see the documentation for more information.
- lock_duration str
- The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to PT1M(1 Minute).
- max_delivery_ intcount 
- Integer value which controls when a message is automatically dead lettered. Defaults to 10.
- max_message_ intsize_ in_ kilobytes 
- Integer value which controls the maximum size of a message allowed on the queue 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 queue. For supported values see the "Queue or topic size" section of Service Bus Quotas.
- name str
- Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
- namespace_id str
- The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
- namespace_name str
- partitioning_enabled bool
- Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to - falsefor Basic and Standard.- Note: Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has - premium_messaging_partitionssets to- 1, the namespace is not partitioned.
- requires_duplicate_ booldetection 
- Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to false.
- requires_session bool
- Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to false.
- resource_group_ strname 
- status str
- The status of the Queue. Possible values are Active,Creating,Deleting,Disabled,ReceiveDisabled,Renaming,SendDisabled,Unknown. Note thatRestoringis not accepted. Defaults toActive.
- autoDelete StringOn Idle 
- The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.
- batchedOperations BooleanEnabled 
- Boolean flag which controls whether server-side batched operations are enabled. Defaults to true.
- deadLettering BooleanOn Message Expiration 
- Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to false.
- defaultMessage StringTtl 
- The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.
- duplicateDetection StringHistory Time Window 
- The ISO 8601 timespan duration during which duplicates can be detected. Defaults to PT10M(10 Minutes).
- expressEnabled Boolean
- Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to - falsefor Basic and Standard. For Premium, it MUST be set to- false.- Note: Service Bus Premium namespaces do not support Express Entities, so - express_enabledMUST be set to- false.
- forwardDead StringLettered Messages To 
- The name of a Queue or Topic to automatically forward dead lettered messages to.
- forwardTo String
- The name of a Queue or Topic to automatically forward messages to. Please see the documentation for more information.
- lockDuration String
- The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to PT1M(1 Minute).
- maxDelivery NumberCount 
- Integer value which controls when a message is automatically dead lettered. Defaults to 10.
- maxMessage NumberSize In Kilobytes 
- Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of this document.
- maxSize NumberIn Megabytes 
- Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of Service Bus Quotas.
- name String
- Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created.
- namespaceId String
- The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created.
- namespaceName String
- partitioningEnabled Boolean
- Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to - falsefor Basic and Standard.- Note: Partitioning is available at entity creation for all queues and topics in Basic or Standard SKUs. For premium namespace, partitioning is available at namespace creation, and all queues and topics in the partitioned namespace will be partitioned, for the premium namespace that has - premium_messaging_partitionssets to- 1, the namespace is not partitioned.
- requiresDuplicate BooleanDetection 
- Boolean flag which controls whether the Queue requires duplicate detection. Changing this forces a new resource to be created. Defaults to false.
- requiresSession Boolean
- Boolean flag which controls whether the Queue requires sessions. This will allow ordered handling of unbounded sequences of related messages. With sessions enabled a queue can guarantee first-in-first-out delivery of messages. Changing this forces a new resource to be created. Defaults to false.
- resourceGroup StringName 
- status String
- The status of the Queue. Possible values are Active,Creating,Deleting,Disabled,ReceiveDisabled,Renaming,SendDisabled,Unknown. Note thatRestoringis not accepted. Defaults toActive.
Import
Service Bus Queue can be imported using the resource id, e.g.
$ pulumi import azure:servicebus/queue:Queue example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ServiceBus/namespaces/sbns1/queues/snqueue1
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.
