How to add dependencies for a Cluster Disk in SQL Failover Cluster?

MEERAN RIZVI 1 Reputation point

Hello All,

I am trying to set IP Address & SQL Server Network Name as a dependency for my Cluster Disk in my environment through Powershell. I am getting the following error:

The command I tried to set dependencies:

Set-ClusterResourceDependency -Resource 'Cluster Disk 3' -Dependency "([SQL Network Name (SQl-FC)]) and ([IP Address (x.x.x.x)])"

Set-ClusterResourceDependency: An error occurred while setting the dependency relationship for the resource 'Cluster Disk 3'.
The cluster resource could not be found
At line:1 char:1

  • Set-ClusterResourceDependency -Resource 'Cluster Disk 3' -Dependency ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : ObjectNotFound: (:) [Set-ClusterResourceDependency], ClusterCmdletException
  • FullyQualifiedErrorId : ResourceNotFound,Microsoft.FailoverClusters.PowerShell.SetClusterResourceDependencyCommand

The Error says the Cluster Resource could not be found.
Verified with Get-ClusterResource command too.

Get-ClusterResource "Cluster Disk 3"

Name State OwnerGroup ResourceType

Cluster Disk 3 Online SQL Server (MSSQLSERVER) Physical Disk

Really Appreciate your help on this. Thanks in Advance.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,411 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,436 Reputation points


    Have your tried to use the resource name with quotes " ?

    Set-ClusterResourceDependency -Resource "Cluster Disk 3" -Dependency "([SQL Network Name (SQl-FC)]) and ([IP Address (x.x.x.x)])"


    Hope this helps with your query,


    --If the reply is helpful, please Upvote and Accept as answer--