Home > database >  Azure Kubernetes Service deployed app throws com.microsoft.azure.storage.StorageException: This requ
Azure Kubernetes Service deployed app throws com.microsoft.azure.storage.StorageException: This requ

Time:11-18

I have a simple Spring boot app that connects to an Azure storage account with account key and checks for blob exists. The storage account is protected by "Selected networks" from Networking tab.

The app is working fine in my local after adding my local client IP to the storage account's Firewall whitelist.

After deploying this spring boot app in Azure Kubernetes Service, I'm getting the below exception at blob.exists(), even after whitelisting the Kubernetes service IP in storage account's firewall.

com.microsoft.azure.storage.StorageException: This request is not authorized to perform this operation.
    at com.microsoft.azure.storage.StorageException.translateException(StorageException.java:87)
    at com.microsoft.azure.storage.core.StorageRequest.materializeException(StorageRequest.java:305)
    at com.microsoft.azure.storage.core.ExecutionEngine.executeWithRetry(ExecutionEngine.java:196)
    at com.microsoft.azure.storage.blob.CloudBlob.exists(CloudBlob.java:2073)
    at com.microsoft.azure.storage.blob.CloudBlob.exists(CloudBlob.java:2060)
    at com.microsoft.azure.storage.blob.CloudBlob.exists(CloudBlob.java:2035)

I confirmed my Kubernetes outgoing IP enter image description here

Now, you would be able to connect to the storage account from the spring boot app

  • Related