Azure Classic

Pulumi Official
Package maintained by Pulumi
v5.15.0 published on Wednesday, Aug 17, 2022 by Pulumi

IntegrationAccountAssembly

Manages a Logic App Integration Account Assembly.

Example Usage

using System;
using System.Collections.Generic;
using System.IO;
using Pulumi;
using Azure = Pulumi.Azure;

	private static string ReadFileBase64(string path) {
		return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path)))
	}

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleIntegrationAccount = new Azure.LogicApps.IntegrationAccount("exampleIntegrationAccount", new()
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
        SkuName = "Basic",
    });

    var exampleIntegrationAccountAssembly = new Azure.LogicApps.IntegrationAccountAssembly("exampleIntegrationAccountAssembly", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        IntegrationAccountName = exampleIntegrationAccount.Name,
        AssemblyName = "TestAssembly",
        Content = ReadFileBase64("testdata/log4net.dll"),
    });

});
package main

import (
	"encoding/base64"
	"io/ioutil"

	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/logicapps"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func filebase64OrPanic(path string) pulumi.StringPtrInput {
	if fileData, err := ioutil.ReadFile(path); err == nil {
		return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:]))
	} else {
		panic(err.Error())
	}
}

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
		}
		exampleIntegrationAccount, err := logicapps.NewIntegrationAccount(ctx, "exampleIntegrationAccount", &logicapps.IntegrationAccountArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			SkuName:           pulumi.String("Basic"),
		})
		if err != nil {
			return err
		}
		_, err = logicapps.NewIntegrationAccountAssembly(ctx, "exampleIntegrationAccountAssembly", &logicapps.IntegrationAccountAssemblyArgs{
			ResourceGroupName:      exampleResourceGroup.Name,
			IntegrationAccountName: exampleIntegrationAccount.Name,
			AssemblyName:           pulumi.String("TestAssembly"),
			Content:                filebase64OrPanic("testdata/log4net.dll"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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.logicapps.IntegrationAccount;
import com.pulumi.azure.logicapps.IntegrationAccountArgs;
import com.pulumi.azure.logicapps.IntegrationAccountAssembly;
import com.pulumi.azure.logicapps.IntegrationAccountAssemblyArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleIntegrationAccount = new IntegrationAccount("exampleIntegrationAccount", IntegrationAccountArgs.builder()        
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .skuName("Basic")
            .build());

        var exampleIntegrationAccountAssembly = new IntegrationAccountAssembly("exampleIntegrationAccountAssembly", IntegrationAccountAssemblyArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .integrationAccountName(exampleIntegrationAccount.name())
            .assemblyName("TestAssembly")
            .content(Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get("testdata/log4net.dll"))))
            .build());

    }
}
import pulumi
import base64
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_integration_account = azure.logicapps.IntegrationAccount("exampleIntegrationAccount",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    sku_name="Basic")
example_integration_account_assembly = azure.logicapps.IntegrationAccountAssembly("exampleIntegrationAccountAssembly",
    resource_group_name=example_resource_group.name,
    integration_account_name=example_integration_account.name,
    assembly_name="TestAssembly",
    content=(lambda path: base64.b64encode(open(path).read().encode()).decode())("testdata/log4net.dll"))
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as fs from "fs";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleIntegrationAccount = new azure.logicapps.IntegrationAccount("exampleIntegrationAccount", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
    skuName: "Basic",
});
const exampleIntegrationAccountAssembly = new azure.logicapps.IntegrationAccountAssembly("exampleIntegrationAccountAssembly", {
    resourceGroupName: exampleResourceGroup.name,
    integrationAccountName: exampleIntegrationAccount.name,
    assemblyName: "TestAssembly",
    content: Buffer.from(fs.readFileSync("testdata/log4net.dll"), 'binary').toString('base64'),
});

Coming soon!

Create a IntegrationAccountAssembly Resource

new IntegrationAccountAssembly(name: string, args: IntegrationAccountAssemblyArgs, opts?: CustomResourceOptions);
@overload
def IntegrationAccountAssembly(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               assembly_name: Optional[str] = None,
                               assembly_version: Optional[str] = None,
                               content: Optional[str] = None,
                               content_link_uri: Optional[str] = None,
                               integration_account_name: Optional[str] = None,
                               metadata: Optional[Mapping[str, str]] = None,
                               name: Optional[str] = None,
                               resource_group_name: Optional[str] = None)
@overload
def IntegrationAccountAssembly(resource_name: str,
                               args: IntegrationAccountAssemblyArgs,
                               opts: Optional[ResourceOptions] = None)
func NewIntegrationAccountAssembly(ctx *Context, name string, args IntegrationAccountAssemblyArgs, opts ...ResourceOption) (*IntegrationAccountAssembly, error)
public IntegrationAccountAssembly(string name, IntegrationAccountAssemblyArgs args, CustomResourceOptions? opts = null)
public IntegrationAccountAssembly(String name, IntegrationAccountAssemblyArgs args)
public IntegrationAccountAssembly(String name, IntegrationAccountAssemblyArgs args, CustomResourceOptions options)
type: azure:logicapps:IntegrationAccountAssembly
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args IntegrationAccountAssemblyArgs
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 IntegrationAccountAssemblyArgs
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 IntegrationAccountAssemblyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args IntegrationAccountAssemblyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args IntegrationAccountAssemblyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

AssemblyName string

The name of the Logic App Integration Account Assembly.

IntegrationAccountName string

The name of the Logic App Integration Account. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created.

AssemblyVersion string

The version of the Logic App Integration Account Assembly. Defaults to 0.0.0.0.

Content string

The content of the Logic App Integration Account Assembly.

ContentLinkUri string

The content link URI of the Logic App Integration Account Assembly.

Metadata Dictionary<string, string>

The metadata of the Logic App Integration Account Assembly.

Name string

The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created.

AssemblyName string

The name of the Logic App Integration Account Assembly.

IntegrationAccountName string

The name of the Logic App Integration Account. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created.

AssemblyVersion string

The version of the Logic App Integration Account Assembly. Defaults to 0.0.0.0.

Content string

The content of the Logic App Integration Account Assembly.

ContentLinkUri string

The content link URI of the Logic App Integration Account Assembly.

Metadata map[string]string

The metadata of the Logic App Integration Account Assembly.

Name string

The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created.

assemblyName String

The name of the Logic App Integration Account Assembly.

integrationAccountName String

The name of the Logic App Integration Account. Changing this forces a new resource to be created.

resourceGroupName String

The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created.

assemblyVersion String

The version of the Logic App Integration Account Assembly. Defaults to 0.0.0.0.

content String

The content of the Logic App Integration Account Assembly.

contentLinkUri String

The content link URI of the Logic App Integration Account Assembly.

metadata Map<String,String>

The metadata of the Logic App Integration Account Assembly.

name String

The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created.

assemblyName string

The name of the Logic App Integration Account Assembly.

integrationAccountName string

The name of the Logic App Integration Account. Changing this forces a new resource to be created.

resourceGroupName string

The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created.

assemblyVersion string

The version of the Logic App Integration Account Assembly. Defaults to 0.0.0.0.

content string

The content of the Logic App Integration Account Assembly.

contentLinkUri string

The content link URI of the Logic App Integration Account Assembly.

metadata {[key: string]: string}

The metadata of the Logic App Integration Account Assembly.

name string

The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created.

assembly_name str

The name of the Logic App Integration Account Assembly.

integration_account_name str

The name of the Logic App Integration Account. Changing this forces a new resource to be created.

resource_group_name str

The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created.

assembly_version str

The version of the Logic App Integration Account Assembly. Defaults to 0.0.0.0.

content str

The content of the Logic App Integration Account Assembly.

content_link_uri str

The content link URI of the Logic App Integration Account Assembly.

metadata Mapping[str, str]

The metadata of the Logic App Integration Account Assembly.

name str

The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created.

assemblyName String

The name of the Logic App Integration Account Assembly.

integrationAccountName String

The name of the Logic App Integration Account. Changing this forces a new resource to be created.

resourceGroupName String

The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created.

assemblyVersion String

The version of the Logic App Integration Account Assembly. Defaults to 0.0.0.0.

content String

The content of the Logic App Integration Account Assembly.

contentLinkUri String

The content link URI of the Logic App Integration Account Assembly.

metadata Map<String>

The metadata of the Logic App Integration Account Assembly.

name String

The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created.

Outputs

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

Get an existing IntegrationAccountAssembly 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?: IntegrationAccountAssemblyState, opts?: CustomResourceOptions): IntegrationAccountAssembly
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        assembly_name: Optional[str] = None,
        assembly_version: Optional[str] = None,
        content: Optional[str] = None,
        content_link_uri: Optional[str] = None,
        integration_account_name: Optional[str] = None,
        metadata: Optional[Mapping[str, str]] = None,
        name: Optional[str] = None,
        resource_group_name: Optional[str] = None) -> IntegrationAccountAssembly
func GetIntegrationAccountAssembly(ctx *Context, name string, id IDInput, state *IntegrationAccountAssemblyState, opts ...ResourceOption) (*IntegrationAccountAssembly, error)
public static IntegrationAccountAssembly Get(string name, Input<string> id, IntegrationAccountAssemblyState? state, CustomResourceOptions? opts = null)
public static IntegrationAccountAssembly get(String name, Output<String> id, IntegrationAccountAssemblyState 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.
The following state arguments are supported:
AssemblyName string

The name of the Logic App Integration Account Assembly.

AssemblyVersion string

The version of the Logic App Integration Account Assembly. Defaults to 0.0.0.0.

Content string

The content of the Logic App Integration Account Assembly.

ContentLinkUri string

The content link URI of the Logic App Integration Account Assembly.

IntegrationAccountName string

The name of the Logic App Integration Account. Changing this forces a new resource to be created.

Metadata Dictionary<string, string>

The metadata of the Logic App Integration Account Assembly.

Name string

The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created.

AssemblyName string

The name of the Logic App Integration Account Assembly.

AssemblyVersion string

The version of the Logic App Integration Account Assembly. Defaults to 0.0.0.0.

Content string

The content of the Logic App Integration Account Assembly.

ContentLinkUri string

The content link URI of the Logic App Integration Account Assembly.

IntegrationAccountName string

The name of the Logic App Integration Account. Changing this forces a new resource to be created.

Metadata map[string]string

The metadata of the Logic App Integration Account Assembly.

Name string

The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created.

assemblyName String

The name of the Logic App Integration Account Assembly.

assemblyVersion String

The version of the Logic App Integration Account Assembly. Defaults to 0.0.0.0.

content String

The content of the Logic App Integration Account Assembly.

contentLinkUri String

The content link URI of the Logic App Integration Account Assembly.

integrationAccountName String

The name of the Logic App Integration Account. Changing this forces a new resource to be created.

metadata Map<String,String>

The metadata of the Logic App Integration Account Assembly.

name String

The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created.

resourceGroupName String

The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created.

assemblyName string

The name of the Logic App Integration Account Assembly.

assemblyVersion string

The version of the Logic App Integration Account Assembly. Defaults to 0.0.0.0.

content string

The content of the Logic App Integration Account Assembly.

contentLinkUri string

The content link URI of the Logic App Integration Account Assembly.

integrationAccountName string

The name of the Logic App Integration Account. Changing this forces a new resource to be created.

metadata {[key: string]: string}

The metadata of the Logic App Integration Account Assembly.

name string

The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created.

resourceGroupName string

The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created.

assembly_name str

The name of the Logic App Integration Account Assembly.

assembly_version str

The version of the Logic App Integration Account Assembly. Defaults to 0.0.0.0.

content str

The content of the Logic App Integration Account Assembly.

content_link_uri str

The content link URI of the Logic App Integration Account Assembly.

integration_account_name str

The name of the Logic App Integration Account. Changing this forces a new resource to be created.

metadata Mapping[str, str]

The metadata of the Logic App Integration Account Assembly.

name str

The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created.

resource_group_name str

The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created.

assemblyName String

The name of the Logic App Integration Account Assembly.

assemblyVersion String

The version of the Logic App Integration Account Assembly. Defaults to 0.0.0.0.

content String

The content of the Logic App Integration Account Assembly.

contentLinkUri String

The content link URI of the Logic App Integration Account Assembly.

integrationAccountName String

The name of the Logic App Integration Account. Changing this forces a new resource to be created.

metadata Map<String>

The metadata of the Logic App Integration Account Assembly.

name String

The name which should be used for this Logic App Integration Account Assembly Artifact. Changing this forces a new resource to be created.

resourceGroupName String

The name of the Resource Group where the Logic App Integration Account Assembly Artifact should exist. Changing this forces a new resource to be created.

Import

Logic App Integration Account Assemblies can be imported using the resource id, e.g.

 $ pulumi import azure:logicapps/integrationAccountAssembly:IntegrationAccountAssembly example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1/assemblies/assembly1

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.