Skip to main content

edge_modules

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

Overview

Nameedge_modules
TypeResource
Idazure.video_analyzer.edge_modules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
propertiesobjectThe resource properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountName, edgeModuleNameRetrieves an existing edge module resource with the given name.
listselectsubscriptionId, resourceGroupName, accountName$topList all existing edge module resources, along with their JSON representations.
create_or_updateinsertsubscriptionId, resourceGroupName, accountName, edgeModuleNameCreates a new edge module or updates an existing one. An edge module resource enables a single instance of an Azure Video Analyzer IoT edge module to interact with the Video Analyzer Account. This is used for authorization and also to make sure that the particular edge module instance only has access to the data it requires from the Azure Video Analyzer service. A new edge module resource should be created for every new instance of an Azure Video Analyzer edge module deployed to you Azure IoT edge environment. Edge module resources can be deleted if the specific module is not in use anymore.
deletedeletesubscriptionId, resourceGroupName, accountName, edgeModuleNameDeletes an existing edge module resource. Deleting the edge module resource will prevent an Azure Video Analyzer IoT edge module which was previously initiated with the module provisioning token from communicating with the cloud.

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
accountNamestringThe Azure Video Analyzer account name.
edgeModuleNamestringThe Edge Module name.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
$topinteger (int32)Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n.

SELECT examples

Retrieves an existing edge module resource with the given name.

SELECT
properties
FROM azure.video_analyzer.edge_modules
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND edgeModuleName = '{{ edgeModuleName }}' -- required
;

INSERT examples

Creates a new edge module or updates an existing one. An edge module resource enables a single instance of an Azure Video Analyzer IoT edge module to interact with the Video Analyzer Account. This is used for authorization and also to make sure that the particular edge module instance only has access to the data it requires from the Azure Video Analyzer service. A new edge module resource should be created for every new instance of an Azure Video Analyzer edge module deployed to you Azure IoT edge environment. Edge module resources can be deleted if the specific module is not in use anymore.

INSERT INTO azure.video_analyzer.edge_modules (
data__properties,
subscriptionId,
resourceGroupName,
accountName,
edgeModuleName
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ accountName }}',
'{{ edgeModuleName }}'
RETURNING
properties
;

DELETE examples

Deletes an existing edge module resource. Deleting the edge module resource will prevent an Azure Video Analyzer IoT edge module which was previously initiated with the module provisioning token from communicating with the cloud.

DELETE FROM azure.video_analyzer.edge_modules
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND edgeModuleName = '{{ edgeModuleName }}' --required
;