Remove-MgmtSvcResourceProviderConfiguration
Removes a resource provider from a management store database.
Syntax
Remove-MgmtSvcResourceProviderConfiguration
[-Name] <String>
[-InstanceId] <String>
[-ConnectionString <String>]
[-EncryptionKey <String>]
[-EncryptionAlgorithm <String>]
[-As <String>]
[-WhatIf]
[-Confirm]
[<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 |
Accepted values: | Xml, XDocument, XmlString |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ConnectionString
Specifies an SQL connection string.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EncryptionAlgorithm
Specifies an encryption algorithm.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EncryptionKey
Specifies an encryption key, as a hexadecimal string.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InstanceId
Specifies an ID for an instance of a resource provider.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Specifies the name of a resource provider.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
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 |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |