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

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, we can leverage azure-mediaservices-spring-boot-starter, though it is not available in Spring Initializr yet,…

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

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

How to Fix “Access to OData is disabled” when Calling Graph API

Microsoft Graph and Office 365 Unified API are widely used to make development based on Office 365, while when calling calendar related API, you may experience “Access to OData is disabled” failure shown below. client-request-id: 4812d5c0-7a5d-4416-ae8b-5f9cefa873a5 content-type: application/json cache-control: private request-id: 4812d5c0-7a5d-4416-ae8b-5f9cefa873a5 Status Code: 403 { “error”: { “code”: “ErrorAccessDenied”, “message”: “Access to OData is…

1

Resource Owner Password Credentials Grant in Azure AD OAuth

Azure AD supports varies grant flows for different scenarios, such as Authorization Code Grant for Web server application, Implicit Grant for native application, and Client Credentials Grant for service application. Furthermore, the Resource Owner Password Credentials Grant is also supported for the case that the resource owner has a trust to the target application, such…

15

The difference between the tokens used by Microsoft Graph API and Azure AD Graph API

Microsoft Graph API and Azure AD Graph API are two sets of Restful services to query office 365 user or organization’s information. The obvious difference for these two services are the endpoints that Microsoft Graph API is https://graph.microsoft.com and Azure AD Graph API is https://graph.windows.net. On authorization part, both of the two Graph APIs are…

2