0

Thanks for A2A,

I am configuring my Azure APIM service as internal inside VNET & I am integrating it with Azure Application Gateway. Thing is I didn't get which DNS to configure for Custome DOmain setting Public DNS or Private DNS zones.

aditya Mehta
  • 33
  • 1
  • 10

1 Answers1

0

Based on Create a public IP address for the front-end configuration, you should configure Public IP and Configure the front-end IP with it.

$publicip = New-AzPublicIpAddress -ResourceGroupName $resGroupName -name "publicIP01" -location $location -AllocationMethod Dynamic

$fipconfig01 = New-AzApplicationGatewayFrontendIPConfig -Name "frontend1" -PublicIPAddress $publicip

And once the gateway is created, you need to CNAME the API Management proxy hostname to the public DNS name of the Application Gateway resource.

So you can choose public DNS based on the official document.

Allen Wu
  • 15,529
  • 1
  • 9
  • 20
  • Thanks, Allen, One query over your reply, " Then how App GW can proxy to APIM". Do in APIM we need to set up custom domain from Private zone or same public domain can be integreted automatically in APIM – aditya Mehta Jun 23 '20 at 08:24
  • @adityaMehta You should use the Application Gateway's DNS name to create a CNAME record, which points the APIM proxy host name to this DNS name. Any difficulty on doing this? – Allen Wu Jun 23 '20 at 09:01
  • Prior to this Q&A I had done setup using Azure Private DNS zone. But APPGW won't able to proxy/connect to APIM Backend (as per health probe). So now will go with creating a Public DOmain from a Registrar and map A record with APPGW. – aditya Mehta Jun 24 '20 at 10:06
  • 1
    @AllenWu And once the gateway is created, you need to CNAME the API Management proxy hostname to the public DNS name of the Application Gateway resource. - Does this mean you need a CNAME record with an alias pointing some something like ffhfghfhfh.cloudapp.net (this being the api gatewaay dns record created by azure)? – chugh97 Jul 02 '20 at 22:28