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
3
votes
2 answers

Azure Java SDK - set block blob to cool storage tier on upload

Is there a way to set the storage tier to “cool” at the blob level when uploading a block blob to Azure Storage using the Java SDK? The closest thing I can find is setStandardBlobTier() on BlobProperties, which is a protected method, so it can't be…
Anonymous1
  • 3,877
  • 3
  • 28
  • 42
3
votes
1 answer

Batch insert in documentdb using java driver

I'm using the java-sdk for CRUD operation in cosmosdb, I was able to do basic insert of a employee DTO and all looks good. But now I want to do batch insert and could not able to find appropriate api for this. I come across the cosmosdb…
lambodar
  • 3,495
  • 5
  • 34
  • 58
2
votes
1 answer

getting error "Failed to get version of function(null)" in Intellij while running azure function

I am trying to run azure function in local in intellij. While I run in local, I get this error in intellij : when I click on configure, I see that the path is set correctly. Now, I have tried uninstalling the current azure tools, and installing…
Onki
  • 1,879
  • 6
  • 38
  • 58
2
votes
1 answer

Azure Cosmos SQL API - How do I store a custom object as @PartitionKey

Is it possible to store a custom POJO as a Json String using @PartitionKey using Java 8.? Is yes, please tell me how . import com.azure.spring.data.cosmos.core.mapping.PartitionKey; @PartitionKey private Result result; result will have…
Alferd Nobel
  • 3,185
  • 2
  • 30
  • 35
2
votes
2 answers

How to set content type using Azure Java azure-storage-blob SDK

My code looks like: try { MultipartFile file = uploadFileInfo.getUploadFile(); InputStream inputStream = new BufferedInputStream(file.getInputStream()); BlobProperties props = blockBlobClient.getProperties(); …
user2395365
  • 1,991
  • 4
  • 18
  • 34
2
votes
1 answer

How to upload multiple chunks of a single video file in Azure Blob Storage using java sdk?

I want to transfer a huge file from s3 (4.5GB of Size) to Azure blob Storage as a single file. Since it is a huge file we are trying to break that s3 file into multiple chunks of block size 5MB. Each chunk is uploaded to azure blob storage and at…
Sriram
  • 21
  • 2
2
votes
1 answer

Delete files in batch from azure blob storage using service account

I am using azure blob storage to store my project files. I have a service account of azure blob storage(client_id and client_secret).I have created CloudBlobClient using StorageCredentialsToken as below: StorageCredentialsToken credentialsToken =…
Nitin
  • 2,701
  • 2
  • 30
  • 60
2
votes
1 answer

How to ensure a blob filename is unique on Azure Storage

I want to ensure the files I put on Azure storage are unique. My naive and badly performing approach is to use Java UUID to generate unique id and then check to see if the blob exists, and then write the file if not or regenerate new filename and…
user2395365
  • 1,991
  • 4
  • 18
  • 34
2
votes
1 answer

Azure Blob Error: StorageException: The condition specified using HTTP conditional header(s) is not met

So I have a function that simply downloads text from blob storage every 10 minutes and checks for a result. This function can run for days. But it often (roughly every day) fails before finishing with the following error. Caused by:…
OneTwo
  • 2,291
  • 6
  • 33
  • 55
2
votes
1 answer

Azure Java SDK - How/ Which one to use?

I am very confused about using Azure Java SDK. Firstly, I found and started using https://mvnrepository.com/artifact/com.microsoft.azure/azure version 1.31.1. I have been using this for a while but today my CI software failed to build my…
Saita
  • 964
  • 11
  • 36
2
votes
1 answer

How to create the SqlQuerySpec in Java in order to retrieve a list of documents with given ids (where-in clause)

I am working on Azure Cosmos DB with SQL Api. I am using Azure SDK from: com.microsoft.azure azure-documentdb 2.4.7 I have a list of ids, and I…
2
votes
2 answers

Azure list Azure Database for PostgreSQL servers in Resource group using Azure Java SDK

What is the best and correct way to list Azure Database for PostgreSQL servers present in my Resource Group using Azure Java SDK? Currently, we have deployments that happen using ARM templates and once the resources have been deployed we want to be…
jmistry
  • 33
  • 6
2
votes
1 answer

Generate Signed URL for Azure Blob Storage using Java SDK

I am trying to create signed URLs for a file in Azure Blob using Java SDK. Here is the snippet that is used - String container = "test"; String path = "hello/world.json"; long expiry = 2000; SharedKeyCredentials creds = new…
Deepak Puthraya
  • 1,325
  • 2
  • 17
  • 28
2
votes
1 answer

Throttling issue while listing Azure Storage Accounts

I am using Azure JAVA SDK and am trying to list the Storage Accounts for the subscription. But I am intermittently getting this exception response. com.microsoft.azure.CloudException: Status code 429, …
user1142317
  • 533
  • 1
  • 8
  • 20
2
votes
1 answer

Does azure Java SDK support metric collections?

I am looking at the GitHub repo and (https://github.com/Azure/azure-sdk-for-java) and I can't seem to find any example on how to obtain the metrics from Azure environment. Is it even supported by the SDK ?
user1142317
  • 533
  • 1
  • 8
  • 20
1
2
3
19 20