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:

OK. Return the properties of the required workspace for Grafana resource.

NameDatatypeDescription
idstringARM id of the grafana resource
namestringName of the grafana resource.
identityobjectThe managed identity of the grafana resource.
locationstringThe geo-location where the grafana resource lives
propertiesobjectProperties specific to the grafana resource.
skuobjectThe Sku of the grafana resource.
systemDataobjectThe system meta data relating to this grafana resource.
tagsobjectThe tags for grafana resource.
typestringThe type of the grafana resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, workspaceName
list_by_resource_groupselectsubscriptionId, resourceGroupName
listselectsubscriptionId
createinsertsubscriptionId, resourceGroupName, workspaceName
updateupdatesubscriptionId, resourceGroupName, workspaceName
deletedeletesubscriptionId, resourceGroupName, workspaceName
check_enterprise_detailsexecsubscriptionId, resourceGroupName, workspaceName
fetch_available_pluginsexecsubscriptionId, resourceGroupName, workspaceName

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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
workspaceNamestringThe workspace name of Azure Managed Grafana.

SELECT examples

OK. Return the properties of the required workspace for Grafana resource.

SELECT
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type
FROM azure.dashboard.grafana
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND workspaceName = '{{ workspaceName }}' -- required
;

INSERT examples

No description available.

INSERT INTO azure.dashboard.grafana (
data__sku,
data__properties,
data__identity,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
workspaceName
)
SELECT
'{{ sku }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ workspaceName }}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

No description available.

UPDATE azure.dashboard.grafana
SET
data__sku = '{{ sku }}',
data__identity = '{{ identity }}',
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND workspaceName = '{{ workspaceName }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

No description available.

DELETE FROM azure.dashboard.grafana
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND workspaceName = '{{ workspaceName }}' --required
;

Lifecycle Methods

OK. Successfully retrieve the enterprise details information of a workspace for a Grafana resource.

EXEC azure.dashboard.grafana.check_enterprise_details 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@workspaceName='{{ workspaceName }}' --required
;