Skip to main content

dashboards

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

Overview

Namedashboards
TypeResource
Idazure.portal.dashboards

Fields

NameDatatypeDescription
dashboardNametextfield from the properties object
lensestextfield from the properties object
locationtextThe geo-location where the resource lives
metadatatextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdashboardName, resourceGroupName, subscriptionIdGets the Dashboard.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets all the Dashboards within a resource group.
list_by_subscriptionSELECTsubscriptionIdGets all the dashboards within a subscription.
create_or_updateINSERTdashboardName, resourceGroupName, subscriptionIdCreates or updates a Dashboard.
deleteDELETEdashboardName, resourceGroupName, subscriptionIdDeletes the Dashboard.
updateUPDATEdashboardName, resourceGroupName, subscriptionIdUpdates an existing Dashboard.

SELECT examples

Gets all the dashboards within a subscription.

SELECT
dashboardName,
lenses,
location,
metadata,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.portal.vw_dashboards
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.portal.dashboards (
dashboardName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ dashboardName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a dashboards resource.

/*+ update */
UPDATE azure.portal.dashboards
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
dashboardName = '{{ dashboardName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified dashboards resource.

/*+ delete */
DELETE FROM azure.portal.dashboards
WHERE dashboardName = '{{ dashboardName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';