Remove-ClusterResourceDependency
Remove-ClusterResourceDependency
Remove a dependency between two resources in a clustered service or application within a failover cluster.
Syntax
Remove-ClusterResourceDependency [-InputObject <psobject>] [[-Resource] <string>] [[-Provider] <string>] [-Cluster <string>] [<CommonParameters>]
InputObject
Resource
Provider
Cluster
Detailed Description
A dependent resource is brought online after the resources that it depends on. Likewise, a dependent resource is taken offline before the resources that it depends on. If no dependency is configured between clustered resources, the order in which they are brought online or taken offline might vary.
Parameters
Cluster
Specifies the name of the cluster to run this cmdlet on. If you type "-Cluster ." or omit the parameter, the cmdlet runs on the local cluster.
Default Value: **
Data Type: string
Attributes
Name | Value | PSMAML Attribute |
---|---|---|
Required? |
false |
required |
Variable Length? |
false |
variableLength |
Accept wildcard characters? |
false |
globbing |
Accept Pipeline Input? |
false |
pipelineInput |
Position? |
named |
position |
Value Attributes
Name | Value | PSMAML Attribute |
---|---|---|
Required? |
true |
required |
Variable Length? |
false |
variableLength |
InputObject
Specifies the cluster resource to remove the dependency for.
Default Value: **
Data Type: psobject
Attributes
Name | Value | PSMAML Attribute |
---|---|---|
Required? |
false |
required |
Variable Length? |
false |
variableLength |
Accept wildcard characters? |
false |
globbing |
Accept Pipeline Input? |
true (ByValue) |
pipelineInput |
Position? |
named |
position |
Value Attributes
Name | Value | PSMAML Attribute |
---|---|---|
Required? |
true |
required |
Variable Length? |
false |
variableLength |
Provider
Specifies the cluster resource to remove a dependency on.
Default Value: **
Data Type: string
Attributes
Name | Value | PSMAML Attribute |
---|---|---|
Required? |
false |
required |
Variable Length? |
false |
variableLength |
Accept wildcard characters? |
false |
globbing |
Accept Pipeline Input? |
false |
pipelineInput |
Position? |
2 |
position |
Value Attributes
Name | Value | PSMAML Attribute |
---|---|---|
Required? |
true |
required |
Variable Length? |
false |
variableLength |
Resource
Specifies the name of the cluster resource to remove the dependency for.
Default Value: **
Data Type: string
Attributes
Name | Value | PSMAML Attribute |
---|---|---|
Required? |
false |
required |
Variable Length? |
false |
variableLength |
Accept wildcard characters? |
false |
globbing |
Accept Pipeline Input? |
false |
pipelineInput |
Position? |
1 |
position |
Value Attributes
Name | Value | PSMAML Attribute |
---|---|---|
Required? |
true |
required |
Variable Length? |
false |
variableLength |
Input Type
Microsoft.FailoverClusters.PowerShell.ClusterResource
Return Type
Microsoft.FailoverClusters.PowerShell.ClusterResource
Examples
-------------------------- EXAMPLE 1 --------------------------
Command Prompt: C:\PS>
Remove-ClusterResourceDependency -Resource cluster1FS -Provider "IP Address 2001:4898:9:2:: (3)"
Name State Group ResourceType
---- ----- ----- ------------
cluster1FS Online cluster1FS Network Name
Description
-----------
This command removes the dependency between cluster resource cluster1FS and resource "IP Address 2001:4898:9:2:: (3)".
-------------------------- EXAMPLE 2 --------------------------
Command Prompt: C:\PS>
Get-ClusterResource cluster1FS | Remove-ClusterResourceDependency "IP Address 2001:4898:9:2:: (3)"
Name State Group ResourceType
---- ----- ----- ------------
cluster1FS Online cluster1FS Network Name
Description
-----------
This command removes the dependency between cluster resource cluster1FS and resource "IP Address 2001:4898:9:2:: (3)".
See Also
Reference
Add-ClusterResourceDependency
Get-ClusterResourceDependency
Set-ClusterResourceDependency