310 questions
0
votes
0
answers
92
views
Unable to Connect to Azure Blob Storage from Java Using Managed Identity
I am trying to connect to an Azure Blob Storage account from my VM using Managed Identity in Java. Below is the code I have implemented to establish the connection. I have made all the required ...
0
votes
0
answers
99
views
How to extract private part of RSA key from Azure Key Vault?
I'm using Java & Spring Boot for an endpoint which sole purpose is to create, sign and issue JWT. The library used for creating JWTs is java-jwt. I have a problem creating a com.auth0.jwt....
0
votes
1
answer
71
views
Applying back pressure while receiver and consumer are on different threads (Azure SDK for Java)
I am struggling to implement something and am hoping to get some guidance here.
We are switching to ASB and need to fit our incoming message processing into an existing framework.
Our requirements are ...
0
votes
2
answers
70
views
Azure SDK for Java lists some VMs with empty fields
I'm trying to enumerate VMs of Azure for a certain Resource Group. On some tenants the SDK returns part of the VMs with zeroed fields (like computerName() == 'null').
Code sample:
var ...
0
votes
1
answer
632
views
10000ms timeout in netty while using azure java sdk connecting to ADL2
We are using the Azure java SDK to connect to ADL2 storage, and occasionally get an error like "connection timed out after 10000 ms". But I don't understand where that 10000ms timeout comes ...
0
votes
1
answer
87
views
Using sync I/O with ADL2 storage to reduce memory use in Java
We've used azure ADL2 for some time, and the amount of memory it consumes is problematic, forcing us to use awkward and lower-performing techniques. In a discussion in this github issue, it was ...
0
votes
1
answer
546
views
How to upload file to folder using BlockBlobClient
I am using azure-storage-blob Java SDK version 12.8.0 with SpringBoot 2.x, and I would like to do multipart-uploads from local storage to Azure blob container, it worked well when specifying the ...
0
votes
1
answer
245
views
How to filter users in directory by company name with Microsoft Graph Java SDK?
I'm working with Microsoft Graph API to get users from my organisation. Here's what I have so far that fetches all users:
TokenCredentialAuthProvider authProvider = new TokenCredentialAuthProvider(
...
0
votes
1
answer
649
views
How do I disable logging on OkHttp okhttp3.internal.platform.Platform class, coming from OkHttpLoggingInterceptor?
How do I disable logging on OkHttp okhttp3.internal.platform.Platform class, coming from OkHttpLoggingInterceptor ?
I get log messages , that I am unable to turn off from config in host.json . They ...
0
votes
1
answer
1k
views
How to authenticate to Azure AD using java SDK
I am trying to create an authentication method to autheticate to azure ad for adding an removal of users via my java code. I have a free tier account setup for the same. below is the method I used for ...
0
votes
1
answer
322
views
Azure BlobContainerClient vs BlobContainerAsyncClient
I am just starting on code to download files from Azure blob using java SDK.
while searching found two different clients for Blob. BlobContainerClient and BlobContainerAsyncClient. what's the ...
0
votes
2
answers
333
views
AccessDeniedHandler not called when using AadResourceServerHttpSecurityConfigurer
My application is a simple resource server — I am using AadResourceServerHttpSecurityConfigurer.aadResourceServer() to validate the given access token. The specific documentation I have followed can ...
2
votes
1
answer
397
views
Timeout error when reading large blobs in Azure container through Java SDK
I am trying to read the InputStream of a large blob from an Azure container and store it in another cloud storage of my own.
For small files, it is working perfectly. But for large blobs (around 3GB), ...
0
votes
1
answer
144
views
Legacy JDK 8 project - Runtime error with Azure Java SDK
We want to integrate Azure Service bus Java SDk in a legacy project that has JDK 8. The project compiles fine, but spits out the following run time error:
'com/azure/spring/cloud/autoconfigure/...
0
votes
0
answers
239
views
Download blob to a path using azure blob java sdk with UTF-8 encoded file name
I have blobs in a folder location and sometimes the blob name has some Chinese characters in it. For example, I have blob name as 项目.xlsx. Currently I am using downloadToFile method where am trying to ...
0
votes
1
answer
2k
views
Having trouble implementing Microsoft Graph Java SDK to list licenses assigned to user
I'm currently working on integrating Microsoft Graph APIs into my Java application to retrieve license details for users in my Microsoft 365 tenant. I referred to the official Microsoft documentation ...
0
votes
0
answers
87
views
Unknown characters while reading PDF file from Azure Blobl Storage
I want to read PDF from azure blob storage and convert it into Base64 format. Following is the code that works fine with .txt file format but for .pdf file, it gives unknown characters which I ...
0
votes
1
answer
146
views
Nothing read from Azure Blob storage after downloading file in stream data
I'm fetching file from Azure blob storage with the following code but downloadedData is always empty string. I referred this MS document to read the file from the location. The file is not empty and ...
1
vote
1
answer
211
views
cosmos Change feed listener in java
I am implementing change feed listener in java. I don't want to use function App for it.
Implementation is almost completed but it is not running and throwing error:
leaseClient: content response on ...
0
votes
1
answer
478
views
How to avoid "PKIX path building failed" error while querying Kusto with Java SDK?
I'm using Java SDK for Kusto (Azure Data Explorer).
<groupId>com.microsoft.azure.kusto</groupId>
<artifactId>kusto-data</artifactId>
<version>5.0.3</version>
I'm ...
0
votes
1
answer
251
views
Azure blob API returns sure the value of Authorization header is formed correctly including the signature when uploading file to it
I am trying to use java SDK in order to connect to Azure Blob. On the method create if not exists I constantly get a general error.
StorageCredentials storageCredentials = new ...
-2
votes
1
answer
123
views
Is there any Java application code that is connecting to Azure Data Factory using Azure Java SDK?
I need to write a java application code using Azure Java SDK, to connect to Azure Data Factory to run the pipeline, to get the status of pipeline and to cancel the pipeline. I need a sample code for ...
2
votes
0
answers
199
views
1.5 billion record insertion into cosmos db using java SDK
I have to insert around 1.5 billion records in cosmos db using Java SDK which is broken into batches of 7k documents. I have written the code which generates the data first in the loop then put it ...
1
vote
0
answers
323
views
Azure Event Hub Not Using All Partitions
I have written an app using Azure Java SDK which pushes data to Azure Event Hub. This app makes use of partitioning and I'm using the car (a single manufacturer) VINs as the partition key. As the ...
0
votes
2
answers
1k
views
Having trouble downloading a certificate from Azure KeyVault as a .PFX using the Java SDK
Having trouble downloading a certificate from Azure KeyVault as a .PFX using the Java SDK.
After the download, the cert is not openable like the original HEX-encoded .PFX file is , before I uploaded ...
0
votes
1
answer
767
views
Application Insights integration with SpringBoot 2.7.12
I have a spring boot version,
and applicationinsights-runtime-attach dependencies. Before main method, ApplicationInsights.attach() gets executed and the instrument key from json is getting picked but ...
0
votes
1
answer
613
views
Azure Open AI bring your own data feature returning error on getChatCompletions call: "Functions are not supported at this time."
Example I am following:
https://github.com/Azure/azure-sdk-for-java/blob/azure-ai-openai_1.0.0-beta.5/sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/ChatCompletionsWithYourData.java
...
0
votes
1
answer
1k
views
Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.28.0
Is something wrong with my pom.xml which could be causing GitHub actions to throw an error when trying to Restore Project Dependencies Using Mvn? I have a feeling there is some sort of compatibility ...
0
votes
1
answer
115
views
Azure Data Factory Java SDK build dataset with Azure Data Explorer (Kusto) query
I want to migrate data between 2 Azure Data Explorer Clusters with filter on the source cluster.
I'm creating Copy job on Azure Data Factory for automate and orchestrate it. I'm using the Java SDK in ...
0
votes
1
answer
1k
views
How to write Junit test for Cosmos container query items?
I have a requirement where I need to write Junit tests for the following piece of code. The issue I am unable to figure out how to create an actual dummy instance of Iterable<FeedResponse<T>&...
2
votes
1
answer
1k
views
Spring Boot 3.0 with Azure AAD Security and CORS not working, worked in Spring Boot 2.6
For our application we had to write a custom OIDCUserService and OIDCUser objects as well as customize Azure's AAD Security Config with Spring.
Here is the code for Spring Boot 2.6 that works.
@...
0
votes
1
answer
280
views
azure java sdk for az get token programatically
I am studying the azure java sdk and I did not find a wrapper method for
az account get-access-token --resource api://xxxxx.microsoft.com/YYYY/ZZZZ
This request works properly from windows batch but ...
0
votes
1
answer
386
views
How to configure the timeout and retries on NetworkManager client
I want to control the timeout, connection retries number and the delay duration between the retries when the connection to the Azure NetworkManager failed.
Here is how I connect to Azure:
private void ...
0
votes
1
answer
218
views
NoSuchFieldError: Companion for azure.application-insights
Currently migrating my spring-boot app to use the latest compatibile version for JDK 8. I'm currently receiving this error when running the spring-boot-app
ightsTelemetryAutoConfiguration': ...
0
votes
1
answer
307
views
How can we create an Azure VM with trusted launch enabled with Azure Java SDK?
Like the title suggests, I've spent some time reading sdk documents and testing but had no luck so far finding a method under AzureResourceManager.virtualMachine would allow me to explicitly set the ...
0
votes
1
answer
78
views
Could not resolve vimeo.stag for project
I keep getting this when running mvn clean install
[ERROR] Failed to execute goal on project tomtom: Could not resolve dependencies for project com.sample:tomtom:jar:1.0.0: Could not find artifact com....
0
votes
1
answer
944
views
ServiceBusSessionReceiverAsyncClient throwing IllegalStateException During Close
When using the ServicebusSessionReceiverAsyncClient to receive a single message from a Service Bus Queue, an IllegalStateException is thrown. The message mentions trying to add credits to an already ...
0
votes
1
answer
76
views
Java Reactor equivalent of an ArrayBlockingQueue
Imagine the following pattern:
execute(): The execute() method is called once and a reactor code scans the entire directory, does parse files and puts the result into a blocking queue.
fetch(): The ...
0
votes
1
answer
552
views
Java service running in AKS to access storage blob using system assigned maanaged Identity
Our Application is running inside AKS, and using System assigned Managed Identity, we want app running in AKS to access excel files present in Azure Storage blob using Java.
We added Role of Storage ...
1
vote
1
answer
790
views
Check Connection with Azure service bus using Java SDK
I am using Azure service bus with Java SDK. Currently not find any way where I can verify that connection is established or not. Is there any method or way where I can check connection is established ...
0
votes
1
answer
1k
views
How to setup Basic Authentication for Azure Function App HttpTrigger functions (java)
I have created Anonymous HttpTrigger function using java and Deployed to Function App
package com.function;
import com.microsoft.azure.functions.ExecutionContext;
import com.microsoft.azure....
-1
votes
1
answer
814
views
How to Invoke Admin Level Authorized Azure HTTP Trigger Function
I've Created HttpTrigger Azure Java Functions with ADMIN LEVEL Authorization:
Reference Document Link: https://vincentlauzon.com/2017/12/04/azure-functions-http-authorization-levels/
For Invoking ...
0
votes
1
answer
611
views
guide to use the MASL java SDK to authenticate user in azure function developed in java
Please help me to find out the documentation on how to use java MASL SDK to get access_token for a service principal.
I am looking to find the documentation or GIT links which can guide me how to use ...
2
votes
1
answer
2k
views
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 ...
0
votes
1
answer
3k
views
How To Add Function Level Authorization to Azure Http Trigger Java Function
I've Created Http Trigger Azure Java Functions, Function Name 1.FUNCTION (FUNCTION LEVEL Authorization)
,,,
package com.function;
import com.microsoft.azure.functions.ExecutionContext;
import com....
0
votes
1
answer
127
views
How to Add Admin Level Authorization for Azure Java Functions
I've Created HttpTrigger Azure Java Functions,
Function Name
1.ADMIN (ADMIN LEVEL Authherization)
Above Function Having Admin Auth, Successfully Deployed to Function app
and I've Updated _master Key ...
0
votes
1
answer
2k
views
How to list only the files(As BlobItems / Client) residing in a BlobContainer : Azure Storage in Java
I have a following folder structure in the azure blob storage:
-MainFolder
-subFolder1
-foo1.json
-foo2.json
-subFolder2
-foo1.json
-foo3.json
-...
0
votes
1
answer
543
views
How to add Basic Auth for Azure HttpTrigger Java Function
I have created a sample Azure HTTP Trigger Java Function using Visual Studio Code and Deployed it to Azure Function App. Now it is Working Fine in Postman without authorization
Postman Basic Auth ...
0
votes
1
answer
459
views
How to generate swagger file to azure Java Functions without springboot
I have Azure Http trigger java Functions works for copy files from one container to another container, generate Sas token etc by using BlobServiceClient java class... These functions i created without ...
0
votes
1
answer
884
views
How to Generate Swagger File For Azure Java Function
I Have Azure HttpTrigger Java functions(get, Post) Those are Working Fine in Postman but, as per the Client Requirement I need To create swagger UI file for all those functions(Java) i am searching ...