New-AzureADMSApplicationPassword

Adds a strong password to an application.

Syntax

New-AzureADMSApplicationPassword
   -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-AzureADMSApplicationPassword -ObjectId aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb -PasswordCredential @{ displayname = "mypassword" }

          CustomKeyIdentifier :
          EndDateTime         : 10/28/2021 3:57:37 PM
          DisplayName         :
          KeyId               : aaaaaaaa-0b0b-1c1c-2d2d-333333333333
          StartDateTime       : 10/28/2019 3:57:37 PM
          SecretText          : EQ:A-s45?Rt9/3Bp?7]-7__IO]3AG09E
          Hint                : EQ:

This command adds a password to the specified application.

Parameters

-ObjectId

The unique identifier of the object specific Azure Active Directory 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