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
1 answer

Azure blob storage java generate SAS token always throw sr is mandatory. Cannot be empty error

I want to use Java to generate a SAS token, this is what I do: public static String GetSASToken(String resourceUri, String keyName, String key) { long epoch = System.currentTimeMillis() / 1000L; int week = 60 * 30 * 1000; …
user3006967
  • 3,291
  • 10
  • 47
  • 72
0
votes
2 answers

Do not throw DocumentClientException while trying to delete not existing document in Cosmos DB Java SDK

I am working on Azure Cosmos DB with SQL Api. I am using Azure SDK from: com.microsoft.azure azure-documentdb 2.4.7 in order to delete an Item…
fascynacja
  • 1,625
  • 4
  • 17
  • 35
0
votes
1 answer

com.microsoft.azure.documentdb.DocumentClientException Date header doesn't conform to the required format

I am working on Azure Cosmos DB with SQL Api. I am using Azure SDK from: com.microsoft.azure azure-documentdb 2.4.7 in order to insert items into…
fascynacja
  • 1,625
  • 4
  • 17
  • 35
0
votes
1 answer

How to programatically encrypt azure VM data disks

I am creating an Azure VM running Linux programmatically via azure java sdk and I am looking to encrypt the drives. OS drives provide a nifty .withOSDiskEncryptionSettings method. But I am not seeing anything in the data disk documentation for…
0
votes
0 answers

How to use SSL Cert in Java Code in Azure App Service

I am trying to call a back-end API from Java Client which uses SSL authentication. For .Net there is a snippet available on how to achieve this on MS documentation, but don't have any for Java. I have added the Application Settings -…
0
votes
1 answer

Azure API for Java

Tell me please, how can I get all options for instance on Azure using Java ? For example, I mean all VM parameters: name, instance type, launch time and etc. So that I can use them in my code and get a detailed message in case of all kinds of errors…
0
votes
1 answer

Set Database Properties when creating it with SqlDatabase.createAsync()

This is the question about the Azure Management Libraries for Java. First, some background: The Azure Management REST API mentions at the createorupdate definition the ability to create the database and set different database properties like this…
Ruslan Bes
  • 2,715
  • 2
  • 25
  • 32
0
votes
2 answers

Why is it so slow to query azure metrics tables and how can I speed it up?

https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/diagnostics-template#wadmetrics-tables-in-storage I'm trying to extract data from one of these WADMETRIC tables, but even if I setup a query to simply query the last one minute of…
OneTwo
  • 2,291
  • 6
  • 33
  • 55
0
votes
1 answer

What is the "aggregation period" used in RowKey column in the azure metrics table?

https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/diagnostics-template#wadmetrics-tables-in-storage RowKey: Follows the format :. The descending time tick calculation is max time ticks minus the time of the beginning of the…
OneTwo
  • 2,291
  • 6
  • 33
  • 55
0
votes
1 answer

How to query metrics stored in azure WADMETRICS table?

Using Extended metrics I am trying to retrieve certain metrics for certain VMS. Every query seems to take extremely long, as new records are made for each VM every 15 seconds in the table. So I'm trying to query the table in the last 5 minutes, but…
OneTwo
  • 2,291
  • 6
  • 33
  • 55
0
votes
0 answers

What is the use of uploadPermissions() method in azure java sdk (v8.3.0) for blob storage

Azure-java-sdk:8:3:0 I can not understand complete the uses of uploadPermissions() method (below is the signature of method). (com.microsoft.azure.storage.blob.CloudBlobContainer#uploadPermissions()) This method uploads two…
0
votes
2 answers

Azure Function App copy blob from one container to another using startCopy in java

I am using java to write a Azure Function App which is eventgrid trigger and the trigger is blobcreated. So when ever blob is created it will be trigerred and the function is to copy a blob from one container to another. I am using startCopy…
0
votes
1 answer

Azure Storage SDK: managed disk copy (using SAAS URL) from one region to another Azure region

If this data is transferred using SAS URL of managed disk from one region to another region does it still travel on internet? I am using Azure Java SDK storage APIs.
N-Tech
  • 1
  • 2
0
votes
1 answer

Unable to refresh token for multiple resource in azure java sdk

When trying to call two different resources after being authorised through the redirect URL, the first call finishes and the second call fails to refresh its token with "HTTP 401 Unauthorized". In the code below the call to the second service always…
iddqd
  • 1,225
  • 2
  • 16
  • 34
0
votes
1 answer

Is Azure's deleteByNameAsync is blocking the subsequent statements in the program?

I've the following code that tries to delete a resource group asynchronously with Azure Java SDK APIs. I expects the code to execute without waiting for the completion of delete request. But the control flow get blocked in the async function…
Master Po
  • 1,497
  • 1
  • 23
  • 42