prefect.infrastructure.provisioners.container_instance
AzureCLI
console
: A Rich console object for displaying messages.run_command
command
: The Azure CLI command to execute.success_message
: Message to print on success.failure_message
: Message to print on failure.ignore_if_exists
: Whether to ignore errors if a resource already exists.return_json
: Whether to return the output as JSON.subprocess.CalledProcessError
: If the command execution fails.json.JSONDecodeError
: If output cannot be decoded as JSON when return_json is True.ContainerInstancePushProvisioner
console
console
provision
work_pool_name
: The name of the work pool.base_job_template
: The base template for job creation.client
: An instance of PrefectClient. If None, it will be injected.RuntimeError
: If client injection fails or the Azure CLI command execution fails.set_location
RuntimeError
: If unable to execute the Azure CLI command.