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._AbstractRunConfigElementEnvironmentReference
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 |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for