Remove-ClusterResourceDependency
Removes a dependency between two resources in a clustered role within a failover cluster.
Syntax
Default (Default)
Remove-ClusterResourceDependency
[[-Resource] <String>]
[[-Provider] <String>]
[-InputObject <PSObject>]
[-Cluster <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Remove-ClusterResourceDependency
cmdlet removes a dependency between two resources in a
clustered role within a failover cluster.
A dependent resource is brought online after the resources on which it depends. Likewise, a dependent resource is taken offline before the resources on which it depends. If no dependency is configured between clustered resources, then the order in which they are brought online or taken offline might vary.
Examples
Example 1
$parameters = @{
Resource = 'cluster1FS'
Provider = 'IP Address 2001:4898:9:2:: (3)'
}
Remove-ClusterResourceDependency @parameters
This example removes the dependency between cluster resource cluster1FS
and the resource named
IP Address 2001:4898:9:2:: (3)
.
Example 2
$parameters = @{
Provider = 'IP Address 2001:4898:9:2:: (3)'
}
Get-ClusterResource -Name cluster1FS | Remove-ClusterResourceDependency @parameters
This example removes the dependency between the cluster resource named cluster1FS
and the resource
named IP Address 2001:4898:9:2:: (3)
. This example uses splatting to pass parameter values from
the $Parameters
variable to the command. Learn more about
Splatting.
Parameters
-Cluster
Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is
.
or it is omitted, then the cmdlet runs on the local cluster.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-InputObject
Specifies the cluster resource from which to remove the dependency.
Parameter properties
Type: | PSObject |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Provider
Specifies the cluster resource on which to remove a dependency.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Resource
Specifies the name of the cluster resource from which to remove the dependency.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 0 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet isn't run.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.