Remove-MgmtSvcResourceProviderConfiguration

Removes a resource provider from a management store database.

Syntax

Remove-MgmtSvcResourceProviderConfiguration [-Name] <String> [-InstanceId] <String> [-As <String>] [-Confirm]
 [-ConnectionString <String>] [-EncryptionAlgorithm <String>] [-EncryptionKey <String>] [-WhatIf]
 [<CommonParameters>]

Description

The Remove-MgmtSvcResourceProviderConfiguration cmdlet removes an entry for a resource provider from the management store database.
You can run this cmdlet from any computer in the deployment.

If this cmdlet is run on the computer on which the Admin API service is installed and Web.config file contains values for ConnectionString, EncryptionKey, and EncryptionAlgorithm, then those values are used.

Examples

Example 1: Remove a resource provider

PS C:\> Remove-MgmtSvcResourceProviderConfiguration -Name "RP01" -InstanceId "0602c550-0853-48fc-bfbb-dc1f84ac08a3"
This command removes the resource provider with the name RP01 and instance ID of 0602c550-0853-48fc-bfbb-dc1f84ac08a3.

Parameters

-As

Specifies an output format.

Type:String
Parameter Sets:Xml, XDocument, XmlString
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

-ConnectionString

Specifies an SQL connection string.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-EncryptionAlgorithm

Specifies an encryption algorithm.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-EncryptionKey

Specifies an encryption key, as a hexadecimal string.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-InstanceId

Specifies an ID for an instance of a resource provider.

Type:String
Required:True
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Name

Specifies the name of a resource provider.

Type:String
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs.
The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False