Skip to main content

grafana

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

Overview

Namegrafana
TypeResource
Idazure.dashboard.grafana

Fields

NameDatatypeDescription
idtextARM id of the grafana resource
nametextName of the grafana resource.
api_keytextfield from the properties object
auto_generated_domain_name_label_scopetextfield from the properties object
deterministic_outbound_iptextfield from the properties object
endpointtextfield from the properties object
enterprise_configurationstextfield from the properties object
grafana_configurationstextfield from the properties object
grafana_integrationstextfield from the properties object
grafana_major_versiontextfield from the properties object
grafana_pluginstextfield from the properties object
grafana_versiontextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
locationtextThe geo-location where the grafana resource lives
outbound_ipstextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
skutextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextThe tags for grafana resource.
typetextThe type of the grafana resource.
workspaceNametextfield from the properties object
zone_redundancytextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, workspaceName
listSELECTsubscriptionId
list_by_resource_groupSELECTresourceGroupName, subscriptionId
createINSERTresourceGroupName, subscriptionId, workspaceName
deleteDELETEresourceGroupName, subscriptionId, workspaceName
updateUPDATEresourceGroupName, subscriptionId, workspaceName
check_enterprise_detailsEXECresourceGroupName, subscriptionId, workspaceName
fetch_available_pluginsEXECresourceGroupName, subscriptionId, workspaceName

SELECT examples

SELECT
id,
name,
api_key,
auto_generated_domain_name_label_scope,
deterministic_outbound_ip,
endpoint,
enterprise_configurations,
grafana_configurations,
grafana_integrations,
grafana_major_version,
grafana_plugins,
grafana_version,
identity,
location,
outbound_ips,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
sku,
subscriptionId,
system_data,
tags,
type,
workspaceName,
zone_redundancy
FROM azure.dashboard.vw_grafana
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new grafana resource.

/*+ create */
INSERT INTO azure.dashboard.grafana (
resourceGroupName,
subscriptionId,
workspaceName,
sku,
properties,
identity,
systemData,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ sku }}',
'{{ properties }}',
'{{ identity }}',
'{{ systemData }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a grafana resource.

/*+ update */
UPDATE azure.dashboard.grafana
SET
sku = '{{ sku }}',
identity = '{{ identity }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

DELETE example

Deletes the specified grafana resource.

/*+ delete */
DELETE FROM azure.dashboard.grafana
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';