New-AzureADMSApplicationPassword

將強式密碼新增至應用程式。

Syntax

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

Description

將強式密碼新增至應用程式。

範例

範例 1:將密碼新增至應用程式

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

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

此命令會將密碼新增至指定的應用程式。

參數

-ObjectId

特定 Azure Active Directory 物件的唯一識別碼

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

-PasswordCredential

表示與應用程式或服務主體相關聯的密碼認證。

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

輸入

string

Microsoft.Open.MSGraph.Model.PasswordCredential

輸出

Microsoft.Open.MSGraph.Model.PasswordCredential