Support HTTPS in Azure Marketplace image for Jenkins

Create a Jenkins server on an Azure Linux VM from the Azure portal has introduced how to configure Jenkins server in azure based on Azure Marketplace image for Jenkins. This image is published by Microsoft, as it has configured Nginx and Jenkins environment well and also make sure they are started automatically,it is very fast…

0

Extend Microsoft.AspNetCore.Authentication.OAuth to Support Reverse Proxy

Recently, one customer said his Asp.net Core application used to work very well in OAuth authentication all the time, but after he placed a reverse proxy in front of the web application, the authentication fails because of invalid callback path. Normally speaking, a callback path is needed when registering an application to the OAuth server….

0

How to Make Deployment with Ansible Azure Modules

Ansible is an open-source product that automates cloud provisioning, configuration management, and application deployments. It includes a suite of modules for interacting with Azure Resource Manager, giving us the tools to easily create and orchestrate infrastructure on Azure. In order to use Ansible, we need a linux on-prem server or a linux jumpbox vm in…

0

Provide Cross Region Low-latency Service based on Azure Global VNET Peering

It is a common scenario that an organization is placing most cloud infrastructures such as virtual machine, database and redis cache in one region to serve local access. On the other hand, there is still requirement for global access and below is the traditional approach via internet. Even though this deployment is easy and also…

0

How to Start Spring Boot with Azure Media Service

[Obsolete, any new application is expected to use AAD instead of account key] In this article, I will walk you through creating a custom application using the spring initializr, and then access the Azure media service and finally deploy to Azure Web app. In order to access Azure media service in a spring boot application,…

0

Integrate Web App with Azure Virtual Network by Point-to-Site VPN

It is a common scenario that we want to use VNet Integration to enable our web app access a database or other services running on a virtual machine in an Azure virtual network. With VNet Integration, we don’t need to expose a public endpoint for applications on the virtual machine but can use the private…

0

Take Care of Thread Safe when Creating EventHubClient Object with Java SDK

Recently, I have worked on a weird azure app service issue. The app service just randomly returns 502.3 status code, and the win32 error code is 0x80072EFD. Normally speaking, for a Java web application, this is a bad gateway issue and the win32 error code means HttpPlatformHandler is not able to connect to Tomcat, because…

0

Manage Azure CDN Endpoint in Node.js

The Azure Content Delivery Network (CDN) offers a global solution for delivering high-bandwidth content that is hosted in Azure or any other location. Using the CDN, we can cache publicly available objects loaded from Azure blob storage, a web application, virtual machine, application folder, or other HTTP/HTTPS location. The major advantages of using the CDN…

0

Access Azure CosmosDB in TypeScript

Azure Cosmos DB is a globally distributed, multi-model database hosted in Azure. It provides turn-key global distribution, elastic scaling of throughput and storage worldwide, single-digit millisecond latencies at the 99th percentile, five well-defined consistency levels, and guaranteed high availability, all backed by industry-leading SLAs. Azure Cosmos DB automatically indexes data without requiring you to deal…

4

JavaScript Unit Test Intergration in VSTS Build Pipeline

VSTS supports any kinds of JavaScript test runner as long as it can be invoked via command line, we can either use Chutzpah with PhantomJS or karma with most popular browsers in its build pipeline. This article will demonstrate how to integrate karma unit test into VSTS and notice that any other test runner just…

0

How to Separate Tomcat Logging Per Instance in Azure Web App

Azure web app supports multiple instances of Java application host in Tomcat. While based on Tomcat’s default logging setting, all the instances’ log will be archived to same file, this could bring difficulty to check what’s going on in each different instance. This article is about how to separate the log files per instance. Basically,…

1

ASP.NET Core and 502 Bad Gateway Response

502 bad gateway error response is not like traditional 500 error which is mostly a code problem, this make it even difficult to troubleshoot the root cause and I also see quite a few confuse from developers that why there is 502 error in ASP.NET Core production environment. Basically, the HTTP 502 Bad Gateway server…

0

Experience Weird Access Violation? Maybe a Race Condition Problem

Recently, I am working on a native memory crash issue because of access violation. I have seen a lot of access violation which are caused by heap corruption before, while this issue looks so weird which even make me feel it could be a hardware (CPU) problem. Finally, I am able to confirm it is…

0

How to Support Windows Authentication for ASP.NET Core in IIS

When we are debugging and testing Windows Authentication based ASP.NET Core application in development environment, it is very straightforward. We can just use Windows Authentication based template to create the application without any code change. The launchSettings.json contains the following section to enable windows authentication and disable anonymous authentication. “iisSettings”: { “windowsAuthentication”: true, “anonymousAuthentication”: false,…

11

Docker Compose ASP.NET Core to Nano Image with Windows Container

In this article, I would like to demonstrate how to deploy an ASP.NET Core application with SQL Server dependency to nano server by docker. To support .NET Core in docker, Microsoft has published both of linux and windows server 2016 nano images in docker hub, you can reach them in dotnet repository. If this is…

0