.netazure-storageazure-web-rolesazure-worker-rolesblobstorage

CreateIfNotExists() of CloudBlobContainer always throw status code 400


I try to run demo follow documentation: https://learn.microsoft.com/en-us/azure/cloud-services/cloud-services-dotnet-get-started

and from github template project: https://github.com/CawaMS/ContosoAdsCloudServices?fbclid=IwAR0gn_t-OsKpLrLyOdUd1qVa1-e0A2jIPZoHspev-4dj5mXCI-ZPxGaZpic

I have some problem when process with AzureStorage, for example: Image detail code

This code always throw exception code 400. Web Role is running good but i stuck at WorkerRole with this exception. Code connect is the same. I have checked that all connection string are right. Thanks a lot for supporting me.


Solution

  • There can be several reasons for this error. Below are some listed ones, I would suggest you to try/verify all the findings:

    Try to avoid using Upper Case in naming of container if possible.