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.