Skip to main content

capacities

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

Overview

Namecapacities
TypeResource
Idazure.powerbi_dedicated.capacities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringAn identifier that represents the PowerBI Dedicated resource.
namestringThe name of the PowerBI Dedicated resource.
locationstringLocation of the PowerBI Dedicated resource.
propertiesobjectProperties of the provision operation request.
skuobjectThe SKU of the 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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_resource_groupselectresourceGroupName, subscriptionIdGets all the Dedicated capacities for the given resource group.
listselectsubscriptionIdLists all the Dedicated capacities for the given subscription.
createinsertresourceGroupName, dedicatedCapacityName, subscriptionId, data__skuProvisions the specified Dedicated capacity based on the configuration specified in the request.
updateupdateresourceGroupName, dedicatedCapacityName, subscriptionIdUpdates the current state of the specified Dedicated capacity.
deletedeleteresourceGroupName, dedicatedCapacityName, subscriptionIdDeletes the specified Dedicated capacity.
suspendexecresourceGroupName, dedicatedCapacityName, subscriptionIdSuspends operation of the specified dedicated capacity instance.
resumeexecresourceGroupName, dedicatedCapacityName, subscriptionIdResumes operation of the specified Dedicated capacity instance.
check_name_availabilityexeclocation, subscriptionIdCheck the name availability in the target location.

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
dedicatedCapacityNamestringThe name of the Dedicated capacity. It must be at least 3 characters in length, and no more than 63.
locationstringThe region name which the operation will lookup into.
resourceGroupNamestringThe 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.
subscriptionIdstringA unique identifier for a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Gets all the Dedicated capacities for the given resource group.

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

INSERT examples

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

INSERT INTO azure.powerbi_dedicated.capacities (
data__sku,
data__properties,
data__location,
data__tags,
data__systemData,
resourceGroupName,
dedicatedCapacityName,
subscriptionId
)
SELECT
'{{ sku }}' /* required */,
'{{ properties }}',
'{{ location }}',
'{{ tags }}',
'{{ systemData }}',
'{{ resourceGroupName }}',
'{{ dedicatedCapacityName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Updates the current state of the specified Dedicated capacity.

UPDATE azure.powerbi_dedicated.capacities
SET
data__sku = '{{ sku }}',
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND dedicatedCapacityName = '{{ dedicatedCapacityName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
id,
name,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Deletes the specified Dedicated capacity.

DELETE FROM azure.powerbi_dedicated.capacities
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND dedicatedCapacityName = '{{ dedicatedCapacityName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Suspends operation of the specified dedicated capacity instance.

EXEC azure.powerbi_dedicated.capacities.suspend 
@resourceGroupName='{{ resourceGroupName }}' --required,
@dedicatedCapacityName='{{ dedicatedCapacityName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
;