Remove-RedgateMonitorCloudProviderCredential
Published 11 March 2026
Removes a cloud provider credential.
Syntax
Remove-RedgateMonitorCloudProviderCredential [-Credential] <IdentifiableObject> [<CommonParameters>]
Description
Removes a cloud provider credential (Azure Service Principal or AWS IAM) previously retrieved using Get-RedgateMonitorCloudProviderCredential.
Parameters
-Credential
<IdentifiableObject>
The cloud provider credential to be removed, as returned by Get-RedgateMonitorCloudProviderCredential.
| 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-RedgateMonitorCloudProviderCredential with -Provider Azure.
-
[AwsCloudServiceCredential] See Get-RedgateMonitorCloudProviderCredential with -Provider AWS.
Examples
-------------------------- EXAMPLE 1 --------------------------
$credential = Get-RedgateMonitorCloudProviderCredential -Provider Azure -Name "myPrincipal" $credential | Remove-RedgateMonitorCloudProviderCredential
This command removes an Azure Service Principal credential.
-------------------------- EXAMPLE 2 --------------------------
$credential = Get-RedgateMonitorCloudProviderCredential -Provider AWS -Name "myAwsCred" Remove-RedgateMonitorCloudProviderCredential -Credential $credential
This command removes an AWS credential.
-------------------------- EXAMPLE 3 --------------------------
Get-RedgateMonitorCloudProviderCredential -Provider AWS | Remove-RedgateMonitorCloudProviderCredential
This command removes all AWS credentials from all base monitors.