1. Packages
  2. Azure Classic
  3. API Docs
  4. logicapps
  5. ActionCustom

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Manages a Custom Action within a Logic App Workflow

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
            {
                Location = "West Europe",
            });
            var exampleWorkflow = new Azure.LogicApps.Workflow("exampleWorkflow", new Azure.LogicApps.WorkflowArgs
            {
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
            });
            var exampleActionCustom = new Azure.LogicApps.ActionCustom("exampleActionCustom", new Azure.LogicApps.ActionCustomArgs
            {
                LogicAppId = exampleWorkflow.Id,
                Body = @"{
        ""description"": ""A variable to configure the auto expiration age in days. Configured in negative number. Default is -30 (30 days old)."",
        ""inputs"": {
            ""variables"": [
                {
                    ""name"": ""ExpirationAgeInDays"",
                    ""type"": ""Integer"",
                    ""value"": -30
                }
            ]
        },
        ""runAfter"": {},
        ""type"": ""InitializeVariable""
    }
    ",
            });
        }
    
    }
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/logicapps"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleWorkflow, err := logicapps.NewWorkflow(ctx, "exampleWorkflow", &logicapps.WorkflowArgs{
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = logicapps.NewActionCustom(ctx, "exampleActionCustom", &logicapps.ActionCustomArgs{
    			LogicAppId: exampleWorkflow.ID(),
    			Body:       pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v", "{\n", "    \"description\": \"A variable to configure the auto expiration age in days. Configured in negative number. Default is -30 (30 days old).\",\n", "    \"inputs\": {\n", "        \"variables\": [\n", "            {\n", "                \"name\": \"ExpirationAgeInDays\",\n", "                \"type\": \"Integer\",\n", "                \"value\": -30\n", "            }\n", "        ]\n", "    },\n", "    \"runAfter\": {},\n", "    \"type\": \"InitializeVariable\"\n", "}\n")),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleWorkflow = new azure.logicapps.Workflow("exampleWorkflow", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
    });
    const exampleActionCustom = new azure.logicapps.ActionCustom("exampleActionCustom", {
        logicAppId: exampleWorkflow.id,
        body: `{
        "description": "A variable to configure the auto expiration age in days. Configured in negative number. Default is -30 (30 days old).",
        "inputs": {
            "variables": [
                {
                    "name": "ExpirationAgeInDays",
                    "type": "Integer",
                    "value": -30
                }
            ]
        },
        "runAfter": {},
        "type": "InitializeVariable"
    }
    `,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_workflow = azure.logicapps.Workflow("exampleWorkflow",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name)
    example_action_custom = azure.logicapps.ActionCustom("exampleActionCustom",
        logic_app_id=example_workflow.id,
        body="""{
        "description": "A variable to configure the auto expiration age in days. Configured in negative number. Default is -30 (30 days old).",
        "inputs": {
            "variables": [
                {
                    "name": "ExpirationAgeInDays",
                    "type": "Integer",
                    "value": -30
                }
            ]
        },
        "runAfter": {},
        "type": "InitializeVariable"
    }
    """)
    

    Example coming soon!

    Create ActionCustom Resource

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

    Constructor syntax

    new ActionCustom(name: string, args: ActionCustomArgs, opts?: CustomResourceOptions);
    @overload
    def ActionCustom(resource_name: str,
                     args: ActionCustomArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ActionCustom(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     body: Optional[str] = None,
                     logic_app_id: Optional[str] = None,
                     name: Optional[str] = None)
    func NewActionCustom(ctx *Context, name string, args ActionCustomArgs, opts ...ResourceOption) (*ActionCustom, error)
    public ActionCustom(string name, ActionCustomArgs args, CustomResourceOptions? opts = null)
    public ActionCustom(String name, ActionCustomArgs args)
    public ActionCustom(String name, ActionCustomArgs args, CustomResourceOptions options)
    
    type: azure:logicapps:ActionCustom
    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 ActionCustomArgs
    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 ActionCustomArgs
    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 ActionCustomArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ActionCustomArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ActionCustomArgs
    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 actionCustomResource = new Azure.LogicApps.ActionCustom("actionCustomResource", new()
    {
        Body = "string",
        LogicAppId = "string",
        Name = "string",
    });
    
    example, err := logicapps.NewActionCustom(ctx, "actionCustomResource", &logicapps.ActionCustomArgs{
    	Body:       pulumi.String("string"),
    	LogicAppId: pulumi.String("string"),
    	Name:       pulumi.String("string"),
    })
    
    var actionCustomResource = new ActionCustom("actionCustomResource", ActionCustomArgs.builder()
        .body("string")
        .logicAppId("string")
        .name("string")
        .build());
    
    action_custom_resource = azure.logicapps.ActionCustom("actionCustomResource",
        body="string",
        logic_app_id="string",
        name="string")
    
    const actionCustomResource = new azure.logicapps.ActionCustom("actionCustomResource", {
        body: "string",
        logicAppId: "string",
        name: "string",
    });
    
    type: azure:logicapps:ActionCustom
    properties:
        body: string
        logicAppId: string
        name: string
    

    ActionCustom 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 ActionCustom resource accepts the following input properties:

    Body string
    Specifies the JSON Blob defining the Body of this Custom Action.
    LogicAppId string
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.
    Body string
    Specifies the JSON Blob defining the Body of this Custom Action.
    LogicAppId string
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.
    body String
    Specifies the JSON Blob defining the Body of this Custom Action.
    logicAppId String
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name String
    Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.
    body string
    Specifies the JSON Blob defining the Body of this Custom Action.
    logicAppId string
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name string
    Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.
    body str
    Specifies the JSON Blob defining the Body of this Custom Action.
    logic_app_id str
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name str
    Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.
    body String
    Specifies the JSON Blob defining the Body of this Custom Action.
    logicAppId String
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name String
    Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ActionCustom 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 ActionCustom Resource

    Get an existing ActionCustom 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?: ActionCustomState, opts?: CustomResourceOptions): ActionCustom
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            body: Optional[str] = None,
            logic_app_id: Optional[str] = None,
            name: Optional[str] = None) -> ActionCustom
    func GetActionCustom(ctx *Context, name string, id IDInput, state *ActionCustomState, opts ...ResourceOption) (*ActionCustom, error)
    public static ActionCustom Get(string name, Input<string> id, ActionCustomState? state, CustomResourceOptions? opts = null)
    public static ActionCustom get(String name, Output<String> id, ActionCustomState state, CustomResourceOptions options)
    resources:  _:    type: azure:logicapps:ActionCustom    get:      id: ${id}
    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.
    The following state arguments are supported:
    Body string
    Specifies the JSON Blob defining the Body of this Custom Action.
    LogicAppId string
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.
    Body string
    Specifies the JSON Blob defining the Body of this Custom Action.
    LogicAppId string
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.
    body String
    Specifies the JSON Blob defining the Body of this Custom Action.
    logicAppId String
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name String
    Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.
    body string
    Specifies the JSON Blob defining the Body of this Custom Action.
    logicAppId string
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name string
    Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.
    body str
    Specifies the JSON Blob defining the Body of this Custom Action.
    logic_app_id str
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name str
    Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.
    body String
    Specifies the JSON Blob defining the Body of this Custom Action.
    logicAppId String
    Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
    name String
    Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.

    Import

    Logic App Custom Actions can be imported using the resource id, e.g.

     $ pulumi import azure:logicapps/actionCustom:ActionCustom custom1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/actions/custom1
    

    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.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.