Channel
The EngagementFabric channel Uses Azure REST API version 2018-09-01-preview. In version 1.x of the Azure Native provider, it used API version 2018-09-01-preview.
Example Usage
ChannelsCreateOrUpdateExample
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var channel = new AzureNative.EngagementFabric.Channel("channel", new()
{
AccountName = "ExampleAccount",
ChannelFunctions = new[]
{
"MockFunction1",
"MockFunction2",
},
ChannelName = "ExampleChannel",
ChannelType = "MockChannel",
Credentials =
{
{ "AppId", "exampleApp" },
{ "AppKey", "exampleAppKey" },
},
ResourceGroupName = "ExampleRg",
});
});
Content copied to clipboard
package main
import (
engagementfabric "github.com/pulumi/pulumi-azure-native-sdk/engagementfabric/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := engagementfabric.NewChannel(ctx, "channel", &engagementfabric.ChannelArgs{
AccountName: pulumi.String("ExampleAccount"),
ChannelFunctions: pulumi.StringArray{
pulumi.String("MockFunction1"),
pulumi.String("MockFunction2"),
},
ChannelName: pulumi.String("ExampleChannel"),
ChannelType: pulumi.String("MockChannel"),
Credentials: pulumi.StringMap{
"AppId": pulumi.String("exampleApp"),
"AppKey": pulumi.String("exampleAppKey"),
},
ResourceGroupName: pulumi.String("ExampleRg"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.engagementfabric.Channel;
import com.pulumi.azurenative.engagementfabric.ChannelArgs;
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 channel = new Channel("channel", ChannelArgs.builder()
.accountName("ExampleAccount")
.channelFunctions(
"MockFunction1",
"MockFunction2")
.channelName("ExampleChannel")
.channelType("MockChannel")
.credentials(Map.ofEntries(
Map.entry("AppId", "exampleApp"),
Map.entry("AppKey", "exampleAppKey")
))
.resourceGroupName("ExampleRg")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:engagementfabric:Channel ExampleChannel /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EngagementFabric/Accounts/{accountName}/Channels/{channelName}
Content copied to clipboard