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
1
vote
1 answer

Azure Java ServiceBus Queue Java receive or complete messages in batch for better performance

I am trying to receive messages from a queue and had experimented with different methods and was facing performance issues. Below are the metrics for each type of run: Receive Mode = peek and lock; 1000 messages took 2.5 minutes as I had to…
Shez Ratnani
  • 312
  • 3
  • 15
1
vote
2 answers

Unable to connect to azure-blob-storage after upgrading from v8 to v12 java sdk in azure using spring boot

I am upgrading my existing spring boot application which uses azure-blob-storage from V8 SDK to V12 SDK. But I am getting authorization error. I almost tried all the examples suggested in azure sdk, but none of them are working. Below is the code…
Venu
  • 1,513
  • 3
  • 19
  • 37
1
vote
0 answers

failed to test azure purview SDK for Java due to "IntelliJ Authentication not available

I'm following this sample to test purview SDK for java, it could be built successful, but when I run this java file ,it's failed due to "IntelliJ Authentication". BTW, I just edit one java file and run it in cmd windows, also I logon the IntelliJ…
Alex Wang
  • 103
  • 1
  • 10
1
vote
0 answers

How to receive EventGrid Events in the POST method of JAVA

I was trying to see if we need to set the Header(similar to the ones in the picture below) to send the data to the HTTP POST endpoint of Java to read the data in the EventGrid Schema sent by Event Grid or if there is any other way the Java POST…
Jasmine
  • 135
  • 3
  • 16
1
vote
1 answer

Azure get list of roles assigned to Service principal in Java

I have an App1 (MultiTenant) which is in HomeTenant1 and has Clientid1. This App1 is registered as Service Principal in Tenant2. This App1 was then assigned few roles in Tenant2 on Subscription level scope. Ex. say Contributor role on Subs2 of…
1
vote
3 answers

How to check if resource name is valid using Azure SDK or API

I'm using Azure java SDK as a client for creating resources on Azure. I'm trying to validate the resource name before creating it. I'm able to check if the resource with the given name already exists in that resource group, but I want to validate if…
HyperioN
  • 3,433
  • 2
  • 22
  • 36
1
vote
1 answer

Listing my Azure permissions from Azure Java SDK

There is Azure API for listing my own permissions. It's partially documented in Azure API Permissions doc (thought they miss the per-subscription case in documentation). I am struggling to find a way how to call this API via Azure Java SDK - there…
Michal
  • 1,262
  • 1
  • 12
  • 22
1
vote
2 answers

How to rename a container in Azure Cosmos DB with Java SQL API?

It look like that it is not possible to rename a container in the Azure Cosmos DB. It should be copy to the new container via a bulk operation. How can I do this with the Java SDK? Are there any samples for it?
Horcrux7
  • 23,758
  • 21
  • 98
  • 156
1
vote
0 answers

How to get the AsyncDocumentClient from the CosmosAsyncClient?

I use the latest version of Azure Cosmos DB Java SDK v4. I have an instance of CosmosAsyncClient and CosmosAsyncDatabase. How can I get legal access to the AsyncDocumentClient? I need it for creating an attachment. All samples for attachments starts…
Horcrux7
  • 23,758
  • 21
  • 98
  • 156
1
vote
1 answer

Retrieve all Managed Devices using Java (with Microsoft Graph API SDK)

I would like to retrieve all devices managed by Intune (managed devices) using the Microsoft Graph Java SDK. I have created the app in Microsoft Azure and given the appropriate API permissions: API Permissions The following code creates a…
1
vote
1 answer

How to move file between azure blob containers using java?

How i can move file from one blob container to another using java api. i am using below SKD from microsoft. Gradle dependency: compile group: 'com.azure', name: 'azure-storage-blob', version: '12.8.0' how i can move a file between blob storage…
Mohit Singh
  • 401
  • 1
  • 10
  • 30
1
vote
1 answer

Azure assign role to VM with Java SDK

I am writing a Java program that creates a VM and accesses files from a storage. However, I am having trouble to assign that VM the role "Storage contributor/owner", so that it can. I currently have this code, but I'm not sure if it's what I need…
vedsil
  • 137
  • 18
1
vote
1 answer

How to disable Blob existence check in Azure function Output Binding

I have Azure function annotations defined as below. Blob trigger reads data from Storage account processes and uses return value to write Output to a Blob container with "filename".json defined in the binding. This is working as expected; however,…
1
vote
1 answer

Azure sdk for Java How to Setup User Delegation Key and Shared Authentication Signatures SAS

The following code throws an exception at the last line: // Create a BlobServiceClient object which will be used to create a container client System.out.println(String.format("Connection String %s", connectStr)); …
blanNL
  • 360
  • 1
  • 11
1
vote
1 answer

CosmosDBInput binding of Azure Function is not using path Variable defined in HttpTrigger

I have created a function with Kotlin using azure-functions-kotlin-archetype. I have created a Http Trigger and a cosmos input binding to read data from the cosmos. I have mentioned sql query also to fetch the data. I want to pass path variable to…