DiagnosticMonitorTraceListener in Azure Websites - azure

I have been using Azure Cloud Services the past year and is used to reading my trace logs with Azure Management Studio, with logs being stored in table storage using DiagnosticMonitorTraceListener.
I am confused about starting using azure websites as it seems they are using a diffrent logging structure? Is it not possible to see the trace logs from azure website using azure management studio in the Diagnostic/Trace like i used to with Cloud Services

Diagnostics in azure websites is similar to any web application. DiagnosticsMonitor applies to webroles. In the case of websites, diagnostics need to have a persistent storage and it can be configured in azure management portal.
Check out these posts.
http://azure.microsoft.com/en-us/documentation/articles/cloud-services-dotnet-diagnostics/
http://blogs.msdn.com/b/microsoft_press/archive/2014/01/29/from-the-mvps-diagnostics-and-logging-in-windows-azure-web-sites.aspx
http://www.hanselman.com/blog/StreamingDiagnosticsTraceLoggingFromTheAzureCommandLinePlusGlimpse.aspx
The logs can be downloaded and analysed locally. I am not sure if the tool that supported webroles works for this too.

The diagnostics viewer tool for cloud services will not work for Azure Websites, but there is a tool for viewing your Azure Website logs called Azure Website Log Browser. It is installed as a site extensions on your Azure Website.
You can read more about it here.

Related

How do I configure which storage account my Web Apps and Function Apps use?

Is this even possible? I have a couple web apps and a couple of Azure Functions running under the same App Service Plan. I'd like to (ideally) have them use a specific Storage plan, so I can keep everything in one place. I envision them in different containers under the same plan.
If that's not possible...then where are the files? Are they on the storage that's built into the App Service Plan itself? If so, can I connect to this somehow, so I can manage the files through something like Storage Explorer?
Today when playing with the Azure Az Powershell tool I found I was able to provision a Function App without a Azure Storage back-end. This cannot be done via the UI. An easy way to provision a Function App with a storage account backend is by leveraging the Azure UI for provisioning.
When a Function App is provisioned via command line, the bits seem to be stored within the function app itself. There is an FTP URL given if you download the publish profile. The files can be read and written to using an FTP tool like WinSCP (as alternative to Kudu)
I'd like to (ideally) have them use a specific Storage plan, so I can keep everything in one place. I envision them in different containers under the same plan. If that's not possible...then where are the files? 
Every Azure Web App has a home directory stored/backed by Azure Storage. More detail info please refer to Azure WebApp sandbox. It is owned by Azure WebApp Service, we are not able to choose Azure Storage to setup WebApp by ourselves currently. But we could config storage account for Azure WebApp Diagnostic logs.
Are they on the storage that's built into the App Service Plan itself? If so, can I connect to this somehow, so I can manage the files through something like Storage Explorer?
Different WebApp Service Plan has different volume of the storage. We could use Kudu tool (https://yoursite.scm.azurewebsites.net) to manage the files. More detail info about Kudu please refer to the document.
Update:
We could access the home directory with the Kudu tool. More details please refer to the snapshoot

How to display azure app service's web server log on Azure log Analytics?

I have an api application hosted on azure App services. For the web server log (iis logs) I've turned on web server logging from Azure portal. Look at the screenshot below.
For storing web server logging
Server Logs are allowed to be stored on the Azure blob containers only. As per the configuration the logs are stored on blob container as expected. Now I want to use these logs to be displayed on Azure Log Analytics.
I've the following storage configurations on Log Analytics in Azure Web portal.
On Log Analytics explorer I can view logs from all other sources except the web server (iis logs). What I'm missing here?
Verified with App Services team that Log Analytics is only supported at the IaaS (VM) level, not at PaaS (App Service) level.
Hopefully we can get this on their roadmap soon - for now you have to manually ingest this data into an external log management tool (Splunk, Sumo Logic, Azure Data Explorer).
Update 12/02/2019
Azure App Service has announced a Public Preview for IIS App Log integration with Azure Log Analytics.
Expanding on the prior answer, under the Diagnostic settings (preview) pane you can now integrate multiple logs to Azure via Add diagnostics setting, this can store:
AppServiceAntivirusScanAuditLogs
AppServiceHTTPLogs
AppServiceConsoleLogs
AppServiceAppLogs
AppServiceFileAuditLogs
AppServiceAuditLogs
AppServiceIPSecAuditLogs
AppServicePlatformLogs
AllMetrics
You can send them to:
Log Analytics workspace
Archive to storage account
Stream to event hub
Send to partner solution
Additionally, Application Insights is migrating to be backed by Log Analytics so we are getting close to fully integrated platform for metrics and logs

Azure application status page

I have an application running on the Azure cloud.
Currently this is deployed as an Azure web app.
Is there any way to monitor the website status and build a page like this or this?
As you can see in those examples both have:
a service global status
An historical status which is grouped in hour/day/months period
Does azure has an API that I can use to monitor my services?
Application Insights and the Azure portal will give you a rich monitoring and diagnostics experience for your web app. It is in preview at this time.
You can get very granular data points or high-level graphs and trends. The historical data can go back as far as 13 months for aggregated data points. You can read more about the data retention policy here.
The Azure portal (the new one at portal.azure.com) gives you a rich UI to interact with the telemetry data from your app. And if you want to customize a blade to view specific data for your app you can do that too.
Azure Web Apps also has built-in monitoring support that you can use. It won't give you the depth that Application Insights does but you should look at this too to see if it will give you the data you need. And of course, you can customize the monitoring blades in the Azure portal to suit your needs.
Azure does offer a robust RESTFul API for managing and monitoring your services. Essentially anything you can do through the Azure Management Portal is accessible via an API, including analytics. The portal itself often uses this same API.
https://msdn.microsoft.com/en-us/library/azure/ee460799.aspx
You can also use MSFT authored .NET assemblies to create your own monitoring applications in Visual Studio. I find the monitoring and analytics features more robust via this model. These are available on GitHub:
http://azure.microsoft.com/en-us/updates/management-libraries-for-net-release-announcement/

Moving Azure Instance to AWS

I have received $200 credit to host my 2 Windows Azure Cloud projects on AWS. Just wondering what the quick and dirty process is to migrate my Visual studio projects to being published on the AWS cloud?
I could seem to find much documentation available, with the exception that apparently it's possible.
Are you using Cloud Services (web role), an Azure Web Site, or a VM? Depending on how the ASP.NET MVC code is written, you could provision whatever compute capability you need in AWS and deploy there.
The blob storage would likely be the problem. That is unless the code has an abstraction layer to isolate the app from storage implementation details. Azure blob storage and whatever you using in AWS have different platform APIs.

I can't find cloud service in azure publish

I did the listed steps in this page
http://msdn.microsoft.com/en-us/library/windowsazure/ff683676.aspx
I downloaded the file and import it, after that I copied the certificate path and upload it under settings/ Management certificates.
then I am trying to use the created subscription to publish the web application, in the cloud service drop down I see no service , although in management portal there is a cloud service created,
Plz help me if I missed up anything,
You should create a Windows Azure Project, then select Web / Worker Role. (.NET Azure SDK)
PS: In case you already have a project, right-click on roles and add from existing web project.
So, you will publish this azure project to a cloud service.
more info:
http://msdn.microsoft.com/en-us/library/windowsazure/ee405487.aspx
Some cloud services can NOT be deployed to through the publish wizard in Visual Studio for a Cloud Service Project. For example, any Service that already has a VM deployed to it, and is an IAAS VM. Any empty Cloud Service or a cloud service that only has PAAS deployments would show up.
Look at the list of cloud services that are available to you in you Server Explorer ->Windows Azure ->Cloud Services.
Is this an empty Cloud Service? If not make an empty one blank one and you should find it in the dropdown.

Resources