class_docstr: A hook to communicate with a Azure Container Registry.
  
  :param conn_id: :ref:`Azure Container Registry connection id<howto/connection:acr>`
      of a service principal which will be used to start the container instance
class_docstr_tok: ["A","hook","to","communicate","with","a","Azure","Container","Registry",".",":","param","conn_id",":",":","ref",":","`","Azure","Container","Registry","connection","id","<","howto\/connection",":","acr",">","`","of","a","service","principal","which","will","be","used","to","start","the","container","instance"]
docstr: Returns connection widgets to add to connection form.
docstr_tok: ["Returns","connection","widgets","to","add","to","connection","form","."]
code: def get_connection_form_widgets(cls) -> dict[str, Any]:
      """Returns connection widgets to add to connection form."""
      from flask_appbuilder.fieldwidgets import BS3TextFieldWidget
      from flask_babel import lazy_gettext
      from wtforms import StringField
  
      return {
          "subscription_id": StringField(
              lazy_gettext("Subscription ID (optional)"),
              widget=BS3TextFieldWidget(),
          ),
          "resource_group": StringField(
              lazy_gettext("Resource group name (optional)"),
              widget=BS3TextFieldWidget(),
          ),
      }
  
file_path: airflow/airflow/providers/microsoft/azure/hooks/container_registry.py
imports: from __future__ import annotations
  from functools import cached_property
  from typing import Any
  from azure.mgmt.containerinstance.models import ImageRegistryCredential
  from azure.mgmt.containerregistry import ContainerRegistryManagementClient
  from airflow.hooks.base import BaseHook
  from airflow.providers.microsoft.azure.utils import add_managed_identity_connection_widgets, get_field, get_sync_default_azure_credential
label_desc: Use image node_id 1 for calling the AzureContainerRegistryHook obj's underlying member method code with example usage: obj.get_connection_form_widgets(cls) and returns: dict