Our scale controller relies on the ServiceBus GetSubscription API to access the MessageCount for a subscription to determine whether it should scale out. That API requires Manage rights. So while the Function runtime supports Listen rights, users will see unexpected behavior unless they give us a Manage rights connection string (until this issue is fixed).
Can we find some way to get the message count without manage rights. The answer is probably no, but its worth doing some more investigation as this would be the simplest fix.
Assuming no for the above, have the functions runtime emit a warning to host logs indicating that it needs a manage level connection string. Only do so when running in dynamic.
During investigation, use the ScaleControllerEvents table to verify you are reproing the issue correctly.
@mamaso So we went with the emit host logs approach right? I see thats merged, can we close this?
@mathewc and I chatted and decided to revert the logging part of the PR, we felt it wasn't worth the added complexity when the real part of the problem is in the scale controller and the host logs are not visible enough.
Keep this open for: