Deploying a Loopback (Node.js) API to Azure? - node.js

I have a Node.js API built with Loopback that I'm having some problems deploying to Azure.
I followed this article, so what I've done is basically the following:
Cloned the API project to the Azure server through Cloud Shell
Created a new webapp with az webapp up -n loopback-api through Cloud Shell from in the project folder
Created a app.js file at the project's root level, as suggested in this article
It seems to be up and running from the looks of Azure Portal, but when I try to access it I'm getting Service Unavailable.
What could I be missing?

Related

Deploy Next.Js React App to Azure App Service

I created an Azure App Service running Node 16 on Linux. I ran next build and moved all files and folders that were generate inside the .next folder to the Azure App Service. Unfortunately, the app isn't running. I feel like I am missing some configurations or startup commands on Azure to successfully run the app. I would appreciate some help from somone that was able to deploy a NextJs app on Azure App Services. All other articles that I found were not able to solve my problem. This might be due to changes on the Azure platform.

publish war file to Azure Web Service

At first I want to mention, I did try some articles and also tried to get help for existing question/answer regarding deploying the war file to Azure web app but I didn't really got any where. I am new to it but also existing support either was in complete or very old.
I have created an App Service in Azure to host the war file. For my app service, I have selected Java 17 on Linux. For server stack selected 'Java SE'. (I also created another web app with that uses TomCat instead of Java SE server stack)
Then I wanted to publish the war file. So here I need guidance steps/ instruction to publish the war file Azure web app.
You can deploy your WAR package to Azure App Service to run your Java web app using the Azure CLI, PowerShell, or the Kudu Publish API.
Note: It is not recommended of deploying WAR/JAR/EAR packages using FTP or WebDeploy.
Use az webapp deploy command to deploy a WAR Package:
az webapp deploy --resource-group <group-name> --name <app-name> --src-path ./<package-name>.war
Refer to Microsoft documentation - Deploy WAR/JAR/EAR packages to Azure App Service for detailed information.

creating azure webapp for php web application

I uploaded folder Called Chat contains index.php for chat application to azure from the cloud power shell. now if I change the directory to Chat and run the command (az webapp up --runtime "PHP|7.3") I get the following error:
Could not auto-detect the runtime stack of your app.
HINT: Are you in the right folder?
For more information, see 'https://go.microsoft.com/fwlink/?linkid=2109470'
how can I deploy this php app from the cloud shell??
As mentioned in the link referenced in the error message, the current support for az webapp up includes apps targeting:
Python
Node
ASP .NET and - .NET Core
As part of the execution of az webapp up command it performs a best effort detection to match your code (in your local directory) with a supported runtime in your Web App. If you want to set the runtime manually you can use the az webapp create command.
For a detailed walkthrough on how to deploy a PHP app to Azure App Service, please follow this quickstart depending on your desired hosting platform (Windows/Linux).

How to deploy a war on azure web app using FTP

I am trying to deploy war file on azure web app service using FTP. But i dont see webapps folder under site/wwwroot as mentioned in many tutorials. I have selected web server as tomcat.I saw tutorials on old portal.when i create it from new portal,i dont see webapps folder
For Azure App services, the recommended way to deploy a war package is using curl or Azure PowerShell. Details see: deploy-war-file
I also tested on my side that deploying war file on Azure App service by PowerShell Command, it works perfectly for me:
My application page:
For how to get started with Azure PowerShell, please see: get started with Azure PowerShell

Web2py project deployment on Azure app service

I am currently using PythonAnywhere to deploy my web2py project, it is working fine for me.
Now I want to deploy my web2py application on azure App service. I followed all the steps mentioned in below Goggle group
Creating web apps with Web2py in Azure Web Apps
Still I can see default page of azure python web app. I also tried to do it with same code base mentioned in given git repository.
I am unable to figure out which document I should refer or what are the right steps to deploy web2py project to Azure web app service.
Below are the steps I followed to deploy web2py project to Azure app service
Created Azure app service with P1V2 app service plan. Linux machine with python 3.6 default language
Selected local git repository in deployment center and pushed code to azure git repository. It shows deployment successful message
Browse azure website, but this time it is not showing expected landing page. It is showing me default app page of azure website
I tried steps 3-4 times but everytime I am getting same result. Am I missing something here?
I reviewed the forum thread Creating web apps with Web2py in Azure Web Apps of Google Groups as you mentioned, I see there is a file named web.config in its attachments, as the figure below.
However, the discussion is too old at 2015-11-13. At that time, Azure only supports Windows for Azure App Services, but you were trying to reproduce it on Azure WebApp for Linux based on Docker, because P1V2 Sku is for Linux and Standard S1 for Windows, as the figures below.
P1V2 Sku of Azure App Service Plan for Windows
Standard S1 Sku of Azure App Service Plan for Windows
So if you want to reproduce the same application of the thread of Google Groups on Azure WebApp for Windows, please try to refer to my answer for the other SO thread No pip or python module inside azure webapp. There is not any Azure offical document introduce how to deploy a Python application on Azure Windows WebApp.
Otherwise, please refer to the two Azure offical documents Quickstart: Create a Python app in Azure App Service on Linux and Configure a Linux Python app for Azure App Service to try to change and deploy it on Azure Webapp for Linux. Even that you need to follow the document Configure a custom Linux container for Azure App Service to create a custom docker image for deployment.

Resources