Skip to main content

compute_operations

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

Overview

Namecompute_operations
TypeResource
Idazure.cognitive_services.compute_operations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
endTimestring (date-time)The end time of the operation.
errorobjectError details if the operation failed.
startTimestring (date-time)The start time of the operation.
statusstringThe status of the operation. Known values are: "InProgress", "Succeeded", "Failed", and "Canceled". (InProgress, Succeeded, Failed, Canceled)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, operation_id, subscription_idGets the status of a compute operation.

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
locationstringThe name of the Azure region. Required.
operation_idstringThe ID of the compute operation. Required.
subscription_idstring

SELECT examples

Gets the status of a compute operation.

SELECT
id,
name,
endTime,
error,
startTime,
status,
systemData,
type
FROM azure.cognitive_services.compute_operations
WHERE location = '{{ location }}' -- required
AND operation_id = '{{ operation_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;