Skip to main content

grafana

Creates, updates, deletes, gets or lists a grafana resource.

Overview

Namegrafana
TypeResource
Idazure.dashboard.grafana

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
apiKeystringThe api key setting of the Grafana instance. Known values are: "Disabled" and "Enabled". (Disabled, Enabled)
autoGeneratedDomainNameLabelScopestringScope for dns deterministic name hash calculation. "TenantReuse" (TenantReuse)
creatorCanAdminstringThe creator will have admin access for the Grafana instance. Known values are: "Disabled" and "Enabled". (Disabled, Enabled)
deterministicOutboundIPstringWhether a Grafana instance uses deterministic outbound IPs. Known values are: "Disabled" and "Enabled". (Disabled, Enabled)
endpointstringThe endpoint of the Grafana instance.
enterpriseConfigurationsobjectEnterprise settings of a Grafana instance.
grafanaConfigurationsobjectServer configurations of a Grafana instance.
grafanaIntegrationsobjectGrafanaIntegrations is a bundled observability experience (e.g. pre-configured data source, tailored Grafana dashboards, alerting defaults) for common monitoring scenarios.
grafanaMajorVersionstringThe major Grafana software version to target.
grafanaPluginsobjectInstalled plugin list of the Grafana instance. Key is plugin id, value is plugin definition.
grafanaVersionstringThe Grafana software version.
identityobjectThe managed service identities assigned to this resource.
locationstringThe geo-location where the resource lives.
outboundIPsarrayList of outbound IPs if deterministicOutboundIP is enabled.
privateEndpointConnectionsarrayThe private endpoint connections of the Grafana instance.
provisioningStatestringProvisioning state of the resource. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified". (Accepted, Creating, Updating, Deleting, Succeeded, Failed, Canceled, Deleted, NotSpecified)
publicNetworkAccessstringIndicate the state for enable or disable traffic over the public interface. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
skuobjectThe Sku of the grafana resource.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
zoneRedundancystringThe zone redundancy setting of the Grafana instance. Known values are: "Disabled" and "Enabled". (Disabled, Enabled)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, subscription_idGet the properties of a specific workspace for Grafana resource.
list_by_resource_groupselectresource_group_name, subscription_idList all resources of workspaces for Grafana under the specified resource group.
listselectsubscription_idList all resources of workspaces for Grafana under the specified subscription.
createinsertresource_group_name, workspace_name, subscription_idCreate or update a workspace for Grafana resource. This API is idempotent, so user can either create a new grafana or update an existing grafana.
updateupdateresource_group_name, workspace_name, subscription_idUpdate a workspace for Grafana resource.
deletedeleteresource_group_name, workspace_name, subscription_idDelete a workspace for Grafana resource.
check_enterprise_detailsexecresource_group_name, workspace_name, subscription_idRetrieve enterprise add-on details information.
fetch_available_pluginsexecresource_group_name, workspace_name, subscription_idA synchronous resource action.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe workspace name of Azure Managed Grafana. Required.

SELECT examples

Get the properties of a specific workspace for Grafana resource.

SELECT
id,
name,
apiKey,
autoGeneratedDomainNameLabelScope,
creatorCanAdmin,
deterministicOutboundIP,
endpoint,
enterpriseConfigurations,
grafanaConfigurations,
grafanaIntegrations,
grafanaMajorVersion,
grafanaPlugins,
grafanaVersion,
identity,
location,
outboundIPs,
privateEndpointConnections,
provisioningState,
publicNetworkAccess,
sku,
systemData,
tags,
type,
zoneRedundancy
FROM azure.dashboard.grafana
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a workspace for Grafana resource. This API is idempotent, so user can either create a new grafana or update an existing grafana.

INSERT INTO azure.dashboard.grafana (
properties,
sku,
tags,
location,
identity,
resource_group_name,
workspace_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ sku }}',
'{{ tags }}',
'{{ location }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Update a workspace for Grafana resource.

UPDATE azure.dashboard.grafana
SET
sku = '{{ sku }}',
identity = '{{ identity }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Delete a workspace for Grafana resource.

DELETE FROM azure.dashboard.grafana
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Retrieve enterprise add-on details information.

EXEC azure.dashboard.grafana.check_enterprise_details 
@resource_group_name='{{ resource_group_name }}' --required,
@workspace_name='{{ workspace_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;