azure, git and submodules – the bitbucket howto
This cost me a while, so maybe it can help one or the other.
It seems when azure connects to bitbucket (which you allow) a new deployment key is created and assigned to the repository you want to clone. If this repository contains a submodule the deployment won’t work as the key which is used for the deployment is not known.
Fortunately this key is stored in the deployment keys of the original repository (look at the repository settings of bitbucket). You can even see it, but not copy it. What you can do is to write it down (Cumbersome)
I actually copied it from chrome console
$(„textarea“).val()
Now i also know that bitbucket uses jQuery 🙂
Use this value (without the hyphens) as deployment key for your submodule and you’re ready to go.
If anyone knows where to find these keys inside azure, please leave me a comment. I’m also happy to hear better ways of doing this, but for the moment it’s ok.
Only as a reminder:
Create a public key out of the key file:
(This is what most discussions end up with)
ssh-keygen -y -f mykey.pem > mykey.pub
(but his worked for me)
ssh-keygen -y -f mykey.key > mykey.pub