Windows Azure Blob Container keeps resetting to Private

Joel Dahlin asked on March 30, 2014 19:02

I have a site that I am running in Windows Azure Cloud Services. I am using the Kentico Azure application. All of my images and assets are stored in Cloud Storage under a container called cmsstorage. I need this to be public for the images on the site to load. I set it to public in the Azure portal, but it continues to revert to Private.

Is there something I am missing?

Recent Answers


Dominik Pinter answered on March 31, 2014 00:52

Hi Joel, you have to configure container to public in Kentico using the web.config key CMSAzurePublicContainer (key must be set to true). Kentico will always configure container publicity based on this key value on Application start.

0 votesVote for this answer Mark as a Correct answer

Joel Dahlin answered on March 31, 2014 06:37

Dominik, I forgot to mention I do have that key set to true. Any other ideas?

0 votesVote for this answer Mark as a Correct answer

Paul Wetzel answered on April 9, 2014 13:21

Joel and Dominik, I ran into this issue as well and adding the CMSAzurePublicContainer setting to the cloud config fixes it.

Add the following to your ServiceDefinition Configuration Settings for your CMSApp role:

        <ConfigurationSettings>
        <Setting name="CMSAzurePublicContainer" />
        </ConfigurationSettings>

Then add the following to your ServiceConfiguration.Cloud and ServiceConfiguration.Local:

        <ConfigurationSettings>
        <Setting name="CMSAzurePublicContainer" value="true" />
        </ConfigurationSettings>
0 votesVote for this answer Mark as a Correct answer

Joel Dahlin answered on April 9, 2014 16:13

Thanks Paul. It turns out that is what I did have configured, but I didn't have it in my web.config like Dominik suggested. I've updated and trying now. Thanks to the both of you.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.