Managed Azure Kubernetes Service

Using private github repositories

Set up access to a private GitHub repository in Argo CD for managing your applications.

On this page

Overview

This guide will help you set up access to a private GitHub repository in Argo CD for managing your applications.

Note

Please continue to the next step if you are using a public repository - 7. Deploy your workloads

Dont have any repository but still want to test the deployment process?

You can use the following public sample repository.

Configure access to private github repository

Open the Argo CD UI in your web browser.

Open Settings

Go to the Settings section in the left menu.

Connect to Repository

  1. Click on Repositories.
  2. Choose Connect Repo.
  3. Keep the default setting of Via SSH in the connection method dropdown.
  4. Select the default project.
  5. Paste your Github Repository URL into the Repository URL field. Eg. https://github.com/fortytwoservices/sampleapps.git
  6. In the SSH private key data field, paste your SSH private key. This key is generated in your GitHub repository settings.
Info

Not sure where to find or how to create a Github SSH Key? Check out the docs: GitHub SSH Key Setup.

Conclusion

You have now configured Argo CD to access a private GitHub repository, enabling you to manage applications hosted in that repository.

Next step

Last updated 2 November 2026 Edit this page on GitHub
Esc