Add-EntraEnvironment

将Microsoft Entra环境添加到设置文件。

语法

Add Entra Environment Name

Add-EntraEnvironment

    [-Name] <String>
    [-AzureADEndpoint] <String>
    [-GraphEndpoint] <String>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

说明

将Microsoft Entra环境添加到设置文件。

示例

示例 1:添加用户定义的环境

$name = 'Canary'
$graphEndpoint = 'https://canary.graph.microsoft.com'
$azureADEndpoint = 'https://login.microsoftonline.com'
Add-EntraEnvironment -Name $name -GraphEndpoint $graphEndpoint -AzureADEndpoint $azureADEndpoint
Name       AzureADEndpoint                      GraphEndpoint                 Type
----       ---------------                      -------------                 ----
Canary     https://login.microsoftonline.com    https://microsoftgraph.com    User-defined

将用户定义的 Entra 环境添加到设置文件。

参数

-AzueADEndpoint

指定环境的 AzureADEndpoint URL

参数属性

类型:

undefined

默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:True
来自管道的值(按属性名称):True
来自剩余参数的值:False

-GraphEndpoint

指定环境的 GraphEndpoint URL

参数属性

类型:

undefined

默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:True
来自管道的值(按属性名称):True
来自剩余参数的值:False

-Name

指定环境的名称

参数属性

类型:

undefined

默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:True
来自管道的值(按属性名称):True
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters