Azure batch - ResourceContainerAccessDenied
0
I need help with my azure batch jobs, they are failing with error: ResourceContainerAccessDenied.
I've access issues when running a azure batch jobs towards my storage account. I should add that both are located in same region and are on the same subscription. My batch jobs are supposed to run ffmpeg and fetch input files (this fails) and upload the result in the storage account.
I am using Microsoft.Azure.Batch.BatchClient using BatchTokenCredentials. I can create pools, jobs, upload files to store account. But my job can't access the files.
I use a Microsoft Entra service principal with Batch.NET (https://learn.microsoft.com/en-us/azure/batch/batch-aad-auth)
I've done scenario 1 and configured the virtual network and subnet in my store account, by following instructions in this link (https://learn.microsoft.com/en-us/troubleshoot/azure/hpc/batch/access-denied-execute-azure-batch-job) But that didn't help either, I still receive the same error ResourceContainerAccessDenied.
My code: https://github.com/Kebne/azure-batch-demo/blob/main/azure-batch-demo/AzureBatch.cs