-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sequence of SQL server DSC for ALwaysOn AG #1427
Comments
Please see here https://github.com/PowerShell/SqlServerDsc/tree/dev/Examples#setting-up-a-sql-server-alwayson-availability-groups. Let us know if you get stuck. You can also jump on the slack channel to discuss this with others; https://dsccommunity.org/community/contact/ |
Hello @johlju, In thread #910 I have found a sequence of steps given by you to achieve the SQL AlwaysON AG using xSqlServerAlwaysOn ( OBSOLETE module ) #910 (comment) Can you kindly help with the sequence in similar manner using new latest DSC https://github.com/PowerShell/SqlServerDsc |
The sequence is still correct, it's just the resources that have been renamed or new resources have been added. That sequence was remade into the guide in the link above, the guide I linked to in my previous comment. It is not possible to have an exact sequence here since it might be outdated pretty quick since it is dependent on three different modules. Any change in one of the other modules would make the sequence invalid. So the guide is pointing to examples in the other modules that is kept updated by those contributors. The modules are ActiveDirectoryDsc, xFailOverCluster and SqlServerDsc. There are potential for someone in the community to blog about this; if so - if you like - please send a blog post to https://dsccommunity.org. |
Hello @johlju, I have test env as 1 DC, 2 SQL nodes with SQL 2016 install. Now i am using ansible with win_dsc to call each of the respective dsc resource to achieve the always on. as of now using the playbook i am able to do the below
after all this when i am trying to ensure an availability group replica is present using SqlAGReplica I am getting the error as below fatal: [WINSER1.corplab.com]: FAILED! => {"changed": false, "module_version": "12.4.0.0", "msg": "Failed to invoke DSC Test method: PowerShell DSC resource MSFT_SqlAGReplica failed to execute Test-TargetResource functionality with error message: System.InvalidOperationException: Failed to connect to SQL instance 'WINSER2.corplab.com'. ", "reboot_required": false} Ansible CODE
NOTE: please help to understand where i am going wrong. |
Hi @johlju , I got the issue fixed. This was due the fact that I was not able to connect from SQL_server1 to SQL_server2 from GUI itself because the SQL Browser was not running and TCP IPALL port was not set to 1433 |
Want to know correct steps for successfully enabling Always On Availability Group
I have configure the AlwaysOn using GUI and following some video. Now i want to learn doing the same using SqlServerDsc.
kindly help me to know which are the required DSC Resource to be used and in what sequence to use it.
The text was updated successfully, but these errors were encountered: