Share via


EdgeModulesOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates a new edge module or updates an existing one.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.VideoAnalyzer.Models.EdgeModuleEntity> CreateOrUpdateAsync (this Microsoft.Azure.Management.VideoAnalyzer.IEdgeModulesOperations operations, string resourceGroupName, string accountName, string edgeModuleName, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.VideoAnalyzer.IEdgeModulesOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.VideoAnalyzer.Models.EdgeModuleEntity>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IEdgeModulesOperations, resourceGroupName As String, accountName As String, edgeModuleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of EdgeModuleEntity)

Parameters

operations
IEdgeModulesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group. The name is case insensitive.

accountName
String

The Azure Video Analyzer account name.

edgeModuleName
String

The Edge Module name.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

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.

Applies to