How to configure celery-redis in django project on microsoft azure?
<p>I have this django locator project deployed in azure. My redis cache host name(DNS) is mycompany.azure.microsoft.net. I created it in azure, but not sure where i can find the password for the redis server. I have got this as my configuration in my settings.py. I am using redis as a broker for my celery setup in project.</p>

<pre><code>BROKER_URL = 'redis://:passwordAzureAccessKey=@mycompany.redis.cache.windows.net:6380/0'
</code></pre>

<p>I could not connect. Is there anyplace different, I need to put password or username to connect to the above server ? Also where can i find the password in Azure. Or is it due to the fact that I am trying to contact the Azure redis from localhost ?</p>

<p>You can find your redis services keys in Azure portal, click <strong>Settings</strong>=><strong>Access keys</strong>, you can select either primary or secondary key as your password in the redis connection string.<br>
<a href="http://i.stack.imgur.com/UKST2.png" rel="nofollow"><img src="http://i.stack.imgur.com/UKST2.png" alt="enter image description here"></a></p>

<p>And addtionally, you can try to enable the non-ssl endpoint of your redis service, as mentioned at <a href="https://azure.microsoft.com/en-us/documentation/articles/cache-python-get-started/#enable-the-non-ssl-endpoint" rel="nofollow">https://azure.microsoft.com/en-us/documentation/articles/cache-python-get-started/#enable-the-non-ssl-endpoint</a>. </p>

<p>It seems that you are using <code>celery</code>, you can use celery cli command to test your redis serivice. E.G.</p>

<p><code>celery inspect ping -b redis://:{password}@{redis_service_name}.redis.cache.wi
ndows.net:6379/0</code></p>

python django azure redis celery