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
8
votes
1 answer

Upload of large files using azure-sdk-for-java with limited heap

We are developing document microservice that needs to use Azure as a storage for file content. Azure Block Blob seemed like a reasonable choice. Document service has heap limited to 512MB (-Xmx512m). I was not successful getting streaming file…
7
votes
4 answers

Azure Functions with java - How to get the logs written within the function?

I've deployed a queue triggered azure function with Java in Azure. I've added logback-classic and lombok in pom.xml for logging. But the logs are not displayed on the function's monitor > invocation details or the log-streaming service in…
Master Po
  • 1,497
  • 1
  • 23
  • 42
5
votes
1 answer

Listing blobs in Azure Blobstorage using Azure Java SDK V12 and ListBlobs() is extremely slow

I need to list all of the blobs in an Azure Blobstorage container. The container has circa 200,000~ blobs in it, and I'm looking to obtain the blob name, the last modified date, and the blob size. Following the documentation for the Azure Java SDK…
Compy
  • 1,157
  • 1
  • 12
  • 24
5
votes
2 answers

Azure Storage Java API: Account does not support HTTP

I am trying to use the Azure Storage Java API to check if a storage container exists and I am seeing the following exception. Any Idea what it means? ERROR ~ com.microsoft.azure.storage.StorageException: The account being accessed does not support…
nwarriorch
  • 337
  • 6
  • 16
5
votes
1 answer

Connecting Azure Service Bus with Android

I wrote a simply java program (jdk 1.7) that lists all my service bus topics and prints out the name of each topic to stdout: try { String namespace = "myservicebus"; // from azure portal String issuer = "owner"; // from azure portal …
stef
  • 271
  • 3
  • 10
4
votes
1 answer

Cosmosdb spring boot sdk setting x-ms-max-item-count

How can I set x-ms-max-item-count from java sdk? is there an option to set page size to retrieve documents? currently it is limited to 100, i would like to increase it to 1000? how can i do it through the java SDK? I am using ReactiveCosmosTemplate…
DarthVader
  • 52,984
  • 76
  • 209
  • 300
4
votes
1 answer

Connection to Azure Service Bus using Java Spring Application - Timeout

I have written a client which tries to connect to Azure service bus. As soon as the server starts up i get the below errors and i receive no messages present at the queue. I tried replacing the sb protocol with amqpwss, but it dint…
4
votes
2 answers

Azure documentDB - Resource with specified id or name already exists

In Azure Cosmo DocumentDB in my application, Am getting following error 2018-03-27 14:42:057 ERROR c.h.m.s.CosmosDBFruiteService - Could not add Fruites to Customer Reference : 11416e34-3620-45a4-b3be-b845bbf41762 Message: {"Errors":["Resource…
4
votes
2 answers

How to get list of Azure VMs (non-classic/Resource Managed) using Java API

How to get list of VMs (non-classic) using Java API, which are created using resource Manager? Why we need tenant id, client id and client key to create 'com.microsoft.azure.management.compute.ComputeManagementClient' object? Can it be done using…
3
votes
3 answers

How to generate azure blob storage SAS url using java?

I want to generate a SAS url that i can share with user to connect to storage account and upload a file to any location. How can i generate the SAS url using java api. i found one documentation but looks like all api are depreciated…
Mohit Singh
  • 401
  • 1
  • 10
  • 30
3
votes
3 answers

Copy Blob in Azure Blob Storage using Java v12 SDK

My Application is in a Kubernetes cluster and I'm using Java v12 SDK to interact with the Blob Storage. To authorize against Blob Storage I'm using Managed Identities. My application needs to copy blobs within one container. I haven't found any…
vzhemevko
  • 815
  • 8
  • 25
3
votes
2 answers

The requested module '@azure/arm-authorization' is expected to be of type CommonJS

I am using Node 14.5.0 with a default Express.JS installation. I need to leverage the Azure SDK for Node using Imports and have changed the default express require from: const express = require('express') to: import express from 'express'; Express…
Kode
  • 3,073
  • 18
  • 74
  • 140
3
votes
1 answer

How to get blob Download Progress in Azure blob download

I want to download a large size blob from Azure blob storage. Let's say my blob size is 2 GB. I want to get the progress of the download in percentage using java-sdk so that I can show some pretty progress bar. I am using following code to download…
CodeTalker
  • 1,683
  • 2
  • 21
  • 31
3
votes
3 answers

Cosmos Db Trigger is not being run when inserting new document

I am using Azure Cosmos DB. I have created a simple trigger in Azure Portal as follows: var context = getContext(); var request = context.getRequest(); // item to be created in the current operation var itemToCreate = request.getBody(); …
fascynacja
  • 1,625
  • 4
  • 17
  • 35
3
votes
3 answers

Azure blob container listBlobs to fetch files with a specific extension in java

I've a java code where I list blobs and filter in for loop to fetch only files with a specific extension. Is there a way to query/request container to return just blobs with specific extension? I don't want to loop through all the blobs in the…
1
2 3
19 20