Remove-EntraBetaApplicationPassword

Remove a password from an application.

Syntax

Remove-EntraBetaApplicationPassword
      -ApplicationId <String>
      [-KeyId <String>]
      [<CommonParameters>]

Description

Remove a password from an application.

Examples

Example 1: Removes a password from an application

Connect-Entra -Scopes 'Application.ReadWrite.All', 'Application.ReadWrite.OwnedBy'
$application = Get-EntraBetaApplication -Filter "DisplayName eq 'Contoso Helpdesk Application'"
$applicationPassword = Get-EntraBetaApplicationPasswordCredential -ApplicationId $application.Id | Where-Object { $_.DisplayName -eq 'ERP App Password' }
Remove-EntraBetaApplicationPassword -ApplicationId $application.Id -KeyId $applicationPassword.KeyId

This example removes the specified password from the specified application.

  • -ApplicationId parameter specifies the unique identifier of the application.
  • -KeyId parameter specifies the unique identifier of the PasswordCredential.

Parameters

-ApplicationId

The unique identifier of the application.

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

-KeyId

The unique identifier for the key.

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

Inputs

String