Command Class

The command used in the test.

All required parameters must be populated in order to send to Azure.

Inheritance
Command

Constructor

Command(*, name: str, action: Union[str, azure.mgmt.testbase.models._test_base_enums.Action], content_type: Union[str, azure.mgmt.testbase.models._test_base_enums.ContentType], content: str, run_elevated: Optional[bool] = None, restart_after: Optional[bool] = None, max_run_time: Optional[int] = None, run_as_interactive: Optional[bool] = None, always_run: Optional[bool] = None, apply_update_before: Optional[bool] = None, **kwargs)

Parameters

name
str
Required

Required. The name of the command.

action
str or <xref:test_base.models.Action>
Required

Required. The action of the command. Possible values include: "Install", "Launch", "Close", "Uninstall", "Custom".

content_type
str or <xref:test_base.models.ContentType>
Required

Required. The type of command content. Possible values include: "Inline", "File", "Path".

content
str
Required

Required. The content of the command. The content depends on source type.

run_elevated
bool
Required

Specifies whether to run the command as administrator.

restart_after
bool
Required

Specifies whether to restart the VM after the command executed.

max_run_time
int
Required

Specifies the max run time of the command.

run_as_interactive
bool
Required

Specifies whether to run the command in interactive mode.

always_run
bool
Required

Specifies whether to run the command even if a previous command is failed.

apply_update_before
bool
Required

Specifies whether to apply update before the command.