We recommend using Azure Native.
Azure v6.28.0 published on Friday, Oct 3, 2025 by Pulumi
azure.dashboard.getGrafana
Start a Neo task
Explain and create an azure.dashboard.getGrafana resource
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.name());
}
}
variables:
example:
fn::invoke:
function: azure:dashboard:getGrafana
arguments:
name: example-grafana-dashboard
resourceGroupName: example-rg
outputs:
name: ${example.name}
API Providers
This data source uses the following Azure API Providers:
Microsoft.Dashboard- 2023-09-01
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.
- Resource
Group stringName - Name of the resource group where resource belongs to.
- Identity
Get
Grafana Identity - The managed identity of the grafana resource.
- Name string
- Name of the grafana dashboard.
- Resource
Group stringName - Name of the resource group where resource belongs to.
- Identity
Get
Grafana Identity - The managed identity of the grafana resource.
- name String
- Name of the grafana dashboard.
- resource
Group StringName - Name of the resource group where resource belongs to.
- identity
Get
Grafana Identity - The managed identity of the grafana resource.
- name string
- Name of the grafana dashboard.
- resource
Group stringName - Name of the resource group where resource belongs to.
- identity
Get
Grafana 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
Get
Grafana Identity - The managed identity of the grafana resource.
- name String
- Name of the grafana dashboard.
- resource
Group 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:
- Api
Key boolEnabled - Whether the api key setting of the Grafana instance is enabled.
- Auto
Generated stringDomain Name Label Scope - Scope for dns deterministic name hash calculation.
- Azure
Monitor List<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 string
- The endpoint of the Grafana instance.
- Grafana
Major 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
- Outbound
Ips List<string> - Public
Network boolAccess Enabled - Whether or not public endpoint access is allowed for this server.
- Resource
Group 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.
- Zone
Redundancy boolEnabled - The zone redundancy setting of the Grafana instance.
- Identity
Get
Grafana Identity - The managed identity of the grafana resource.
- Api
Key boolEnabled - Whether the api key setting of the Grafana instance is enabled.
- Auto
Generated stringDomain Name Label Scope - Scope for dns deterministic name hash calculation.
- Azure
Monitor []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 string
- The endpoint of the Grafana instance.
- Grafana
Major 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
- Outbound
Ips []string - Public
Network boolAccess Enabled - Whether or not public endpoint access is allowed for this server.
- Resource
Group 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.
- Zone
Redundancy boolEnabled - The zone redundancy setting of the Grafana instance.
- Identity
Get
Grafana Identity - The managed identity of the grafana resource.
- api
Key BooleanEnabled - Whether the api key setting of the Grafana instance is enabled.
- auto
Generated StringDomain Name Label Scope - Scope for dns deterministic name hash calculation.
- azure
Monitor List<GetWorkspace Integrations Grafana Azure Monitor Workspace Integration> - Integrations for Azure Monitor Workspace.
- deterministic
Outbound BooleanIp Enabled - Whether the Grafana instance uses deterministic outbound IPs.
- endpoint String
- The endpoint of the Grafana instance.
- grafana
Major 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
- outbound
Ips List<String> - public
Network BooleanAccess Enabled - Whether or not public endpoint access is allowed for this server.
- resource
Group 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.
- zone
Redundancy BooleanEnabled - The zone redundancy setting of the Grafana instance.
- identity
Get
Grafana Identity - The managed identity of the grafana resource.
- api
Key booleanEnabled - Whether the api key setting of the Grafana instance is enabled.
- auto
Generated stringDomain Name Label Scope - Scope for dns deterministic name hash calculation.
- azure
Monitor GetWorkspace Integrations Grafana Azure Monitor Workspace Integration[] - Integrations for Azure Monitor Workspace.
- deterministic
Outbound booleanIp Enabled - Whether the Grafana instance uses deterministic outbound IPs.
- endpoint string
- The endpoint of the Grafana instance.
- grafana
Major 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
- outbound
Ips string[] - public
Network booleanAccess Enabled - Whether or not public endpoint access is allowed for this server.
- resource
Group 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.
- zone
Redundancy booleanEnabled - The zone redundancy setting of the Grafana instance.
- identity
Get
Grafana 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
Get
Grafana Identity - The managed identity of the grafana resource.
- api
Key BooleanEnabled - Whether the api key setting of the Grafana instance is enabled.
- auto
Generated StringDomain Name Label Scope - Scope for dns deterministic name hash calculation.
- azure
Monitor List<Property Map>Workspace Integrations - Integrations for Azure Monitor Workspace.
- deterministic
Outbound BooleanIp Enabled - Whether the Grafana instance uses deterministic outbound IPs.
- endpoint String
- The endpoint of the Grafana instance.
- grafana
Major 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
- outbound
Ips List<String> - public
Network BooleanAccess Enabled - Whether or not public endpoint access is allowed for this server.
- resource
Group StringName - sku String
- The name of the SKU used for the Grafana instance.
- Map<String>
- A mapping of tags to assigned to the resource.
- zone
Redundancy BooleanEnabled - The zone redundancy setting of the Grafana instance.
- identity Property Map
- The managed identity of the grafana resource.
Supporting Types
GetGrafanaAzureMonitorWorkspaceIntegration
- Resource
Id string
- Resource
Id string
- resource
Id String
- resource
Id string
- resource_
id str
- resource
Id String
GetGrafanaIdentity
- Principal
Id string - Tenant
Id string - Type string
- Identity
Ids List<string>
- Principal
Id string - Tenant
Id string - Type string
- Identity
Ids []string
- principal
Id String - tenant
Id String - type String
- identity
Ids List<String>
- principal
Id string - tenant
Id string - type string
- identity
Ids string[]
- principal_
id str - tenant_
id str - type str
- identity_
ids Sequence[str]
- principal
Id String - tenant
Id String - type String
- identity
Ids List<String>
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
