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: Create a new container group.
  
  :param resource_group: the name of the resource group
  :param name: the name of the container group
  :param container_group: the properties of the container group
docstr_tok: ["Create","a","new","container","group",".",":","param","resource_group",":","the","name","of","the","resource","group",":","param","name",":","the","name","of","the","container","group",":","param","container_group",":","the","properties","of","the","container","group"]
code: def create_or_update(
      self,
      resource_group: str,
      name: str,
      container_group: ContainerGroup,
  ) -> None:
      """
      Create a new container group.
  
      :param resource_group: the name of the resource group
      :param name: the name of the container group
      :param container_group: the properties of the container group
      """
      self.connection.container_groups.begin_create_or_update(
          resource_group, name, container_group
      )
  
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 4 for calling the AzureContainerInstanceHook obj's underlying member method code with example usage: obj.create_or_update(resource_group, name, container_group) without return types