Skip to main content

workspace_collections

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

Overview

Nameworkspace_collections
TypeResource
Idazure.powerbi_embedded.workspace_collections

Fields

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

NameAccessible byRequired ParamsDescription
createINSERTresourceGroupName, subscriptionId, workspaceCollectionNameCreates a new Power BI Workspace Collection with the specified properties. A Power BI Workspace Collection contains one or more workspaces, and can be used to provision keys that provide API access to those workspaces.
deleteDELETEresourceGroupName, subscriptionId, workspaceCollectionNameDelete a Power BI Workspace Collection.
updateUPDATEresourceGroupName, subscriptionId, workspaceCollectionNameUpdate an existing Power BI Workspace Collection with the specified properties.
check_name_availabilityEXEClocation, subscriptionIdVerify the specified Power BI Workspace Collection name is valid and not already in use.
migrateEXECresourceGroupName, subscriptionIdMigrates an existing Power BI Workspace Collection to a different resource group and/or subscription.
regenerate_keyEXECresourceGroupName, subscriptionId, workspaceCollectionNameRegenerates the primary or secondary access key for the specified Power BI Workspace Collection.

INSERT example

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

/*+ create */
INSERT INTO azure.powerbi_embedded.workspace_collections (
resourceGroupName,
subscriptionId,
workspaceCollectionName,
location,
tags,
sku
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceCollectionName }}',
'{{ location }}',
'{{ tags }}',
'{{ sku }}'
;

UPDATE example

Updates a workspace_collections resource.

/*+ update */
UPDATE azure.powerbi_embedded.workspace_collections
SET
tags = '{{ tags }}',
sku = '{{ sku }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceCollectionName = '{{ workspaceCollectionName }}';

DELETE example

Deletes the specified workspace_collections resource.

/*+ delete */
DELETE FROM azure.powerbi_embedded.workspace_collections
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceCollectionName = '{{ workspaceCollectionName }}';