access to azure blob storage using filedatastore no longer works

25 Ansichten (letzte 30 Tage)
Sandy
Sandy am 14 Okt. 2025 um 10:00
Bearbeitet: Tridib am 28 Okt. 2025 um 6:49
I am having difficulty accessing azure blob storage using
Location='wasbs://CONTAINER@ACCOUNT.blob.core.windows.net/FILEPATH'
ds = fileDatastore(Location,'ReadFcn', @load, 'FileExtensions',Extension )
I keep getting the error:
Cannot find files or folders matching: 'wasbs://CONTAINER@ACCOUNT.blob.core.windows.net/FILEPATH'
this is confusing for me as the files and folders definitly exist. and this function has worked in the past. I have set the MW_WASB_SECRET_KEY and MW_WASB_SAS_TOKEN Keys environment variables correctly.

Antworten (1)

Tridib
Tridib am 28 Okt. 2025 um 6:49
Bearbeitet: Tridib am 28 Okt. 2025 um 6:49
Hi @Sandy, these troubleshooting steps might help solve the issue:
  • Please make sure that the environment variables are set within the same MATLAB session where you are running your code.
  • Also, check that your SAS token or secret key has the right permissions for the files or folders you want to reach.
  • Ensure that your system has network access to Azure Blob Storage endpoints.
  • Try using the basic datastore function:
ds = datastore('wasbs://CONTAINER@ACCOUNT.blob.core.windows.net/FILEPATH');
If this command does not work, it likely means the problem is with the connection or the file path, rather than with fileDatastore.
Hope this helps!

Kategorien

Mehr zu Manage Products finden Sie in Help Center und File Exchange

Produkte


Version

R2025a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by