GrafanaArgs

data class GrafanaArgs(val apiKeyEnabled: Output<Boolean>? = null, val autoGeneratedDomainNameLabelScope: Output<String>? = null, val azureMonitorWorkspaceIntegrations: Output<List<GrafanaAzureMonitorWorkspaceIntegrationArgs>>? = null, val deterministicOutboundIpEnabled: Output<Boolean>? = null, val grafanaMajorVersion: Output<String>? = null, val identity: Output<GrafanaIdentityArgs>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val publicNetworkAccessEnabled: Output<Boolean>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<String>? = null, val smtp: Output<GrafanaSmtpArgs>? = null, val tags: Output<Map<String, String>>? = null, val zoneRedundancyEnabled: Output<Boolean>? = null) : ConvertibleToJava<GrafanaArgs>

Manages a Dashboard Grafana.

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 exampleGrafana = new azure.dashboard.Grafana("example", {
name: "example-dg",
resourceGroupName: example.name,
location: "West Europe",
apiKeyEnabled: true,
deterministicOutboundIpEnabled: true,
publicNetworkAccessEnabled: false,
identity: {
type: "SystemAssigned",
},
tags: {
key: "value",
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_grafana = azure.dashboard.Grafana("example",
name="example-dg",
resource_group_name=example.name,
location="West Europe",
api_key_enabled=True,
deterministic_outbound_ip_enabled=True,
public_network_access_enabled=False,
identity={
"type": "SystemAssigned",
},
tags={
"key": "value",
})
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 exampleGrafana = new Azure.Dashboard.Grafana("example", new()
{
Name = "example-dg",
ResourceGroupName = example.Name,
Location = "West Europe",
ApiKeyEnabled = true,
DeterministicOutboundIpEnabled = true,
PublicNetworkAccessEnabled = false,
Identity = new Azure.Dashboard.Inputs.GrafanaIdentityArgs
{
Type = "SystemAssigned",
},
Tags =
{
{ "key", "value" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dashboard"
"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
}
_, err = dashboard.NewGrafana(ctx, "example", &dashboard.GrafanaArgs{
Name: pulumi.String("example-dg"),
ResourceGroupName: example.Name,
Location: pulumi.String("West Europe"),
ApiKeyEnabled: pulumi.Bool(true),
DeterministicOutboundIpEnabled: pulumi.Bool(true),
PublicNetworkAccessEnabled: pulumi.Bool(false),
Identity: &dashboard.GrafanaIdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
Tags: pulumi.StringMap{
"key": pulumi.String("value"),
},
})
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.dashboard.Grafana;
import com.pulumi.azure.dashboard.GrafanaArgs;
import com.pulumi.azure.dashboard.inputs.GrafanaIdentityArgs;
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 exampleGrafana = new Grafana("exampleGrafana", GrafanaArgs.builder()
.name("example-dg")
.resourceGroupName(example.name())
.location("West Europe")
.apiKeyEnabled(true)
.deterministicOutboundIpEnabled(true)
.publicNetworkAccessEnabled(false)
.identity(GrafanaIdentityArgs.builder()
.type("SystemAssigned")
.build())
.tags(Map.of("key", "value"))
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleGrafana:
type: azure:dashboard:Grafana
name: example
properties:
name: example-dg
resourceGroupName: ${example.name}
location: West Europe
apiKeyEnabled: true
deterministicOutboundIpEnabled: true
publicNetworkAccessEnabled: false
identity:
type: SystemAssigned
tags:
key: value

Import

Dashboard Grafana can be imported using the resource id, e.g.

$ pulumi import azure:dashboard/grafana:Grafana example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Dashboard/grafana/workspace1

Constructors

Link copied to clipboard
constructor(apiKeyEnabled: Output<Boolean>? = null, autoGeneratedDomainNameLabelScope: Output<String>? = null, azureMonitorWorkspaceIntegrations: Output<List<GrafanaAzureMonitorWorkspaceIntegrationArgs>>? = null, deterministicOutboundIpEnabled: Output<Boolean>? = null, grafanaMajorVersion: Output<String>? = null, identity: Output<GrafanaIdentityArgs>? = null, location: Output<String>? = null, name: Output<String>? = null, publicNetworkAccessEnabled: Output<Boolean>? = null, resourceGroupName: Output<String>? = null, sku: Output<String>? = null, smtp: Output<GrafanaSmtpArgs>? = null, tags: Output<Map<String, String>>? = null, zoneRedundancyEnabled: Output<Boolean>? = null)

Properties

Link copied to clipboard
val apiKeyEnabled: Output<Boolean>? = null

Whether to enable the api key setting of the Grafana instance. Defaults to false.

Link copied to clipboard

Scope for dns deterministic name hash calculation. The only possible value is TenantReuse. Defaults to TenantReuse.

Link copied to clipboard

A azure_monitor_workspace_integrations block as defined below.

Link copied to clipboard

Whether to enable the Grafana instance to use deterministic outbound IPs. Defaults to false.

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

Which major version of Grafana to deploy. Defaults to 9. Possible values are 9, 10. Changing this forces a new resource to be created.

Link copied to clipboard
val identity: Output<GrafanaIdentityArgs>? = null

An identity block as defined below. Changing this forces a new Dashboard Grafana to be created.

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

Specifies the Azure Region where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.

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

Specifies the name which should be used for this Dashboard Grafana. Changing this forces a new Dashboard Grafana to be created.

Link copied to clipboard
val publicNetworkAccessEnabled: Output<Boolean>? = null

Whether to enable traffic over the public interface. Defaults to true.

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

Specifies the name of the Resource Group where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.

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

The name of the SKU used for the Grafana instance. Possible values are Standard and Essential. Defaults to Standard. Changing this forces a new Dashboard Grafana to be created.

Link copied to clipboard
val smtp: Output<GrafanaSmtpArgs>? = null

A smtp block as defined below.

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

A mapping of tags which should be assigned to the Dashboard Grafana.

Link copied to clipboard
val zoneRedundancyEnabled: Output<Boolean>? = null

Whether to enable the zone redundancy setting of the Grafana instance. Defaults to false. Changing this forces a new Dashboard Grafana to be created.

Functions

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