Get-EntraEnvironment
获取全局公共环境。
语法
GetQuery (默认值)
Get-EntraEnvironment
[<CommonParameters>]
GetByName
Get-EntraEnvironment
-Name <String>
[<CommonParameters>]
说明
使用 Connect-Entra时,可以选择面向其他环境。 默认情况下, Connect-Entra 面向全局公有云。
示例
示例 1:获取公有云环境的列表
Get-EntraEnvironment
Name AzureADEndpoint GraphEndpoint Type
---- --------------- ------------- ----
Global https://login.microsoftonline.com https://graph.microsoft.com Built-in
China https://login.chinacloudapi.cn https://microsoftgraph.chinacloudapi.cn Built-in
USGovDoD https://login.microsoftonline.us https://dod-graph.microsoft.us Built-in
USGov https://login.microsoftonline.us https://graph.microsoft.us Built-in
Germany https://login.microsoftonline.de https://graph.microsoft.de Built-in
Canary https://login.microsoftonline.com https://canary.graph.microsoft.com User-defined
此命令检索全局公共环境的列表。
示例 2:创建特定环境
Get-EntraEnvironment -Name 'Global'
Name AzureADEndpoint GraphEndpoint Type
---- --------------- ------------- ----
Global https://login.microsoftonline.com https://graph.microsoft.com Built-in
此命令检索具有指定名称的环境。
参数
-Name
指定环境的名称
参数属性
| 类型: | undefined |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。