-
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
SQL Server installation using DSC on new windows server #931
Comments
If you mean by using Azure Automation then there are probably no guides around that since the resource module recently had problem to compile configurations in Azure Automation. This should be resolved as soon as the new version 10 is released (the one in the dev branch here). I'm working on an example for deploying a SQL Server AlwaysOn cluster over two subnets in Azure using Azure Automation. But it is slow moving, but I will get there, and it will be available here in one way or the other. But basically it is the same as deploying on-premises. See examples for each individual resource here And here is some articles from a quick google: |
Thank you for the suggested links. I will go through them to see if I can write a simple configuration to deploy sql 2017 on the VM. How can I get dev version? |
You get the Dev version by going to the code section and click on the green button "Clone or download". Make sure to delete information from the folder that is not necessary. Name the root folder SqlServerDsc and make sure to only keep the following in the root folder. Zip the root folder and upload it to Azure Automation. Please not that I found a bug when verifying this, see issue #934. Make sure to delete those two files mentioned in the issue until we can merge a fix into Dev (working on it now). |
Thank you . Do you want me to remove those 2 lines from readme.md ? Two follow up questions.
(/Examples/Resources/SqlServerEndpointPermission/3-AddConnectPermissionToAlwaysOnPrimaryAndSecondaryReplicaEachWithDifferentSqlServiceAccounts.ps1) |
Answers to your questions.
|
thanks John. I was able to upload to azure but compile fails. I think I need to replace modulename with sqlserverdsc instead of xsqlserver ? Below is my config for reference.
} |
This is the error I got it when I compile my configuration. |
Yes, in version 10 (the Dev version) all Resources has been renamed, including the module name. So you need to change xSQLServer to SqlServerDsc and xSQLServerSetup to SqlSetup. |
Thank you. I am able to install sql. I have a requirement to install SSMS too and exploring options |
Also John , what would be the equivalent for xSQLServerSetup SQLSetup { } . Is it SqlSetup SQLSetup {} ? |
Please feel free to close this thread as resolved with dev version. In future, I would post questions around sql in a different post. thank you for the support. |
Can I Install SSMS with sqlserverdsc module? If so , does it be included in features in the configuration ? |
Thanks Randomnote1. I have tried using the workaround posted but could not see SSMS got installed on my VM. I also looked into event logs but could not find any error. any insights ?
LCM output:
|
@rsganta You are only building a string in |
Closing this as this is answered in issue #125. |
I am looking for sources to automate sql server installation using Azure DSC. Any pointers or references would be greatly appreciated .
The text was updated successfully, but these errors were encountered: