Skip to main content

workspace_collections

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

Overview

Nameworkspace_collections
TypeResource
Idazure.power_bi_embedded.workspace_collections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource id.
namestringWorkspace collection name.
locationstringAzure location.
propertiesobjectProperties.
skuobject:vartype sku: ~azure.mgmt.powerbiembedded.models.AzureSku
tagsobjectDictionary of .
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_nameselectresource_group_name, workspace_collection_name, subscription_idRetrieves an existing Power BI Workspace Collection.
list_by_resource_groupselectresource_group_name, subscription_idRetrieves all existing Power BI workspace collections in the specified resource group.
check_name_availabilityselectlocation, subscription_idVerify the specified Power BI Workspace Collection name is valid and not already in use.
list_by_subscriptionselectsubscription_idRetrieves all existing Power BI workspace collections in the specified subscription.
createinsertresource_group_name, workspace_collection_name, subscription_idCreates 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.
updateupdateresource_group_name, workspace_collection_name, subscription_idUpdate an existing Power BI Workspace Collection with the specified properties.
deletedeleteresource_group_name, workspace_collection_name, subscription_idDelete a Power BI Workspace Collection.
get_access_keysexecresource_group_name, workspace_collection_name, subscription_idRetrieves the primary and secondary access keys for the specified Power BI Workspace Collection.
regenerate_keyexecresource_group_name, workspace_collection_name, subscription_idRegenerates the primary or secondary access key for the specified Power BI Workspace Collection.
migrateexecresource_group_name, subscription_idMigrates an existing Power BI Workspace Collection to a different resource group and/or subscription.

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
locationstringAzure location. Required.
resource_group_namestringAzure resource group. Required.
subscription_idstring
workspace_collection_namestringPower BI Embedded Workspace Collection name. Required.

SELECT examples

Retrieves an existing Power BI Workspace Collection.

SELECT
id,
name,
location,
properties,
sku,
tags,
type
FROM azure.power_bi_embedded.workspace_collections
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_collection_name = '{{ workspace_collection_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates 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.

INSERT INTO azure.power_bi_embedded.workspace_collections (
location,
tags,
sku,
resource_group_name,
workspace_collection_name,
subscription_id
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ sku }}',
'{{ resource_group_name }}',
'{{ workspace_collection_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
sku,
tags,
type
;

UPDATE examples

Update an existing Power BI Workspace Collection with the specified properties.

UPDATE azure.power_bi_embedded.workspace_collections
SET
tags = '{{ tags }}',
sku = '{{ sku }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_collection_name = '{{ workspace_collection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
sku,
tags,
type;

DELETE examples

Delete a Power BI Workspace Collection.

DELETE FROM azure.power_bi_embedded.workspace_collections
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_collection_name = '{{ workspace_collection_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Retrieves the primary and secondary access keys for the specified Power BI Workspace Collection.

EXEC azure.power_bi_embedded.workspace_collections.get_access_keys 
@resource_group_name='{{ resource_group_name }}' --required,
@workspace_collection_name='{{ workspace_collection_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;