Get-AzureADCurrentSessionInfo

This cmdlet will return the current session state

Syntax

Get-AzureADCurrentSessionInfo
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

This cmdlet will return the current session state

Examples

Example 1

Get-AzureADCurrentSessionInfo

Account                       Environment TenantId
-------                       ----------- --------
Karen@drumkit.onmicrosoft.com AzureCloud  85b5ff1e-0402-400c-9e3c-0f9e965325d1

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Object