Hi @Robyn To , based on the call stack you provided, it seems that the issue is occurring in the ClientOptions
constructor. The EnvironmentCredential
class is using ClientOptions
to create a client for accessing the Key Vault, and it seems that the ClientOptions
constructor is encountering a null pointer exception.
Here are a few things you can try to resolve this issue:
- Check that you have correctly configured the environment variables required for authentication. The
EnvironmentCredential
class uses environment variables to authenticate with Azure services. You can check the required environment variables in the Azure documentation. - Try using a different authentication method, such as
ClientSecretCredential
orManagedIdentityCredential
, to see if the issue is specific to theEnvironmentCredential
class. - Check that you are using the correct version of the
azure-identity
library. You can check the version in thevcpkg.json
file for the library. - Check that you have correctly initialized the
ClientOptions
object before passing it to theEnvironmentCredential
constructor. You can check the required parameters forClientOptions
in the Azure documentation.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James