2 / 5
Jun 2024

We are in the early stages of building our app and have chosen Azure to host our MongoDB Atlas cluster. Our app is also hosted in Azure, and we want to peer the Atlas cluster with our Azure app.

Is there a way to achieve this using the Administration API? We understand that it can be done through the Atlas UI, but we are specifically looking for an API approach.

We found an API here, but the prerequisites section redirects to the documentation of another API.

Could anyone provide clarity on this topic, including the usage of Azure CLI and the process for granting consent for first-time peering? Any help would be greatly appreciated.

Hi Ajay, and welcome to the forums!

I am not sure which prerequesite you are referring to. The Admin API should only require an API key. Would you care to point me to which documentation you are referring to.

Alternatively, may I recommend looking at our Atlas CLI. It’s not an API per se, but it’s a tool that is often used to programmatically control clusters using bash scripting.

-Joel