
Explanation:
Box 1: DeliveryRuleIsDeviceConditionParameters
We are first checking for a device condition, hence we need to use the condition of DeliveryRuleDeviceConditionParameters Box 2: Mobile The devices can be either Desktop or Mobile. These are the two accepted values. Here since we need to route requests based on mobile devices, we need to choose the value of Mobile.
Box 3: DeliveryRuleRequestHeaderConditionParameters
We need to understand the type of operating system running on the device. We can get this information from the request headers. Hence, we need to use the parameter of DeliveryRequestHeaderConditionParameters.
Box 4: HTTP_USER_AGENT
We can check the HTTP_USER_AGENT property in the request header. In the user agent property of the request header, you will normally get information about the environment where the request is originating from. An example is given below where I am showing the request header from my own machine when I browse to a site.
Box 5: iPhone
We are not looking for other Apple devices running iOS. It's the iPhone we're looking for.
Reference:
https://docs.microsoft.com/en-us/python/api/azure-mgmt-cdn/azure.mgmt.cdn.models.isdevicematchconditionparametersmatchvaluesitem?view=azure- python
https://docs.microsoft.com/en-us/azure/cdn/cdn-standard-rules-engine-match-conditions