asp.net

Leveraging the OMS Search API in an Azure Automation Runbook

Posted on

The availability of the OMS Search API has enabled automation scenarios which involves alerting, notification and potential remediation based on log analytics data in Operations Management Suite (OMS).

In this blog post we will talk about a sample scenario for monitoring a honeypot account with an Azure Automation runbook . This runbook checks if someone has attempted to logon with this account on a specific server.

Our runbook will talk to the OMS Search API and is able to execute searches or can retrieve the results of a saved search. Based on the query results we can decide to take corrective actions or to invoke other runbooks for alerting and notification purposes.  During conversations with customers we have been asked many times if OMS has similar System Center Operations Manager (SCOM) task integration to take actions based on OMS search query results.

Hybrid-runbook-shows-up_thumb

 

To see more about this click here:

http://azure.microsoft.com/blog/2015/07/21/leveraging-the-oms-search-api-in-an-azure-automation-runbook/

Advertisements

What is ASP.NET console application?

Posted on

  • CoreCLR – minimal subset of .NET Framework that is ~11MB in size and that supports true side-by-side execution. Yes, your application can specify exact version of CLR it needs to run and it doesn’t conflict with another versions of CLR on same box.
  • DNX runtime – formerly named as K runtime, console based runtime to manage CLR versions, restore packages and run commands that our application defines.
  • Framework level dependency injection – this is something we don’t have with classic console applications that have static entry point but we have it with ASP.NET console applications (they have also method Main but it’s not static).
  • More independence from Visual Studio – it’s easier to build and run applications in build and continuous integration servers as there’s no need (or less need) for Visual Studio and its components. Applications can define their commands for different things like generating EF migrations and running unit tests.

asp

To see more about this click here:

http://gunnarpeipman.com/2015/06/what-is-asp-net-console-application/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+gunnarpeipman+%28Gunnar+Peipman%27s+Programming+Blog%29

Build and Deploy your ASP.NET 5 Application to an Azure Web App

Posted on

Before you can setup a definition to deploy your application you need to add your Azure Subscription to your team project collection. You will only need to do this once per subscription.

  1. Go to your project page (https://{youraccount}.visualstudio.com/DefaultCollection/{yourteamproject}) and click on the small gear in the upper right corner.
  2. Select the Services tab and click Add new Azure Subscription link on the top left.
  3. Click on Add new Azure Subscription in the top left and fill in your subscription details.

To see more about this click here:

https://msdn.microsoft.com/Library/vs/alm/Build/azure/deploy-aspnet5

ASP.NET 5 applications in Linux Containers with Docker!!!!!!!!!

Posted on

Docker is an open source project that makes it easier to run applications in sandboxed application containers on Linux.Once Windows client for Docker is available, you will be able to run these commands on Windows and once Windows Server container support comes out you will be able to use Docker to manage Windows Server containers.
How to use the Docker image for ASP.NET 5.?????
Step 1: Create a Linux VM with Docker
Step 2: Create a container image for your app
Step 3: Build the container image
Step 4: Run the container

To read more about this click here:
http://blogs.msdn.com/b/webdev/archive/2015/01/14/running-asp-net-5-applications-in-linux-containers-with-docker.aspx

ConfigR as a Configuration Source in ASP.NET vNext!!!!!!!!!!!

Posted on

One of the cool things about ASP.NET vNext is that it introudces a configuration abstraction, Microsoft.Framework.ConfigurationModel over your application’s configuration.ASP.NET vNext has built-in support for specific configuration sources already, such as JSON files or INI files. Aside from that, ASP.NET vNext allows you to plug in your own custom.
ConfigR is a terrific project from Adam Ralph, and is based on the scriptcs project. In short, ConfigR allows you to use CSX files (C# scripts) to write your project’s configuration.

You get three benefits:

1. your configuration can be strongly typed, as you are no longer constrained by the limits of serialization; you simply write your config file with C#

2. configuration is no longer purely static. It can now make logical decisions and reason about configuration settings itself, as it can run C# code. This is profoundly important as it allows you to completely decouple the configuration from the application. Configuration, since it’s C# driven, can inspect the runtime and, for example, decide on proper config settings based on the versions of the assemblies currently loaded into the AppDomain.

3. ConfigR, out of the box, supports loading configuration over the network, so you can configure a large number of your applications, distributed across different machines or platforms, from a single place.

To read more about this click here:

http://www.strathweb.com/2014/10/using-configr-configuration-source-asp-net-vnext/

Formatters in ASP.NET MVC 6!!!!!!!!!!!

Posted on

ASP.NET Web API provided first class support for content negotiation through the use of MediaTypeFormatters.MVC 6 is a de facto brand new framework, rebuilt from scratch, the majority of concepts from MVC 5 and Web API 2 have naturally been brought forward, and conneg done through formatters are one of them.
In ASP.NET Web API formatters were bi-directional – single object handling both input and output, in MVC 6 the concept of formatters became uni-directional.

MVC 6 ships with a bunch of formatters defined already.
Three input formatters:
– JsonInputFormatter – based on JSON.NET
– XmlSerializerInputFormatter – based on XmlSerializer (in the box, but not registered by default)
– XmlDataContractSerializerInputFormatter – based on DataContractSerializer

Six output formatters:
– JsonOutputFormatter – based on JSON.NET
– XmlSerializerOutputFormatter – based on XmlSerializer (in the box, but not registered by default)
– XmlDataContractSerializerOutputFormatter – based on DataContractSerializer
– TextPlainFormatter – used to force a string into a text/plain content type
– HttpNoContentOutputFormatter – used to force 204 status code for null action return
– HttpNotAcceptableOutputFormatter – used to force 406 status code if no appropriate formatter can be selected to handle the request (in the box, but not registered by default)
To read more about this clcik here:
http://www.strathweb.com/2014/11/formatters-asp-net-mvc-6/

ASP.NET features in Visual Studio 2015!!!!!!!!!!!

Posted on

The ASP.NET team provided many new features and updates to both the runtime and tooling in Visual Studio 2015.ASP.NET 5 Preview is a lean and composable .NET stack for building modern web applications for both cloud and on-premises servers.
features:
ASP.NET MVC and Web API, which have been unified into a single programming model.
A no-compile developer experience.
Environment-based configuration for a seamless transition to the cloud.
Dependency injection out-of-the-box.
NuGet everything, even the runtime itself.
Run in IIS, or self-hosted in your own process.
All open source through the .NET Foundation, and takes contributions in GitHub.
ASP.NET 5 runs on Windows with the .NET Framework or .NET Core.
.NET Core is a new cloud optimized runtime that supports true side-by-side versioning.
ASP.NET 5 runs on OS X and Linux with the Mono runtime.

To read more about this click here:

http://blogs.msdn.com/b/webdev/archive/2014/11/12/announcing-asp-net-features-in-visual-studio-2015-preview-and-vs2013-update-4.aspx