class_docstr: Executes a job on Azure Batch Service.
  
  :param batch_pool_id: A string that uniquely identifies the Pool within the Account.
  :param batch_pool_vm_size: The size of virtual machines in the Pool
  :param batch_job_id: A string that uniquely identifies the Job within the Account.
  :param batch_task_command_line: The command line of the Task
  :param batch_task_id: A string that uniquely identifies the task within the Job.
  :param batch_pool_display_name: The display name for the Pool.
      The display name need not be unique
  :param batch_job_display_name: The display name for the Job.
      The display name need not be unique
  :param batch_job_manager_task: Details of a Job Manager Task to be launched when the Job is started.
  :param batch_job_preparation_task: The Job Preparation Task. If set, the Batch service will
      run the Job Preparation Task on a Node before starting any Tasks of that
      Job on that Compute Node. Required if batch_job_release_task is set.
  :param batch_job_release_task: The Job Release Task. Use to undo changes to Compute Nodes
      made by the Job Preparation Task
  :param batch_task_display_name:  The display name for the task.
      The display name need not be unique
  :param batch_task_container_settings: The settings for the container under which the Task runs
  :param batch_start_task: A Task specified to run on each Compute Node as it joins the Pool.
      The Task runs when the Compute Node is added to the Pool or
      when the Compute Node is restarted.
  :param batch_max_retries: The number of times to retry this batch operation before it's
      considered a failed operation. Default is 3
  :param batch_task_resource_files: A list of files that the Batch service will
      download to the Compute Node before running the command line.
  :param batch_task_output_files: A list of files that the Batch service will upload
      from the Compute Node after running the command line.
  :param batch_task_user_identity: The user identity under which the Task runs.
      If omitted, the Task runs as a non-administrative user unique to the Task.
  :param target_low_priority_nodes: The desired number of low-priority Compute Nodes in the Pool.
      This property must not be specified if enable_auto_scale is set to true.
  :param target_dedicated_nodes: The desired number of dedicated Compute Nodes in the Pool.
      This property must not be specified if enable_auto_scale is set to true.
  :param enable_auto_scale: Whether the Pool size should automatically adjust over time. Default is false
  :param auto_scale_formula: A formula for the desired number of Compute Nodes in the Pool.
      This property must not be specified if enableAutoScale is set to false.
      It is required if enableAutoScale is set to true.
  :param azure_batch_conn_id: The :ref:`Azure Batch connection id<howto/connection:azure_batch>`
  :param use_latest_verified_vm_image_and_sku: Whether to use the latest verified virtual
      machine image and sku in the batch account. Default is false.
  :param vm_publisher: The publisher of the Azure Virtual Machines Marketplace Image.
      For example, Canonical or MicrosoftWindowsServer. Required if
      use_latest_image_and_sku is set to True
  :param vm_offer: The offer type of the Azure Virtual Machines Marketplace Image.
      For example, UbuntuServer or WindowsServer. Required if
      use_latest_image_and_sku is set to True
  :param sku_starts_with: The starting string of the Virtual Machine SKU. Required if
      use_latest_image_and_sku is set to True
  :param vm_sku: The name of the virtual machine sku to use
  :param vm_version: The version of the virtual machine
  :param vm_version: str | None
  :param vm_node_agent_sku_id: The node agent sku id of the virtual machine
  :param os_family: The Azure Guest OS family to be installed on the virtual machines in the Pool.
  :param os_version: The OS family version
  :param timeout: The amount of time to wait for the job to complete in minutes. Default is 25
  :param should_delete_job: Whether to delete job after execution. Default is False
  :param should_delete_pool: Whether to delete pool after execution of jobs. Default is False
class_docstr_tok: ["Executes","a","job","on","Azure","Batch","Service",".",":","param","batch_pool_id",":","A","string","that","uniquely","identifies","the","Pool","within","the","Account",".",":","param","batch_pool_vm_size",":","The","size","of","virtual","machines","in","the","Pool",":","param","batch_job_id",":","A","string","that","uniquely","identifies","the","Job","within","the","Account",".",":","param","batch_task_command_line",":","The","command","line","of","the","Task",":","param","batch_task_id",":","A","string","that","uniquely","identifies","the","task","within","the","Job",".",":","param","batch_pool_display_name",":","The","display","name","for","the","Pool",".","The","display","name","need","not","be","unique",":","param","batch_job_display_name",":","The","display","name","for","the","Job",".","The","display","name","need","not","be","unique",":","param","batch_job_manager_task",":","Details","of","a","Job","Manager","Task","to","be","launched","when","the","Job","is","started",".",":","param","batch_job_preparation_task",":","The","Job","Preparation","Task",".","If","set",",","the","Batch","service","will","run","the","Job","Preparation","Task","on","a","Node","before","starting","any","Tasks","of","that","Job","on","that","Compute","Node",".","Required","if","batch_job_release_task","is","set",".",":","param","batch_job_release_task",":","The","Job","Release","Task",".","Use","to","undo","changes","to","Compute","Nodes","made","by","the","Job","Preparation","Task",":","param","batch_task_display_name",":","The","display","name","for","the","task",".","The","display","name","need","not","be","unique",":","param","batch_task_container_settings",":","The","settings","for","the","container","under","which","the","Task","runs",":","param","batch_start_task",":","A","Task","specified","to","run","on","each","Compute","Node","as","it","joins","the","Pool",".","The","Task","runs","when","the","Compute","Node","is","added","to","the","Pool","or","when","the","Compute","Node","is","restarted",".",":","param","batch_max_retries",":","The","number","of","times","to","retry","this","batch","operation","before","it's","considered","a","failed","operation",".","Default","is","3",":","param","batch_task_resource_files",":","A","list","of","files","that","the","Batch","service","will","download","to","the","Compute","Node","before","running","the","command","line",".",":","param","batch_task_output_files",":","A","list","of","files","that","the","Batch","service","will","upload","from","the","Compute","Node","after","running","the","command","line",".",":","param","batch_task_user_identity",":","The","user","identity","under","which","the","Task","runs",".","If","omitted",",","the","Task","runs","as","a","non-administrative","user","unique","to","the","Task",".",":","param","target_low_priority_nodes",":","The","desired","number","of","low-priority","Compute","Nodes","in","the","Pool",".","This","property","must","not","be","specified","if","enable_auto_scale","is","set","to","true",".",":","param","target_dedicated_nodes",":","The","desired","number","of","dedicated","Compute","Nodes","in","the","Pool",".","This","property","must","not","be","specified","if","enable_auto_scale","is","set","to","true",".",":","param","enable_auto_scale",":","Whether","the","Pool","size","should","automatically","adjust","over","time",".","Default","is","false",":","param","auto_scale_formula",":","A","formula","for","the","desired","number","of","Compute","Nodes","in","the","Pool",".","This","property","must","not","be","specified","if","enableAutoScale","is","set","to","false",".","It","is","required","if","enableAutoScale","is","set","to","true",".",":","param","azure_batch_conn_id",":","The",":","ref",":","`","Azure","Batch","connection","id","<","howto\/connection",":","azure_batch",">","`",":","param","use_latest_verified_vm_image_and_sku",":","Whether","to","use","the","latest","verified","virtual","machine","image","and","sku","in","the","batch","account",".","Default","is","false",".",":","param","vm_publisher",":","The","publisher","of","the","Azure","Virtual","Machines","Marketplace","Image",".","For","example",",","Canonical","or","MicrosoftWindowsServer",".","Required","if","use_latest_image_and_sku","is","set","to","True",":","param","vm_offer",":","The","offer","type","of","the","Azure","Virtual","Machines","Marketplace","Image",".","For","example",",","UbuntuServer","or","WindowsServer",".","Required","if","use_latest_image_and_sku","is","set","to","True",":","param","sku_starts_with",":","The","starting","string","of","the","Virtual","Machine","SKU",".","Required","if","use_latest_image_and_sku","is","set","to","True",":","param","vm_sku",":","The","name","of","the","virtual","machine","sku","to","use",":","param","vm_version",":","The","version","of","the","virtual","machine",":","param","vm_version",":","str","|","None",":","param","vm_node_agent_sku_id",":","The","node","agent","sku","id","of","the","virtual","machine",":","param","os_family",":","The","Azure","Guest","OS","family","to","be","installed","on","the","virtual","machines","in","the","Pool",".",":","param","os_version",":","The","OS","family","version",":","param","timeout",":","The","amount","of","time","to","wait","for","the","job","to","complete","in","minutes",".","Default","is","25",":","param","should_delete_job",":","Whether","to","delete","job","after","execution",".","Default","is","False",":","param","should_delete_pool",":","Whether","to","delete","pool","after","execution","of","jobs",".","Default","is","False"]
docstr: Create and return an AzureBatchHook (cached).
docstr_tok: ["Create","and","return","an","AzureBatchHook","(","cached",")","."]
code: def hook(self) -> AzureBatchHook:
      """Create and return an AzureBatchHook (cached)."""
      return AzureBatchHook(self.azure_batch_conn_id)
  
file_path: airflow/airflow/providers/microsoft/azure/operators/batch.py
imports: from __future__ import annotations
  from functools import cached_property
  from typing import TYPE_CHECKING, Any, Sequence
  from azure.batch import models
  from deprecated.classic import deprecated
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
  from airflow.models import BaseOperator
  from airflow.providers.microsoft.azure.hooks.batch import AzureBatchHook
label_desc: Use image node_id 2 for calling the AzureBatchOperator obj's underlying member method code with example usage: obj.hook() and returns: AzureBatchHook