Add a Kubernetes secret to access a private container registry

APPLIES TO: Azure Data Factory Azure Synapse Analytics

Tip

Try out Data Factory in Microsoft Fabric, an all-in-one analytics solution for enterprises. Microsoft Fabric covers everything from data movement to data science, real-time analytics, business intelligence, and reporting. Learn how to start a new trial for free!

This article explains how to add a Kubernetes secret to pull a custom image from a private Azure Container Registry within the Azure Data Factory Workflow Orchestration Manager environment.

Note

Workflow Orchestration Manager for Azure Data Factory relies on the open-source Apache Airflow application. You can find documentation and more tutorials for Airflow on the Apache Airflow Documentation or Community webpages.

Prerequisites

Create a new Workflow Orchestration Manager environment

Open Azure Data Factory Studio and on the toolbar on the left, select the Manage tab. Then under Workflow orchestration manager, select Apache Airflow. Finally, select + New to create a new Workflow Orchestration Manager environment.

Screenshot that shows the steps to create a new Workflow Orchestration Manager environment in Azure Data Factory Studio.

Add a Kubernetes secret

On the Airflow environment setup window, scroll to the bottom and expand the Advanced section. Then under Kubernetes secrets, select + New.

Screenshot that shows the Airflow environment setup window with the Advanced section expanded to show the Kubernetes secrets section.

Configure authentication

Provide the required field Secret name. For Secret type, select Private registry auth. Then enter information in the other required fields. The Registry server URL should be the URL of your private container registry, for example, \registry_name\>.azurecr.io.

Screenshot that shows the Create airflow secret window and its fields.

After you enter information in the required fields, select Apply to add the secret.