title: Service Fabric Application fails to find the managed identity endpoint
body: <p>The Service Fabric cluster exists, the applications exists and are running. The user-assigned managed identity exists in the same resource group the cluster is. NOTE: I do not know how to verify whether it is assigned to the cluster or not.</p>
  <p>Code is trying to create a Storage queues client using the identity and I get the error below, which I think means that the fabric:/System/ManagedIdentityTokenService is not running. NOTE: I do not know how to verify whether the service is running or not.</p>
  <p>NOTE: Very similar code worked in other clusters.</p>
  <p>NOTE: the underlying VMSS does have the managed identity associated to it.</p>
  <p>NOTE: I am using Storage SDK 12.  The C# code does the following:</p>
  <pre><code>ManagedIdentityCredentials cred = new ManagedIdentityCredentials(ClientId: &quot;XYZ...&quot;);
  string queueEndpoint = string.Format(&quot;https://{0}.queue.core.windows.net/{1}&quot;, accountName, queueName);
  QueueClient qc = QueueClient(new Uri(queueEndpoint), cred);
  bool b = await qc.CreateIfNotExistsAsync();  // This one throws the error below.
  </code></pre>
  <p>Any guidance to fix this issue would be appreciated.</p>
  <p>Error:
  Trying to create a queue (using MSI) failed with exception Azure.Identity.CredentialUnavailableException: No managed identity endpoint found.
  at Azure.Identity.ExtendedAccessToken.GetTokenOrThrow()
  at Azure.Identity.ManagedIdentityCredential.d__8.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.AccessTokenCache.d__11.MoveNext()</p>