I am running into problem when creating DNN listener on Azure VM. I am runnign the script provided in Microsoft article: https://learn.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/availability-group-distributed-network-name-dnn-listener-configure?view=azuresql and getting the following error: Set-ClusterResourceDependency : An error occurred while setting the dependency relationship for the resource 'myag'. The operation could not be completed because the cluster resource is online

enter image description here

Any help suggestions will be greatly appreciated.

1 Answer 1


If you have the listeners DNS added before running the script then you will get this error. Delete the DNS entries for the listeners and then run the script. Once this finishes then add the static DNS entries.

Hope That helps.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.