Skip to main content

dapr_components

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

Overview

Namedapr_components
TypeResource
Idazure.container_apps.dapr_components

Fields

NameDatatypeDescription
propertiesobjectDapr Component resource specific properties

Methods

NameAccessible byRequired ParamsDescription
getSELECTcomponentName, environmentName, resourceGroupName, subscriptionId
listSELECTenvironmentName, resourceGroupName, subscriptionId
create_or_updateINSERTcomponentName, environmentName, resourceGroupName, subscriptionIdCreates or updates a Dapr Component in a Managed Environment.
deleteDELETEcomponentName, environmentName, resourceGroupName, subscriptionIdDelete a Dapr Component from a Managed Environment.

SELECT examples

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

INSERT example

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

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

DELETE example

Deletes the specified dapr_components resource.

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