Remove-EntraBetaApplicationPassword
Remove a password from an application.
Syntax
Default (Default)
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.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | ObjectId |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-KeyId
The unique identifier for the key.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.