GrafanaArgs

data class GrafanaArgs(val identity: Output<ManagedServiceIdentityArgs>? = null, val location: Output<String>? = null, val properties: Output<ManagedGrafanaPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<ResourceSkuArgs>? = null, val tags: Output<Map<String, String>>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<GrafanaArgs>

The grafana resource type. API Version: 2022-05-01-preview.

Example Usage

Grafana_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var grafana = new AzureNative.Dashboard.Grafana("grafana", new()
{
Identity = new AzureNative.Dashboard.Inputs.ManagedServiceIdentityArgs
{
Type = "SystemAssigned",
},
Location = "West US",
Properties = new AzureNative.Dashboard.Inputs.ManagedGrafanaPropertiesArgs
{
ApiKey = "Enabled",
DeterministicOutboundIP = "Enabled",
PublicNetworkAccess = "Enabled",
ZoneRedundancy = "Enabled",
},
ResourceGroupName = "myResourceGroup",
Sku = new AzureNative.Dashboard.Inputs.ResourceSkuArgs
{
Name = "Standard",
},
Tags =
{
{ "Environment", "Dev" },
},
WorkspaceName = "myWorkspace",
});
});
package main
import (
dashboard "github.com/pulumi/pulumi-azure-native-sdk/dashboard"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dashboard.NewGrafana(ctx, "grafana", &dashboard.GrafanaArgs{
Identity: &dashboard.ManagedServiceIdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
Location: pulumi.String("West US"),
Properties: &dashboard.ManagedGrafanaPropertiesArgs{
ApiKey: pulumi.String("Enabled"),
DeterministicOutboundIP: pulumi.String("Enabled"),
PublicNetworkAccess: pulumi.String("Enabled"),
ZoneRedundancy: pulumi.String("Enabled"),
},
ResourceGroupName: pulumi.String("myResourceGroup"),
Sku: &dashboard.ResourceSkuArgs{
Name: pulumi.String("Standard"),
},
Tags: pulumi.StringMap{
"Environment": pulumi.String("Dev"),
},
WorkspaceName: pulumi.String("myWorkspace"),
})
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.dashboard.Grafana;
import com.pulumi.azurenative.dashboard.GrafanaArgs;
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 grafana = new Grafana("grafana", GrafanaArgs.builder()
.identity(Map.of("type", "SystemAssigned"))
.location("West US")
.properties(Map.ofEntries(
Map.entry("apiKey", "Enabled"),
Map.entry("deterministicOutboundIP", "Enabled"),
Map.entry("publicNetworkAccess", "Enabled"),
Map.entry("zoneRedundancy", "Enabled")
))
.resourceGroupName("myResourceGroup")
.sku(Map.of("name", "Standard"))
.tags(Map.of("Environment", "Dev"))
.workspaceName("myWorkspace")
.build());
}
}

Import

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

$ pulumi import azure-native:dashboard:Grafana myWorkspace /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/grafana/myWorkspace

Constructors

Link copied to clipboard
constructor(identity: Output<ManagedServiceIdentityArgs>? = null, location: Output<String>? = null, properties: Output<ManagedGrafanaPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, sku: Output<ResourceSkuArgs>? = null, tags: Output<Map<String, String>>? = null, workspaceName: Output<String>? = null)

Properties

Link copied to clipboard

The managed identity of the grafana resource.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the grafana resource lives

Link copied to clipboard

Properties specific to the grafana resource.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val sku: Output<ResourceSkuArgs>? = null

The Sku of the grafana resource.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

The tags for grafana resource.

Link copied to clipboard
val workspaceName: Output<String>? = null

The workspace name of Azure Managed Grafana.

Functions

Link copied to clipboard
open override fun toJava(): GrafanaArgs