Skip to main content

dapr_subscriptions

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

Overview

Namedapr_subscriptions
TypeResource
Idazure.container_apps.dapr_subscriptions

Fields

NameDatatypeDescription
propertiesobjectDapr PubSub Event Subscription resource specific properties

Methods

NameAccessible byRequired ParamsDescription
getSELECTenvironmentName, name, resourceGroupName, subscriptionId
listSELECTenvironmentName, resourceGroupName, subscriptionId
create_or_updateINSERTenvironmentName, name, resourceGroupName, subscriptionIdCreates or updates a Dapr subscription in a Managed Environment.
deleteDELETEenvironmentName, name, resourceGroupName, subscriptionIdDelete a Dapr subscription from a Managed Environment.

SELECT examples

SELECT
properties
FROM azure.container_apps.dapr_subscriptions
WHERE environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.container_apps.dapr_subscriptions (
environmentName,
name,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ environmentName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified dapr_subscriptions resource.

/*+ delete */
DELETE FROM azure.container_apps.dapr_subscriptions
WHERE environmentName = '{{ environmentName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';