Add-EntraEnvironment
在設定檔中新增 Microsoft Entra 環境。
語法
Add Entra Environment Name
Add-EntraEnvironment
[-Name] <String>
[-AzureADEndpoint] <String>
[-GraphEndpoint] <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
在設定檔中新增 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。