Add-EntraBetaApplicationPolicy

Lägger till en programprincip.

Syntax

ByApplicationIdAndPolicyId

Add-EntraBetaApplicationPolicy

    -Id <String>
    -RefObjectId <String>
    [<CommonParameters>]

Description

Cmdleten Add-EntraBetaApplicationPolicy lägger till en Microsoft Entra ID programprincip. Ange Id och RefObjectId parametrar för att lägga till en programprincip.

Exempel

Exempel 1: Lägg till en programprincip

Connect-Entra -Scopes 'Application.ReadWrite.All, Policy.ReadWrite.ApplicationConfiguration'
$params = @{
    Id = 'aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb'
    RefObjectId = 'bbbbbbbb-1111-2222-3333-cccccccccccc'
}
Add-EntraBetaApplicationPolicy @params

Det här exemplet visar hur du lägger till en programprincip.

Parametrar

-Id

ID:t för programmet som du behöver ange principen för.

Parameteregenskaper

Typ:System.String
Standardvärde:None
Stöder jokertecken:False
DontShow:False
Alias:Objekt-ID, ApplicationId

Parameteruppsättningar

(All)
Position:Named
Obligatorisk:True
Värde från pipeline:True
Värde från pipeline efter egenskapsnamn:True
Värde från återstående argument:False

-RefObjectId

Anger principens ID.

Parameteregenskaper

Typ:System.String
Standardvärde:None
Stöder jokertecken:False
DontShow:False
Alias:PolicyId

Parameteruppsättningar

(All)
Position:Named
Obligatorisk:True
Värde från pipeline:True
Värde från pipeline efter egenskapsnamn:True
Värde från återstående argument:False

CommonParameters

Den här cmdleten stöder vanliga parametrar: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction och -WarningVariable. Mer information finns i about_CommonParameters.