您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

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
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
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Object