Compute Class
Base class for compute resources.
This class should not be instantiated directly. Instead, use one of its subclasses.
Constructor
Compute(name: str, location: str | None = None, description: str | None = None, resource_id: str | None = None, tags: Dict | None = None, **kwargs: Any)
Parameters
Name | Description |
---|---|
type
Required
|
The compute type. Accepted values are "amlcompute", "computeinstance", "virtualmachine", "kubernetes", and "synapsespark". |
name
Required
|
Name of the compute resource. |
location
|
The resource location. Defaults to workspace location. Default value: None
|
description
|
Description of the resource. Defaults to None. Default value: None
|
resource_id
|
ARM resource id of the underlying compute. Defaults to None. Default value: None
|
tags
|
A set of tags. Contains resource tags defined as key/value pairs. Default value: None
|
Methods
dump |
Dump the compute content into a file in yaml format. |
dump
Dump the compute content into a file in yaml format.
dump(dest: str | PathLike | IO, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
dest
Required
|
The destination to receive this compute's content. Must be either a path to a local file, or an already-open file stream. If dest is a file path, a new file will be created, and an exception is raised if the file exists. If dest is an open file, the file will be written to directly, and an exception will be raised if the file is not writable.'. |
Attributes
base_path
created_on
creation_context
The creation context of the resource.
Returns
Type | Description |
---|---|
The creation metadata for the resource. |
id
provisioning_errors
provisioning_state
Azure SDK for Python