Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Add-ClusterResourceDependency

Add-ClusterResourceDependency

microsoft.failoverclusters.powershell.dll

Synopsis

Adds a resource to the list of resources on which a particular resource depends, using AND as the connector, within a failover cluster.

Syntax

Add-ClusterResourceDependency [-Resource] [-Provider] [-Cluster] [-InputObject] [<CommonParameters>]

Detailed Description

The Add-ClusterResourceDependency cmdlet adds a resource to the list of resources on which a particular resource depends, using AND as the connector, within a failover cluster. Existing dependencies will remain in the list.

A dependent resource is brought online after the resources on which it depends. A dependent resource is taken offline before the resources on which it depends.

Parameters

-Cluster <String>

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.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-InputObject <PSObject>

Specifies the cluster resource for which to add the dependency.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-Provider <String>

Specifies the cluster resource on which to add a dependency.

Aliases

None

Required?

false

Position

2

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-Resource <String>

Specifies the name of the cluster resource for which to add a dependency.

Aliases

None

Required?

false

Position

1

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

Microsoft.FailoverClusters.PowerShell.ClusterResource

Return Type

Microsoft.FailoverClusters.PowerShell.ClusterResource

Notes

None

Examples

Example 1

This example adds the resource named Cluster Disk 4 to the list of resources on which the resource called FileServer-(cluster1FS12)(Cluster Disk 2) depends, using AND as the connector.

PS C:\>Add-ClusterResourceDependency –Cluster "FileServer-(cluster1FS12)(Cluster Disk 2)" –Resource "Cluster Disk 4"
Name                State               Group               ResourceType 
----                -----               -----               ------------ 
FileServer-(clus... Online              cluster1FS12        File Server                        

Online Version
Get-ClusterResourceDependency
Get-ClusterResourceDependencyReport
Remove-ClusterResourceDependency
Set-ClusterResourceDependency