Azure / Azure/Azure-Functions

Monitor blade doesn't work when a custom cloud rolename is set

Open
#2,363 5 comments 0 reactions 1 assignee Claimed by @vijaykumar911 View on GitHub
Needs: Attention :wave: Needs: Triage (functions) v4-bug
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:
![image](https://user-images.githubusercontent.com/34222571/229458656-07377b72-1ca6-4ae0-8cb9-5cd1b4cb6d8f.png)

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:
![image](https://user-images.githubusercontent.com/34222571/229458553-7f5837c2-1b8f-4830-ac69-9a9b30083457.png)

#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`:
![image](https://user-images.githubusercontent.com/34222571/229459600-a5b49512-a580-4e8a-b126-b92da670c402.png)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.