我正在使用 1.0.0-beta4.1 Azure Java SDK。这是我的身份验证代码
// TODO Auto-generated method stub
String client = "xxxxxxxxxxx";
String tenant = "xxxxxxxxxxx";
String key = "xxxxxxxxxxx";
String subscriptionId = "xxxxxxxxxxx";
ApplicationTokenCredentials credentials = new ApplicationTokenCredentials(client, tenant, key, AzureEnvironment.AZURE);
Azure azure = Azure.authenticate(credentials).withSubscription(subscriptionId);
System.out.println("Listing all resource groups");
如果凭据不正确,该代码不会引发任何错误。有什么办法可以查到认证是否成功。