How to see uploaded file on cloud service of azure? - azure

I have successfully deployed my service to the azure cloud services and its working great. But I am having one problem, I have a logging layer in my service which logs activities and error to the log files. But now when I have deployed my service to azure cloud services I am unable to access the log files, since I made the package file for deploying it to azure. Can somebody tell me how to access those logs file.

Windows Azure Diagnostics - http://msdn.microsoft.com/en-us/library/windowsazure/gg433048.aspx.
There is also a couple short 5 minute videos that shows how to set it up and use it - http://channel9.msdn.com/Series/DIY-Windows-Azure-Troubleshooting/Enabling-WAD and http://channel9.msdn.com/Series/DIY-Windows-Azure-Troubleshooting/WAD-Intro.

Related

Azure Web Jobs unable to read configuration of Azure App Service

I am currently deploying a C# console app as a Continuous Azure Web Job to an Azure App Service and I am using the Azure Web Jobs SDK 3.X(https://learn.microsoft.com/en-us/azure/app-service/webjobs-sdk-how-to).
The Web Job successfully deploys to the Azure App Service but the status of the Web Job is "Pending Restart". When I check the logs, the error I see is that a configuration value is being read in as NULL. I am setting this value in the App Service's configuration/Application Settings page but it seems my Web Job is unable to read it. Do these settings need to be set during deploy? Or do I need to be setting these configuration values in a different location?
My issue was that my app thought that my environment was Develop and it was looking for the appsettings.Development.json file. Once I corrected that issue, it looks like I am reading in my app settings correctly.

Azure Web App with Linux Logging not works

i try my first steps with Azure. I have upload a WebApp (Blazor WASM Serverhosted) on a Linux System. Now i want to see the logs. My application brokes on Azure on startup. Everything I have tried has not worked.
The logstream shows nothing.
The Monitoring/logs are disabled
I activate in Monitoring/App Service Logs the File System and go to FTP Folder and i don't find a log-folder or something like this
I hope for help to fix my App or Configuration on Azure
Still the issue can be available in github . You can achieve this by using below steps.
Steps provided here. And I am deployed in Linux app service
Now you can be able to view the logs in application insights
You can add/modify the custom logs as well by using the custom telemetry client.
Refer here for detailed information

How to enable logging in new Azure VMs, automatically?

I have created a custom OS images on Azure containing my app, omsagent, and a configuration file to track my application logs. I verified that the custom logs were available on Log Analytics Workspace for that VM.
When I create a new VM with this custom OS, using Python SDK, I don't receive logs in the workspace. I verified that omsagent is working. It is sending heartbeats that are visible on the Log Analytics Workspace > Insights > Agents.
I found out that the new is was not Connected to the workspace.
So my question is how do I automatically connect a VM to Log Analytics Workspace at creation time?
I would advise against baking the Log Analytics Agent (OMS Agent) into the image directly - Azure doesn't recommend this kind of setup. Instead, you should be using an Azure Policy that they provide exactly for this scenario.
We have dozens of VMs and Scale Sets we need to manage with Log Analytics Agent installed on each of them when we build the custom images. In the beginning everything was working fine but a couple of months later those images stopped working.
After spending some time investigating with the Azure team we found out that the agent's certificate wasn't being renewed and it wouldn't connect to the Workspace automatically. Even worse was that because of this, it was failing all our images builds.
We were told that this is not the right practice and we should look at Azure Policies. They are rather easy to setup - just assign once and forget about them. It's also good for compliance and will let you know if there's any machine that's non-compliant.
Check this link for more info about Azure Monitor policies.
And this link will open your Azure Portal directly into the policies page for Windows VMs.
Here's a preview of the policies available:

How do I set ARR affinity for an Azure cloud service?

I have a web role in a cloud service with 2 instances.
I have a function that creates files in one instance and switches to the other mid-function, causing 404 errors because it can't find the files.
In Azure Web Apps, there is a setting in the Azure Portal to turn ARR Affinity on or off. I don't see anything like that in Azure Cloud Services.
For cloud services, you'll need to install it manually by yourself on your startup task of csdef file.
ARR is not installed by default for IIS.
You can refer to this article for more information (from step 4).

azure v2.8 cloud service diagnostics

I've had a site running on a azure 2.4 cloud service for some time without any problems. This site is using diagnostics to log errors and user inputs to a wad_logs_table in a storage account. After upgrading to 2.8 this doesn't work anymore.
Ive tried to enable diagnostics after upgrade and configure the "new" config diagnostics.wadcfgx file with storage account info, but I don't think it is working. As I understand it will not be using the wad_logs_table anymore? What do I need to change? Where can I access the logs?

Resources