Remove-EntraApplicationPassword
Remove a password from an application.
Syntax
Remove-EntraApplicationPassword
-ObjectId <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-EntraApplication -Filter "DisplayName eq 'Contoso Helpdesk Application'"
$applicationPassword = Get-EntraApplicationPasswordCredential -ApplicationId $application.Id | Where-Object {$_.DisplayName -eq 'CRM Helpdesk App'}
Remove-EntraApplicationPassword -ObjectId $application.Id -KeyId $applicationPassword.KeyId
This example removes the specified password from the specified application.
-ObjectId
parameter specifies the unique identifier of the application.-KeyId
parameter specifies the unique identifier of the PasswordCredential.
Parameters
-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 |
-ObjectId
The unique identifier of the application.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
String