Search code examples
visual-studioazureazure-storageazure-worker-roles

publish worker role without storage account


In Visual studio when publishing a worker role you need to select an storage account.
In this image I have already created and selected a storage account, but my application doesn't need it, if I delete the storage account visual studio won't let me publish the worker role unless I create and select a storage account.
Is there a way to publish a worker role without having a storage account?


Solution

  • Is there a way to publish a worker role without having a storage account?

    No. You would need a storage account to publish a worker role.

    The reason for this is that a worker role deployment needs a storage account where the package file (*.cspkg) will be stored. The deployment process deploys the package file from that storage account. Once the deployment succeeds, you can delete that storage account.

    Other than that, (as mentioned by Aravind in his answer) you would need a storage account if you have enabled diagnostics for your worker role as the diagnostics data for that role is stored in a storage account.