I have an legacy Azure web app (with no application log), and I need to know from where the requests are coming to our server. Usually we get it from Server log. How can I get the server log for an Azure Web app.
Go to App Service logs under your app service, enable web server logging there with storage or file system.
And about how to access the log file, check this Access log files. If you choose storage blob just go to your storage account check the file, if you choose file system, just go to /LogFiles/http/RawLogs/ in your kudu site or download the zip file with https://<app-name>.scm.azurewebsites.net/api/dump.
Related
First, I deployed to Azure App Service on FTPS by FileZilla.
Next, I found those files by WebSSH.
But I can find a default file only.
I wanna deploy to Azure App Service. What should I do?
(My English isn't good, so sorry if I'm wrong)
I tried to reproduce the same in my environment to connect Azure App Service using FTP-FileZilla application like below.
Make sure Create your web application with required privileges to authenticate with FTP
I have created web applications with required configuration like below.
Azure Portal > App Service > Create
Once create the App service, check the web application running status
Azure Portal > App Service > Overview > Browse
Connect your App service using FTP-FileZilla Application
Install FileZilla Application
Open FileZilla Application like below
Download Publish Profile from Azure App Service
Azure Portal > App Service > Overview > Get Publish profile
Once download the Publish Profile and Open the file with Notepad or Notepad++ and copy the Publish URL and FTP username and Password to connect FileZilla Application like below,
Username and Password
Connect to App service like below.
Once I connect to App Service via FileZilla able to view the default Files in wwwroot folder
Modified hostingstart.html file like below.
I have multiple web apps retrieving the app settings from Azure App Configuration Service on startup without any refresh options. I also have eventgrid and webhooks set up to push notifications of key changes down from the Azure App Configuration service to each web app. Everything is working and I should not get that many incoming http request to the Azure App Configuration service. But sometimes I'm getting unexpecting httprequests in the Azure App Configuration metrics. I can't seem to find any other information about each request to figure out which app may not be configured correctly. Is there a log or appinsights that captures more information for each request made to the Azure App Configuration Service?
We are working on exposing request logs to your App Configuration store. The information of client IP addresses will be included. The feature is tracked in https://github.com/Azure/AppConfiguration/issues/333. It should be available soon.
I develop simple Web Api on Net Core 2 and add Angular app to it (inside wwwroot folder) and publish it from my VS 2017 IDE to Azure Web App Service. All work fine, but when I reload page of my app in browser, server can't find route. So It often happens when iis not setup for SPA, It's described in https://angular.io/guide/deployment, I must configure the server to return the application's host page (index.html) when asked for a file that it does not have. How I can setup server node of iis in Azure Web App Service (web.config in Net Core 2 was deleted).
I am afraid you cannot achieve this.
Cause: Azure App Services runs IIS so it behaves mostly the same as local IIS, routing requests using a native module called AspNetCoreModule. So, it needs your published web.config file. Even though you deleted the web.config file, Azure would also generate a new web.config file to be used.(Though I don't understand why you delete the web.config file)
Solution:
Even you can upload the web.config file to Azure again, I'm afraid of that it will be ignored and doesn't work. So, I suggest you redeploy your website which contains web.config file to Azure and configure it well.
Additional: Azure Web App service is a kind of PaaS. So, if you want to install IIS manually, you can choose to host your website on a Windows Azure VM.
I have successfully deployed my site into Azure Cloud Services. I would like to see the deployed files in azure portal now. Where I can see these files ? For Azure Web App I can see it from Kudu(mysite.scm.azurewebservices.net).
But how for azure Cloud services ?
There is no exact way you can access files just like web apps via Kudu Console. In order to access Cloud service files, you can enable a Remote Desktop connection in your role during development by including the Remote Desktop modules in your service definition or you can choose to enable Remote Desktop through the Remote Desktop Extension.
For more details, refer to Enable Remote Desktop Connection for a Role in Azure Cloud Services.
I would like to see the deployed files in azure portal now
As far as I know it is not supported by azure portal now. Azure cloud services allow us to remote the could services role, so we could remote the service to get the deployed files. About how to remote the cloud services role please refer to the azure document. We could see the published website under the IIS and we could get the physical path of files on the azure.
More details please refer to the screenshot.
The Architecture Design of Cloud service is different then App Service. Cloud Service is hosted on its own dedicated environment. Cloud Service is NOT hosted on Shared Server like App Service.
When you create package for the Cloud Service. it contains all information of it's roles, Size of roles, number of instances per role and what files needs to be hosted on that role. ( Other information also).
if you have multiple roles in your cloud service. there will be dedicated VM for each instance of the Role. so your files will be placed on each role of that VM.
if you want to change any file from the deployment, you need to change it on all instances.
Remember that if you restart the Cloud Service or Role all changes made in the file will be lost. Cloud Service will restore the old files. ( files at the time of deployment).
you can enable the remote login for roles and check the files.
How to Enable remote desktop for Cloud Service?
if you want to know more about cloud Service check : http://avipatils.blogspot.in/
We are needing to see the FTP transfer logs for one of our azure web sites.
Is this possible?
Is it possible to access the FTP deployment site logs for my account
I can't find any way to do it. Normally in IIS, we can install FTP Extensibility and enable the FTP transfer log through FTP Logging button.
After remote administration of Windows Azure Websites using IIS Manager, I can't find the FTP Logging button. We can only find some buttons as following.
Unfortunately, in Azure App Service, the FTP logs are not exposed to the end users. The access is restricted to Microsoft.
You may want to raise a feedback here for the Azure app services team: Azure Web Apps User Voice