New-EntraApplicationPassword

Adds a strong password to an application.

Syntax

New-EntraApplicationPassword
    -ObjectId <String>
    -PasswordCredential <PasswordCredential> 
   [<CommonParameters>]

Description

Adds a strong password to an application.

Examples

Example 1: Add a password to an application

PS C:\> New-EntraApplicationPassword -ObjectId 14a3f1ac-46a7-4d00-b1ca-0b2b84f033c2 -PasswordCredential @{ displayname = "mypassword" }

CustomKeyIdentifier DisplayName EndDateTime           Hint KeyId                                SecretText                       StartDateTime
------------------- ----------- -----------           ---- -----                                ----------                       -------------
                    mypassword  10/28/2021 3:57:37 PM EQ:  024c4c6e-87c3-4473-8e36-650f16bb730d EQ:A-s45?Rt9/3Bp?7]-7__IO]3AG09E 10/28/2019 3:57:37 PM

This command adds a password to the specified application.

Parameters

-ObjectId

The unique identifier of the object specific Microsoft Entra ID object

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

-PasswordCredential

Represents a password credential associated with an application or a service principal.

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

Inputs

String

Microsoft.Open.MSGraph.Model.PasswordCredential

Outputs

Microsoft.Open.MSGraph.Model.PasswordCredential