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
DontShow:False

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:True
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。