dev-d4
dev-d4

Reputation: 1

Azure API management URL is not connected to API

I am new to API Management. I have created a Management resource which I have connected a Functions App to, furthermore I have made sure that a subscription is required to access the API/Functions App. In the Functions App Networking-settings, I have disabled "public network access" since I only want to give access through the API Management.

Does anyone know how I can create an API Management resource with an API (as a functions app) connected to the APIM which requires a subscription key and has disabled public network access?

Thank you

First of all, when I try to test the API in the Azure Portal I can not see that the request passes a subscription key, which seems weird to me. And when i send the request, I get this error back

Error API Management

Upvotes: 0

Views: 446

Answers (1)

Ikhtesam Afrin
Ikhtesam Afrin

Reputation: 6497

To access the function app in Azure APIM by disabling public network access, you need to add a new rule in function app and allow the public IP of APIM.

  • Fetch the public IP from APIM Overview menu.

enter image description here

  • Then add a new rule in function app as shown below.

enter image description here enter image description here

  • By doing so, you can only grant access to APIM and can invoke the function.

enter image description here enter image description here

Upvotes: 0

Related Questions