How to use Azure credentials in Morpheus Plugin?


We are trying to display some custom data from Azure through REST API.

Are there any examples on how to use Azure Managed Identity (MSI) and Azure Keyvault?

We are extending the class AbstractInstanceTabProvider.

And we would like to grab the credentials directly from keyvault rather than getting it from the Morpheus built-in Credentials store.
To access the keyvault, we plan to use MSI, so no credentials need to be stored/hardcoded in the plugin.

The Morpheus appliance nodes are already setup with MSI.

Is this possible to do?

Thanks in advance!

We are leaning towards the Azure SDK for Java.

Looks like that we can use the libraries:

  • azure-identity
  • azure-security-keyvault-secrets