EnvironmentReference Class

References an existing environment definition stored in the workspace.

An EnvironmentReference can be used in place of an Environment object.

Class EnvironmentReference constructor.

Inheritance
azureml._base_sdk_common.abstract_run_config_element._AbstractRunConfigElement
EnvironmentReference

Constructor

EnvironmentReference(name, version=None)

Parameters

Name Description
name
Required

The name of the environment.

version

The version of the environment.

default value: None

Methods

get_environment

Return the Environment object pointed at by this reference.

get_environment

Return the Environment object pointed at by this reference.

get_environment(workspace)

Parameters

Name Description
workspace
Required

The workspace that contains the persisted environment

Returns

Type Description

The referenced Environment object