WorkbookTemplate

class WorkbookTemplate : KotlinCustomResource

An Application Insights workbook template definition. API Version: 2019-10-17-preview.

Example Usage

WorkbookTemplateAdd

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workbookTemplate = new AzureNative.Insights.WorkbookTemplate("workbookTemplate", new()
{
Author = "Contoso",
Galleries = new[]
{
new AzureNative.Insights.Inputs.WorkbookTemplateGalleryArgs
{
Category = "Failures",
Name = "Simple Template",
Order = 100,
ResourceType = "microsoft.insights/components",
Type = "tsg",
},
},
Location = "west us",
Priority = 1,
ResourceGroupName = "my-resource-group",
ResourceName = "testtemplate2",
TemplateData = null,
});
});
package main
import (
insights "github.com/pulumi/pulumi-azure-native-sdk/insights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewWorkbookTemplate(ctx, "workbookTemplate", &insights.WorkbookTemplateArgs{
Author: pulumi.String("Contoso"),
Galleries: []insights.WorkbookTemplateGalleryArgs{
{
Category: pulumi.String("Failures"),
Name: pulumi.String("Simple Template"),
Order: pulumi.Int(100),
ResourceType: pulumi.String("microsoft.insights/components"),
Type: pulumi.String("tsg"),
},
},
Location: pulumi.String("west us"),
Priority: pulumi.Int(1),
ResourceGroupName: pulumi.String("my-resource-group"),
ResourceName: pulumi.String("testtemplate2"),
TemplateData: nil,
})
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.azurenative.insights.WorkbookTemplate;
import com.pulumi.azurenative.insights.WorkbookTemplateArgs;
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 workbookTemplate = new WorkbookTemplate("workbookTemplate", WorkbookTemplateArgs.builder()
.author("Contoso")
.galleries(Map.ofEntries(
Map.entry("category", "Failures"),
Map.entry("name", "Simple Template"),
Map.entry("order", 100),
Map.entry("resourceType", "microsoft.insights/components"),
Map.entry("type", "tsg")
))
.location("west us")
.priority(1)
.resourceGroupName("my-resource-group")
.resourceName("testtemplate2")
.templateData()
.build());
}
}

Import

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

$ pulumi import azure-native:insights:WorkbookTemplate testtemplate2 /subscriptions/50359d91-7b9d-4823-85af-eb298a61ba95/resourceGroups/testrg/providers/microsoft.insights/workbooktemplates/testtemplate2

Properties

Link copied to clipboard
val author: Output<String>?

Information about the author of the workbook template.

Link copied to clipboard

Workbook galleries supported by the template.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal.

Link copied to clipboard
val location: Output<String>

Resource location

Link copied to clipboard
val name: Output<String>

Azure resource name.

Link copied to clipboard
val priority: Output<Int>?

Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags

Link copied to clipboard
val templateData: Output<Any>

Valid JSON object containing workbook template payload.

Link copied to clipboard
val type: Output<String>

Azure resource type

Link copied to clipboard
val urn: Output<String>