Skip to main content

apps

Creates, updates, deletes, gets or lists an apps resource.

Overview

Nameapps
TypeResource
Idazure.iot_central.apps

Fields

The following fields are returned by SELECT queries:

The body contains all the non-security properties of the IoT Central application. Security-related properties are set to null.

NameDatatypeDescription
identityobjectThe managed identities for the IoT Central application.
locationstringThe geo-location where the resource lives
propertiesobjectThe common properties of an IoT Central application.
skuobjectA valid instance SKU.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, resourceNameapi-versionGet the metadata of an IoT Central application.
list_by_resource_groupselectsubscriptionId, resourceGroupNameapi-versionGet all the IoT Central Applications in a resource group.
list_by_subscriptionselectsubscriptionIdapi-versionGet all IoT Central Applications in a subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, resourceName, data__skuapi-versionCreate or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update the IoT Central application.
updateupdatesubscriptionId, resourceGroupName, resourceNameapi-versionUpdate the metadata of an IoT Central application.
deletedeletesubscriptionId, resourceGroupName, resourceNameapi-versionDelete an IoT Central application.
check_name_availabilityexecsubscriptionId, nameapi-versionCheck if an IoT Central application name is available.
check_subdomain_availabilityexecsubscriptionId, nameapi-versionCheck if an IoT Central application subdomain is available.

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 Central application.
resourceNamestringThe ARM resource name of the IoT Central application.
subscriptionIdstringThe subscription identifier.
api-versionstringThe version of the API.

SELECT examples

Get the metadata of an IoT Central application.

SELECT
identity,
location,
properties,
sku,
tags
FROM azure.iot_central.apps
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND resourceName = '{{ resourceName }}' -- required
AND api-version = '{{ api-version }}'
;

INSERT examples

Create or update the metadata of an IoT Central application. The usual pattern to modify a property is to retrieve the IoT Central application metadata and security metadata, and then combine them with the modified values in a new body to update the IoT Central application.

INSERT INTO azure.iot_central.apps (
data__properties,
data__sku,
data__identity,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
resourceName,
api-version
)
SELECT
'{{ properties }}',
'{{ sku }}' /* required */,
'{{ identity }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ api-version }}'
RETURNING
identity,
location,
properties,
sku,
tags
;

UPDATE examples

Update the metadata of an IoT Central application.

UPDATE azure.iot_central.apps
SET
data__tags = '{{ tags }}',
data__sku = '{{ sku }}',
data__properties = '{{ properties }}',
data__identity = '{{ identity }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND resourceName = '{{ resourceName }}' --required
AND api-version = '{{ api-version}}';

DELETE examples

Delete an IoT Central application.

DELETE FROM azure.iot_central.apps
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND resourceName = '{{ resourceName }}' --required
AND api-version = '{{ api-version }}'
;

Lifecycle Methods

Check if an IoT Central application name is available.

EXEC azure.iot_central.apps.check_name_availability 
@subscriptionId='{{ subscriptionId }}' --required,
@api-version='{{ api-version }}'
@@json=
'{
"name": "{{ name }}",
"type": "{{ type }}"
}'
;