We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.dashboard.getGrafana
Explore with Pulumi AI
Use this data source to access information about an existing Grafana Dashboard.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.dashboard.getGrafana({
    name: "example-grafana-dashboard",
    resourceGroupName: "example-rg",
});
export const name = example.then(example => example.name);
import pulumi
import pulumi_azure as azure
example = azure.dashboard.get_grafana(name="example-grafana-dashboard",
    resource_group_name="example-rg")
pulumi.export("name", example.name)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/dashboard"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := dashboard.LookupGrafana(ctx, &dashboard.LookupGrafanaArgs{
			Name:              "example-grafana-dashboard",
			ResourceGroupName: "example-rg",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("name", example.Name)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = Azure.Dashboard.GetGrafana.Invoke(new()
    {
        Name = "example-grafana-dashboard",
        ResourceGroupName = "example-rg",
    });
    return new Dictionary<string, object?>
    {
        ["name"] = example.Apply(getGrafanaResult => getGrafanaResult.Name),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.dashboard.DashboardFunctions;
import com.pulumi.azure.dashboard.inputs.GetGrafanaArgs;
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) {
        final var example = DashboardFunctions.getGrafana(GetGrafanaArgs.builder()
            .name("example-grafana-dashboard")
            .resourceGroupName("example-rg")
            .build());
        ctx.export("name", example.applyValue(getGrafanaResult -> getGrafanaResult.name()));
    }
}
variables:
  example:
    fn::invoke:
      function: azure:dashboard:getGrafana
      arguments:
        name: example-grafana-dashboard
        resourceGroupName: example-rg
outputs:
  name: ${example.name}
Using getGrafana
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getGrafana(args: GetGrafanaArgs, opts?: InvokeOptions): Promise<GetGrafanaResult>
function getGrafanaOutput(args: GetGrafanaOutputArgs, opts?: InvokeOptions): Output<GetGrafanaResult>def get_grafana(identity: Optional[GetGrafanaIdentity] = None,
                name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetGrafanaResult
def get_grafana_output(identity: Optional[pulumi.Input[GetGrafanaIdentityArgs]] = None,
                name: Optional[pulumi.Input[str]] = None,
                resource_group_name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetGrafanaResult]func LookupGrafana(ctx *Context, args *LookupGrafanaArgs, opts ...InvokeOption) (*LookupGrafanaResult, error)
func LookupGrafanaOutput(ctx *Context, args *LookupGrafanaOutputArgs, opts ...InvokeOption) LookupGrafanaResultOutput> Note: This function is named LookupGrafana in the Go SDK.
public static class GetGrafana 
{
    public static Task<GetGrafanaResult> InvokeAsync(GetGrafanaArgs args, InvokeOptions? opts = null)
    public static Output<GetGrafanaResult> Invoke(GetGrafanaInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGrafanaResult> getGrafana(GetGrafanaArgs args, InvokeOptions options)
public static Output<GetGrafanaResult> getGrafana(GetGrafanaArgs args, InvokeOptions options)
fn::invoke:
  function: azure:dashboard/getGrafana:getGrafana
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- Name of the grafana dashboard.
- ResourceGroup stringName 
- Name of the resource group where resource belongs to.
- Identity
GetGrafana Identity 
- The managed identity of the grafana resource.
- Name string
- Name of the grafana dashboard.
- ResourceGroup stringName 
- Name of the resource group where resource belongs to.
- Identity
GetGrafana Identity 
- The managed identity of the grafana resource.
- name String
- Name of the grafana dashboard.
- resourceGroup StringName 
- Name of the resource group where resource belongs to.
- identity
GetGrafana Identity 
- The managed identity of the grafana resource.
- name string
- Name of the grafana dashboard.
- resourceGroup stringName 
- Name of the resource group where resource belongs to.
- identity
GetGrafana Identity 
- The managed identity of the grafana resource.
- name str
- Name of the grafana dashboard.
- resource_group_ strname 
- Name of the resource group where resource belongs to.
- identity
GetGrafana Identity 
- The managed identity of the grafana resource.
- name String
- Name of the grafana dashboard.
- resourceGroup StringName 
- Name of the resource group where resource belongs to.
- identity Property Map
- The managed identity of the grafana resource.
getGrafana Result
The following output properties are available:
- ApiKey boolEnabled 
- Whether the api key setting of the Grafana instance is enabled.
- AutoGenerated stringDomain Name Label Scope 
- Scope for dns deterministic name hash calculation.
- AzureMonitor List<GetWorkspace Integrations Grafana Azure Monitor Workspace Integration> 
- Integrations for Azure Monitor Workspace.
- DeterministicOutbound boolIp Enabled 
- Whether the Grafana instance uses deterministic outbound IPs.
- Endpoint string
- The endpoint of the Grafana instance.
- GrafanaMajor stringVersion 
- Major version of Grafana instance.
- string
- The full Grafana software semantic version deployed.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Azure location where the resource exists.
- Name string
- OutboundIps List<string>
- PublicNetwork boolAccess Enabled 
- Whether or not public endpoint access is allowed for this server.
- ResourceGroup stringName 
- Sku string
- The name of the SKU used for the Grafana instance.
- Dictionary<string, string>
- A mapping of tags to assigned to the resource.
- ZoneRedundancy boolEnabled 
- The zone redundancy setting of the Grafana instance.
- Identity
GetGrafana Identity 
- The managed identity of the grafana resource.
- ApiKey boolEnabled 
- Whether the api key setting of the Grafana instance is enabled.
- AutoGenerated stringDomain Name Label Scope 
- Scope for dns deterministic name hash calculation.
- AzureMonitor []GetWorkspace Integrations Grafana Azure Monitor Workspace Integration 
- Integrations for Azure Monitor Workspace.
- DeterministicOutbound boolIp Enabled 
- Whether the Grafana instance uses deterministic outbound IPs.
- Endpoint string
- The endpoint of the Grafana instance.
- GrafanaMajor stringVersion 
- Major version of Grafana instance.
- string
- The full Grafana software semantic version deployed.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Azure location where the resource exists.
- Name string
- OutboundIps []string
- PublicNetwork boolAccess Enabled 
- Whether or not public endpoint access is allowed for this server.
- ResourceGroup stringName 
- Sku string
- The name of the SKU used for the Grafana instance.
- map[string]string
- A mapping of tags to assigned to the resource.
- ZoneRedundancy boolEnabled 
- The zone redundancy setting of the Grafana instance.
- Identity
GetGrafana Identity 
- The managed identity of the grafana resource.
- apiKey BooleanEnabled 
- Whether the api key setting of the Grafana instance is enabled.
- autoGenerated StringDomain Name Label Scope 
- Scope for dns deterministic name hash calculation.
- azureMonitor List<GetWorkspace Integrations Grafana Azure Monitor Workspace Integration> 
- Integrations for Azure Monitor Workspace.
- deterministicOutbound BooleanIp Enabled 
- Whether the Grafana instance uses deterministic outbound IPs.
- endpoint String
- The endpoint of the Grafana instance.
- grafanaMajor StringVersion 
- Major version of Grafana instance.
- String
- The full Grafana software semantic version deployed.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- Azure location where the resource exists.
- name String
- outboundIps List<String>
- publicNetwork BooleanAccess Enabled 
- Whether or not public endpoint access is allowed for this server.
- resourceGroup StringName 
- sku String
- The name of the SKU used for the Grafana instance.
- Map<String,String>
- A mapping of tags to assigned to the resource.
- zoneRedundancy BooleanEnabled 
- The zone redundancy setting of the Grafana instance.
- identity
GetGrafana Identity 
- The managed identity of the grafana resource.
- apiKey booleanEnabled 
- Whether the api key setting of the Grafana instance is enabled.
- autoGenerated stringDomain Name Label Scope 
- Scope for dns deterministic name hash calculation.
- azureMonitor GetWorkspace Integrations Grafana Azure Monitor Workspace Integration[] 
- Integrations for Azure Monitor Workspace.
- deterministicOutbound booleanIp Enabled 
- Whether the Grafana instance uses deterministic outbound IPs.
- endpoint string
- The endpoint of the Grafana instance.
- grafanaMajor stringVersion 
- Major version of Grafana instance.
- string
- The full Grafana software semantic version deployed.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- Azure location where the resource exists.
- name string
- outboundIps string[]
- publicNetwork booleanAccess Enabled 
- Whether or not public endpoint access is allowed for this server.
- resourceGroup stringName 
- sku string
- The name of the SKU used for the Grafana instance.
- {[key: string]: string}
- A mapping of tags to assigned to the resource.
- zoneRedundancy booleanEnabled 
- The zone redundancy setting of the Grafana instance.
- identity
GetGrafana Identity 
- The managed identity of the grafana resource.
- api_key_ boolenabled 
- Whether the api key setting of the Grafana instance is enabled.
- auto_generated_ strdomain_ name_ label_ scope 
- Scope for dns deterministic name hash calculation.
- azure_monitor_ Sequence[Getworkspace_ integrations Grafana Azure Monitor Workspace Integration] 
- Integrations for Azure Monitor Workspace.
- deterministic_outbound_ boolip_ enabled 
- Whether the Grafana instance uses deterministic outbound IPs.
- endpoint str
- The endpoint of the Grafana instance.
- grafana_major_ strversion 
- Major version of Grafana instance.
- grafana_version str
- The full Grafana software semantic version deployed.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- Azure location where the resource exists.
- name str
- outbound_ips Sequence[str]
- public_network_ boolaccess_ enabled 
- Whether or not public endpoint access is allowed for this server.
- resource_group_ strname 
- sku str
- The name of the SKU used for the Grafana instance.
- Mapping[str, str]
- A mapping of tags to assigned to the resource.
- zone_redundancy_ boolenabled 
- The zone redundancy setting of the Grafana instance.
- identity
GetGrafana Identity 
- The managed identity of the grafana resource.
- apiKey BooleanEnabled 
- Whether the api key setting of the Grafana instance is enabled.
- autoGenerated StringDomain Name Label Scope 
- Scope for dns deterministic name hash calculation.
- azureMonitor List<Property Map>Workspace Integrations 
- Integrations for Azure Monitor Workspace.
- deterministicOutbound BooleanIp Enabled 
- Whether the Grafana instance uses deterministic outbound IPs.
- endpoint String
- The endpoint of the Grafana instance.
- grafanaMajor StringVersion 
- Major version of Grafana instance.
- String
- The full Grafana software semantic version deployed.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- Azure location where the resource exists.
- name String
- outboundIps List<String>
- publicNetwork BooleanAccess Enabled 
- Whether or not public endpoint access is allowed for this server.
- resourceGroup StringName 
- sku String
- The name of the SKU used for the Grafana instance.
- Map<String>
- A mapping of tags to assigned to the resource.
- zoneRedundancy BooleanEnabled 
- The zone redundancy setting of the Grafana instance.
- identity Property Map
- The managed identity of the grafana resource.
Supporting Types
GetGrafanaAzureMonitorWorkspaceIntegration     
- ResourceId string
- ResourceId string
- resourceId String
- resourceId string
- resource_id str
- resourceId String
GetGrafanaIdentity  
- PrincipalId string
- TenantId string
- Type string
- IdentityIds List<string>
- PrincipalId string
- TenantId string
- Type string
- IdentityIds []string
- principalId String
- tenantId String
- type String
- identityIds List<String>
- principalId string
- tenantId string
- type string
- identityIds string[]
- principal_id str
- tenant_id str
- type str
- identity_ids Sequence[str]
- principalId String
- tenantId String
- type String
- identityIds List<String>
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.