Skip to main content

capacities

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

Overview

Namecapacities
TypeResource
Idazure.powerbi_dedicated.capacities

Fields

NameDatatypeDescription
idstringAn identifier that represents the PowerBI Dedicated resource.
namestringThe name of the PowerBI Dedicated resource.
locationstringLocation of the PowerBI Dedicated resource.
propertiesobjectProperties of Dedicated Capacity resource.
skuobjectRepresents the SKU name and Azure pricing tier for PowerBI Dedicated capacity resource.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectKey-value pairs of additional resource provisioning properties.
typestringThe type of the PowerBI Dedicated resource.

Methods

NameAccessible byRequired ParamsDescription
listSELECTsubscriptionIdLists all the Dedicated capacities for the given subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets all the Dedicated capacities for the given resource group.
createINSERTdedicatedCapacityName, resourceGroupName, subscriptionId, data__skuProvisions the specified Dedicated capacity based on the configuration specified in the request.
deleteDELETEdedicatedCapacityName, resourceGroupName, subscriptionIdDeletes the specified Dedicated capacity.
updateUPDATEdedicatedCapacityName, resourceGroupName, subscriptionIdUpdates the current state of the specified Dedicated capacity.
check_name_availabilityEXEClocation, subscriptionIdCheck the name availability in the target location.
resumeEXECdedicatedCapacityName, resourceGroupName, subscriptionIdResumes operation of the specified Dedicated capacity instance.
suspendEXECdedicatedCapacityName, resourceGroupName, subscriptionIdSuspends operation of the specified dedicated capacity instance.

SELECT examples

Lists all the Dedicated capacities for the given subscription.

SELECT
id,
name,
location,
properties,
sku,
systemData,
tags,
type
FROM azure.powerbi_dedicated.capacities
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.powerbi_dedicated.capacities (
dedicatedCapacityName,
resourceGroupName,
subscriptionId,
data__sku,
sku,
properties,
location,
tags,
systemData
)
SELECT
'{{ dedicatedCapacityName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__sku }}',
'{{ sku }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}',
'{{ systemData }}'
;

UPDATE example

Updates a capacities resource.

/*+ update */
UPDATE azure.powerbi_dedicated.capacities
SET
sku = '{{ sku }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
dedicatedCapacityName = '{{ dedicatedCapacityName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified capacities resource.

/*+ delete */
DELETE FROM azure.powerbi_dedicated.capacities
WHERE dedicatedCapacityName = '{{ dedicatedCapacityName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';