1. Packages
  2. Azure Native v2
  3. API Docs
  4. app
  5. DaprSubscription
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.app.DaprSubscription

Explore with Pulumi AI

Dapr PubSub Event Subscription. Azure REST API version: 2023-08-01-preview.

Other available API versions: 2023-11-02-preview, 2024-02-02-preview, 2024-08-02-preview, 2024-10-02-preview.

Example Usage

Create or update dapr subscription with bulk subscribe configuration and scopes

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var daprSubscription = new AzureNative.App.DaprSubscription("daprSubscription", new()
    {
        BulkSubscribe = new AzureNative.App.Inputs.DaprSubscriptionBulkSubscribeOptionsArgs
        {
            Enabled = true,
            MaxAwaitDurationMs = 500,
            MaxMessagesCount = 123,
        },
        EnvironmentName = "myenvironment",
        Name = "mysubscription",
        PubsubName = "mypubsubcomponent",
        ResourceGroupName = "examplerg",
        Routes = new AzureNative.App.Inputs.DaprSubscriptionRoutesArgs
        {
            Default = "/products",
        },
        Scopes = new[]
        {
            "warehouseapp",
            "customersupportapp",
        },
        Topic = "inventory",
    });

});
Copy
package main

import (
	app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := app.NewDaprSubscription(ctx, "daprSubscription", &app.DaprSubscriptionArgs{
			BulkSubscribe: &app.DaprSubscriptionBulkSubscribeOptionsArgs{
				Enabled:            pulumi.Bool(true),
				MaxAwaitDurationMs: pulumi.Int(500),
				MaxMessagesCount:   pulumi.Int(123),
			},
			EnvironmentName:   pulumi.String("myenvironment"),
			Name:              pulumi.String("mysubscription"),
			PubsubName:        pulumi.String("mypubsubcomponent"),
			ResourceGroupName: pulumi.String("examplerg"),
			Routes: &app.DaprSubscriptionRoutesArgs{
				Default: pulumi.String("/products"),
			},
			Scopes: pulumi.StringArray{
				pulumi.String("warehouseapp"),
				pulumi.String("customersupportapp"),
			},
			Topic: pulumi.String("inventory"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.app.DaprSubscription;
import com.pulumi.azurenative.app.DaprSubscriptionArgs;
import com.pulumi.azurenative.app.inputs.DaprSubscriptionBulkSubscribeOptionsArgs;
import com.pulumi.azurenative.app.inputs.DaprSubscriptionRoutesArgs;
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 daprSubscription = new DaprSubscription("daprSubscription", DaprSubscriptionArgs.builder()
            .bulkSubscribe(DaprSubscriptionBulkSubscribeOptionsArgs.builder()
                .enabled(true)
                .maxAwaitDurationMs(500)
                .maxMessagesCount(123)
                .build())
            .environmentName("myenvironment")
            .name("mysubscription")
            .pubsubName("mypubsubcomponent")
            .resourceGroupName("examplerg")
            .routes(DaprSubscriptionRoutesArgs.builder()
                .default_("/products")
                .build())
            .scopes(            
                "warehouseapp",
                "customersupportapp")
            .topic("inventory")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const daprSubscription = new azure_native.app.DaprSubscription("daprSubscription", {
    bulkSubscribe: {
        enabled: true,
        maxAwaitDurationMs: 500,
        maxMessagesCount: 123,
    },
    environmentName: "myenvironment",
    name: "mysubscription",
    pubsubName: "mypubsubcomponent",
    resourceGroupName: "examplerg",
    routes: {
        "default": "/products",
    },
    scopes: [
        "warehouseapp",
        "customersupportapp",
    ],
    topic: "inventory",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

dapr_subscription = azure_native.app.DaprSubscription("daprSubscription",
    bulk_subscribe={
        "enabled": True,
        "max_await_duration_ms": 500,
        "max_messages_count": 123,
    },
    environment_name="myenvironment",
    name="mysubscription",
    pubsub_name="mypubsubcomponent",
    resource_group_name="examplerg",
    routes={
        "default": "/products",
    },
    scopes=[
        "warehouseapp",
        "customersupportapp",
    ],
    topic="inventory")
Copy
resources:
  daprSubscription:
    type: azure-native:app:DaprSubscription
    properties:
      bulkSubscribe:
        enabled: true
        maxAwaitDurationMs: 500
        maxMessagesCount: 123
      environmentName: myenvironment
      name: mysubscription
      pubsubName: mypubsubcomponent
      resourceGroupName: examplerg
      routes:
        default: /products
      scopes:
        - warehouseapp
        - customersupportapp
      topic: inventory
Copy

Create or update dapr subscription with default route only

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var daprSubscription = new AzureNative.App.DaprSubscription("daprSubscription", new()
    {
        EnvironmentName = "myenvironment",
        Name = "mysubscription",
        PubsubName = "mypubsubcomponent",
        ResourceGroupName = "examplerg",
        Routes = new AzureNative.App.Inputs.DaprSubscriptionRoutesArgs
        {
            Default = "/products",
        },
        Topic = "inventory",
    });

});
Copy
package main

import (
	app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := app.NewDaprSubscription(ctx, "daprSubscription", &app.DaprSubscriptionArgs{
			EnvironmentName:   pulumi.String("myenvironment"),
			Name:              pulumi.String("mysubscription"),
			PubsubName:        pulumi.String("mypubsubcomponent"),
			ResourceGroupName: pulumi.String("examplerg"),
			Routes: &app.DaprSubscriptionRoutesArgs{
				Default: pulumi.String("/products"),
			},
			Topic: pulumi.String("inventory"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.app.DaprSubscription;
import com.pulumi.azurenative.app.DaprSubscriptionArgs;
import com.pulumi.azurenative.app.inputs.DaprSubscriptionRoutesArgs;
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 daprSubscription = new DaprSubscription("daprSubscription", DaprSubscriptionArgs.builder()
            .environmentName("myenvironment")
            .name("mysubscription")
            .pubsubName("mypubsubcomponent")
            .resourceGroupName("examplerg")
            .routes(DaprSubscriptionRoutesArgs.builder()
                .default_("/products")
                .build())
            .topic("inventory")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const daprSubscription = new azure_native.app.DaprSubscription("daprSubscription", {
    environmentName: "myenvironment",
    name: "mysubscription",
    pubsubName: "mypubsubcomponent",
    resourceGroupName: "examplerg",
    routes: {
        "default": "/products",
    },
    topic: "inventory",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

dapr_subscription = azure_native.app.DaprSubscription("daprSubscription",
    environment_name="myenvironment",
    name="mysubscription",
    pubsub_name="mypubsubcomponent",
    resource_group_name="examplerg",
    routes={
        "default": "/products",
    },
    topic="inventory")
Copy
resources:
  daprSubscription:
    type: azure-native:app:DaprSubscription
    properties:
      environmentName: myenvironment
      name: mysubscription
      pubsubName: mypubsubcomponent
      resourceGroupName: examplerg
      routes:
        default: /products
      topic: inventory
Copy

Create or update dapr subscription with route rules and metadata

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var daprSubscription = new AzureNative.App.DaprSubscription("daprSubscription", new()
    {
        EnvironmentName = "myenvironment",
        Metadata = 
        {
            { "foo", "bar" },
            { "hello", "world" },
        },
        Name = "mysubscription",
        PubsubName = "mypubsubcomponent",
        ResourceGroupName = "examplerg",
        Routes = new AzureNative.App.Inputs.DaprSubscriptionRoutesArgs
        {
            Default = "/products",
            Rules = new[]
            {
                new AzureNative.App.Inputs.DaprSubscriptionRouteRuleArgs
                {
                    Match = "event.type == 'widget'",
                    Path = "/widgets",
                },
                new AzureNative.App.Inputs.DaprSubscriptionRouteRuleArgs
                {
                    Match = "event.type == 'gadget'",
                    Path = "/gadgets",
                },
            },
        },
        Topic = "inventory",
    });

});
Copy
package main

import (
	app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := app.NewDaprSubscription(ctx, "daprSubscription", &app.DaprSubscriptionArgs{
			EnvironmentName: pulumi.String("myenvironment"),
			Metadata: pulumi.StringMap{
				"foo":   pulumi.String("bar"),
				"hello": pulumi.String("world"),
			},
			Name:              pulumi.String("mysubscription"),
			PubsubName:        pulumi.String("mypubsubcomponent"),
			ResourceGroupName: pulumi.String("examplerg"),
			Routes: &app.DaprSubscriptionRoutesArgs{
				Default: pulumi.String("/products"),
				Rules: app.DaprSubscriptionRouteRuleArray{
					&app.DaprSubscriptionRouteRuleArgs{
						Match: pulumi.String("event.type == 'widget'"),
						Path:  pulumi.String("/widgets"),
					},
					&app.DaprSubscriptionRouteRuleArgs{
						Match: pulumi.String("event.type == 'gadget'"),
						Path:  pulumi.String("/gadgets"),
					},
				},
			},
			Topic: pulumi.String("inventory"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.app.DaprSubscription;
import com.pulumi.azurenative.app.DaprSubscriptionArgs;
import com.pulumi.azurenative.app.inputs.DaprSubscriptionRoutesArgs;
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 daprSubscription = new DaprSubscription("daprSubscription", DaprSubscriptionArgs.builder()
            .environmentName("myenvironment")
            .metadata(Map.ofEntries(
                Map.entry("foo", "bar"),
                Map.entry("hello", "world")
            ))
            .name("mysubscription")
            .pubsubName("mypubsubcomponent")
            .resourceGroupName("examplerg")
            .routes(DaprSubscriptionRoutesArgs.builder()
                .default_("/products")
                .rules(                
                    DaprSubscriptionRouteRuleArgs.builder()
                        .match("event.type == 'widget'")
                        .path("/widgets")
                        .build(),
                    DaprSubscriptionRouteRuleArgs.builder()
                        .match("event.type == 'gadget'")
                        .path("/gadgets")
                        .build())
                .build())
            .topic("inventory")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const daprSubscription = new azure_native.app.DaprSubscription("daprSubscription", {
    environmentName: "myenvironment",
    metadata: {
        foo: "bar",
        hello: "world",
    },
    name: "mysubscription",
    pubsubName: "mypubsubcomponent",
    resourceGroupName: "examplerg",
    routes: {
        "default": "/products",
        rules: [
            {
                match: "event.type == 'widget'",
                path: "/widgets",
            },
            {
                match: "event.type == 'gadget'",
                path: "/gadgets",
            },
        ],
    },
    topic: "inventory",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

dapr_subscription = azure_native.app.DaprSubscription("daprSubscription",
    environment_name="myenvironment",
    metadata={
        "foo": "bar",
        "hello": "world",
    },
    name="mysubscription",
    pubsub_name="mypubsubcomponent",
    resource_group_name="examplerg",
    routes={
        "default": "/products",
        "rules": [
            {
                "match": "event.type == 'widget'",
                "path": "/widgets",
            },
            {
                "match": "event.type == 'gadget'",
                "path": "/gadgets",
            },
        ],
    },
    topic="inventory")
Copy
resources:
  daprSubscription:
    type: azure-native:app:DaprSubscription
    properties:
      environmentName: myenvironment
      metadata:
        foo: bar
        hello: world
      name: mysubscription
      pubsubName: mypubsubcomponent
      resourceGroupName: examplerg
      routes:
        default: /products
        rules:
          - match: event.type == 'widget'
            path: /widgets
          - match: event.type == 'gadget'
            path: /gadgets
      topic: inventory
Copy

Create DaprSubscription Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DaprSubscription(name: string, args: DaprSubscriptionArgs, opts?: CustomResourceOptions);
@overload
def DaprSubscription(resource_name: str,
                     args: DaprSubscriptionArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def DaprSubscription(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     environment_name: Optional[str] = None,
                     resource_group_name: Optional[str] = None,
                     bulk_subscribe: Optional[DaprSubscriptionBulkSubscribeOptionsArgs] = None,
                     dead_letter_topic: Optional[str] = None,
                     metadata: Optional[Mapping[str, str]] = None,
                     name: Optional[str] = None,
                     pubsub_name: Optional[str] = None,
                     routes: Optional[DaprSubscriptionRoutesArgs] = None,
                     scopes: Optional[Sequence[str]] = None,
                     topic: Optional[str] = None)
func NewDaprSubscription(ctx *Context, name string, args DaprSubscriptionArgs, opts ...ResourceOption) (*DaprSubscription, error)
public DaprSubscription(string name, DaprSubscriptionArgs args, CustomResourceOptions? opts = null)
public DaprSubscription(String name, DaprSubscriptionArgs args)
public DaprSubscription(String name, DaprSubscriptionArgs args, CustomResourceOptions options)
type: azure-native:app:DaprSubscription
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DaprSubscriptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DaprSubscriptionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DaprSubscriptionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DaprSubscriptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DaprSubscriptionArgs
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 daprSubscriptionResource = new AzureNative.App.DaprSubscription("daprSubscriptionResource", new()
{
    EnvironmentName = "string",
    ResourceGroupName = "string",
    BulkSubscribe = 
    {
        { "enabled", false },
        { "maxAwaitDurationMs", 0 },
        { "maxMessagesCount", 0 },
    },
    DeadLetterTopic = "string",
    Metadata = 
    {
        { "string", "string" },
    },
    Name = "string",
    PubsubName = "string",
    Routes = 
    {
        { "default", "string" },
        { "rules", new[]
        {
            
            {
                { "match", "string" },
                { "path", "string" },
            },
        } },
    },
    Scopes = new[]
    {
        "string",
    },
    Topic = "string",
});
Copy
example, err := app.NewDaprSubscription(ctx, "daprSubscriptionResource", &app.DaprSubscriptionArgs{
	EnvironmentName:   "string",
	ResourceGroupName: "string",
	BulkSubscribe: map[string]interface{}{
		"enabled":            false,
		"maxAwaitDurationMs": 0,
		"maxMessagesCount":   0,
	},
	DeadLetterTopic: "string",
	Metadata: map[string]interface{}{
		"string": "string",
	},
	Name:       "string",
	PubsubName: "string",
	Routes: map[string]interface{}{
		"default": "string",
		"rules": []map[string]interface{}{
			map[string]interface{}{
				"match": "string",
				"path":  "string",
			},
		},
	},
	Scopes: []string{
		"string",
	},
	Topic: "string",
})
Copy
var daprSubscriptionResource = new DaprSubscription("daprSubscriptionResource", DaprSubscriptionArgs.builder()
    .environmentName("string")
    .resourceGroupName("string")
    .bulkSubscribe(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .deadLetterTopic("string")
    .metadata(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .name("string")
    .pubsubName("string")
    .routes(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .scopes("string")
    .topic("string")
    .build());
Copy
dapr_subscription_resource = azure_native.app.DaprSubscription("daprSubscriptionResource",
    environment_name=string,
    resource_group_name=string,
    bulk_subscribe={
        enabled: False,
        maxAwaitDurationMs: 0,
        maxMessagesCount: 0,
    },
    dead_letter_topic=string,
    metadata={
        string: string,
    },
    name=string,
    pubsub_name=string,
    routes={
        default: string,
        rules: [{
            match: string,
            path: string,
        }],
    },
    scopes=[string],
    topic=string)
Copy
const daprSubscriptionResource = new azure_native.app.DaprSubscription("daprSubscriptionResource", {
    environmentName: "string",
    resourceGroupName: "string",
    bulkSubscribe: {
        enabled: false,
        maxAwaitDurationMs: 0,
        maxMessagesCount: 0,
    },
    deadLetterTopic: "string",
    metadata: {
        string: "string",
    },
    name: "string",
    pubsubName: "string",
    routes: {
        "default": "string",
        rules: [{
            match: "string",
            path: "string",
        }],
    },
    scopes: ["string"],
    topic: "string",
});
Copy
type: azure-native:app:DaprSubscription
properties:
    bulkSubscribe:
        enabled: false
        maxAwaitDurationMs: 0
        maxMessagesCount: 0
    deadLetterTopic: string
    environmentName: string
    metadata:
        string: string
    name: string
    pubsubName: string
    resourceGroupName: string
    routes:
        default: string
        rules:
            - match: string
              path: string
    scopes:
        - string
    topic: string
Copy

DaprSubscription Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The DaprSubscription resource accepts the following input properties:

EnvironmentName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Managed Environment.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
BulkSubscribe Pulumi.AzureNative.App.Inputs.DaprSubscriptionBulkSubscribeOptions
Bulk subscription options
DeadLetterTopic string
Deadletter topic name
Metadata Dictionary<string, string>
Subscription metadata
Name Changes to this property will trigger replacement. string
Name of the Dapr subscription.
PubsubName string
Dapr PubSub component name
Routes Pulumi.AzureNative.App.Inputs.DaprSubscriptionRoutes
Subscription routes
Scopes List<string>
Application scopes to restrict the subscription to specific apps.
Topic string
Topic name
EnvironmentName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Managed Environment.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
BulkSubscribe DaprSubscriptionBulkSubscribeOptionsArgs
Bulk subscription options
DeadLetterTopic string
Deadletter topic name
Metadata map[string]string
Subscription metadata
Name Changes to this property will trigger replacement. string
Name of the Dapr subscription.
PubsubName string
Dapr PubSub component name
Routes DaprSubscriptionRoutesArgs
Subscription routes
Scopes []string
Application scopes to restrict the subscription to specific apps.
Topic string
Topic name
environmentName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Managed Environment.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
bulkSubscribe DaprSubscriptionBulkSubscribeOptions
Bulk subscription options
deadLetterTopic String
Deadletter topic name
metadata Map<String,String>
Subscription metadata
name Changes to this property will trigger replacement. String
Name of the Dapr subscription.
pubsubName String
Dapr PubSub component name
routes DaprSubscriptionRoutes
Subscription routes
scopes List<String>
Application scopes to restrict the subscription to specific apps.
topic String
Topic name
environmentName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Managed Environment.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
bulkSubscribe DaprSubscriptionBulkSubscribeOptions
Bulk subscription options
deadLetterTopic string
Deadletter topic name
metadata {[key: string]: string}
Subscription metadata
name Changes to this property will trigger replacement. string
Name of the Dapr subscription.
pubsubName string
Dapr PubSub component name
routes DaprSubscriptionRoutes
Subscription routes
scopes string[]
Application scopes to restrict the subscription to specific apps.
topic string
Topic name
environment_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Managed Environment.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
bulk_subscribe DaprSubscriptionBulkSubscribeOptionsArgs
Bulk subscription options
dead_letter_topic str
Deadletter topic name
metadata Mapping[str, str]
Subscription metadata
name Changes to this property will trigger replacement. str
Name of the Dapr subscription.
pubsub_name str
Dapr PubSub component name
routes DaprSubscriptionRoutesArgs
Subscription routes
scopes Sequence[str]
Application scopes to restrict the subscription to specific apps.
topic str
Topic name
environmentName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Managed Environment.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
bulkSubscribe Property Map
Bulk subscription options
deadLetterTopic String
Deadletter topic name
metadata Map<String>
Subscription metadata
name Changes to this property will trigger replacement. String
Name of the Dapr subscription.
pubsubName String
Dapr PubSub component name
routes Property Map
Subscription routes
scopes List<String>
Application scopes to restrict the subscription to specific apps.
topic String
Topic name

Outputs

All input properties are implicitly available as output properties. Additionally, the DaprSubscription resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
SystemData Pulumi.AzureNative.App.Outputs.SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Id string
The provider-assigned unique ID for this managed resource.
SystemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id string
The provider-assigned unique ID for this managed resource.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id str
The provider-assigned unique ID for this managed resource.
system_data SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
systemData Property Map
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

DaprSubscriptionBulkSubscribeOptions
, DaprSubscriptionBulkSubscribeOptionsArgs

Enabled bool
Enable bulk subscription
MaxAwaitDurationMs int
Maximum duration in milliseconds to wait before a bulk message is sent to the app.
MaxMessagesCount int
Maximum number of messages to deliver in a bulk message.
Enabled bool
Enable bulk subscription
MaxAwaitDurationMs int
Maximum duration in milliseconds to wait before a bulk message is sent to the app.
MaxMessagesCount int
Maximum number of messages to deliver in a bulk message.
enabled Boolean
Enable bulk subscription
maxAwaitDurationMs Integer
Maximum duration in milliseconds to wait before a bulk message is sent to the app.
maxMessagesCount Integer
Maximum number of messages to deliver in a bulk message.
enabled boolean
Enable bulk subscription
maxAwaitDurationMs number
Maximum duration in milliseconds to wait before a bulk message is sent to the app.
maxMessagesCount number
Maximum number of messages to deliver in a bulk message.
enabled bool
Enable bulk subscription
max_await_duration_ms int
Maximum duration in milliseconds to wait before a bulk message is sent to the app.
max_messages_count int
Maximum number of messages to deliver in a bulk message.
enabled Boolean
Enable bulk subscription
maxAwaitDurationMs Number
Maximum duration in milliseconds to wait before a bulk message is sent to the app.
maxMessagesCount Number
Maximum number of messages to deliver in a bulk message.

DaprSubscriptionBulkSubscribeOptionsResponse
, DaprSubscriptionBulkSubscribeOptionsResponseArgs

Enabled bool
Enable bulk subscription
MaxAwaitDurationMs int
Maximum duration in milliseconds to wait before a bulk message is sent to the app.
MaxMessagesCount int
Maximum number of messages to deliver in a bulk message.
Enabled bool
Enable bulk subscription
MaxAwaitDurationMs int
Maximum duration in milliseconds to wait before a bulk message is sent to the app.
MaxMessagesCount int
Maximum number of messages to deliver in a bulk message.
enabled Boolean
Enable bulk subscription
maxAwaitDurationMs Integer
Maximum duration in milliseconds to wait before a bulk message is sent to the app.
maxMessagesCount Integer
Maximum number of messages to deliver in a bulk message.
enabled boolean
Enable bulk subscription
maxAwaitDurationMs number
Maximum duration in milliseconds to wait before a bulk message is sent to the app.
maxMessagesCount number
Maximum number of messages to deliver in a bulk message.
enabled bool
Enable bulk subscription
max_await_duration_ms int
Maximum duration in milliseconds to wait before a bulk message is sent to the app.
max_messages_count int
Maximum number of messages to deliver in a bulk message.
enabled Boolean
Enable bulk subscription
maxAwaitDurationMs Number
Maximum duration in milliseconds to wait before a bulk message is sent to the app.
maxMessagesCount Number
Maximum number of messages to deliver in a bulk message.

DaprSubscriptionRouteRule
, DaprSubscriptionRouteRuleArgs

Match string
The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
Path string
The path for events that match this rule
Match string
The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
Path string
The path for events that match this rule
match String
The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
path String
The path for events that match this rule
match string
The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
path string
The path for events that match this rule
match str
The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
path str
The path for events that match this rule
match String
The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
path String
The path for events that match this rule

DaprSubscriptionRouteRuleResponse
, DaprSubscriptionRouteRuleResponseArgs

Match string
The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
Path string
The path for events that match this rule
Match string
The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
Path string
The path for events that match this rule
match String
The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
path String
The path for events that match this rule
match string
The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
path string
The path for events that match this rule
match str
The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
path str
The path for events that match this rule
match String
The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.
path String
The path for events that match this rule

DaprSubscriptionRoutes
, DaprSubscriptionRoutesArgs

Default string
The default path to deliver events that do not match any of the rules.
Rules List<Pulumi.AzureNative.App.Inputs.DaprSubscriptionRouteRule>
The list of Dapr PubSub Event Subscription Route Rules.
Default string
The default path to deliver events that do not match any of the rules.
Rules []DaprSubscriptionRouteRule
The list of Dapr PubSub Event Subscription Route Rules.
default_ String
The default path to deliver events that do not match any of the rules.
rules List<DaprSubscriptionRouteRule>
The list of Dapr PubSub Event Subscription Route Rules.
default string
The default path to deliver events that do not match any of the rules.
rules DaprSubscriptionRouteRule[]
The list of Dapr PubSub Event Subscription Route Rules.
default str
The default path to deliver events that do not match any of the rules.
rules Sequence[DaprSubscriptionRouteRule]
The list of Dapr PubSub Event Subscription Route Rules.
default String
The default path to deliver events that do not match any of the rules.
rules List<Property Map>
The list of Dapr PubSub Event Subscription Route Rules.

DaprSubscriptionRoutesResponse
, DaprSubscriptionRoutesResponseArgs

Default string
The default path to deliver events that do not match any of the rules.
Rules List<Pulumi.AzureNative.App.Inputs.DaprSubscriptionRouteRuleResponse>
The list of Dapr PubSub Event Subscription Route Rules.
Default string
The default path to deliver events that do not match any of the rules.
Rules []DaprSubscriptionRouteRuleResponse
The list of Dapr PubSub Event Subscription Route Rules.
default_ String
The default path to deliver events that do not match any of the rules.
rules List<DaprSubscriptionRouteRuleResponse>
The list of Dapr PubSub Event Subscription Route Rules.
default string
The default path to deliver events that do not match any of the rules.
rules DaprSubscriptionRouteRuleResponse[]
The list of Dapr PubSub Event Subscription Route Rules.
default str
The default path to deliver events that do not match any of the rules.
rules Sequence[DaprSubscriptionRouteRuleResponse]
The list of Dapr PubSub Event Subscription Route Rules.
default String
The default path to deliver events that do not match any of the rules.
rules List<Property Map>
The list of Dapr PubSub Event Subscription Route Rules.

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:app:DaprSubscription mysubscription /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprSubscriptions/{name} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0