77 questions
0
votes
1
answer
123
views
Reading application client secrets using Spring Cloud Azure
I have an application using Spring Cloud Azure AD for Spring Security integration, and I want to read my application own configured client secret from Azure to get its expiration date. This data can ...
2
votes
1
answer
136
views
How to pass client secret to UsernamePasswordCredentialBuilder using azure ad sdk java
I am using azure ad sdk in my application. My java version is adoptopenjdk 8. Following are the versions used in my pom.xml
<dependency>
<groupId>com.microsoft.graph</groupId>...
1
vote
1
answer
354
views
How to make delegated permissions work without turning on Allow public client flows on the Azure App
I have an azure app with delegated permissions of User.Read.All and GroupMember.Read.All.
Following are the permissions of my app with name Azure_AD_Delegated
I have used the username and password ...
0
votes
0
answers
35
views
I am trying to copy an Azure Managed VM Image from one region to another using the Azure Java SDK to enable VM deployment across multiple regions
I’m working on creating an API to copy a VM image across regions using the Azure SDK for Java. However, I encountered an issue with the com.azure.resourcemanager.compute.models.Image import while ...
-1
votes
1
answer
115
views
Azure Java SDK Storage blob gateway
I'm working on a springboot microservice as a gateway through azure storage.
This application must just be used to download and upload file on azure storage.
Everything working fine, but i'm would ...
0
votes
1
answer
197
views
How to find owners of applications
In the MS Graph Java SDK 6.1, I am trying to determine the owners of a given application. I have the application ID.
I am trying to use this sample code
// Fetch the owners of the application
List<...
1
vote
1
answer
230
views
Golden Gate Replicate to Mirrored Database in Microsoft Fabric - Azure Identity Error
Golden Gate for Distributed Applications and Analytics v23.6
OS: oracle linux 8
SDK Dependencies:
onelake v12.20.0
hadoop v3.4.0
parquet v1.12.0
Issue
I'm trying to replicate a sample trail file ...
0
votes
1
answer
172
views
Reading excel file (.xlsx) from Azure Blob using Java and Azure SDK without downloading it locally
I have created Azure blob with an excel file(.xlsx). I want to read the same using Java(Apache-poi) and Azure SDK without downloading it in locally. I can download the blob/file to a temp location and ...
0
votes
1
answer
120
views
get the azure web app instance ids using Java sdk
I need to get all the instance ids of azure web app deployed in java.
I am testing using WebAppInstanceStatusCollection class but not getting proper method to list down instances.
Edit :
I tried ...
0
votes
1
answer
820
views
java.lang.NoClassDefFoundError: Could not initialize class reactor.netty.http.client.HttpClientConfig while using azure ad
Getting the following exception when using azure. Here is my pom.xml
<dependencies>
<dependency>
<groupId>com.microsoft.graph</groupId>
<artifactId>...
0
votes
1
answer
156
views
Can we use startswith for businessPhones in the filter in azure ad
I was going through the Azure User class. And in the User class for the attribute businessPhones i see the comment as follows
/**
* The Business Phones.
* The telephone numbers for the user. NOTE: ...
0
votes
2
answers
145
views
Azure Device SDK fails to connect to IoTHub
I'm trying to connect to a Azure IoTHub via using the device client library.
I'm already having a X509-certificate registered at the dps and my private key.
As this is going to be an emulator for an ...
3
votes
0
answers
120
views
Android Azure Chat SDK - Push-notifications has no data
I'm integrating Azure Chat SDK for Android in my project following this guide:
https://learn.microsoft.com/en-us/azure/communication-services/tutorials/chat-android-push-notification
My issue is that ...
0
votes
1
answer
3k
views
Enable access to BLOB within Azure Storage account via SAS token URL
I have a requirement where I need to generate a PDF file, upload the same to Azure Storage BLOB, construct a link with SAS token using account level key and embed this link in an email sent out to ...
0
votes
1
answer
1k
views
How to use managed identity to connect Azure blob storage account and to manage container ACL using azure SDK for Java
I'm connecting the Storage account using a connection string and access keys.
For coding, I use the Azure SDK for Java.
Now, instead of ConnectionString, I must use managed identity to connect to the ...
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
294
views
How to fetch onPermisesSamAccountName along with default attributes of an user in azure ad sdk java
My azure ad sdk code to fetch all the users from a tenant is as follows
List<User> users = new ArrayList<>();
try {
UserCollectionRequestBuilder ...
1
vote
1
answer
246
views
Issues while setting up diff timezones for trigger in azure data factory through java SDK
I am following this documentation to work with azure data factory. So I am using java to work with azure data factory. And as suggested in the documentation, ScheduleTriggerRecurrence class is used to ...
1
vote
0
answers
109
views
Mono.subscribeOn() and error handler behavior
We have the following web handler which queries some data, process them and update them back into db in the background of the web service with Mono.subscribeOn().
public Mono<ServerResponse>...
0
votes
1
answer
331
views
Problem when creating KeyClient with Azure SDK for Java
I'm trying to create a KeyClient object in my code so I can create keys in azure key vault.
But my object keeps getting error on service and I could not solve it until now.
This is my code:
@Override
...
1
vote
1
answer
385
views
Dividing the results of multiple queries in Azure KQL
I have a series of KQL queries (Query1, Query2, Query3, Query4) and I'm looking to perform a calculation on their results. Specifically, I want to divide the result of (Query1 + Query2) by (Query3 + ...
1
vote
0
answers
106
views
How to search on a particular property with multiple values in Azure AD SDK java
I have implemented the following code to get the user for a single upn value. In the below code in the searchCriteria i get the value as "[email protected]" and it returns the user object that ...
3
votes
1
answer
1k
views
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 ...
1
vote
2
answers
701
views
What is the difference between RetryOptions and RequestRetryOptions?
I am working with the Azure SDK for Java and specifically with blob storage and I am using the SpecializedBlobClientBuilder.
My question is around the various retry options:
...
0
votes
1
answer
318
views
How to Create an Alert Processing Rule using the Azure Monitor - Java SDK
I'm trying to create an Alert Processing Rule using the Azure Monitor SDK in Java, but I'm having trouble finding the right approach. I want to programmatically create an Alert Processing Rule
I have ...
0
votes
1
answer
279
views
How Create Azure Monitor Metrics Alert using Java SDK
I am working on a Java project and need assistance with creating an Azure Monitor metrics alert programmatically using the Azure Java SDK.
I would like to be able to set up an alert based on a ...
1
vote
2
answers
1k
views
Need to know the steps to access azure key vault in my Java Springboot application
How can I access Azure key vault in my sprint boot application?
What do I need to implement in my code and what kind of permission needed in my subscription?
Getting error "Directory permission ...
2
votes
0
answers
699
views
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 ...
1
vote
1
answer
1k
views
How to specify retry options (maximum retries etc) when working with blob storage with Azure SDK for Java
Is there a way to specify the maximum number of retires to "downloadToFile" method (also to "upload" method) in com.microsoft.azure.storage.blob.CloudBlockBlob? Or do we have to ...
0
votes
1
answer
190
views
jenkins shared library java azure sdk plugin import error in gradle project
I am new to this Jenkins and Gradle and I am trying to build a Gradle project which is using java azure SDK libraries and getting below error before allotting the build node which means it is throwing ...
0
votes
1
answer
646
views
How to use container-level SAS instead of account-level SAS using to get CloudBlobContainer object
The code below uses blob storage endpoint, SAS, and names of two different containers (CONTAINER_1_NAME, CONTAINER_2_NAME) to get references of two "CloudBlobContainer" objects (private ...
2
votes
3
answers
4k
views
java.lang.NoClassDefFoundError: reactor/util/context/ContextView
I am upgrading the azure sdk for java to version 12.21.1. The spring boot version is 2.1.6.
I am using the following dependency in gradle : implementation 'com.azure:azure-storage-blob:12.21.1' .
I am ...
0
votes
1
answer
749
views
Cannot upload file to blob
I am using azure sdk for java v11.0.1 to upload files to blob storage. This error comes sometimes once in a week and it creates an outage for the application
:
java.util.concurrent.TimeoutException: ...
0
votes
1
answer
302
views
How to add service principle to azure blob container to manage ACL using java (azure sdk for java)
Using the Azure SDK for Java, I have created a container in my Azure storage account. To control ACL for the newly added container, I must now add the service principle.
Is there a way to use Java to ...
0
votes
1
answer
349
views
Azure SDK for Java - Updating a table entity adds fields having names starting with odata
I am using the Azure SDK for Java and working with Azure Storage Tables.
I am trying to update fields in a row and the code I am using is as below
TableClient tableClient = getTableClient();
...
1
vote
1
answer
1k
views
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 ...
1
vote
1
answer
3k
views
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 = ...
1
vote
0
answers
501
views
Which technology is internally used for az copy comand?
I wanted to understand the internal mechanism of Azure az copy command line utility that is used for data copy.
There are many blogs out there having the details about how to use AZ copy and different ...
0
votes
1
answer
157
views
Cannot programmatically get public IP Address of the VirtualMachineScaleSet instances
I programmatically (Azure, Java SDK) create Virtual Machine Scale Set ((Linux OS - Ubuntu) with ".withVirtualMachinePublicIp()" option during the creation. It works OK, I can see the ...
1
vote
1
answer
363
views
Azure sdk Iot HUB DeviceClient reconnect attempt each 10 minutes, MQTT, no operation timeout, always try in background without RETRY_EXPIRED
I have a low power hardware device that experiences frequently internet connection issues. The default DeviceClient tries for 4 minutes (240s) to reconnect to the internet and then closes with the ...
1
vote
1
answer
917
views
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 ...
1
vote
0
answers
65
views
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 ...
0
votes
2
answers
278
views
Force Azure CosmosDB Java SDK Read Latest Value
I am setting the TTL on my Cosmos Container to 1 to force the deletion of all items, I then query SELECT VALUE COUNT(1) from c to check that all items are deleted before setting TTL back to its ...
2
votes
0
answers
818
views
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 ...
0
votes
1
answer
907
views
Azure CosmosDB Java Delete All items in a Container
I'm trying to delete all items in a CosmosDB container -- I cannot delete the container. I cannot find an efficient way to do this.
I have a related problem where I am trying to select all/read all so ...
0
votes
1
answer
756
views
Can Azure Service Bus be used directly through the AMQP protocol without JMS? Would a spring-amqp implementation for Service bus be feasible?
The spring-cloud-azure-starter-servicebus-jms Spring Boot starter allows to use Azure Service Bus via the JMS 1.0 or 2.0 API depending on the configured pricing for Azure Service Bus. This ...
0
votes
1
answer
127
views
Get VirtualMachineScaleSet instanceview for a ResourceGroup
I am trying to get instanceview objects(VirtualMachineScaleSetInstanceViewInner) of all Azure's VirtualMachineScaleSets under a Subscription and this requires both ResourceGroup Name and Vmss name ...
0
votes
1
answer
840
views
Upload file to Azure blob using Java SDK
I'm trying to implement a piece of code in Java using Azure Java SDK that allows me to upload a file (jpg, in mycase) to a Azure container. I have written this, but it fails:
String ENDPOINT= "...
0
votes
1
answer
177
views
Blob file limit for query with BlobClientBase.queryWithResponse()
I am using the code sample from BlobClientBase.queryWithResponse(BlobQueryOptions queryOptions, Duration timeout, Context context) Method to try to query data from a blob file on Azure Blob Storage. I ...
0
votes
1
answer
638
views
io.netty.channel.ChannelInitializer exceptionCaught accessing cost management api with azure java sdk to a csp account. Has anyone solve this before?
Thanks in advance. I'm trying to access programmatically the costs of each azure subscription to represent it in an app. I used the following code, but it gives this netty error that seems to deal ...