Add-ClusterResourceDependency
Adds a resource to the list of resources on which a particular resource depends, using AND as the connector, within a failover cluster.
Add-ClusterResourceDependency
[[-Resource] <String>]
[[-Provider] <String>]
[-InputObject <PSObject>]
[-Cluster <String>]
[<CommonParameters>]
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 on the list. If you specify the InputObject parameter, the Resource
parameter will be ignored.
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.
Add-ClusterResourceDependency -Resource "FileServer-(cluster1FS12)" -Provider "Cluster Disk 4"
This example adds the resource named Cluster Disk 4
to the list of resources on which the resource
called FileServer-(cluster1FS12)
depends.
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.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the cluster resource for which to add the dependency.
Type: | PSObject |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Specifies the cluster resource to add as a dependency.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the name of the cluster resource for which to add the dependency.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Microsoft.FailoverClusters.PowerShell.ClusterResource
Microsoft.FailoverClusters.PowerShell.ClusterResource