- Create your node app locally
- Navigate to the Azure portal and create a new web app
- Setup Continuous Deployment by navigating to settings and clicking Continuous Deployment
- Select local Git repository
- Back in settings, select and create your Deployment credentials
- On the Essentials header of the web app, note the Git clone url
- Locally, create the git repository by navigating Git Bash to the web app's root directory
- Run
$ git init
- Make your first commit by running
$ git add .
and thengit commit -m "Your commit message"
- Add the continuous deployment repository as a remote by running
$ git remote add azure <git_clone_url>
- Push your repository to the continuous deployment repository in Azure by running
$ git push azure master
- Install the Azure CLI:
npm install --global azure
- Login to your Azure account:
azure login
azure site appsetting add NEW_ENVIRONMENT_VAR=yourValue your-web-app-name
NEW_ENVIRONMENT_VAR
is the new environment variable name, yourValue
is the value to set the environment variable to, and your-web-app-name
is the name of the web app that you intend to set the environment variable for
azure site appsetting list your-web-app-name
.