Remove-ClusterResourceDependency
Remove-ClusterResourceDependency
Removes a dependency between two resources in a clustered role within a failover cluster.
Sintaxis
Parameter Set: InputObject
Remove-ClusterResourceDependency [[-Resource] <String> ] [[-Provider] <String> ] [-Cluster <String> ] [-InputObject <PSObject> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Descripción detallada
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.
Parámetros
-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.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-InputObject<PSObject>
Specifies the cluster resource from which to remove the dependency.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByValue) |
¿Aceptar caracteres comodín? |
false |
-Provider<String>
Specifies the cluster resource on which to remove a dependency.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
2 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Resource<String>
Specifies the name of the cluster resource from which to remove the dependency.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Confirm
Solicita confirmación antes de ejecutar el cmdlet.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-WhatIf
Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
- Microsoft.FailoverClusters.PowerShell.ClusterResource
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
- Microsoft.FailoverClusters.PowerShell.ClusterResource
Ejemplos
Example 1
This example removes the dependency between cluster resource cluster1FS and the resource named IP Address 2001:4898:9:2:: (3).
PS C:\> Remove-ClusterResourceDependency -Resource cluster1FS -Provider "IP Address 2001:4898:9:2:: (3)"
Example 2
This example removes the dependency between the cluster resource named cluster1FS and the resource named IP Address 2001:4898:9:2:: (3).
PS C:\> Get-ClusterResource –Name cluster1FS | Remove-ClusterResourceDependency –Provider "IP Address 2001:4898:9:2:: (3)"