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
string
Required

The name of the environment.

version
string
default value: None

The version of the environment.

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

workspace
Workspace
Required

The workspace that contains the persisted environment

Returns

The referenced Environment object

Return type