I have input as queue trigger as below:
[FunctionName("Test")]
public static void Run([QueueTrigger("myqueue-items")]string myQueueItem, TraceWriter log)
{
//code
}
I want to get host url of azure function inside above function, is there any way to get it?
You can get the host name by
Environment.GetEnvironmentVariable("WEBSITE_HOSTNAME")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With