Here are the steps you can follow to configure the Config Server on Azure Spring Apps which uses SSH authentication to connect to a git repository on GitHub.
ssh-keygen -m PEM -t rsa -b 4096 -C "test@mymail.com"
This will create a public key (.pub) and a private key.
Go to your GitHub account -> Settings -> SSH and GPG keys Click on New SSH key and copy the public key here.
Go to the Azure Spring Apps Service -> Config Server
Specify the GitHub URL, Label etc. and choose SSH as the Authentication protocol. Copy your private key in the text box and save.
Refer: Clone GitHub Repository using SSH
eval "$(ssh-agent -s)"
ssh-add <private key>
git clone <GIT_URL>
#Example of the URL: git@github.com:username/testconfig.git
You should now have access to your private GitHub Repository via SSH from Azure Spring Apps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.