Kode
Kode

Reputation: 3215

Connect Azure AppService to Application on a VM over HTTPS

I need to connect our Azure AppServices to an Application running on a Azure VM. This application requires HTTPS and the AppServices have an application installed that will point to the HTTPS Address of the application on the VM.

I tried creating a Self-Signed Certificate on the VM and adding this to SSL of the AppService (exported .pfx) but that failed as I believe it only adds that to the Trusted Personal store/there is no access to the Trusted Root Store on a Azure AppService.

The Azure environment has a .local domain setup. Do I need to get a CA Certificate for my Application on the VM and install these on the Azure AppServices or do I have to a public domain name instead in order to have SSL communication between the Azure AppServices and my HTTPS application running on the Azure VM?

Upvotes: 0

Views: 321

Answers (1)

Zahid Faroq
Zahid Faroq

Reputation: 355

To achieve this scenario you need to place both VM and App service in same VNet and then establish a Point to Site Connection, then by default it will be encrypted. check the link below for more details: https://blogs.msdn.microsoft.com/benjaminperkins/2017/02/01/create-a-vnet-and-access-an-azure-vm-hosted-within-it-from-an-app-serivces-web-app/

Upvotes: 1

Related Questions