airflow.providers.microsoft.azure.hooks.container_instance¶
Classes¶
A hook to communicate with Azure Container Instances.  | 
Module Contents¶
- class airflow.providers.microsoft.azure.hooks.container_instance.AzureContainerInstanceHook(azure_conn_id=default_conn_name)[source]¶
 Bases:
airflow.providers.microsoft.azure.hooks.base_azure.AzureBaseHookA 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:
 azure_conn_id (str) – Azure connection id of a service principal which will be used to start the container instance.
- get_conn()[source]¶
 Authenticate the resource using the connection id passed during init.
- Returns:
 the authenticated client.
- Return type:
 Any