Edit

Share via


New-AzureADMSPermissionGrantPolicy

Creates a permission grant policy.

Syntax

Default (Default)

New-AzureADMSPermissionGrantPolicy
    [-Description <String>]
    [-DisplayName <String>]
    [-Id <String>]
    [<CommonParameters>]

Description

The New-AzureADMSPermissionGrantPolicy cmdlet creates an Azure Active Directory permission grant policy.

Examples

Example 1: Create a permission grant policy

PS C:\> New-AzureADMSPermissionGrantPolicy -Id "my_new_permission_grant_policy_id"  -DisplayName "MyNewPermissionGrantPolicy" -Description "My new permission grant policy"

Parameters

-Description

Specifies the description for the permission grant policy.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DisplayName

Specifies the display name for the permission grant policy.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Id

Specifies the unique identifier of the permission grant policy.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Notes

See the migration guide for New-AzureADMSPermissionGrantPolicy to the Microsoft Graph PowerShell.