Skip to main content

model_versions

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

Overview

Namemodel_versions
TypeResource
Idazure.ml_services.model_versions

Fields

NameDatatypeDescription
nametextfield from the properties object
flavorstextfield from the properties object
is_anonymoustextfield from the properties object
is_archivedtextfield from the properties object
job_nametextfield from the properties object
model_typetextfield from the properties object
model_uritextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
stagetextfield from the properties object
subscriptionIdtextfield from the properties object
versiontextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionId, version, workspaceName
listSELECTname, resourceGroupName, subscriptionId, workspaceName
create_or_updateINSERTname, resourceGroupName, subscriptionId, version, workspaceName, data__properties
deleteDELETEname, resourceGroupName, subscriptionId, version, workspaceName
publishEXECname, resourceGroupName, subscriptionId, version, workspaceName

SELECT examples

SELECT
name,
flavors,
is_anonymous,
is_archived,
job_name,
model_type,
model_uri,
provisioning_state,
resourceGroupName,
stage,
subscriptionId,
version,
workspaceName
FROM azure.ml_services.vw_model_versions
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

Use the following StackQL query and manifest file to create a new model_versions resource.

/*+ create */
INSERT INTO azure.ml_services.model_versions (
name,
resourceGroupName,
subscriptionId,
version,
workspaceName,
data__properties,
properties
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ version }}',
'{{ workspaceName }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified model_versions resource.

/*+ delete */
DELETE FROM azure.ml_services.model_versions
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND version = '{{ version }}'
AND workspaceName = '{{ workspaceName }}';