EnenDaveyBoy
EnenDaveyBoy

Reputation: 251

Setting up Custom Domains For Azure Function Apps Slots using Azure Api Management

I have many azure functions app, i want to configure to use a subdomain of a custom domain, however i then want to configure the slots to be configured to a different sub domain, eg api.mydomain.com and staging-api.mydomain.com.

but i am struggling to figure out how to do this, any suggestions would be appriciated.

I am new to Api Management, i know i can set up policies, but surely the custom domains need to be setup for each sub domain and if i set them up with values are the same for the cname and txt, so is it possible, or would i need a different Api Management instance for each slot?

Upvotes: 0

Views: 253

Answers (1)

SiddheshDesai
SiddheshDesai

Reputation: 8177

You can add custom domain to the Function app by following the steps below:-

Visit the Deployment slot of Function app > custom domain > add the custom domain as root or as a sub-domain, I have added the sub-domain for staging slot:-

enter image description here

enter image description here

For production slot:-

enter image description here

You can also add custom domain as a root domain for your Production Function App:-

enter image description here

You can also add Custom domain to multiple API's in Azure APIM by referring this SO answer and this MS document

Upvotes: 0

Related Questions