Skip to content

Instantly share code, notes, and snippets.

@litodam
Created June 2, 2012 21:24
Show Gist options
  • Save litodam/2859997 to your computer and use it in GitHub Desktop.
Save litodam/2859997 to your computer and use it in GitHub Desktop.
Restart Windows Azure Storage & Compute Emulator in PowerShell
write-host "========= Resetting Azure Comoute Emulator & Dev Storage... ========="
$CSRunFile = "C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\csrun.exe"
$DSInitFile = "C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\devstore\DSInit.exe"
& $CSRunFile @("/devstore:shutdown")
& $CSRunFile @("/devfabric:shutdown")
Start-Process $DSInitFile @("/ForceCreate", "/silent") -Wait
& $CSRunFile @("/devfabric:shutdown")
& $CSRunFile @("/devfabric:clean")
& $CSRunFile @("/devfabric:start")
& $CSRunFile @("/devstore:start")
& $CSRunFile @("/removeAll")
write-host "Resetting Azure Comoute Emulator & Dev Storage Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment