Skip to main content

resource_valid_skus

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

Overview

Nameresource_valid_skus
TypeResource
Idazure.iot_hub.resource_valid_skus

Fields

The following fields are returned by SELECT queries:

This is a synchronous operation. The body contains a JSON-serialized array of the valid SKUs for this IoT hub.

NameDatatypeDescription
capacityobjectIotHub capacity
resourceTypestringThe type of the resource.
skuobjectThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, resourceNameapi-versionGet the list of valid SKUs for an IoT hub.

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
resourceGroupNamestringThe name of the resource group that contains the IoT hub.
resourceNamestringThe name of the IoT hub.
subscriptionIdstringThe subscription identifier.
api-versionstringThe version of the API.

SELECT examples

Get the list of valid SKUs for an IoT hub.

SELECT
capacity,
resourceType,
sku
FROM azure.iot_hub.resource_valid_skus
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND resourceName = '{{ resourceName }}' -- required
AND api-version = '{{ api-version }}'
;