Search code examples
azureazure-deployment

How to change Azure local deploy directory?


I would like to know how to change default Azure SDK local deploy directory?

Default Azure SDK local deploy directory is C:\Users\username\AppData\Local\dftmp*, but I would like to change it. I have already google it, but with no success.

Can you help me out?


Solution

  • You need to set the environment variable _CSRUN_STATE_DIRECTORY to location where the output of the build would be deployed. See here

    Update: Since the link is broken. To set environment variable

    Right clicking Computer, selecting Properties, Advanced System Settings, and Environment variables and setting the _CSRUN_STATE_DIRECTORY environment variable. After rebooting you will not encounter the issue…