Изменить

Поделиться через


Add-EntraEnvironment

Adds Microsoft Entra environment to the settings file.

Syntax

Add-EntraEnvironment
   [-Name] <String>
   [-AzureADEndpoint] <String>
   [-GraphEndpoint] <String>
   [-ProgressAction <ActionPreference>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Adds Microsoft Entra environment to the settings file.

Examples

Example 1: Add a user defined environment

$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

Adds a user-defined Entra environment to the settings file.

Parameters

-AzueADEndpoint

Specifies the AzureADEndpoint URL of an environment

Type:undefined
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-GraphEndpoint

Specifies the GraphEndpoint URL of an environment

Type:undefined
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

Specifies the name of an environment

Type:undefined
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False