共用方式為


New-AzureADExternalDomainFederation

在 Azure Active Directory 中建立新的 externalDomainFederation

語法

New-AzureADExternalDomainFederation
   [-ExternalDomainName <String>]
   [-FederationSettings <DomainFederationSettings>]
   [<CommonParameters>]

範例

範例 1:建立新的外部網域同盟。

$federationSettings = New-Object Microsoft.Open.AzureAD.Model.DomainFederationSettings
$federationSettings.ActiveLogOnUri="https://adfs.com/adfs/ls"
$federationSettings.IssuerUri = "http://adfs.com/adfs/services/trust"
$federationSettings.LogOffUri = $federationSettings.ActiveLogOnUri
$federationSettings.FederationBrandName = "Contoso Misa1 US"
$federationSettings.MetadataExchangeUri="http://adfs.com/FederationMetadata.xml"
$federationSettings.PassiveLogOnUri=$federationSettings.ActiveLogOnUri
$federationSettings.PreferredAuthenticationProtocol="WsFed"
$federationSettings.SigningCertificate="X509 signing public key"
New-AzureADExternalDomainFederation -ExternalDomainName "adfs.com" -FederationSettings $federationSettings

此命令會建立新的外部同盟網域設定。

參數

-ExternalDomainName

Azure Active Directory 中 externalDomainFederation 的唯一標識符

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-FederationSettings

外部網域的同盟設定。

類型:DomainFederationSettings
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False