Redgate Monitor 14

Remove-RedgateMonitorServicePrincipalCredential

Removes a Service Principal Credential.

Syntax

Remove-RedgateMonitorServicePrincipalCredential [-ServicePrincipalCredential] <ServicePrincipalCredential> [<CommonParameters>]

Description

Removes a Service Principal Credential previously retrieved using Get-RedgateMonitorServicePrincipalCredential.

Parameters

-ServicePrincipalCredential <ServicePrincipalCredential>

ServicePrincipalCredential 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 --------------------------

$baseMonitor = Get-RedgateMonitorBaseMonitor -Name 'us2.server'
$ServicePrincipalCredential = Get-RedgateMonitorServicePrincipalCredential -Name "myPrincipal"
Remove-RedgateMonitorServicePrincipalCredential -ServicePrincipalCredential $ServicePrincipalCredential


Didn't find what you were looking for?