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

The following fields are returned by SELECT queries:

NameDatatypeDescription
propertiesobjectDapr Component resource specific properties

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, environmentName, componentName
listselectsubscriptionId, resourceGroupName, environmentName
create_or_updateinsertsubscriptionId, resourceGroupName, environmentName, componentNameCreates or updates a Dapr Component in a Managed Environment.
deletedeletesubscriptionId, resourceGroupName, environmentName, componentNameDelete a Dapr Component from a Managed Environment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
componentNamestringName of the Dapr Component.
environmentNamestringName of the Managed Environment.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

OK

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

INSERT examples

Creates or updates a Dapr Component in a Managed Environment.

INSERT INTO azure.container_apps.dapr_components (
data__properties,
subscriptionId,
resourceGroupName,
environmentName,
componentName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ environmentName }}',
'{{ componentName }}'
RETURNING
properties
;

DELETE examples

Delete a Dapr Component from a Managed Environment.

DELETE FROM azure.container_apps.dapr_components
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND environmentName = '{{ environmentName }}' --required
AND componentName = '{{ componentName }}' --required
;