Question: I created a Node.js project in visual studio and I now wanted to publish it to azure, so I followed the following guide:
<https://github.com/Microsoft/nodejstools/wiki/Publish-to-Azure-Website-using-Web-Deploy#converting-to-an-azure-project-type>

But the publish button when I right click on the project or the build menu at the top, the button is disabled. Any ideas?

[![Publish button disabled](https://i.stack.imgur.com/YSGdG.png)](https://i.stack.imgur.com/YSGdG.png)

Answer: 
It looks like you were trying to publish your website **while still in debug mode**. when you're in Debug mode some menu options could be disabled.

Verify that you aren't running Visual Studio Debug mode , I mean stop DEBUG, and verify again the publish option-.

[![enter image description here](https://i.stack.imgur.com/Rn3f8.png)](https://i.stack.imgur.com/Rn3f8.png)
It seems that this functionality is not available /no longer available for node project templates. However, if you are using Azure for hosting, deployment can still be performed using the [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/get-started-with-azure-cli?view=azure-cli-latest). If you are using Azure functions like me, you may use the [az functionapp deployment source config-zip](https://learn.microsoft.com/en-us/cli/azure/functionapp/deployment/source?view=azure-cli-latest#az-functionapp-deployment-source-config-zip) command to deploy a node function.