Monitor blade doesn't work when a custom cloud rolename is set
- Dominant language
- PowerShell
- Stars
- 1.1k
- Forks
- 215
- Avg merge
- 4h 2m
- Merged PRs (30d)
- 1
Description
I appreciate this issue is similar to #1755 but I just wanted to add a bit of additional info to see if that helps work towards a solution.
When I access the Monitor blade for any of my functions I see no results:

This is because my requests come in with a custom cloud rolename value instead of the function app name, but the monitoring query appears to have the function app name baked into the query:

#1755 states that there isn't a lot that can be done because the author is setting the value in their `Startup.cs` file and there is no way for the Azure Portal to know that, and I understand that. However we are actually setting our cloud rolename through a documented environment variable, `WEBSITE_CLOUD_ROLENAME`:

If this environment variable is set, could it override the function app name in the Monitor blade's query?
Many thanks.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.