Skip to main content

apps

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

Overview

Nameapps
TypeResource
Idazure.iot_central.apps

Fields

NameDatatypeDescription
application_idtextfield from the properties object
display_nametextfield from the properties object
identitytextManaged service identity (either system assigned, or none)
locationtextThe geo-location where the resource lives
network_rule_setstextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
skutextInformation about the SKU of the IoT Central application.
statetextfield from the properties object
subdomaintextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
templatetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionIdGet the metadata of an IoT Central application.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet all the IoT Central Applications in a resource group.
list_by_subscriptionSELECTsubscriptionIdGet all IoT Central Applications in a subscription.
create_or_updateINSERTresourceGroupName, resourceName, subscriptionId, data__skuCreate 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.
deleteDELETEresourceGroupName, resourceName, subscriptionIdDelete an IoT Central application.
updateUPDATEresourceGroupName, resourceName, subscriptionIdUpdate the metadata of an IoT Central application.
check_name_availabilityEXECsubscriptionId, data__nameCheck if an IoT Central application name is available.
check_subdomain_availabilityEXECsubscriptionId, data__nameCheck if an IoT Central application subdomain is available.

SELECT examples

Get all IoT Central Applications in a subscription.

SELECT
application_id,
display_name,
identity,
location,
network_rule_sets,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
resourceName,
sku,
state,
subdomain,
subscriptionId,
tags,
template
FROM azure.iot_central.vw_apps
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.iot_central.apps (
resourceGroupName,
resourceName,
subscriptionId,
data__sku,
properties,
sku,
identity,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ data__sku }}',
'{{ properties }}',
'{{ sku }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a apps resource.

/*+ update */
UPDATE azure.iot_central.apps
SET
tags = '{{ tags }}',
sku = '{{ sku }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified apps resource.

/*+ delete */
DELETE FROM azure.iot_central.apps
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';