Skip to main content

capacities

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

Overview

Namecapacities
TypeResource
Idazure.fabric.capacities

Fields

NameDatatypeDescription
administrationtextfield from the properties object
capacityNametextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextRepresents the SKU name and Azure pricing tier for Microsoft Fabric capacity resource.
statetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcapacityName, resourceGroupName, subscriptionIdGet a FabricCapacity
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList FabricCapacity resources by resource group
list_by_subscriptionSELECTsubscriptionIdList FabricCapacity resources by subscription ID
create_or_updateINSERTcapacityName, resourceGroupName, subscriptionId, data__properties, data__skuCreate a FabricCapacity
deleteDELETEcapacityName, resourceGroupName, subscriptionIdDelete a FabricCapacity
updateUPDATEcapacityName, resourceGroupName, subscriptionIdUpdate a FabricCapacity
check_name_availabilityEXEClocation, subscriptionIdImplements local CheckNameAvailability operations
resumeEXECcapacityName, resourceGroupName, subscriptionIdResume operation of the specified Fabric capacity instance.
suspendEXECcapacityName, resourceGroupName, subscriptionIdSuspend operation of the specified Fabric capacity instance.

SELECT examples

List FabricCapacity resources by subscription ID

SELECT
administration,
capacityName,
location,
provisioning_state,
resourceGroupName,
sku,
state,
subscriptionId,
tags
FROM azure.fabric.vw_capacities
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a capacities resource.

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

DELETE example

Deletes the specified capacities resource.

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