Skip to main content

queues

Creates, updates, deletes, gets or lists a queues resource.

Overview

Namequeues
TypeResource
Idazure.service_bus.queues

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
accessed_attextfield from the properties object
auto_delete_on_idletextfield from the properties object
count_detailstextfield from the properties object
created_attextfield from the properties object
dead_lettering_on_message_expirationtextfield from the properties object
default_message_time_to_livetextfield from the properties object
duplicate_detection_history_time_windowtextfield from the properties object
enable_batched_operationstextfield from the properties object
enable_expresstextfield from the properties object
enable_partitioningtextfield from the properties object
forward_dead_lettered_messages_totextfield from the properties object
forward_totextfield from the properties object
locationtextThe geo-location where the resource lives
lock_durationtextfield from the properties object
max_delivery_counttextfield from the properties object
max_message_size_in_kilobytestextfield from the properties object
max_size_in_megabytestextfield from the properties object
message_counttextfield from the properties object
namespaceNametextfield from the properties object
queueNametextfield from the properties object
requires_duplicate_detectiontextfield from the properties object
requires_sessiontextfield from the properties object
resourceGroupNametextfield from the properties object
size_in_bytestextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"
updated_attextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTnamespaceName, queueName, resourceGroupName, subscriptionIdReturns a description for the specified queue.
list_by_namespaceSELECTnamespaceName, resourceGroupName, subscriptionIdGets the queues within a namespace.
create_or_updateINSERTnamespaceName, queueName, resourceGroupName, subscriptionIdCreates or updates a Service Bus queue. This operation is idempotent.
deleteDELETEnamespaceName, queueName, resourceGroupName, subscriptionIdDeletes a queue from the specified namespace in a resource group.
regenerate_keysEXECauthorizationRuleName, namespaceName, queueName, resourceGroupName, subscriptionId, data__keyTypeRegenerates the primary or secondary connection strings to the queue.

SELECT examples

Gets the queues within a namespace.

SELECT
id,
name,
accessed_at,
auto_delete_on_idle,
count_details,
created_at,
dead_lettering_on_message_expiration,
default_message_time_to_live,
duplicate_detection_history_time_window,
enable_batched_operations,
enable_express,
enable_partitioning,
forward_dead_lettered_messages_to,
forward_to,
location,
lock_duration,
max_delivery_count,
max_message_size_in_kilobytes,
max_size_in_megabytes,
message_count,
namespaceName,
queueName,
requires_duplicate_detection,
requires_session,
resourceGroupName,
size_in_bytes,
status,
subscriptionId,
system_data,
type,
updated_at
FROM azure.service_bus.vw_queues
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new queues resource.

/*+ create */
INSERT INTO azure.service_bus.queues (
namespaceName,
queueName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ namespaceName }}',
'{{ queueName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified queues resource.

/*+ delete */
DELETE FROM azure.service_bus.queues
WHERE namespaceName = '{{ namespaceName }}'
AND queueName = '{{ queueName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';