Questions tagged [azure-sdk-for-java]

60 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…
3
votes
1 answer

How to initialize database connection on the fly for Java Spring Boot

In my backend API I want to select or create a database, once my database is selected or created I would like to use ORM to update or create the schemas in the database, but how can I set the jdbc.url to connect into my database at runtime? I have…
2
votes
0 answers

How to get users in a group by group name in AZURE AD SDK java

I need to get users from a group, i get a group name instead of group id from UI. Is there a java sdk api to get users directly from group through the group name. I have the below code to get the users through the group id public List
Avinash Reddy
  • 2,204
  • 3
  • 25
  • 44
2
votes
0 answers

Netty httpclientsecure class cannot be found

I am trying to authenticate to Azure Vault. I keep getting this error: java.lang.NoClassDefFoundError: Could not initialize class reactor.netty.http.client.HttpClientSecure Here is my code for azure Authentication: public class…
Nesan Mano
  • 1,892
  • 2
  • 26
  • 43
2
votes
0 answers

While accessing Azure Blob getting this exception "Could not initialize class com.azure.storage.blob.implementation.util.ModelHelper"

I am accessing the Azure blob from spring boot application as mentioned in the documentation, I have included the following JAR, com.azure azure-storage-blob
arunan
  • 922
  • 1
  • 17
  • 25
1
vote
1 answer

Get Access token from AZURE AD SDK Java and use the same token for subsequent calls to get users and groups

I am supposed to get Access token from Azure AD using SDK java ( i have the clientid, clientSecret and tenantId), and send the Access token to the UI. Next this token is sent in the request headers of an api call and i need to use this access token…
Avinash Reddy
  • 2,204
  • 3
  • 25
  • 44
1
vote
1 answer

How to know or validate azure ad token is expired and re-create it through SDK java (TokenCredentialAuthProvider)

I am using the following code to get the token, based on the below code how do we know the token is expired and get a new token try { final ClientSecretCredential clientSecretCredential = new ClientSecretCredentialBuilder() …
Avinash Reddy
  • 2,204
  • 3
  • 25
  • 44
1
vote
1 answer

Spring Cloud Stream ServiceBus Java for managing dead letter queues

are there any options to send/receive from dead letter queue, set dead letter reason and so on using Spring Cloud Stream framework, but not native Azure SDK for Java? Ive tried to use some Spring Cloud Stream properties, but hasnt found any…
1
vote
0 answers

Azure-aks: programatically watch AKS creation status using Java

I am writing test cases for an IaaC project. The use case is like the following: Given I do not have a AKS cluster And I call an api to create a cluster Then I have a cluster up and running In the above scenario for 3rd step, I would like to…
1
vote
1 answer

Get max of grouped documents in CosmosDb

I want to query Azure CosmosDb documents with SQL API query. These Documents shall be filtered and grouped by specific values. From these groups only the document with a specified max value shall be returned. Example Azure CosmosDb Documents { …
1
vote
1 answer

Experiencing frequent "Couldn't retrieve remote JWK set: Read timed out"

We are running a Spring Boot app on Tomcat 9 and attempting to authenticate with Azure B2C. We are calling AADJwtBearerTokenAuthenticationConverter b2cConverter = new AADJwtBearerTokenAuthenticationConverter(); and then…
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
2 answers

Which azure-spring-boot-sample-active-directory example to use to validate access token in a Spring Boot application coming from a Vue.js application?

I have a frontend application (Vue.js) secured with @azure/msal-browser. I have an "app registration" in Azure validating if a user is part of our AD and if he/she is allowed to acces the webpage. This works fine. A user needs to authenticate first…
1
vote
0 answers

Design patterns for persisting Azure Blob storage lease IDs?

Using Azure storage java SDK v12 and looking for best approach to persisting acquired leaseIds for leases on blobs. Storing the leaseId in a blob tag? Blob metadata? Store in table? Storage queues for each user where I can push/pop leaseIds keyed to…
Stego
  • 87
  • 1
  • 11
0
votes
0 answers

How to login to an Azure Blob Storage Sftp from Java?

Currently I'm trying to access to an Azure Blob Storage through Sftp defined with Private key authentication, but due to client restrictions I'm not able to have the Private key file directly, I've tried to get the Private Key from an Azure Key…
1
2 3 4