Questions tagged [azure-java-sdk]

Windows Azure Java SDK provides quick integration support for Java platform with Microsoft's Azure services.

Microsoft has provided the artifact microsoft-windowsazure-api for Java developers wanting to integrate with Azure using a managed Java library instead of coding around the Azure REST API. The Azure Java SDK supports Maven on Windows, Linux, and Mac.

286 questions
0
votes
2 answers

DocumentDB Java SDK - Get Resource Units

I am trying to get the currently allocated RUs for a DocumentDB collection using Java SDK. Anyone have any inputs?
everydaylearn
  • 143
  • 3
  • 14
0
votes
1 answer

Cant find Azure VM Option B-series at enum VirtualMachineSizeTypes

At com.microsoft.azure.management.compute.VirtualMachineSizeTypes (Virtual Machine options enum) I cant found items of B-series as mention at Azure Linux Virtual Machines Pricing. there is any reason for it?
Shlomy Z
  • 301
  • 2
  • 14
0
votes
0 answers

Getting power state of a Azure VM using Java SDK is very slow

I am using version 1.1.2 of the Azure JAVA SDK. The API call for getting the powerstate of a VM is taking too long to respond.On an average it takes around ~8 seconds to get the power state of a single VM. Our subscription of around 30 VMs takes 260…
user1142317
  • 533
  • 1
  • 8
  • 20
0
votes
1 answer

Test case for Azure JAVA SDK PagedList

I am trying to write a simple test case in which I am trying to make a PagedList (com.microsoft.azure.PagedList) return a mock object. But I am unable to understand the underlying implementation to be able to do so. If anyone has any example or have…
user1142317
  • 533
  • 1
  • 8
  • 20
0
votes
2 answers

Upload file to Azure Datalake Store from local using Java SDK

Is there any way to upload files from local to ADLS using Java SDK? I have tried using the following code to upload but the code is not getting compiled as it says the constructor is not visible. com.microsoft.azure.datalake.store.Utils ut=new…
Abhra Ray
  • 99
  • 1
  • 10
0
votes
1 answer

ADLS java sdk data copy

Is there a way to copy data over secure channel using the Azure ADLS java SDK? ADLFileOutputStream can be used to steam data to ADLS. Wanted to know if there is a secure API for this.
stendu
  • 1
  • 2
0
votes
1 answer

Unable to install Azure Toolkit for Eclipse

Anyone out there who has successfully installed Azure Toolkit for Eclipse? This is the documentation I am trying to follow. Per this documentation at step 4, Azure Toolkit for Java should be listed for installation. I do not see this option and…
Cyac
  • 447
  • 3
  • 15
0
votes
2 answers

Error Connecting Azure Key Vault using Java

I am new to Azure related concepts and am facing issue in connecting the Azure Key vault. Please find my code snippets as follows and let me know why am getting the below exception: Get Key started.../n SLF4J: Failed to load class…
Esh
  • 836
  • 5
  • 16
  • 43
0
votes
2 answers

List Azure Resources By Tag Using Java SDK

Is there a way to get list of resources or resource groups using values assigned on tags using Java SDK? Thanks
user3499779
  • 23
  • 1
  • 6
0
votes
2 answers

Azure: Cannot specify storage account while creating a new UN - managed disk for azure.

I am trying to create and attach an unmanaged storage disk to Azure. I am unable to specify the storage account while creating the disk. vm.update().defineUnmanagedDataDisk(diskLabel) .withNewVhd(lun) …
nwarriorch
  • 337
  • 6
  • 16
0
votes
1 answer

Azure Java: cannot add plan information while creating VM

Version: 1.1.0 I am creating a VM using a market place image. My code looks something like this VirtualMachine linuxVM = azure.virtualMachines().define(name) .withRegion(Region.US_WEST) …
nwarriorch
  • 337
  • 6
  • 16
0
votes
0 answers

Java EventProcessorHost not using prefetchCount

I've implemented an EventProcessorHost with Java and have the prefetchCount value set but the number of EventData objects passed to my IEventProcessor object never approaches this value (I set it to 200, maxBatch to 100). What drives whether or not…
user1116536
  • 373
  • 1
  • 5
  • 11
0
votes
2 answers

Azure delete orphaned disks

I am using Azure Java SDK and am trying to get a list of all the orphaned disks in the subscription. Is there a way in the current Azure Java SDK to get this list ?
user1142317
  • 533
  • 1
  • 8
  • 20
0
votes
1 answer

Azure Java SDK 1.0.0 osDiskStorageAccountType() returns null always

I started using Azure Java SDK 1.0.0 recently and I noticed that for a VM the method osDiskStorageAccountType() always returns null. The SDK is unable to even get information about the attached data disks.
user1142317
  • 533
  • 1
  • 8
  • 20
0
votes
1 answer

Azure: VM's not assigned fault or update domains

I provisioned a few Azure VM's in an Availability set using the Azure Java SDK. The VM deployed successfully and is running. However, one of the VM's, the one provisioned first, does not display a fault domain or an update domain. Why is my VM not…
nwarriorch
  • 337
  • 6
  • 16