airflow.contrib.hooks.azure_container_instance_hook
¶
Module Contents¶
-
class
airflow.contrib.hooks.azure_container_instance_hook.
AzureContainerInstanceHook
(conn_id='azure_default')[source]¶ Bases:
airflow.hooks.base_hook.BaseHook
A hook to communicate with Azure Container Instances.
This hook requires a service principal in order to work. After creating this service principal (Azure Active Directory/App Registrations), you need to fill in the client_id (Application ID) as login, the generated password as password, and tenantId and subscriptionId in the extra’s field as a json.
- Parameters
conn_id (str) – connection id of a service principal which will be used to start the container instance
-
get_state_exitcode_details
(self, resource_group, name)[source]¶ Get the state and exitcode of a container group
-
get_logs
(self, resource_group, name, tail=1000)[source]¶ Get the tail from logs of a container group