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
1
vote
0 answers

AMQP Message Null when using Azure IoTHub Routing

I have a custom Endpoint + Route setup based on TwinChangeEvent in Azure IoT Hub. I'm routing the events to a Service Bus Queue (tried topic also). I'm using Java Service Bus SDK (azure-servicebus-1.1.0.jar) to pull messages off of the queue. …
1
vote
0 answers

Creating NetworkSecurityGroups with SecurityRules in Azure with Java SDK

I'm using the Azure JAVA SDK to deploy resources into Azure. I've gotten this to work with all of my resources (network, subnets, security groups, vms, vss, loadbalancers, etc).  However, the issue I am having is that I am unable to deploy my…
1
vote
0 answers

Issue with Listing Subscriptions by ResourceManager Java SDK

I am trying to list subscriptions using mgmt-resource SDK -ver 1.2.1. I am having some issues which I pasted below. I am behind a proxy and created a ResourceManager.Authenticated object using proxy. Then using that object I was able to execure…
user3499779
  • 23
  • 1
  • 6
1
vote
2 answers

Unable to programmatically get the keys for Azure Storage Account

I am trying to get the keys for all the Storage Accounts in my subscription. But I am getting this exception on one of the Storage Account using Azure Java SDK. com.microsoft.azure.CloudException: Status code 403,…
user1142317
  • 533
  • 1
  • 8
  • 20
1
vote
2 answers

Connection String in Azure while using Spring Boot

I can see that we can define a secure connection string form portal, and than can access those variables in our application.I found many examples to do it in ASP.NET, like defining the keys in web.config. But i can not find any example focusing on…
1
vote
1 answer

Asynchronous write to documentdb using java driver

I'm using java-sdk for inserting documents to cosmosdb. From the driver I was not able to find any java api to do asynchronous insert, however I saw options for .Net api, Is there a way(natively) to insert documents in background without making the…
lambodar
  • 3,495
  • 5
  • 34
  • 58
1
vote
2 answers

How to Query Azure Storage metrics for last five minutes using Java SDK

I have written a stand alone code to get the metrics for Azure Storage Blob Services but i want to get only last 5mins metric how can i get it from $MetricsMinutePrimaryTransactionsBlob please suggest CloudTable cloudMetric =…
1
vote
1 answer

List all snapshots for a storage account using Azure Java SDK or REST API

I need to list all snapshots for each blob in Azure, using the Java SDK if possible or the Azure REST API otherwise. For both options, I know how to list all storage accounts, but I have not found a way to retrieve a list of snapshots associated…
dededecline
  • 103
  • 2
  • 11
1
vote
2 answers

Monitoring Azure Storage using REST API

I was monitoring microsoft.compute using a REST API Client and I was hoping that I could do the same for microsoft.storage. But unfortunately I get an error response while trying to do so { "code": "ResourceNotSupported", "message": "Resource…
user1142317
  • 533
  • 1
  • 8
  • 20
1
vote
1 answer

Azure VM monitoring using JAVA SDK

I am using Azure Java SDK. Is there a way to find out a VM's usage metrics using the SDK like CPU and Memory? I have already tried ComputeUsages computeUsages = this.azure.computeUsages(); PagedList listByRegion =…
user1142317
  • 533
  • 1
  • 8
  • 20
1
vote
1 answer

getting error-Message Not found- Azure EventHub

I am trying to send a string to the EventHub and I have written this code: private static void sendPOST(ValueChangeMessage valueChangeMessage) throws IOException { try { // final String namespaceName = "";…
1
vote
2 answers

How to use network proxy when connecting to Microsoft Azure Media Services

When I run Microsoft Azure Media Services code written using Java in local it is working but when I deploy the same code in dev environment , I am unable to access the Azure and its throwing java.net.HostNotFoundException. What is the best approach…
rajadilipkolli
  • 3,475
  • 2
  • 26
  • 49
1
vote
1 answer

Create VM using Azure's java sdk tagging all related resources

I'm trying to create a VM using Azure's Java ARM SDK (0.9.3) and I want to tag all of the related resources with a tag, so later on I can delete them by this tag (and I don't want to create a separate resource group for this VM and then delete…
s-rusev
  • 150
  • 1
  • 11
1
vote
2 answers

Azure - create vm with ssl public key programmatically

I'm trying to create a virtual machine programmatically with ssh public key using azure java SDK. I saw the create vm example and there we can…
s-rusev
  • 150
  • 1
  • 11
1
vote
2 answers

500 Internal Server Error while sending a message to a Service Bus topic through Azure Java SDK

I have a problem when try to send a message to a service bus topic through java azure sdk, I receive 500 Internal Server Error. I prepared code based on this link:…
Rem
  • 47
  • 1
  • 7