environment_versions
Creates, updates, deletes, gets or lists a environment_versions
resource.
Overview
Name | environment_versions |
Type | Resource |
Id | azure.ml_services.environment_versions |
Fields
- vw_environment_versions
- environment_versions
Name | Datatype | Description |
---|---|---|
name | text | field from the properties object |
auto_rebuild | text | field from the properties object |
build | text | field from the properties object |
conda_file | text | field from the properties object |
environment_type | text | field from the properties object |
image | text | field from the properties object |
inference_config | text | field from the properties object |
is_anonymous | text | field from the properties object |
is_archived | text | field from the properties object |
os_type | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
stage | text | field from the properties object |
subscriptionId | text | field from the properties object |
version | text | field from the properties object |
workspaceName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Environment version details. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | name, resourceGroupName, subscriptionId, version, workspaceName | |
list | SELECT | name, resourceGroupName, subscriptionId, workspaceName | |
create_or_update | INSERT | name, resourceGroupName, subscriptionId, version, workspaceName, data__properties | |
delete | DELETE | name, resourceGroupName, subscriptionId, version, workspaceName | |
publish | EXEC | name, resourceGroupName, subscriptionId, version, workspaceName |
SELECT
examples
- vw_environment_versions
- environment_versions
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 }}';
SELECT
properties
FROM azure.ml_services.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: isAnonymous
value: boolean
- name: isArchived
value: boolean
- name: autoRebuild
value: []
- name: build
value:
- name: contextUri
value: string
- name: dockerfilePath
value: string
- name: condaFile
value: string
- name: environmentType
value: []
- name: image
value: string
- name: inferenceConfig
value:
- name: livenessRoute
value:
- name: path
value: string
- name: port
value: integer
- name: osType
value: []
- name: provisioningState
value: []
- name: stage
value: string
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 }}';