We recommend using Azure Native.
azure.containerapp.EnvironmentDaprComponent
Explore with Pulumi AI
Manages a Dapr Component for a Container App Environment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", {
name: "acctest-01",
location: example.location,
resourceGroupName: example.name,
sku: "PerGB2018",
retentionInDays: 30,
});
const exampleEnvironment = new azure.containerapp.Environment("example", {
name: "Example-Environment",
location: example.location,
resourceGroupName: example.name,
logAnalyticsWorkspaceId: exampleAnalyticsWorkspace.id,
});
const exampleEnvironmentDaprComponent = new azure.containerapp.EnvironmentDaprComponent("example", {
name: "example-component",
containerAppEnvironmentId: exampleEnvironment.id,
componentType: "state.azure.blobstorage",
version: "v1",
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("example",
name="acctest-01",
location=example.location,
resource_group_name=example.name,
sku="PerGB2018",
retention_in_days=30)
example_environment = azure.containerapp.Environment("example",
name="Example-Environment",
location=example.location,
resource_group_name=example.name,
log_analytics_workspace_id=example_analytics_workspace.id)
example_environment_dapr_component = azure.containerapp.EnvironmentDaprComponent("example",
name="example-component",
container_app_environment_id=example_environment.id,
component_type="state.azure.blobstorage",
version="v1")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/operationalinsights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{
Name: pulumi.String("acctest-01"),
Location: example.Location,
ResourceGroupName: example.Name,
Sku: pulumi.String("PerGB2018"),
RetentionInDays: pulumi.Int(30),
})
if err != nil {
return err
}
exampleEnvironment, err := containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{
Name: pulumi.String("Example-Environment"),
Location: example.Location,
ResourceGroupName: example.Name,
LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(),
})
if err != nil {
return err
}
_, err = containerapp.NewEnvironmentDaprComponent(ctx, "example", &containerapp.EnvironmentDaprComponentArgs{
Name: pulumi.String("example-component"),
ContainerAppEnvironmentId: exampleEnvironment.ID(),
ComponentType: pulumi.String("state.azure.blobstorage"),
Version: pulumi.String("v1"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleAnalyticsWorkspace = new Azure.OperationalInsights.AnalyticsWorkspace("example", new()
{
Name = "acctest-01",
Location = example.Location,
ResourceGroupName = example.Name,
Sku = "PerGB2018",
RetentionInDays = 30,
});
var exampleEnvironment = new Azure.ContainerApp.Environment("example", new()
{
Name = "Example-Environment",
Location = example.Location,
ResourceGroupName = example.Name,
LogAnalyticsWorkspaceId = exampleAnalyticsWorkspace.Id,
});
var exampleEnvironmentDaprComponent = new Azure.ContainerApp.EnvironmentDaprComponent("example", new()
{
Name = "example-component",
ContainerAppEnvironmentId = exampleEnvironment.Id,
ComponentType = "state.azure.blobstorage",
Version = "v1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspace;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
import com.pulumi.azure.containerapp.Environment;
import com.pulumi.azure.containerapp.EnvironmentArgs;
import com.pulumi.azure.containerapp.EnvironmentDaprComponent;
import com.pulumi.azure.containerapp.EnvironmentDaprComponentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
.name("acctest-01")
.location(example.location())
.resourceGroupName(example.name())
.sku("PerGB2018")
.retentionInDays(30)
.build());
var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()
.name("Example-Environment")
.location(example.location())
.resourceGroupName(example.name())
.logAnalyticsWorkspaceId(exampleAnalyticsWorkspace.id())
.build());
var exampleEnvironmentDaprComponent = new EnvironmentDaprComponent("exampleEnvironmentDaprComponent", EnvironmentDaprComponentArgs.builder()
.name("example-component")
.containerAppEnvironmentId(exampleEnvironment.id())
.componentType("state.azure.blobstorage")
.version("v1")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleAnalyticsWorkspace:
type: azure:operationalinsights:AnalyticsWorkspace
name: example
properties:
name: acctest-01
location: ${example.location}
resourceGroupName: ${example.name}
sku: PerGB2018
retentionInDays: 30
exampleEnvironment:
type: azure:containerapp:Environment
name: example
properties:
name: Example-Environment
location: ${example.location}
resourceGroupName: ${example.name}
logAnalyticsWorkspaceId: ${exampleAnalyticsWorkspace.id}
exampleEnvironmentDaprComponent:
type: azure:containerapp:EnvironmentDaprComponent
name: example
properties:
name: example-component
containerAppEnvironmentId: ${exampleEnvironment.id}
componentType: state.azure.blobstorage
version: v1
Create EnvironmentDaprComponent Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EnvironmentDaprComponent(name: string, args: EnvironmentDaprComponentArgs, opts?: CustomResourceOptions);
@overload
def EnvironmentDaprComponent(resource_name: str,
args: EnvironmentDaprComponentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EnvironmentDaprComponent(resource_name: str,
opts: Optional[ResourceOptions] = None,
component_type: Optional[str] = None,
container_app_environment_id: Optional[str] = None,
version: Optional[str] = None,
ignore_errors: Optional[bool] = None,
init_timeout: Optional[str] = None,
metadatas: Optional[Sequence[EnvironmentDaprComponentMetadataArgs]] = None,
name: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
secrets: Optional[Sequence[EnvironmentDaprComponentSecretArgs]] = None)
func NewEnvironmentDaprComponent(ctx *Context, name string, args EnvironmentDaprComponentArgs, opts ...ResourceOption) (*EnvironmentDaprComponent, error)
public EnvironmentDaprComponent(string name, EnvironmentDaprComponentArgs args, CustomResourceOptions? opts = null)
public EnvironmentDaprComponent(String name, EnvironmentDaprComponentArgs args)
public EnvironmentDaprComponent(String name, EnvironmentDaprComponentArgs args, CustomResourceOptions options)
type: azure:containerapp:EnvironmentDaprComponent
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EnvironmentDaprComponentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EnvironmentDaprComponentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EnvironmentDaprComponentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnvironmentDaprComponentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EnvironmentDaprComponentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var environmentDaprComponentResource = new Azure.ContainerApp.EnvironmentDaprComponent("environmentDaprComponentResource", new()
{
ComponentType = "string",
ContainerAppEnvironmentId = "string",
Version = "string",
IgnoreErrors = false,
InitTimeout = "string",
Metadatas = new[]
{
new Azure.ContainerApp.Inputs.EnvironmentDaprComponentMetadataArgs
{
Name = "string",
SecretName = "string",
Value = "string",
},
},
Name = "string",
Scopes = new[]
{
"string",
},
Secrets = new[]
{
new Azure.ContainerApp.Inputs.EnvironmentDaprComponentSecretArgs
{
Name = "string",
Identity = "string",
KeyVaultSecretId = "string",
Value = "string",
},
},
});
example, err := containerapp.NewEnvironmentDaprComponent(ctx, "environmentDaprComponentResource", &containerapp.EnvironmentDaprComponentArgs{
ComponentType: pulumi.String("string"),
ContainerAppEnvironmentId: pulumi.String("string"),
Version: pulumi.String("string"),
IgnoreErrors: pulumi.Bool(false),
InitTimeout: pulumi.String("string"),
Metadatas: containerapp.EnvironmentDaprComponentMetadataArray{
&containerapp.EnvironmentDaprComponentMetadataArgs{
Name: pulumi.String("string"),
SecretName: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
Secrets: containerapp.EnvironmentDaprComponentSecretArray{
&containerapp.EnvironmentDaprComponentSecretArgs{
Name: pulumi.String("string"),
Identity: pulumi.String("string"),
KeyVaultSecretId: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var environmentDaprComponentResource = new EnvironmentDaprComponent("environmentDaprComponentResource", EnvironmentDaprComponentArgs.builder()
.componentType("string")
.containerAppEnvironmentId("string")
.version("string")
.ignoreErrors(false)
.initTimeout("string")
.metadatas(EnvironmentDaprComponentMetadataArgs.builder()
.name("string")
.secretName("string")
.value("string")
.build())
.name("string")
.scopes("string")
.secrets(EnvironmentDaprComponentSecretArgs.builder()
.name("string")
.identity("string")
.keyVaultSecretId("string")
.value("string")
.build())
.build());
environment_dapr_component_resource = azure.containerapp.EnvironmentDaprComponent("environmentDaprComponentResource",
component_type="string",
container_app_environment_id="string",
version="string",
ignore_errors=False,
init_timeout="string",
metadatas=[{
"name": "string",
"secretName": "string",
"value": "string",
}],
name="string",
scopes=["string"],
secrets=[{
"name": "string",
"identity": "string",
"keyVaultSecretId": "string",
"value": "string",
}])
const environmentDaprComponentResource = new azure.containerapp.EnvironmentDaprComponent("environmentDaprComponentResource", {
componentType: "string",
containerAppEnvironmentId: "string",
version: "string",
ignoreErrors: false,
initTimeout: "string",
metadatas: [{
name: "string",
secretName: "string",
value: "string",
}],
name: "string",
scopes: ["string"],
secrets: [{
name: "string",
identity: "string",
keyVaultSecretId: "string",
value: "string",
}],
});
type: azure:containerapp:EnvironmentDaprComponent
properties:
componentType: string
containerAppEnvironmentId: string
ignoreErrors: false
initTimeout: string
metadatas:
- name: string
secretName: string
value: string
name: string
scopes:
- string
secrets:
- identity: string
keyVaultSecretId: string
name: string
value: string
version: string
EnvironmentDaprComponent Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The EnvironmentDaprComponent resource accepts the following input properties:
- Component
Type string - The Dapr Component Type. For example
state.azure.blobstorage
. Changing this forces a new resource to be created. - Container
App stringEnvironment Id - The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created.
- Version string
- The version of the component.
- Ignore
Errors bool - Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to
false
- Init
Timeout string - The timeout for component initialisation as a
ISO8601
formatted string. e.g.5s
,2h
,1m
. Defaults to5s
. - Metadatas
List<Environment
Dapr Component Metadata> - One or more
metadata
blocks as detailed below. - Name string
- The name for this Dapr component. Changing this forces a new resource to be created.
- Scopes List<string>
A list of scopes to which this component applies.
NOTE: See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes
- Secrets
List<Environment
Dapr Component Secret> - A
secret
block as detailed below.
- Component
Type string - The Dapr Component Type. For example
state.azure.blobstorage
. Changing this forces a new resource to be created. - Container
App stringEnvironment Id - The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created.
- Version string
- The version of the component.
- Ignore
Errors bool - Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to
false
- Init
Timeout string - The timeout for component initialisation as a
ISO8601
formatted string. e.g.5s
,2h
,1m
. Defaults to5s
. - Metadatas
[]Environment
Dapr Component Metadata Args - One or more
metadata
blocks as detailed below. - Name string
- The name for this Dapr component. Changing this forces a new resource to be created.
- Scopes []string
A list of scopes to which this component applies.
NOTE: See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes
- Secrets
[]Environment
Dapr Component Secret Args - A
secret
block as detailed below.
- component
Type String - The Dapr Component Type. For example
state.azure.blobstorage
. Changing this forces a new resource to be created. - container
App StringEnvironment Id - The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created.
- version String
- The version of the component.
- ignore
Errors Boolean - Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to
false
- init
Timeout String - The timeout for component initialisation as a
ISO8601
formatted string. e.g.5s
,2h
,1m
. Defaults to5s
. - metadatas
List<Environment
Dapr Component Metadata> - One or more
metadata
blocks as detailed below. - name String
- The name for this Dapr component. Changing this forces a new resource to be created.
- scopes List<String>
A list of scopes to which this component applies.
NOTE: See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes
- secrets
List<Environment
Dapr Component Secret> - A
secret
block as detailed below.
- component
Type string - The Dapr Component Type. For example
state.azure.blobstorage
. Changing this forces a new resource to be created. - container
App stringEnvironment Id - The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created.
- version string
- The version of the component.
- ignore
Errors boolean - Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to
false
- init
Timeout string - The timeout for component initialisation as a
ISO8601
formatted string. e.g.5s
,2h
,1m
. Defaults to5s
. - metadatas
Environment
Dapr Component Metadata[] - One or more
metadata
blocks as detailed below. - name string
- The name for this Dapr component. Changing this forces a new resource to be created.
- scopes string[]
A list of scopes to which this component applies.
NOTE: See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes
- secrets
Environment
Dapr Component Secret[] - A
secret
block as detailed below.
- component_
type str - The Dapr Component Type. For example
state.azure.blobstorage
. Changing this forces a new resource to be created. - container_
app_ strenvironment_ id - The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created.
- version str
- The version of the component.
- ignore_
errors bool - Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to
false
- init_
timeout str - The timeout for component initialisation as a
ISO8601
formatted string. e.g.5s
,2h
,1m
. Defaults to5s
. - metadatas
Sequence[Environment
Dapr Component Metadata Args] - One or more
metadata
blocks as detailed below. - name str
- The name for this Dapr component. Changing this forces a new resource to be created.
- scopes Sequence[str]
A list of scopes to which this component applies.
NOTE: See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes
- secrets
Sequence[Environment
Dapr Component Secret Args] - A
secret
block as detailed below.
- component
Type String - The Dapr Component Type. For example
state.azure.blobstorage
. Changing this forces a new resource to be created. - container
App StringEnvironment Id - The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created.
- version String
- The version of the component.
- ignore
Errors Boolean - Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to
false
- init
Timeout String - The timeout for component initialisation as a
ISO8601
formatted string. e.g.5s
,2h
,1m
. Defaults to5s
. - metadatas List<Property Map>
- One or more
metadata
blocks as detailed below. - name String
- The name for this Dapr component. Changing this forces a new resource to be created.
- scopes List<String>
A list of scopes to which this component applies.
NOTE: See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes
- secrets List<Property Map>
- A
secret
block as detailed below.
Outputs
All input properties are implicitly available as output properties. Additionally, the EnvironmentDaprComponent resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing EnvironmentDaprComponent Resource
Get an existing EnvironmentDaprComponent resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: EnvironmentDaprComponentState, opts?: CustomResourceOptions): EnvironmentDaprComponent
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
component_type: Optional[str] = None,
container_app_environment_id: Optional[str] = None,
ignore_errors: Optional[bool] = None,
init_timeout: Optional[str] = None,
metadatas: Optional[Sequence[EnvironmentDaprComponentMetadataArgs]] = None,
name: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
secrets: Optional[Sequence[EnvironmentDaprComponentSecretArgs]] = None,
version: Optional[str] = None) -> EnvironmentDaprComponent
func GetEnvironmentDaprComponent(ctx *Context, name string, id IDInput, state *EnvironmentDaprComponentState, opts ...ResourceOption) (*EnvironmentDaprComponent, error)
public static EnvironmentDaprComponent Get(string name, Input<string> id, EnvironmentDaprComponentState? state, CustomResourceOptions? opts = null)
public static EnvironmentDaprComponent get(String name, Output<String> id, EnvironmentDaprComponentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Component
Type string - The Dapr Component Type. For example
state.azure.blobstorage
. Changing this forces a new resource to be created. - Container
App stringEnvironment Id - The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created.
- Ignore
Errors bool - Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to
false
- Init
Timeout string - The timeout for component initialisation as a
ISO8601
formatted string. e.g.5s
,2h
,1m
. Defaults to5s
. - Metadatas
List<Environment
Dapr Component Metadata> - One or more
metadata
blocks as detailed below. - Name string
- The name for this Dapr component. Changing this forces a new resource to be created.
- Scopes List<string>
A list of scopes to which this component applies.
NOTE: See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes
- Secrets
List<Environment
Dapr Component Secret> - A
secret
block as detailed below. - Version string
- The version of the component.
- Component
Type string - The Dapr Component Type. For example
state.azure.blobstorage
. Changing this forces a new resource to be created. - Container
App stringEnvironment Id - The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created.
- Ignore
Errors bool - Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to
false
- Init
Timeout string - The timeout for component initialisation as a
ISO8601
formatted string. e.g.5s
,2h
,1m
. Defaults to5s
. - Metadatas
[]Environment
Dapr Component Metadata Args - One or more
metadata
blocks as detailed below. - Name string
- The name for this Dapr component. Changing this forces a new resource to be created.
- Scopes []string
A list of scopes to which this component applies.
NOTE: See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes
- Secrets
[]Environment
Dapr Component Secret Args - A
secret
block as detailed below. - Version string
- The version of the component.
- component
Type String - The Dapr Component Type. For example
state.azure.blobstorage
. Changing this forces a new resource to be created. - container
App StringEnvironment Id - The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created.
- ignore
Errors Boolean - Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to
false
- init
Timeout String - The timeout for component initialisation as a
ISO8601
formatted string. e.g.5s
,2h
,1m
. Defaults to5s
. - metadatas
List<Environment
Dapr Component Metadata> - One or more
metadata
blocks as detailed below. - name String
- The name for this Dapr component. Changing this forces a new resource to be created.
- scopes List<String>
A list of scopes to which this component applies.
NOTE: See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes
- secrets
List<Environment
Dapr Component Secret> - A
secret
block as detailed below. - version String
- The version of the component.
- component
Type string - The Dapr Component Type. For example
state.azure.blobstorage
. Changing this forces a new resource to be created. - container
App stringEnvironment Id - The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created.
- ignore
Errors boolean - Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to
false
- init
Timeout string - The timeout for component initialisation as a
ISO8601
formatted string. e.g.5s
,2h
,1m
. Defaults to5s
. - metadatas
Environment
Dapr Component Metadata[] - One or more
metadata
blocks as detailed below. - name string
- The name for this Dapr component. Changing this forces a new resource to be created.
- scopes string[]
A list of scopes to which this component applies.
NOTE: See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes
- secrets
Environment
Dapr Component Secret[] - A
secret
block as detailed below. - version string
- The version of the component.
- component_
type str - The Dapr Component Type. For example
state.azure.blobstorage
. Changing this forces a new resource to be created. - container_
app_ strenvironment_ id - The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created.
- ignore_
errors bool - Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to
false
- init_
timeout str - The timeout for component initialisation as a
ISO8601
formatted string. e.g.5s
,2h
,1m
. Defaults to5s
. - metadatas
Sequence[Environment
Dapr Component Metadata Args] - One or more
metadata
blocks as detailed below. - name str
- The name for this Dapr component. Changing this forces a new resource to be created.
- scopes Sequence[str]
A list of scopes to which this component applies.
NOTE: See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes
- secrets
Sequence[Environment
Dapr Component Secret Args] - A
secret
block as detailed below. - version str
- The version of the component.
- component
Type String - The Dapr Component Type. For example
state.azure.blobstorage
. Changing this forces a new resource to be created. - container
App StringEnvironment Id - The ID of the Container App Managed Environment for this Dapr Component. Changing this forces a new resource to be created.
- ignore
Errors Boolean - Should the Dapr sidecar to continue initialisation if the component fails to load. Defaults to
false
- init
Timeout String - The timeout for component initialisation as a
ISO8601
formatted string. e.g.5s
,2h
,1m
. Defaults to5s
. - metadatas List<Property Map>
- One or more
metadata
blocks as detailed below. - name String
- The name for this Dapr component. Changing this forces a new resource to be created.
- scopes List<String>
A list of scopes to which this component applies.
NOTE: See the official docs for more information at https://learn.microsoft.com/en-us/azure/container-apps/dapr-overview?tabs=bicep1%2Cyaml#component-scopes
- secrets List<Property Map>
- A
secret
block as detailed below. - version String
- The version of the component.
Supporting Types
EnvironmentDaprComponentMetadata, EnvironmentDaprComponentMetadataArgs
- Name string
- The name of the Metadata configuration item.
- Secret
Name string - The name of a secret specified in the
secrets
block that contains the value for this metadata configuration item. - Value string
- The value for this metadata configuration item.
- Name string
- The name of the Metadata configuration item.
- Secret
Name string - The name of a secret specified in the
secrets
block that contains the value for this metadata configuration item. - Value string
- The value for this metadata configuration item.
- name String
- The name of the Metadata configuration item.
- secret
Name String - The name of a secret specified in the
secrets
block that contains the value for this metadata configuration item. - value String
- The value for this metadata configuration item.
- name string
- The name of the Metadata configuration item.
- secret
Name string - The name of a secret specified in the
secrets
block that contains the value for this metadata configuration item. - value string
- The value for this metadata configuration item.
- name str
- The name of the Metadata configuration item.
- secret_
name str - The name of a secret specified in the
secrets
block that contains the value for this metadata configuration item. - value str
- The value for this metadata configuration item.
- name String
- The name of the Metadata configuration item.
- secret
Name String - The name of a secret specified in the
secrets
block that contains the value for this metadata configuration item. - value String
- The value for this metadata configuration item.
EnvironmentDaprComponentSecret, EnvironmentDaprComponentSecretArgs
- Name string
- The Secret name.
- Identity string
- The identity to use for accessing key vault reference.
- Key
Vault stringSecret Id - The Key Vault Secret ID. Could be either one of
id
orversionless_id
. - Value string
- The value for this secret.
- Name string
- The Secret name.
- Identity string
- The identity to use for accessing key vault reference.
- Key
Vault stringSecret Id - The Key Vault Secret ID. Could be either one of
id
orversionless_id
. - Value string
- The value for this secret.
- name String
- The Secret name.
- identity String
- The identity to use for accessing key vault reference.
- key
Vault StringSecret Id - The Key Vault Secret ID. Could be either one of
id
orversionless_id
. - value String
- The value for this secret.
- name string
- The Secret name.
- identity string
- The identity to use for accessing key vault reference.
- key
Vault stringSecret Id - The Key Vault Secret ID. Could be either one of
id
orversionless_id
. - value string
- The value for this secret.
- name str
- The Secret name.
- identity str
- The identity to use for accessing key vault reference.
- key_
vault_ strsecret_ id - The Key Vault Secret ID. Could be either one of
id
orversionless_id
. - value str
- The value for this secret.
- name String
- The Secret name.
- identity String
- The identity to use for accessing key vault reference.
- key
Vault StringSecret Id - The Key Vault Secret ID. Could be either one of
id
orversionless_id
. - value String
- The value for this secret.
Import
A Dapr Component for a Container App Environment can be imported using the resource id
, e.g.
$ pulumi import azure:containerapp/environmentDaprComponent:EnvironmentDaprComponent example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myenv/daprComponents/mydaprcomponent"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.