18.0 Configure your environment
18.0.1 Create an Azure Subscription
If you already have an Azure Subscription, you can skip this step. Please continue with exercise 18.0.2 in that case.
Go to https://portal.azure.com and login with your Azure account. If you don't have one, please use your personal email address to create your Azure account.
After successful login you'll see the following screen:
Click on the to left menu and select All Resources , the Azure subscription screen will appear if you are not yet subscribed. In that case select Start with an Azure free Trial .
Fill in the Azure subscription form, provide your mobile phone and credit card for activation (you will have a free tier for 30 days and you will not be charged, unless you upgrade):
When the subscription process is finished you are good to go:
18.0.2 Install Visual Code Studio
You'll use Microsoft Visual Code Studio to manage your Azure Project. You can download it via this link . Follow the installation instructions for your specific OS on that same website.
18.0.3 Install Visual Code Extensions
Install the Azure Functions for Visual Studio Code from https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions . Click the install button:
Install Azure Account and Sign-In for Visual Studio Code from https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account . Click the install button:
18.0.4 Install node.js
If you already have node.js installed, you can skip this step. Please continue with exercise 18.0.5 in that case.
18.0.5 Verify node.js version
For this module, you need to have node.js version 12 installed. Any other version of node.js may cause issues with exercise 18.5.
Before you continue, please verify your version of node.js now.
Run this command to verify your node.js version:
If your version is below or above 12, you need to upgrade or downgrade.
Upgrade/Downgrade node.js version on macOS
Ensure that you have the package n installed.
To install the package n , run this command:
sudo npm install -g n
If you version is below or above version 12, run this command to upgrade or downgrade:
sudo n 12.6.0
Upgrade/Downgrade node.js version on Windows
Uninstall node.js from Windows > Control Panel > Add or remove programs.
Installing the required version from the nodejs.org website.
18.0.6 Install NPM package: request
You need to install the package request as part of your node.js setup.
To install the package request , run this command:
npm install request