Is there a clean way of diverting a portion of production traffic to a slot in function apps? Something similar to how app services do? I have read some things about using another function app and the proxies but I would like to do something like canary deployments such as:
- deploy to stage slot
- run whatever tests
- divert 1% of traffic to stage slot and monitor for metrics
- repeat step 3 but increase traffic in increments 10%, 25%, 50%, 75%, 100%
- If at any point a gate is hit (some metric is reached), roll back to 0% sent to the slot
I can think of a way to do this in code with a function app and some randomness but does Azure have anything built in for this and function apps?