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

Azure Java sdk - get virtual hub effective route

I am trying to get the effective routes for Azure Virtual Hub via the Java sdk. I have tried the getVirtualHubEffectiveRoutes method, but the return value is void Also all the other methods return void, or Mono. So does anyone knows how can I…
Shaked Eyal
  • 123
  • 1
  • 14
0
votes
1 answer

How to trigger Email notifications automatically to end users if my Azure function fails fail

I created some http functions using java and deployed to. Azure function app but now I need to trigger Email notifications to end users if function fail For this I have created alert rule resource with some condition query & Action group resources…
0
votes
1 answer

How to move Azure Storage blob to other container using Java SDK?

I'm trying to move blob from one container to another with in the same storage account. I'm using Java SDK for it. My code: StorageSharedKeyCredential credential = new StorageSharedKeyCredential("accountname", "accountkey"); …
dev333
  • 713
  • 2
  • 17
  • 38
0
votes
1 answer

How to fetch Azure Blob Content Using Java from Azure Functions

I am creating Azure function using Java, My requirement I need to copy blob from one container to another container with encryption so, for encrypting blob I am adding 4bites before and after the blob while uploading to sink container now, I need to…
0
votes
0 answers

Azure blob services - AuthorizationFailed - /Microsoft.Storage/storageAccounts//blobServices/default - JAVA sdk

I am trying to obtain the "Versioning" status of my Storage account using azure-sdk-for-java // Azure environment URL is ".core.windows.net" hence used "AzureEnvironment.AZURE" // this.clientSecretCredential ->is built using AZURE_CLIENT_ID,…
0
votes
1 answer

Azure Java SDK V12 - How to fix BlobServiceClientBuilder error: "java.lang.NoClassDefFoundError: com/azure/core/client/traits/TokenCredentialTrait"

I am running an AnyLogic Cloud model with a Blob Storage connection function for sending data to Azure Blob Storage. I'm encountering an error at runtime when attempting to call the 'BlobServiceClientBuilder' method: import…
0
votes
1 answer

Azure File Share with OAuth2 credentials

Using the Azure Blob Storage SDK for Java, I can create a service client using OAuth2 credentials: BlobServiceClientBuilder builder = new BlobServiceClientBuilder(); builder.endpoint("https://" + account.abs_account_name +…
Wheezil
  • 3,157
  • 1
  • 23
  • 36
0
votes
1 answer

Unable to create project for custom vision image classification using Java SDK

I am unable to create the project for the custom vision image classification using Java SDK. It is giving an error in the following line in the main method of CustomVisionQuickstart.java Project project = createProject(trainClient); I am following…
0
votes
0 answers

How do I access secrets from azure key vault using msal to manage token refresh on expiry

Currently, I am using azure key vault using managed identity for authentication. Since I want the library itself to handle the token refresh before expiry, I want to use MSAL for it. Is there any way to do it by providing the same parameters as we…
Geeky
  • 113
  • 9
0
votes
1 answer

How to send a binary message from Azure Function to Azure Service Bus

I used the following code to send some sample binary messages to a service bus from an Azure function, but on the service bus I always receive a message with the content "System.Byte[]" and the content type "text/plain". I also tried to read the…
0
votes
1 answer

Azure Active Directory in Spring App Without Boot

I have been trying to set up a Spring Web application to use Azure Active Directory. All the samples that I have found online are based on Spring Boot, is there a simple example that shows setting up spring framework web app only without using…
Seamus McMorrow
  • 263
  • 6
  • 18
0
votes
1 answer

Managed Identity Authentication from non Azure VM

I would like to access from a Java application to an Azure Key Vault.I would like to use Managed Authentication. If I understand correctly this solution is only available using VM on Azure and is not possible on a server outside the Microsoft…
0
votes
0 answers

Azure Blob Storage Java v12 Client Program Error

I wrote below code to connect to Azure Blob Storage and list all files present in it.I get the error in eclipse and tried different ways but not helping. **Exception in thread "main" java.lang.NoSuchMethodError: 'java.lang.String…
Talha M
  • 11
  • 1
0
votes
1 answer

Need to create vnet with two subnet in azure using java sdk (Java code, IntelliJ, gradle/maven)

create vnet and two subnet in azure using java sdk. IntelliJ development setup with environment variable setup. Share the git repository url
0
votes
1 answer

Any permissions are missing Azure RBAC vs Power shell?

Powershell command 'az role assignment list --assignee user@company.com --all' is giving result in powershell but no results for below code snippet. TokenCredential azureCliCredential = new…
dev4java
  • 86
  • 1
  • 8