We recommend using Azure Native.
azure.logicapps.IntegrationAccountSession
Explore with Pulumi AI
Manages a Logic App Integration Account Session.
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 exampleIntegrationAccount = new azure.logicapps.IntegrationAccount("example", {
name: "example-ia",
location: example.location,
resourceGroupName: example.name,
skuName: "Basic",
});
const exampleIntegrationAccountSession = new azure.logicapps.IntegrationAccountSession("example", {
name: "example-ias",
resourceGroupName: example.name,
integrationAccountName: exampleIntegrationAccount.name,
content: ` {
"controlNumber": "1234"
}
`,
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_integration_account = azure.logicapps.IntegrationAccount("example",
name="example-ia",
location=example.location,
resource_group_name=example.name,
sku_name="Basic")
example_integration_account_session = azure.logicapps.IntegrationAccountSession("example",
name="example-ias",
resource_group_name=example.name,
integration_account_name=example_integration_account.name,
content=""" {
"controlNumber": "1234"
}
""")
package main
import (
"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 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
}
exampleIntegrationAccount, err := logicapps.NewIntegrationAccount(ctx, "example", &logicapps.IntegrationAccountArgs{
Name: pulumi.String("example-ia"),
Location: example.Location,
ResourceGroupName: example.Name,
SkuName: pulumi.String("Basic"),
})
if err != nil {
return err
}
_, err = logicapps.NewIntegrationAccountSession(ctx, "example", &logicapps.IntegrationAccountSessionArgs{
Name: pulumi.String("example-ias"),
ResourceGroupName: example.Name,
IntegrationAccountName: exampleIntegrationAccount.Name,
Content: pulumi.String(" {\n \"controlNumber\": \"1234\"\n }\n"),
})
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 exampleIntegrationAccount = new Azure.LogicApps.IntegrationAccount("example", new()
{
Name = "example-ia",
Location = example.Location,
ResourceGroupName = example.Name,
SkuName = "Basic",
});
var exampleIntegrationAccountSession = new Azure.LogicApps.IntegrationAccountSession("example", new()
{
Name = "example-ias",
ResourceGroupName = example.Name,
IntegrationAccountName = exampleIntegrationAccount.Name,
Content = @" {
""controlNumber"": ""1234""
}
",
});
});
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.IntegrationAccountSession;
import com.pulumi.azure.logicapps.IntegrationAccountSessionArgs;
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 exampleIntegrationAccount = new IntegrationAccount("exampleIntegrationAccount", IntegrationAccountArgs.builder()
.name("example-ia")
.location(example.location())
.resourceGroupName(example.name())
.skuName("Basic")
.build());
var exampleIntegrationAccountSession = new IntegrationAccountSession("exampleIntegrationAccountSession", IntegrationAccountSessionArgs.builder()
.name("example-ias")
.resourceGroupName(example.name())
.integrationAccountName(exampleIntegrationAccount.name())
.content("""
{
"controlNumber": "1234"
}
""")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleIntegrationAccount:
type: azure:logicapps:IntegrationAccount
name: example
properties:
name: example-ia
location: ${example.location}
resourceGroupName: ${example.name}
skuName: Basic
exampleIntegrationAccountSession:
type: azure:logicapps:IntegrationAccountSession
name: example
properties:
name: example-ias
resourceGroupName: ${example.name}
integrationAccountName: ${exampleIntegrationAccount.name}
content: |2
{
"controlNumber": "1234"
}
Create IntegrationAccountSession Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IntegrationAccountSession(name: string, args: IntegrationAccountSessionArgs, opts?: CustomResourceOptions);
@overload
def IntegrationAccountSession(resource_name: str,
args: IntegrationAccountSessionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IntegrationAccountSession(resource_name: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
integration_account_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
name: Optional[str] = None)
func NewIntegrationAccountSession(ctx *Context, name string, args IntegrationAccountSessionArgs, opts ...ResourceOption) (*IntegrationAccountSession, error)
public IntegrationAccountSession(string name, IntegrationAccountSessionArgs args, CustomResourceOptions? opts = null)
public IntegrationAccountSession(String name, IntegrationAccountSessionArgs args)
public IntegrationAccountSession(String name, IntegrationAccountSessionArgs args, CustomResourceOptions options)
type: azure:logicapps:IntegrationAccountSession
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 IntegrationAccountSessionArgs
- 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 IntegrationAccountSessionArgs
- 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 IntegrationAccountSessionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IntegrationAccountSessionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IntegrationAccountSessionArgs
- 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 integrationAccountSessionResource = new Azure.LogicApps.IntegrationAccountSession("integrationAccountSessionResource", new()
{
Content = "string",
IntegrationAccountName = "string",
ResourceGroupName = "string",
Name = "string",
});
example, err := logicapps.NewIntegrationAccountSession(ctx, "integrationAccountSessionResource", &logicapps.IntegrationAccountSessionArgs{
Content: pulumi.String("string"),
IntegrationAccountName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Name: pulumi.String("string"),
})
var integrationAccountSessionResource = new IntegrationAccountSession("integrationAccountSessionResource", IntegrationAccountSessionArgs.builder()
.content("string")
.integrationAccountName("string")
.resourceGroupName("string")
.name("string")
.build());
integration_account_session_resource = azure.logicapps.IntegrationAccountSession("integrationAccountSessionResource",
content="string",
integration_account_name="string",
resource_group_name="string",
name="string")
const integrationAccountSessionResource = new azure.logicapps.IntegrationAccountSession("integrationAccountSessionResource", {
content: "string",
integrationAccountName: "string",
resourceGroupName: "string",
name: "string",
});
type: azure:logicapps:IntegrationAccountSession
properties:
content: string
integrationAccountName: string
name: string
resourceGroupName: string
IntegrationAccountSession 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 IntegrationAccountSession resource accepts the following input properties:
- Content string
- The content of the Logic App Integration Account Session.
- Integration
Account stringName - The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created.
- Resource
Group stringName - The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created.
- Name string
- The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created.
- Content string
- The content of the Logic App Integration Account Session.
- Integration
Account stringName - The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created.
- Resource
Group stringName - The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created.
- Name string
- The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created.
- content String
- The content of the Logic App Integration Account Session.
- integration
Account StringName - The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created.
- resource
Group StringName - The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created.
- name String
- The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created.
- content string
- The content of the Logic App Integration Account Session.
- integration
Account stringName - The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created.
- resource
Group stringName - The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created.
- name string
- The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created.
- content str
- The content of the Logic App Integration Account Session.
- integration_
account_ strname - The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created.
- resource_
group_ strname - The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created.
- name str
- The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created.
- content String
- The content of the Logic App Integration Account Session.
- integration
Account StringName - The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created.
- resource
Group StringName - The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created.
- name String
- The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the IntegrationAccountSession 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 IntegrationAccountSession Resource
Get an existing IntegrationAccountSession 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?: IntegrationAccountSessionState, opts?: CustomResourceOptions): IntegrationAccountSession
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
integration_account_name: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None) -> IntegrationAccountSession
func GetIntegrationAccountSession(ctx *Context, name string, id IDInput, state *IntegrationAccountSessionState, opts ...ResourceOption) (*IntegrationAccountSession, error)
public static IntegrationAccountSession Get(string name, Input<string> id, IntegrationAccountSessionState? state, CustomResourceOptions? opts = null)
public static IntegrationAccountSession get(String name, Output<String> id, IntegrationAccountSessionState 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.
- Content string
- The content of the Logic App Integration Account Session.
- Integration
Account stringName - The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created.
- Name string
- The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created.
- Resource
Group stringName - The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created.
- Content string
- The content of the Logic App Integration Account Session.
- Integration
Account stringName - The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created.
- Name string
- The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created.
- Resource
Group stringName - The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created.
- content String
- The content of the Logic App Integration Account Session.
- integration
Account StringName - The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created.
- name String
- The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created.
- resource
Group StringName - The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created.
- content string
- The content of the Logic App Integration Account Session.
- integration
Account stringName - The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created.
- name string
- The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created.
- resource
Group stringName - The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created.
- content str
- The content of the Logic App Integration Account Session.
- integration_
account_ strname - The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created.
- name str
- The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created.
- resource_
group_ strname - The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created.
- content String
- The content of the Logic App Integration Account Session.
- integration
Account StringName - The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created.
- name String
- The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created.
- resource
Group StringName - The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created.
Import
Logic App Integration Account Sessions can be imported using the resource id
, e.g.
$ pulumi import azure:logicapps/integrationAccountSession:IntegrationAccountSession example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1/sessions/session1
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.