Introduce the Azure CLI 2.0 programming. In a terminal window on your machine, clone the example application repository to your local machine by running the accompanying command:
git clone https://github.com/Azure-Samples/nodejs-docs-hello-world
Utilize this terminal window to run every one of the charges in this illustration. Change to the registry that contains the example code:
Run the application locally by opening a terminal window and utilizing the npm begin content to dispatch the inherent Node.js HTTP server. Open an internet browser, and explore the example application at http://localhost:1337. You’ll see the Hello World message from the example application showed in the page.
The Azure Cloud Shell is a free Bash shell that you can run specifically inside the Azure entry. It has the Azure CLI preinstalled and designed to use with your record. Tap the Cloud Shell catch on the menu in the upper-right of the Azure entry.
In the Cloud Shell, make sending accreditations with the az web app arrangement client set charge. A sending client is required for FTP and neighborhood Git arrangement to a web application. The client name and secret key or password are account level. They are not the same as your Azure membership certifications.
In the Cloud Shell, make an asset amass with the az gather make summon. An asset amass is an intelligent compartment into which Azure assets like web applications, databases, and capacity accounts are conveyed and overseen.
In the Cloud Shell, make an App Service plan with the az app service plan make summon. An App Service plan determines the area, size, and highlights of the web server cultivate that has your application. You can set aside some cash while facilitating different applications by arranging the web applications to share a solitary App Service plan.
Presently you’re prepared to construct and convey your application. Take after these means. Make a web application with worked in picture In the Cloud Shell, make a web application in the myAppServicePlan App Service plan with the az web app make the charge. Keep in mind to supplant <app_name> with an exceptional application name. The runtime in the accompanying order is set to NODE|6.9. To see all bolstered runtimes, run az web app list-runtimes.
Push to the Azure remote to convey your application with the accompanying charge. At the point when provoked for a password, ensure that you enter the password you made in Configure a sending client, not the watchword you use to sign in to the Azure portal.
git push azure master
Browse to the deployed application using your web browser. Congratulations! You’ve deployed your first Node.js app to Azure App Service on Linux.
Posted By :Pace Wisdom