ayushri05 commented on issue #14382:
URL: https://github.com/apache/airflow/issues/14382#issuecomment-784851446


   I got the Azure container registry Id with below cmd-
   > az acr show -n <registry name> --query id
   
   and put that in 'registry_conn_id' but it is giving below error and DAG 
failed -
   
   Traceback (most recent call last):
     File 
"/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 
1112, in _run_raw_task
       self._prepare_and_execute_task_with_callbacks(context, task)
     File 
"/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 
1284, in _prepare_and_execute_task_with_callbacks
       result = self._execute_task(context, task_copy)
     File 
"/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 
1314, in _execute_task
       result = task_copy.execute(context=context)
     File 
"/usr/local/lib/python3.7/site-packages/airflow/providers/microsoft/azure/operators/azure_container_instances.py",
 line 212, in execute
       registry_hook = AzureContainerRegistryHook(self.registry_conn_id)
     File 
"/usr/local/lib/python3.7/site-packages/airflow/providers/microsoft/azure/hooks/azure_container_registry.py",
 line 37, in __init__
       self.connection = self.get_conn()
     File 
"/usr/local/lib/python3.7/site-packages/airflow/providers/microsoft/azure/hooks/azure_container_registry.py",
 line 40, in get_conn
       conn = self.get_connection(self.conn_id)
     File "/usr/local/lib/python3.7/site-packages/airflow/hooks/base.py", line 
63, in get_connection
       conn = Connection.get_connection_from_secrets(conn_id)
     File 
"/usr/local/lib/python3.7/site-packages/airflow/models/connection.py", line 
354, in get_connection_from_secrets
       raise AirflowNotFoundException(f"The conn_id `{conn_id}` isn't defined")


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to