I am trying to get vm information from java to sdk

hmkwon@lgcns.com 21 Reputation points
2021-02-06T07:02:09.927+00:00

![64680-image.png]1

I am trying to get vm information from java to sdk, but I get NoClassdefFoundError.

The code is below and there is a problem with the authentication part

What is the cause?

        Azure azure = Azure.configure()  
                .withLogLevel(LogLevel.BASIC)  
                .authenticate(credFile)  
                .withDefaultSubscription();
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,014 questions
{count} votes

1 answer

Sort by: Most helpful
  1. prmanhas-MSFT 17,946 Reputation points Microsoft Employee Moderator
    2021-02-09T07:33:22.713+00:00

    @hmkwon@lgcns.com Apologies for the delay in response and all the inconvenience caused because of the issue.

    You can refer to below issue with the same exception on different Azure issue which might be helpful in your use case:

    https://github.com/Azure/azure-sqldb-spark/issues/28

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/c120508e-e7dc-45f2-a5a7-6b4582bd2c12/azure-resource-manager-java-sdk?forum=WAVirtualMachinesforWindows

    https://stackoverflow.com/questions/49319459/after-upgrading-the-azure-sdk-version-to-1-7-0-authentication-code-failed-java

    The above discussion might be helpful for you to give your pointers to resolve the issue.

    Also I would encourage you to open SDK related issue on GitHub here.We do have our Product Group Team working on issues on SDK and can help you out better with your issues.

    Hope it helps!!!

    Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.