310 questions
0
votes
0
answers
84
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
1
answer
65
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
1
answer
618
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
543
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
646
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
319
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 ...
2
votes
1
answer
393
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
0
answers
234
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
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 ...
1
vote
1
answer
207
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
244
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
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 ...
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
606
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
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 ...
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
384
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
306
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
943
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
545
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 ...
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....
0
votes
1
answer
610
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 ...
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
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
454
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 ...