Skip to main content

capacities

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

Overview

Namecapacities
TypeResource
Idazure.power_bi_dedicated.capacities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
valuearrayThe collection of available SKUs for existing resources.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_skus_for_capacityselectresource_group_name, dedicated_capacity_name, subscription_idLists eligible SKUs for a PowerBI Dedicated resource.
list_by_resource_groupselectresource_group_name, subscription_idGets all the Dedicated capacities for the given resource group.
check_name_availabilityselectlocation, subscription_idCheck the name availability in the target location.
listselectsubscription_idLists all the Dedicated capacities for the given subscription.
createinsertresource_group_name, dedicated_capacity_name, subscription_id, location, skuProvisions the specified Dedicated capacity based on the configuration specified in the request.
updateupdateresource_group_name, dedicated_capacity_name, subscription_idUpdates the current state of the specified Dedicated capacity.
deletedeleteresource_group_name, dedicated_capacity_name, subscription_idDeletes the specified Dedicated capacity.
list_skusexecsubscription_idLists eligible SKUs for PowerBI Dedicated resource provider.
get_detailsexecresource_group_name, dedicated_capacity_name, subscription_idGets details about the specified dedicated capacity.
suspendexecresource_group_name, dedicated_capacity_name, subscription_idSuspends operation of the specified dedicated capacity instance.
resumeexecresource_group_name, dedicated_capacity_name, subscription_idResumes operation of the specified Dedicated capacity instance.

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
dedicated_capacity_namestringThe name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63. Required.
locationstringThe region name which the operation will lookup into. Required.
resource_group_namestringThe name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90. Required.
subscription_idstring

SELECT examples

Lists eligible SKUs for a PowerBI Dedicated resource.

SELECT
value
FROM azure.power_bi_dedicated.capacities
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND dedicated_capacity_name = '{{ dedicated_capacity_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Provisions the specified Dedicated capacity based on the configuration specified in the request.

INSERT INTO azure.power_bi_dedicated.capacities (
location,
tags,
systemData,
sku,
properties,
resource_group_name,
dedicated_capacity_name,
subscription_id
)
SELECT
'{{ location }}' /* required */,
'{{ tags }}',
'{{ systemData }}',
'{{ sku }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ dedicated_capacity_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Updates the current state of the specified Dedicated capacity.

UPDATE azure.power_bi_dedicated.capacities
SET
sku = '{{ sku }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND dedicated_capacity_name = '{{ dedicated_capacity_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Deletes the specified Dedicated capacity.

DELETE FROM azure.power_bi_dedicated.capacities
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND dedicated_capacity_name = '{{ dedicated_capacity_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Lists eligible SKUs for PowerBI Dedicated resource provider.

EXEC azure.power_bi_dedicated.capacities.list_skus 
@subscription_id='{{ subscription_id }}' --required
;