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
0 answers

How to force close connection to a device using Azure Iot Hub direct method?

I'm using Java SDK direct method to send a message to a device and get back some data. The connection stays open for a couple of minutes, as there is no guarantee when the data will be sent back. This is a part of an API call, so when a connection…
0
votes
2 answers

Add Azure Storage Blob Container input binding Azure Functions Java

I have a EventHubTriggered Function app.Here is the code sample of the method signature: @FunctionName("foo") @StorageAccount("foostorageread") public HttpResponseMessage run( @HttpTrigger( name = "req", methods = {HttpMethod.POST}, authLevel =…
Jasmine
  • 135
  • 3
  • 16
0
votes
1 answer

Access Key Vault Certificate from Azure Function using Java

I have a Azure Function In Java. Using Managed Identity and Key Vault reference, I have added a configuration in function app to access the key vault secret and certificate. The secret is referenced correctly and I am able to access its value in…
0
votes
1 answer

How to delete Blob folders using Java SDK v12

I'm trying to simulate a move action (as I haven't seen any move method as such) by copying and deleting blobs between two directories within the same container. For example, inside container A, moving .csv blobs from Folder_1 into Folder_2 and then…
basigow
  • 145
  • 1
  • 11
0
votes
1 answer

Function app EventhubTriggered Java, retries and failure

I am currently working in the Azure function app in java. Here is the scenario: The function app is EventHubTriggered Function app calls the endpoint (HTTPUrlConnection) It gets the response back Now, if the response is 200 OK then it's fine,…
Jasmine
  • 135
  • 3
  • 16
0
votes
1 answer

How to make Functionappname, region and appserviceplan value dynamic in Azure Java Funciton App?

Based on most of the tutorials, it is suggested to add the FunctionAppName, Region, AppServicePlan in the pom.xml file. I will have to deploy this function app to various environments set up(different resource groups). I'd want to give the…
Jasmine
  • 135
  • 3
  • 16
0
votes
1 answer

download large file from azure blob storage using java/android with progress

I am developing one android app where I need to download a file from the Azure blob I am able to download the file using the following code but I also want to show a progress bar while a file is downloading because it will be a large file say around…
Harsh Shah
  • 2,162
  • 2
  • 19
  • 39
0
votes
1 answer

Asynchronous programming for IotHub Device Registration in Java?

I am currently trying to implement the Java web service(Rest API) where the endpoint creates the device in the IoTHub and updates the device twin. There are two methods available in the azure-iot sdk. One is addDevice(deviceId,…
Jasmine
  • 135
  • 3
  • 16
0
votes
1 answer

Azure Cognitive Search Sink Kafka Connector is not working

I am creating a Kafka Connect connector for my Azure cognitive search but getting an error. Not sure if I am missing any configuration. Json configuration for connector: curl -X POST http://localhost:8083/connectors -H "Content-Type:…
0
votes
1 answer

How to get eTag value in Comos v4 sync api container.queryItems()

Facing this issue when using comsos v4 java async apis. I am seeing eTag value, if used container.readItem(), but not in container.queryItems(). when I check response header data in queryItem response, eTag is coming as null. Can anyone please tell…
0
votes
1 answer

How to use an Event Hub Trigger in a Java Azure Function

I am attempting to create a Java Azure Function that triggers off of an Azure Event Hub. I am following these code snippets: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hubs-trigger?tabs=java#example Here is my…
0
votes
1 answer

Azure blobs Java sdk can not return the list of versionIDs of an object

I am trying to get the list of versionIDs of an Azure blob via the Java SDK version 12.10.2 but it only returns the HTTP error 400 with the following error message com.azure.storage.blob.models.BlobStorageException: Status code 400, "
0
votes
1 answer

Azure Data Explorer Metrics

how can i get the "CacheUtilization" metric from "Azure Data Explorer" using java. Are there any JAVA SDKs that help fetch the metrics from "Azure Data Explorer" service?
0
votes
1 answer

Create database inside Azure Cosmos DB account with RBAC

I use java version 4 SDK for azure cosmos db. I want to create database inside azure cosmos db account with service principal, not with masterkey. I assigned to service principal DocumentDB Account Contributor and Cosmos DB Operator built-in-role…
0
votes
1 answer

CosmosDB SQL API Java SDK v.4 ReadAllItems method does not return results

I encountered some obstackles with getting results from cosmos db sql api using methods: .readAllItems(partitionKey, classType) .readAllItems(partitionKey, options, classType) Above methods work fine when I have flat structure of class. I mean no…