Skip to content

Need a way to display current authenticated user #1745

Open

Description

Output from azd version
Run azd version and copy and paste the output here:

azd version 0.7.0-beta.1 (commit 9ce71659f7688d0dc3dda8b84e5accedca58cf01)

Describe the bug
Performed a role assignment using bicep and the principalId of the authenticated user.
The role assignment grants Key Vault Administrator role to the current user.
Found that after running the deployment, Key Vault doesn't know who the role was assigned to.

image

Unable to see who the current user is and compare that to something like az account show so that I can find the objectId of the current user to understand why the current AZD user is not a valid user.

To Reproduce

  1. azd login

feature request, looking for way to show details about the current user because I use az cli commands to perform scripts. In this scenario the script uses az cli to create an Azure AD app registration.

Expected behavior
Expected the current user to be a valid Azure AD user

Environment
Information on your environment:
* Language name and version
* IDE and version : [e.g. Visual Studio 16.3]

Additional context
Found that the role assignment in my deployment was successful and that the role assignment details include a GUID that does not correspond to the current user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions