PowerShell Logo Small

Set-ClusterResourceDependency



This is the built-in help made by Microsoft for the command 'Set-ClusterResourceDependency', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Specifies the resources that a particular resource depends on within a failover cluster.

SYNTAX


Set-ClusterResourceDependency [[-Resource] <String>] [[-Dependency] <String>] [-Cluster <String>] [-InputObject <PSObject>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-ClusterResourceDependency cmdlet specifies the resources that a particular resource depends on within a failover cluster. Existing dependencies will be overwritten
by the dependencies that you specify.


The term or can be used in the expression describing the dependency. For example, an or dependency can be set up where a Network Name resource is dependent on either of two
IP address resources, instead of being dependent on both. This use of or dependencies is common in multi-site cluster deployments.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=321068
Add-ClusterResourceDependency
Get-ClusterResourceDependency
Get-ClusterResourceDependencyReport
Remove-ClusterResourceDependency

REMARKS

<

Examples


Example 1

PS C:\>Set-ClusterResourceDependency –Resource cluster1FS12 -Dependency "[IP Address 151.56.48.0]"



This example makes the resource called cluster1FS12 dependent on [IP Address 151.56.48.0].




Example 2

C:\PS>Set-ClusterResourceDependency –Resource cluster1FS12 –Dependency "[IP Address 151.56.48.0] or [New IP Address]"



This example makes the resource called cluster1FS12 dependent on either [IP Address 151.56.48.0] or [New IP Address].




Example 3

C:\PS>Set-ClusterResourceDependency –Resource cluster1FS12 –Dependency ""



This example clears the dependency list for the resource named cluster1FS12, so that it no longer depends on any other resources.