Remove-RedgateMonitorServicePrincipalCredential
Published 08 January 2025
Removes an Azure Service Principal credential.
Syntax
Remove-RedgateMonitorServicePrincipalCredential [-ServicePrincipalCredential] <ServicePrincipalCredential> [<CommonParameters>]
Description
Removes an Azure Service Principal credential previously retrieved using Get-RedgateMonitorServicePrincipalCredential.
This cmdlet is kept for backwards compatibility. Prefer using Remove-RedgateMonitorCloudProviderCredential instead. For AWS credentials, use Remove-RedgateMonitorCloudProviderCredential.
Parameters
-ServicePrincipalCredential
<ServicePrincipalCredential>
Azure Service Principal credential to be removed
| Aliases | None |
| Required? | true |
| Position? | 1 |
| Default Value | None |
| Accept Pipeline Input | True (ByValue) |
| Accept Wildcard Characters | false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable, and -ProgressAction. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
-
[ServicePrincipalCredential] See Get-RedgateMonitorServicePrincipalCredential.
Examples
-------------------------- EXAMPLE 1 --------------------------
$credential = Get-RedgateMonitorServicePrincipalCredential -Name "myPrincipal" Remove-RedgateMonitorServicePrincipalCredential -ServicePrincipalCredential $credential
This command removes an Azure Service Principal credential.