I'm trying to utilize the spring-azure-starter-storage plugin for Spring to manage BLOBS in Azure Storage.
I've followed the following guide on how to setup the storage account and the application, and it works all fine until i turn on "Secure transfer required" in Confuration for the storage account. (which is required for my project)
my application.properties looks like this:
spring.cloud.azure.credential-file-path=my.azureauth
spring.cloud.azure.resource-group=xxxx
spring.cloud.azure.region=xxxxxx
spring.cloud.azure.storage.account=xxxx
The error i'm getting on upload is:
[http-nio-8080-exec-4] ERROR com.microsoft.azure.spring.cloud.storage.BlobStorageResource - Failed to open output stream of cloud blob
com.microsoft.azure.storage.StorageException: The account being accessed does not support http
....
Whitch makes sence. But how do i configure the connection to utilize https?
EDIT: I have since successfully implemented this using another approach shown in this tutorial: https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-java-legacy
azure.storage.enable-https=true
to your application.properties. For more details, please refer to github.com/microsoft/azure-spring-boot/tree/master/… - Jim Xu