Skip to main content

beta_routines

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

Overview

Namebeta_routines
TypeResource
Idazure.ai_projects.beta_routines

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe routine name.
actionobjectThe action executed when the routine fires.
created_atstring (date-time)The time when the routine was created.
descriptionstringA human-readable description of the routine.
enabledbooleanWhether the routine is enabled. Required.
triggersobjectThe triggers configured for the routine.
updated_atstring (date-time)The time when the routine was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectroutine_name, endpointGet a routine. Retrieves the specified routine and its current configuration.
listselectendpointlimit, after, before, orderList routines. Returns the routines available in the current project.
create_or_updateinsertroutine_name, endpointCreate or update a routine. Creates a new routine or replaces an existing routine with the supplied definition.
create_or_updatereplaceroutine_name, endpointCreate or update a routine. Creates a new routine or replaces an existing routine with the supplied definition.
deletedeleteroutine_name, endpointDelete a routine. Deletes the specified routine.
list_runsexecroutine_name, endpointfilter, limit, after, before, orderList prior runs for a routine. Returns prior runs recorded for the specified routine.
enableexecroutine_name, endpointEnable a routine. Enables the specified routine so it can be dispatched.
disableexecroutine_name, endpointDisable a routine. Disables the specified routine so it no longer runs.
dispatchexecroutine_name, endpointQueue an asynchronous routine dispatch. Queues an asynchronous dispatch for the specified routine.

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
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
routine_namestringThe unique name of the routine. Required.
afterstring
beforestringUnsupported. Reserved for future backward pagination support. Default value is None.
filterstringAn optional MLflow search-runs filter expression applied within the routine's experiment. Default value is None.
limitintegerThe maximum number of runs to return. Default value is None.
orderstringThe ordering direction. Supported values are asc and desc. Default value is None.

SELECT examples

Get a routine. Retrieves the specified routine and its current configuration.

SELECT
name,
action,
created_at,
description,
enabled,
triggers,
updated_at
FROM azure.ai_projects.beta_routines
WHERE routine_name = '{{ routine_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Create or update a routine. Creates a new routine or replaces an existing routine with the supplied definition.

INSERT INTO azure.ai_projects.beta_routines (
routine_name,
endpoint
)
SELECT
'{{ routine_name }}',
'{{ endpoint }}'
RETURNING
name,
action,
created_at,
description,
enabled,
triggers,
updated_at
;

REPLACE examples

Create or update a routine. Creates a new routine or replaces an existing routine with the supplied definition.

REPLACE azure.ai_projects.beta_routines
SET
-- No updatable properties
WHERE
routine_name = '{{ routine_name }}' --required
AND endpoint = '{{ endpoint }}' --required
RETURNING
name,
action,
created_at,
description,
enabled,
triggers,
updated_at;

DELETE examples

Delete a routine. Deletes the specified routine.

DELETE FROM azure.ai_projects.beta_routines
WHERE routine_name = '{{ routine_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

List prior runs for a routine. Returns prior runs recorded for the specified routine.

EXEC azure.ai_projects.beta_routines.list_runs 
@routine_name='{{ routine_name }}' --required,
@endpoint='{{ endpoint }}' --required,
@filter='{{ filter }}',
@limit='{{ limit }}',
@after='{{ after }}',
@before='{{ before }}',
@order='{{ order }}'
;