Just got started with azure functions. I am using it as an httptrigger for an IoT device. 

I am trying to setup one function that will work for httptrigger requests coming from several IoT devices - So I dont have to setup one function per device. So ideally, in my c# file, I will have something like this:

```
DeviceClient deviceClient;
string iotHubUri = "myhub";
string deviceName = "something dynamic here that changes with device";
string deviceKey = "something dynamic here that changes with device";

```

Then , I'd like to get my function url to look something like this:

```
"https://<functionapp>.azurewebsites.net/api/<function>/{device_id}?code=xxxxx"

```

where device\_id is the IoT device id.

I am not sure how to first setup the reference in the c# file to be dynamic and also how to get the url to look the way I intend.

Some help will be appreciated. Thanks