Reputation: 251
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
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:-
For production slot:-
You can also add custom domain as a root domain
for your Production Function App
:-
You can also add Custom domain to multiple API's in Azure APIM by referring this SO answer and this MS document
Upvotes: 0