How to get current logged in user in an Azure Workbook?

Luktuke, Meenal R 0 Reputation points
2023-12-13T13:54:37.8033333+00:00

I tried the below CLI command and it's giving me proper results, but how do it I run it from a workbook?

az ad signed-in-user show

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,641 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. John Gardner (MSFT) 81 Reputation points Microsoft Employee
    2023-12-13T17:12:55.66+00:00

    The azure portal shows this information in the upper right-hand corner. There's no way to specifically get this information from inside workbooks.

    Why specifically do you need it? Any queries made from inside workbooks inside the azure portal already know who the user is, have that user's token, etc.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.