0

Is there an elegant way to supply a custom domain to the DurableOrchestrationClient?

Our functions use the new VNet Integration to get into the VNet and only allow traffic from within the VNet. An Application Gateway is then used as the entry point to known routes. We have a custom domain associated to the IP of the app gateway so it would be preferable that the response from CreateCheckStatusResponse could accept a different domain.

The alternative isn't pretty and involves a bit of string manipulation...

David C
  • 664
  • 1
  • 8
  • 21

1 Answers1

0

Look at the code for how the URIs are generated, it seems to be taking the host part of the request URI. So, if you were to make calls through the App Gateway, I believe the URIs would return with the same hostname (and port if any).

Also, you could override the hostname too by constructing a new HttpRequestMessage object and pass that to DurableOrchestrationClient.CreateCheckStatusResponse like this

return client.CreateCheckStatusResponse(new HttpRequestMessage(HttpMethod.Post, "http://domain.tld"), instanceId);
PramodValavala
  • 6,026
  • 1
  • 11
  • 30