Skip to content

Get-AzContext doesn't always grab the UPN #15181

@FallenHoot

Description

@FallenHoot

Description

This might be a duplicate, but creating it for an issue tracker product. Azure/Azure-Landing-Zones#3230

Get-AzContext doesn't always grab the UPN.

#13797

Steps to reproduce

#sign in to Azure  from Powershell, this will redirect you to a web browser for authentication, if required
Connect-AzAccount

Get the UPN from this:
(Get-AzContext).Account

(Get-AzContext).Account.Id
``

Metadata

Metadata

Labels

AADAzAd cmdlets in Az.Resourcesfeature-requestThis issue requires a new behavior in the product in order be resolved.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions