ScriptExecution Class

An instance of a script executed by a user - custom or AVS.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.avs.models._models_py3.ProxyResource
ScriptExecution

Constructor

ScriptExecution(*, script_cmdlet_id: str | None = None, parameters: List[_models.ScriptExecutionParameter] | None = None, hidden_parameters: List[_models.ScriptExecutionParameter] | None = None, failure_reason: str | None = None, timeout: str | None = None, retention: str | None = None, output: List[str] | None = None, named_outputs: Dict[str, MutableMapping[str, Any]] | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
script_cmdlet_id
str

A reference to the script cmdlet resource if user is running a AVS script.

parameters

Parameters the script will accept.

hidden_parameters

Parameters that will be hidden/not visible to ARM, such as passwords and credentials.

failure_reason
str

Error message if the script was able to run, but if the script itself had errors or powershell threw an exception.

timeout
str

Time limit for execution.

retention
str

Time to live for the resource. If not provided, will be available for 60 days.

output

Standard output stream from the powershell execution.

named_outputs
dict[str, <xref:JSON>]

User-defined dictionary.

Variables

Name Description
id
str

Resource ID.

name
str

Resource name.

type
str

Resource type.

script_cmdlet_id
str

A reference to the script cmdlet resource if user is running a AVS script.

parameters

Parameters the script will accept.

hidden_parameters

Parameters that will be hidden/not visible to ARM, such as passwords and credentials.

failure_reason
str

Error message if the script was able to run, but if the script itself had errors or powershell threw an exception.

timeout
str

Time limit for execution.

retention
str

Time to live for the resource. If not provided, will be available for 60 days.

submitted_at

Time the script execution was submitted.

started_at

Time the script execution was started.

finished_at

Time the script execution was finished.

provisioning_state

The state of the script execution resource. Known values are: "Pending", "Running", "Succeeded", "Failed", "Cancelling", "Cancelled", "Deleting", and "Canceled".

output

Standard output stream from the powershell execution.

named_outputs
dict[str, <xref:JSON>]

User-defined dictionary.

information

Standard information out stream from the powershell execution.

warnings

Standard warning out stream from the powershell execution.

errors

Standard error output stream from the powershell execution.