Currently SAMI flows use a default value for client id as cache key. This can be a security issue when more than one azure resource with SAMI enabled share a distributed cache.
One of the solution is adding FQDN of the machine to the cache key.
- Add FQDN to cache key for managed identity scenarios.
- Test on resources to validate it resolves the issue.