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
0
votes
2 answers

Azure Java SDK - Can't add resource locks

I have a simple code that creates ContainerGroup: ContainerGroup instance = azure.containerGroups() .create(); After instance has been created I would like to create delete…
0
votes
0 answers

Conditional in fluent interface in Azure java SDK

I am creating a linux vm using a custom image from an shared image gallery using java sdk. virtualMachine = azure.virtualMachines() .define(linuxVMName) .withRegion(location) …
smootherbug
  • 129
  • 12
0
votes
1 answer

Azure Storage Blob Container Vituval Folder Image Download IN JAVA

I want to download a image from Azure Storage Blob Container have virtual folder, it contain Image, need to download that image in java code. Asure Storage Stucture: "Blob-Container" -> "Blob-Folder" -> "Sample.jpg" Below code is direct download…
0
votes
1 answer

Error message: 'Offer with PublisherId: 'bitnami' and OfferId: 'wordpress' not found

I'm trying to create a Azure VM in Java with the Azure SDK and I want to use the following image but I get the following error: Error message: 'Offer with PublisherId: 'bitnami' and OfferId: 'wordpress' not found PurchasePlan purchasePlan =…
0
votes
1 answer

DataLakeServiceClient throws Type definition error: [simple type, class com.azure.core.http.netty.NettyAsyncHttpClient] while using Java SDK

I am trying access ADLS using Java SDK. following is the configuration that i am using to get DataLakeServiceClient. import com.azure.core.http.HttpClient; import com.azure.core.http.netty.NettyAsyncHttpClientBuilder; import…
0
votes
2 answers

How to retrieve a segmented List of Containers using the new Java v12 SDK for Azure Blob Storage?

I see that the .NET examples have a ListContainersSegmented API call. The Java SDK documentation specifies a listBlobContainers call but there is no mention about when it hits the limit of containers it will return per call. Is there a different way…
0
votes
1 answer

Add backend pool with targets (virtual machine) in Application Gateway

I am looking for Java API to use, by which I can add backend pool with virtual machines details inside a existing a ApplicationGateway. Please help me.
Achintya
  • 77
  • 8
0
votes
0 answers

How to stop Azure Blob Java SDK TransferManager printing "WARNING: SLOW OPERATION..."

I use the azure-storage-blob v11.0.0 sdk in my java project. To download blobs from my blob storage I use the following code. final BlockBlobURL blobURL = containerURL.createBlockBlobURL(blob.getName()); AsynchronousFileChannel…
OneTwo
  • 2,291
  • 6
  • 33
  • 55
0
votes
1 answer

How to get list of all azure blob containers of all regions and how to get Region of a Azure blob container

I need help with two questions using java sdk: How to get a list of all Azure blob containers in all regions with their region name/ code? Do I need to loop over all the Storage accounts to get a list of Blob containers? How to get region Code…
CodeTalker
  • 1,683
  • 2
  • 21
  • 31
0
votes
1 answer

Azure Authentication and Authorization using java

How to authenticate azure using java with azure management or client libraries without directly using azure rest API's? and what are the jars required for this? Please help with samples.
0
votes
1 answer

Authentication of Azure using azure java sdk

Is this the correct way of checking client, tenant,secret key are valid? then what are the jars required to this code and where to download it? String client = "xxxxxxxxxxx"; String tenant = "xxxxxxxxxxx"; String key = "xxxxxxxxxxx"; String…
DAK
  • 282
  • 1
  • 18
0
votes
1 answer

Java example for New-AzStorageBlobSASToken

I'm trying to write java code to implement the same functionality that is provided by New-AzStorageBlobSASToken. Is there any example that I can refer?
Bomin
  • 1,619
  • 5
  • 24
  • 39
0
votes
1 answer

How connect to Azure Key Vault from java backend using Azure Java SDK?

Followed this documentation: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/keyvault/azure-security-keyvault-secrets/README.md I get the error: AADSTS900382: Confidential Client is not supported in Cross Cloud request Note that this is…
0
votes
1 answer

Azure copy blob container to another blob container with different tiers [java]

What is the best way to copy blobs of one container to another container using java api? I know that I can list container and then perform copy for every blob which is listed, but when I'd like to copy entire container from ARCHIVE tier to HOT tier…
bilak
  • 4,526
  • 3
  • 35
  • 75
0
votes
1 answer

How to use msal4j to authenticate with a token?

I am using msal4j to get an Access Token with a User & Password: PublicClientApplication app = PublicClientApplication .builder(CLIENT_ID) .authority("https://login.microsoftonline.com/organizations") …
jabrena
  • 1,166
  • 3
  • 11
  • 25