Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
- Latest
- 2025-10-02-preview
- 2025-07-01
- 2025-02-02-preview
- 2025-01-01
- 2024-10-02-preview
- 2024-08-02-preview
- 2024-03-01
- 2024-02-02-preview
- 2023-11-02-preview
- 2023-08-01-preview
- 2023-05-02-preview
- 2023-05-01
- 2023-04-01-preview
- 2022-11-01-preview
- 2022-10-01
- 2022-06-01-preview
- 2022-03-01
- 2022-01-01-preview
Bicep resource definition
The managedEnvironments/daprComponents resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.App/managedEnvironments/daprComponents resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.App/managedEnvironments/daprComponents@2025-10-02-preview' = {
parent: resourceSymbolicName
name: 'string'
properties: {
componentType: 'string'
ignoreErrors: bool
initTimeout: 'string'
metadata: [
{
name: 'string'
secretRef: 'string'
value: 'string'
}
]
scopes: [
'string'
]
secrets: [
{
identity: 'string'
keyVaultUrl: 'string'
name: 'string'
value: 'string'
}
]
secretStoreComponent: 'string'
serviceComponentBind: [
{
metadata: {
name: 'string'
value: 'string'
}
name: 'string'
serviceId: 'string'
}
]
version: 'string'
}
}
Property Values
Microsoft.App/managedEnvironments/daprComponents
| Name | Description | Value |
|---|---|---|
| name | The resource name | string (required) |
| parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: managedEnvironments |
| properties | Dapr Component resource specific properties | DaprComponentProperties |
DaprComponentProperties
| Name | Description | Value |
|---|---|---|
| componentType | Component type | string |
| ignoreErrors | Boolean describing if the component errors are ignores | bool |
| initTimeout | Initialization timeout | string |
| metadata | Component metadata | DaprMetadata[] |
| scopes | Names of container apps that can use this Dapr component | string[] |
| secrets | Collection of secrets used by a Dapr component | Secret[] |
| secretStoreComponent | Name of a Dapr component to retrieve component secrets from | string |
| serviceComponentBind | List of container app services that are bound to the Dapr component | DaprComponentServiceBinding[] |
| version | Component version | string |
DaprComponentServiceBinding
| Name | Description | Value |
|---|---|---|
| metadata | Service bind metadata | DaprServiceBindMetadata |
| name | Name of the service bind | string |
| serviceId | Resource id of the target service | string |
DaprMetadata
| Name | Description | Value |
|---|---|---|
| name | Metadata property name. | string |
| secretRef | Name of the Dapr Component secret from which to pull the metadata property value. | string |
| value | Metadata property value. | string |
DaprServiceBindMetadata
| Name | Description | Value |
|---|---|---|
| name | Service bind metadata property name. | string |
| value | Service bind metadata property value. | string |
Secret
| Name | Description | Value |
|---|---|---|
| identity | Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity. | string |
| keyVaultUrl | Azure Key Vault URL pointing to the secret referenced by the container app. | string |
| name | Secret Name. | string |
| value | Secret Value. | string Constraints: Sensitive value. Pass in as a secure parameter. |
Usage Examples
Azure Quickstart Samples
The following Azure Quickstart templates contain Bicep samples for deploying this resource type.
| Bicep File | Description |
|---|---|
| Creates a Dapr microservices app using Container Apps | Create a Dapr microservices app using Container Apps. |
| Creates a Dapr pub-sub servicebus app using Container Apps | Create a Dapr pub-sub servicebus app using Container Apps. |
ARM template resource definition
The managedEnvironments/daprComponents resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.App/managedEnvironments/daprComponents resource, add the following JSON to your template.
{
"type": "Microsoft.App/managedEnvironments/daprComponents",
"apiVersion": "2025-10-02-preview",
"name": "string",
"properties": {
"componentType": "string",
"ignoreErrors": "bool",
"initTimeout": "string",
"metadata": [
{
"name": "string",
"secretRef": "string",
"value": "string"
}
],
"scopes": [ "string" ],
"secrets": [
{
"identity": "string",
"keyVaultUrl": "string",
"name": "string",
"value": "string"
}
],
"secretStoreComponent": "string",
"serviceComponentBind": [
{
"metadata": {
"name": "string",
"value": "string"
},
"name": "string",
"serviceId": "string"
}
],
"version": "string"
}
}
Property Values
Microsoft.App/managedEnvironments/daprComponents
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2025-10-02-preview' |
| name | The resource name | string (required) |
| properties | Dapr Component resource specific properties | DaprComponentProperties |
| type | The resource type | 'Microsoft.App/managedEnvironments/daprComponents' |
DaprComponentProperties
| Name | Description | Value |
|---|---|---|
| componentType | Component type | string |
| ignoreErrors | Boolean describing if the component errors are ignores | bool |
| initTimeout | Initialization timeout | string |
| metadata | Component metadata | DaprMetadata[] |
| scopes | Names of container apps that can use this Dapr component | string[] |
| secrets | Collection of secrets used by a Dapr component | Secret[] |
| secretStoreComponent | Name of a Dapr component to retrieve component secrets from | string |
| serviceComponentBind | List of container app services that are bound to the Dapr component | DaprComponentServiceBinding[] |
| version | Component version | string |
DaprComponentServiceBinding
| Name | Description | Value |
|---|---|---|
| metadata | Service bind metadata | DaprServiceBindMetadata |
| name | Name of the service bind | string |
| serviceId | Resource id of the target service | string |
DaprMetadata
| Name | Description | Value |
|---|---|---|
| name | Metadata property name. | string |
| secretRef | Name of the Dapr Component secret from which to pull the metadata property value. | string |
| value | Metadata property value. | string |
DaprServiceBindMetadata
| Name | Description | Value |
|---|---|---|
| name | Service bind metadata property name. | string |
| value | Service bind metadata property value. | string |
Secret
| Name | Description | Value |
|---|---|---|
| identity | Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity. | string |
| keyVaultUrl | Azure Key Vault URL pointing to the secret referenced by the container app. | string |
| name | Secret Name. | string |
| value | Secret Value. | string Constraints: Sensitive value. Pass in as a secure parameter. |
Usage Examples
Azure Quickstart Templates
The following Azure Quickstart templates deploy this resource type.
| Template | Description |
|---|---|
| Creates a Dapr microservices app using Container Apps |
Create a Dapr microservices app using Container Apps. |
| Creates a Dapr pub-sub servicebus app using Container Apps |
Create a Dapr pub-sub servicebus app using Container Apps. |
Terraform (AzAPI provider) resource definition
The managedEnvironments/daprComponents resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.App/managedEnvironments/daprComponents resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.App/managedEnvironments/daprComponents@2025-10-02-preview"
name = "string"
parent_id = "string"
body = {
properties = {
componentType = "string"
ignoreErrors = bool
initTimeout = "string"
metadata = [
{
name = "string"
secretRef = "string"
value = "string"
}
]
scopes = [
"string"
]
secrets = [
{
identity = "string"
keyVaultUrl = "string"
name = "string"
value = "string"
}
]
secretStoreComponent = "string"
serviceComponentBind = [
{
metadata = {
name = "string"
value = "string"
}
name = "string"
serviceId = "string"
}
]
version = "string"
}
}
}
Property Values
Microsoft.App/managedEnvironments/daprComponents
| Name | Description | Value |
|---|---|---|
| name | The resource name | string (required) |
| parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: managedEnvironments |
| properties | Dapr Component resource specific properties | DaprComponentProperties |
| type | The resource type | "Microsoft.App/managedEnvironments/daprComponents@2025-10-02-preview" |
DaprComponentProperties
| Name | Description | Value |
|---|---|---|
| componentType | Component type | string |
| ignoreErrors | Boolean describing if the component errors are ignores | bool |
| initTimeout | Initialization timeout | string |
| metadata | Component metadata | DaprMetadata[] |
| scopes | Names of container apps that can use this Dapr component | string[] |
| secrets | Collection of secrets used by a Dapr component | Secret[] |
| secretStoreComponent | Name of a Dapr component to retrieve component secrets from | string |
| serviceComponentBind | List of container app services that are bound to the Dapr component | DaprComponentServiceBinding[] |
| version | Component version | string |
DaprComponentServiceBinding
| Name | Description | Value |
|---|---|---|
| metadata | Service bind metadata | DaprServiceBindMetadata |
| name | Name of the service bind | string |
| serviceId | Resource id of the target service | string |
DaprMetadata
| Name | Description | Value |
|---|---|---|
| name | Metadata property name. | string |
| secretRef | Name of the Dapr Component secret from which to pull the metadata property value. | string |
| value | Metadata property value. | string |
DaprServiceBindMetadata
| Name | Description | Value |
|---|---|---|
| name | Service bind metadata property name. | string |
| value | Service bind metadata property value. | string |
Secret
| Name | Description | Value |
|---|---|---|
| identity | Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity. | string |
| keyVaultUrl | Azure Key Vault URL pointing to the secret referenced by the container app. | string |
| name | Secret Name. | string |
| value | Secret Value. | string Constraints: Sensitive value. Pass in as a secure parameter. |
Usage Examples
Terraform Samples
A basic example of deploying Dapr Component for a Container App Environment.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "workspace" {
type = "Microsoft.OperationalInsights/workspaces@2022-10-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
features = {
disableLocalAuth = false
enableLogAccessUsingOnlyResourcePermissions = true
}
publicNetworkAccessForIngestion = "Enabled"
publicNetworkAccessForQuery = "Enabled"
retentionInDays = 30
sku = {
name = "PerGB2018"
}
workspaceCapping = {
dailyQuotaGb = -1
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
data "azapi_resource_action" "sharedKeys" {
type = "Microsoft.OperationalInsights/workspaces@2020-08-01"
resource_id = azapi_resource.workspace.id
action = "sharedKeys"
response_export_values = ["*"]
}
resource "azapi_resource" "managedEnvironment" {
type = "Microsoft.App/managedEnvironments@2022-03-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
appLogsConfiguration = {
destination = "log-analytics"
logAnalyticsConfiguration = {
customerId = azapi_resource.workspace.output.properties.customerId
sharedKey = data.azapi_resource_action.sharedKeys.output.primarySharedKey
}
}
vnetConfiguration = {
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "daprComponent" {
type = "Microsoft.App/managedEnvironments/daprComponents@2022-03-01"
parent_id = azapi_resource.managedEnvironment.id
name = var.resource_name
body = {
properties = {
componentType = "state.azure.blobstorage"
ignoreErrors = false
initTimeout = "5s"
scopes = null
version = "v1"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}