Skip to main content

apps

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

Overview

Nameapps
TypeResource
Idazure_extras.iot_central.apps

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ARM resource identifier.
namestringThe ARM resource name.
applicationIdstringThe ID of the application.
displayNamestringThe display name of the application.
identityobjectThe managed identities for the IoT Central application.
locationstringThe resource location. Required.
skuobjectA valid instance SKU. Required.
statestringThe current state of the application. Known values are: "created" and "suspended".
subdomainstringThe subdomain of the application.
tagsobjectThe resource tags.
templatestringThe ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.
typestringThe resource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, resource_name, subscription_idGet the metadata of an IoT Central application.
list_by_resource_groupselectresource_group_name, subscription_idGet all the IoT Central Applications in a resource group.
check_name_availabilityselectsubscription_idCheck if an IoT Central application name is available.
list_by_subscriptionselectsubscription_idGet all IoT Central Applications in a subscription.
create_or_updateinsertresource_group_name, resource_name, subscription_id, location, 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.
updateupdateresource_group_name, resource_name, subscription_idUpdate the metadata of an IoT Central application.
create_or_updatereplaceresource_group_name, resource_name, subscription_id, location, 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.
deletedeleteresource_group_name, resource_name, subscription_idDelete an IoT Central application.
list_templatesexecsubscription_idGet all available application templates.
check_subdomain_availabilityexecsubscription_id, nameCheck 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
resource_group_namestringThe name of the resource group that contains the IoT Central application. Required.
resource_namestringThe ARM resource name of the IoT Central application. Required.
subscription_idstring

SELECT examples

Get the metadata of an IoT Central application.

SELECT
id,
name,
applicationId,
displayName,
identity,
location,
sku,
state,
subdomain,
tags,
template,
type
FROM azure_extras.iot_central.apps
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

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_extras.iot_central.apps (
location,
tags,
sku,
identity,
properties,
resource_group_name,
resource_name,
subscription_id
)
SELECT
'{{ location }}' /* required */,
'{{ tags }}',
'{{ sku }}' /* required */,
'{{ identity }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ resource_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
tags,
type
;

UPDATE examples

Update the metadata of an IoT Central application.

UPDATE azure_extras.iot_central.apps
SET
tags = '{{ tags }}',
sku = '{{ sku }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
tags,
type;

REPLACE 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.

REPLACE azure_extras.iot_central.apps
SET
location = '{{ location }}',
tags = '{{ tags }}',
sku = '{{ sku }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND sku = '{{ sku }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
tags,
type;

DELETE examples

Delete an IoT Central application.

DELETE FROM azure_extras.iot_central.apps
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Get all available application templates.

EXEC azure_extras.iot_central.apps.list_templates 
@subscription_id='{{ subscription_id }}' --required
;