class_docstr: 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.
  
  :param azure_conn_id: :ref:`Azure connection id<howto/connection:azure>` of
      a service principal which will be used to start the container instance.
docstr: Get the messages of a container group.
  
  :param resource_group: the name of the resource group
  :param name: the name of the container group
  :return: A list of the event messages
docstr_tok: ["Get","the","messages","of","a","container","group",".",":","param","resource_group",":","the","name","of","the","resource","group",":","param","name",":","the","name","of","the","container","group",":","return",":","A","list","of","the","event","messages"]
code: def get_messages(self, resource_group: str, name: str) -> list:
      """
      Get the messages of a container group.
  
      :param resource_group: the name of the resource group
      :param name: the name of the container group
      :return: A list of the event messages
      """
      warnings.warn(
          "get_messages() is deprecated. Related method is get_state()",
          AirflowProviderDeprecationWarning,
          stacklevel=2,
      )
      cg_state = self.get_state(resource_group, name)
      container = cg_state.containers[0]
      instance_view: ContainerPropertiesInstanceView = container.instance_view  # type: ignore[assignment]
      events: list[Event] = instance_view.events  # type: ignore[assignment]
      return [event.message for event in events]
  
imports: from __future__ import annotations
  import warnings
  from functools import cached_property
  from typing import TYPE_CHECKING, Any, cast
  from azure.common.client_factory import get_client_from_auth_file, get_client_from_json_dict
  from azure.identity import ClientSecretCredential, DefaultAzureCredential
  from azure.mgmt.containerinstance import ContainerInstanceManagementClient
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
  from airflow.providers.microsoft.azure.hooks.base_azure import AzureBaseHook
  from airflow.providers.microsoft.azure.utils import get_sync_default_azure_credential
label_desc: Use image node_id 6 for calling the AzureContainerInstanceHook obj's underlying member method code with example usage: obj.get_messages(resource_group, name) and returns: unknown