question

Nibbler avatar image
0 Votes"
Nibbler asked GitaraniSharmaMSFT-4262 commented

Using a VM as back-end-pool on a AFD

Hello,

Im trying to add a VM to an Azure Front Door....

The typically steps for using a webapp does not apply. And it`s not possible to use the backend-host-type “public IP address” and then add the public IP of the VM.

Using the backend-host-type “custom host” and the public IP of the VM only give a page saying “

Our services aren't available right now
We're working to restore all services as soon as possible. Please check back soon.
0c2AbYQAADFETHHSYU3eu1ID7LsRlJBRURHRTEwMTcAOTgSDFODYtYzUwNi00MjNhLTg3MDctN2U2MWQ5NzY3MDRi


Lastly, unable to find any MS documentation on this, other then it should be possible.

Any good pointers in how this should be done?

azure-front-door
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@GitaraniSharmaMSFT-4262 Would you have any good pointers :-)

0 Votes 0 ·

1 Answer

GitaraniSharmaMSFT-4262 avatar image
0 Votes"
GitaraniSharmaMSFT-4262 answered GitaraniSharmaMSFT-4262 commented

Hello @Nibbler ,

Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

Azure Front Door backends should be the public endpoint of your application backend.

To configure an Azure VM as back-end-pool on Azure Front Door, you can do either of the following:

  1. Select Backend host type as Public IP address, select the correct subscription and add the NIC/Public IP of the VM which you want to add as the Backend host name.

  2. Select Backend host type as Custom host and add the FQDN/DNS name of the VM which has the Public IP address and application on it as the Backend host name.

Since, you mentioned you cannot use the Backend host type “Public IP address”, you can use the second option to configure your VM behind the AFD.

To create a FQDN on your VM, you can refer the below article:
https://docs.microsoft.com/en-us/azure/virtual-machines/create-fqdn

Then add that FQDN to the AFD as a custom host backend type.

Kindly let us know if the above helps or you need further assistance on this issue.


Please "Accept the answer" below if the information helped you. This will help us and others in the community as well.

· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @GitaraniSharmaMSFT-4262 Thanks for the quick reply.

It is not possible to add a FQDN as "This public IP address can't be updated because it is associated to the IP configuration 'ipconfig1', in the network interface"

0 Votes 0 ·

The VM is using VNET and a Network Interface.

0 Votes 0 ·

Hi @GitaraniSharmaMSFT-4262 Please see my comments in reagrds to the suggested approach.

0 Votes 0 ·

<<UPDATE on this issue>>

We are working offline to fix the issue.

1 Vote 1 ·

Hello @Nibbler ,

Thank you for the update.

I would like to take a look into your setup & discuss the issue further. Could you please drop us an email as advised in the private message?

Regards,
Gita

0 Votes 0 ·

<<UPDATE>>

Hello @Nibbler ,

We worked offline on this issue and we were able to create a FQDN on your VM and add the same to the AFD backend pool and then wth some configuration changes and backend settings, the AFD started working and the issue is now resolved.

Kindly let us know if the above helps or you need further assistance on this issue.


Please "Accept the answer" below if the information helped you. This will help us and others in the community as well.

0 Votes 0 ·