Windows Azure Virtual Machine - IIS logs - asp.net-mvc

We have created a Windows server 2012 virtual machine is Azure and deployed ASP.NET MVC website in IIS. Right now, we have enabled IIS logging and its saving log files on local disk.
Is there any way by which we can save IIS logs to Azure blob storage or table storage?
There are lot of articles about how to do this in web role OR in Azure Web Site, but not for IIS in manually created virtual machine.
Thanks for the help!

You'll need to write a process to export them to external storage. Web Roles use the azure PaaS agent which isn't currently available in IaaS. Web Sites are a higher level service built on PaaS so the agent is available there already.
If you poke around, I'm sure there are several sample projects already available that will help with this.

Related

How can I push my ASP.NET MVC web-application to webserver

i created a web-app in vscode using MySQL and ASP.NET MVC.
Now i want to publish my project in a webserver or IIS.
What is the best opportunity and how can i push it to the server/IIS ??
Need todo this, so other users in the network have access to the webapp
IIS web server didn´t work for me in combination with mysql database on a running Linux system.
U can try to push it on linux with apache: this is explained here
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-apache?view=aspnetcore-6.0 But i was facing problems with proxy server.
Currently I am trying it in connection with a FTP-server.
The easiest way should be a cloud system, like azure oder aws.
Good Luck :) Please comment other solutions below.

TFS 2015 Release management: Specify name of the application inside a specific App Pool as the website name

I am trying to do a web deploy of a MVC application. I added Copy files to remote machine, IIS management and IIS web deployment.
I need to deploy it to an application inside App pool.
Going through the video URL below
https://app.pluralsight.com/player?course=tfs-visual-studio-2015-implementing-continuous-delivery&author=marcel-devries&name=tfs-visual-studio-2015-implementing-continuous-delivery-m4&clip=4&mode=live.
The author ask's to specify the website name. In my case the website name is the application name in the app pool.
How do I specify the application name under an app pool in website name parameter of IIS management.
Based on your description the website name shoule be the application name, so just put the application name as the website name parameter.
Please read the Overview and parameters instruction for the WinRM - IIS Web App Management task . And this Deploy: IIS Web App Manage
Besides, you can also use the MSBuild with arguments to deploy the application, refer to below links to do that:
Deploying application in a remote and local machine with TFS 2015
vNext
An ASP.NET MVC Site That’s Easy to Deploy from a TFS Build
Build and Deploy a Web Application with TFS 2017 using Web Deploy Package
UPDATE:
If you already have a website and you want to deploy your Application under the website. Then you just need to use the IIS Web App Deploy step. The Web App Management step is not needed.
Just try websitename\appname as the Website name parameter in IIS Web App Deploy step. See Parameters for IIS Application configuration

Deploying MVC ASP .Net web application on office localhost

I have created a web application using SQL Server as a database.
My client don't provide internet access to his employees.
So how can i deploy a MVC web application there so that it can be accessed by everyone which are connected to each other locally.
Publish your web application by right click on your application and select publish option to a local folder on your file system.
Provide published code to you client's IT group.
Put your database inside App_Data folder
If MVC framework is not installed on client server machine then you will have to request you client install MVC framework on server machine and then configure application on IIS.
For help you can check given below link -
How do I deploy MVC3 Hello World App to localhost and configure IIS

Cloud service ERR_CONNECTION_TIMED_OUT

I am working with azure cloud service.
I tried to deploy simple web role to azure as cloud service. My web role just a simple asp net mvc app which convert html to pdf(I am using hiqpdf for conversion) without connection to db.
My web role deployed successfully, Virtual Machine was created and i can access my site through rdp on local iis of VM.
But i cannot access site through public url(my.cloudapp.net) b/c of error: ERR_CONNECTION_TIMED_OUT.

Deploying MVC file system publish on IIS7

I have created an MVC application in Visual Studio 2013 and I now wish to deploy this on the IIS of the server so that all employees from within the company will be able to access it via their windows login credentials.
When I run this in localhost via Visual Studio debug it works as expected but I have been trying unsuccessfully to deploy this to a network server and I am unsure of the process and would be grateful for some clarification.
I chose a file system publish from the publish options but I am unsure as to how to get this accessible as an application. I have tried adding the files via the new website wizard and tried the url of 'holidays/' which I had entered but without success. I then tried to add the same virtual directory location as an application from within this website but again this was unsuccessful.
I use Web Deploy with VS. Your target server needs to also have Web Deploy:
Installing and Configuring Web Deploy on IIS 7
Once your target server is ready, you can deploy from VS. Here's a guide on doing that (you can jump right to "Publish to IIS" section if you like):
ASP.NET Web Deployment using Visual Studio
With Web Deploy, you can choose to publish directly or use a deployment package. Once you are happy the publishing works locally, you have a level of confidence your publishing will work in your Live environment.
I would suggest that before you publish direct to a live environment, that you test publish it to your local machine or a test environment that has the same IIS version, and .NET Framework installed.

Resources