Skip to main content

queues

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

Overview

Namequeues
TypeResource
Idazure.storage.queues

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
accountNametextfield from the properties object
approximate_message_counttextfield from the properties object
metadatatextfield from the properties object
queueNametextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, queueName, resourceGroupName, subscriptionIdGets the queue with the specified queue name, under the specified account if it exists.
listSELECTaccountName, resourceGroupName, subscriptionIdGets a list of all the queues under the specified storage account
createINSERTaccountName, queueName, resourceGroupName, subscriptionIdCreates a new queue with the specified queue name, under the specified account.
deleteDELETEaccountName, queueName, resourceGroupName, subscriptionIdDeletes the queue with the specified queue name, under the specified account if it exists.
updateUPDATEaccountName, queueName, resourceGroupName, subscriptionIdCreates a new queue with the specified queue name, under the specified account.

SELECT examples

Gets a list of all the queues under the specified storage account

SELECT
id,
name,
accountName,
approximate_message_count,
metadata,
queueName,
resourceGroupName,
subscriptionId,
type
FROM azure.storage.vw_queues
WHERE accountName = '{{ accountName }}'
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.storage.queues (
accountName,
queueName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ accountName }}',
'{{ queueName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a queues resource.

/*+ update */
UPDATE azure.storage.queues
SET
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND queueName = '{{ queueName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified queues resource.

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