Editar

Compartilhar via


Remove-ClusterResourceDependency

Removes a dependency between two resources in a clustered role within a failover cluster.

Syntax

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.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Specifies the cluster resource from which to remove the dependency.

Type:PSObject
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Provider

Specifies the cluster resource on which to remove a dependency.

Type:String
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Resource

Specifies the name of the cluster resource from which to remove the dependency.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet isn't run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.FailoverClusters.PowerShell.ClusterResource

Outputs

Microsoft.FailoverClusters.PowerShell.ClusterResource