Skip to main content

environment_versions

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

Overview

Nameenvironment_versions
TypeResource
Idazure.ml_services.environment_versions

Fields

NameDatatypeDescription
nametextfield from the properties object
auto_rebuildtextfield from the properties object
buildtextfield from the properties object
conda_filetextfield from the properties object
environment_typetextfield from the properties object
imagetextfield from the properties object
inference_configtextfield from the properties object
is_anonymoustextfield from the properties object
is_archivedtextfield from the properties object
os_typetextfield 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,
auto_rebuild,
build,
conda_file,
environment_type,
image,
inference_config,
is_anonymous,
is_archived,
os_type,
provisioning_state,
resourceGroupName,
stage,
subscriptionId,
version,
workspaceName
FROM azure.ml_services.vw_environment_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 environment_versions resource.

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

DELETE example

Deletes the specified environment_versions resource.

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