can an azure web site be a single index.html file? - deployment

can an azure web site be a single index.html file?
I keep getting The page cannot be displayed because an internal server error has occurred.
and when I look at wwwroot my that file keeps disappearing.
I'm deploy using ftp-simple through visual studio code into /site/wwwroot/

Yes, an Azure Web App can be a single index.html. Try creating a clean new site, and dropping an index.html in d:\home\site\wwwroot via Kudu Console (or FTP), and you will be able to request it.

Related

How to add files and folders to an Azure Web App from within Visual Studio Code

I installed the Azure extension to my Visual Studio Code and connected to my Azure Web App and I can open and edit files from my Azure Web App within Visual Studio Code without problem. What I am struggling with is how to add files and folders to my Azure Web App within VS code.
I can create a new file in VS code, but I cannot find a way to make this new file part of my Web App.
Also, dragging files from a file explorer in Windows into the Azure Web App within VS code does not work.
Is there a way to create/delete/move files and folders inside the files section of an Azure Web App that is shown in the Azure extension in VS code?
I tried to find an answer in Youtube/Google/stackoverflow but did not find a relevant solution that is applicable to my problem.
It would be great if someone could show how to manage files and folders within an Azure Web App that is open in the Azure extension of VS code to a level of detail that shows in very detail what to click/add (step by step since I do not have much experience)
Created and deployed Azure App service from VSCode.
Tried to add the new file / folder in VSCode and deployed to same AppService once again.
Local folder
Unable to see the newly created files.
Deployed App Folder
You can directly add, edit or delete files/folders in Azure Web App from Azure Portal.
Navigate to the KUDU Console
URL : https://YourWebAppName.scm.azurewebsites.net/DebugConsole
or
you can open KUDU console from
Azure Portal => YourWebApp => Advanced Tools => Go => Debug Console => CMD
We have an option to create New Folder / File directly.

VSCode - Shows Deploy to Function App, instead of Deploy to Web App for blazor (ASP.Net) webapp

VSCode sees my Blazor server app as an Azure Function. Right-clicking on my publish folder I only have the option to Deploy to Function App, instead of Deploy to Web App which logically shows me only my function apps from azure. How is this determined by VSCode? I have checked the project file, but I do not see anything obvious wrong.
I tried Googling this, but the search terms only brings me to tutorials where this problem does not exist.
I was missing the Azure Web App extension. Once that was installed, the option appeared

Appservice deployment issue

Hi iam deploying my war file using azure appservice from azuredevops. deployment is getting completed successfully but when i hit the url Microsoft azure welcome page is displayed instead of application. can you please suggest a work around
In Azure Web Apps, the default document is the web page that is displayed at the root URL for a website. The first matching file in the list is used. Refer File structure on azure to know more about the files and directories on Azure Web App.
You may check whether the deployed files are available or not using Kudu Console.
Also, make sure that your startup file (For ex: index.htm) is added to the default documents section as mentioned above. You can delete the remaining files if not required and see if that works.
For details , you can refer to this case.

How to deploy code on Windows Server 2012

(I am very new to deploying in a dedicated server.)
I have access to Windows Server 2012 through as Remote Login.
I have to deploy my html, js files to the server and then access my html page through a URL.
I am not sure where should I keep my files in the server, launch the server and then access my page through a URL.
In my local server in my machine, I kept the files in
C:\inetpub\wwwroot
And I gave access to others to my page through :
http://myIPaddress/mypage.html
Please suggest where should I keep my code and how can I launch the server.
If anyone can point me to a documentation, even that would be great.
Thank you.
First create web app on the server,
then you can choose any destintion folder for the project.
Follow this documentation
https://msdn.microsoft.com/en-us/library/vstudio/dd394698(v=vs.100).aspx
We need to enable IIS first before deploying our files in Windows Server 2012.
I went through the following document I found in Microsoft website. It was very helpful.
https://technet.microsoft.com/en-us/library/hh831515.aspx

Error on deploying a SharePoint 2010 site template

I have a web application in which I have few document libraries, lists, picture libraries, workflows and few webparts. The webparts are created using visual studio with the feature site scoped. WorkFlows are created using SPD. Everyting working fine in my local SharePoint server. I want to copy my web application to a different server. For this I saved the site template Site Actions-> Save Site as template, saved the wsp to my desktop. Then I took the wsp to the other server machine where i created a webapplication.
Then using PowerShell command added the solution using Add-SPSolution command. When trying to install using Install-SPSolution command I got an error:
This solution contains no resources scoped for a web application and cannot be deployed to a particular web application
I tried to change the scope of webpart feature to Web/WebApplication but encountered error when tried to deployed using visual studio.
How can I deploy the wsp in a different SharePoint Server machine?
When you save the site as a template, you'll only save the site, not your web application. Create the web application first (maybe without a site template), and roll out your site from your WSP afterwards.
If you are using powershell to deploy the solutions, please remember to include the flag -GACDeployment.