Can I configure Azure diagnostics on IAAS virtual machine? - azure

I would like to reuse libraries written for Azure PAAS solution (WebRoles and WorkerRoles) in a specific service running in Azure VM (IAAS). It would be beneficial if I could use the same trace listener (DiagnosticMonitorTraceListener) and let the Azure diagnostics to deliver logs to Azure Storage. Is it possible to install the diagnostics services into Azure VM?
I found basically the same question here on SO but it is quite old now. Perhaps there was some progress?

Yes, it's now possible to use the Azure Diagnostics extension with Azure IaaS virtual machines as well as PaaS cloud services, see the Virtual Machine Monitoring with Azure Diagnostics Extension documentation for more info.

Related

How to enable azure monitor in virtual machine using terraform?

I am trying to enable azure monitor feature for my virtual machines which checks for health and performance of the VM using terraform but I am not able to find the right documentation for the same. Can you help me for the same because I want detailed monitoring for azure.
This is what I want to automate using terraform, enable health & performance using Azure Monitor for VM's
Here is the Azure Monitor for VM Screenshot
https://ibb.co/JmzfNZN
Enable Azure Monitor for VMs service is still in preview mode and is not available as a module in Terraform.
To raise a new feature request in Terraform for Azure, please use the below link:
https://github.com/terraform-providers/terraform-provider-azurerm/issues/new?template=enhancement.md

Is Azure DevOps a PaaS or IaaS?

This is regarding Microsoft's Azure DevOps(Formerly VSTS). Just wanted to clear things, can Azure DevOps be classified as a Platform as a Service. Since it is a cloud service it should be categorized into IaaS but it eliminates the middleware/OS in pipeline. If not then where does it go in the cloud services area? IaaS/SAAS?
Thanks.
Azure DevOps is SaaS for end users (Developers,PM,QA and other stakeholder). In the backend, all the services offer by "Azure DevOps" may run on VMs or Physical server. That mean Microsoft point of view, they may use combination of IaaS & PaaS solution for this platform. Ultimately all services running on VM or physical server.
Its a SaaS, since you are buying a service, not a platform, not virtual machines.
From learn.microsoft.com
Based on the on-premises capabilities, with additional cloud services, we manage your source code, work items, builds, and tests. Azure DevOps uses platform as a service (PaaS) infrastructure and many Azure services, including Azure SQL, to deliver a reliable, globally available service for your development projects.
So according to Microsoft it is PaaS.

Configuring Azure Diagnostics for Azure Application Service (PaaS)

My setup: Existing WCF service project modified to run as Azure Application Service (PaaS).
Originally I used log4net for my info/error logging, but it is rather cumbersome to look at those logs via FTP or SCM console. After some research I came to a conclusion that Microsoft.WindowsAzure.Diagnostics is the recommended way to handle logging in Azure apps.
Question/problem: I can't find a guide, for my scenario, on how to enable WindowsAzure Diagnostics for Application Service that is NOT created as Web/Worker Role.
The closest I got is Set-AzureServiceDiagnosticsExtension cmdlet, but it requires Role as parameter...
Question/problem: I can't find a guide, for my scenario, on how to
enable WindowsAzure Diagnostics for Application Service that is NOT
created as Web/Worker Role.
You can't use Azure Diagnostics for your Azure Application Service. It is meant for Azure Cloud Service (Web/Worker Role) and Azure Virtual Machines.
For App Services diagnostics, please see this link: https://azure.microsoft.com/en-in/documentation/articles/web-sites-enable-diagnostic-log/.

Deploy Azure Cloud Service using Azure Automation Powershell DSC

We are using Azure Automation DSC and were able to do simple things like create Automation account, create Resource group, VM creation and even able to deploy a web site on the target VM. All using powershell scripting.
How can we deploy Azure Cloud Services (web role / worker role)? what are the cmdlets? Any pointers? Please help.
What more things can be achieved using this? Moreover what limitations we can expect here.
Best Regards
Azure DSC is really focused on Azure's Infrastructure as a Service (IaaS) offering. Basically you can configure virtual servers (Windows and Linux) hosted on Azure.
To manage configurations for other services in Azure it is recommended to utilize Azure Resource Manager (ARM) which will allow you to define and configure Azure services in JSON.
Microsoft offers a lot of Quick Start ARM templates that can be accessed at the Azure Quickstart site.

enable diagnostic for Azure subscription using powershell cmdlet

Is it really possible to enable diagnostic for entire Azure subscrition using powershell cmdlet? or diagnostics should be enabled case by case(monitoring azure application,monitoring vm and storage account)?
in the operations manager console,we added our azure subscription,imported azure management pack but the Operations manager does not discover the azure cloud service,vm or storage account under that subscrption...we hope that enabling diagnostic for the azure subscription will solve the problem.
There is no such thing as
Enabling diagnostics for the azure subscription
Even more, there is no diagnostics for VM (Azure VM) or Azure Storage. The only diagnostics you can enable is for a Cloud Service. You can read more here.
For your Windows Azure Virtual Machines (not a cloud service) you have to manage diagnostics/monitoring the way you do on-premises. There is nothing specific to Azure, nor there is a special azure diagnostics for Virtual Machines.
Storage accounts can only be monitored via Storage Analytics which again are configured on per-storage-account basis and not on subscription level.

Resources