-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Issue with spinning-up SQL Server 2012 running on Windows Server 2012 R2 Datacenter VM? #1325
Comments
hi @siddthota Thanks for opening this issue :) Looking at the Terraform Configuration you've posted above, I can't see the VM Extension you're referring too? Attempting to create a Virtual Machine in the Portal with SQL Server pre-installed, I see the following VM Extension is configured (extracted from either the
Using this information it should be possible to convert this across to using the One thing to bear in mind here from my previous experience with VM Extensions is that the Would you be able to take a look and see if that solves your issue? :) Thanks! |
My bad, sorry I forgot to copy the extension resource/module. I've updated my extensions field above. I'm currently using nothing but just null above/below.
So I need to copy the settings JSON into my settings field? I'll give it a try and update it. Thanks! |
No worries :)
indeed - it's worth noting that if the values are null (e.g. in the case of Thanks! |
How are you able to reference the SQLServerIASSAgent? I was seeing this error on my Automation Script on Azure Portal - How do I rectify this to look at the Automation script to understand my configurations? And also, I'm assuming that my extension should look like this?
I mentioned //not sure, and other input values that I'm thinking to enter, but is it mandatory to have these things added to settings to get SQL Server up and running and also I don't see options like enable/disable authentication and user/password or port number etc details in here. Am I missing something? Sorry, I'm trying to wrap my head around the extensions concept on Terraform for VM. Thanks for the help. |
@tombuildsstuff With my above config, I can just spin-up VM, but not SQL Server. I'm not able to view my Template for SQL Server on Azure Portal which is making things tough for me. Thanks! |
@siddthota (sorry for the delayed response, I've been AFK)
If you provision a VM with this extension (e.g. via the Portal) it should be possible to see this information both in the Azure CLI or the Azure Resource Explorer - by drilling down into Subscriptions -> [name] -> Resource Groups -> [name] -> VirtualMachines -> [name] -> Extensions -> [name] and see the response in the JSON. Thanks! |
Yeah, I've requested MS support about it and they helped me with that. But, I'm still trying to figure out how to spin the SQL Server on VM. |
@siddthota the Virtual Machine extension is what configures the SQL Server on the Virtual Machine. Would you be able to show the Virtual Machine Extension you're trying to use to configure this; or the output from the Azure CLI / Resource Explorer as documented in this comment - then we can try and help further :) Thanks! |
Hi Tom, I'm not sure what exactly needs to be configured, as there isn't much documentation about converting VM extensions from Template -> Terraform script. This is how my VM extension for SQL Server looks like.
|
hi @siddthota This information can be found on the This information can then be used to populate the VM Extension, for instance:
Would you be able to take a look and see if that solves your issue here? Since this is a configuration question rather than a bug in Terraform, I'm going to close this issue for the moment (but we'll continue replying) :) Thanks! |
Got this working.
Then this will work as expected.
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Hello,
I've already raised a similar issue and I made more progress on the issue, but I'm not sure how to approach it.
I wanted to spin-up SQL Server 2012 on Windows Server 2012 R2 Datacenter. We do have this as default image on Azure compute.
My Terraform Script looks like this
This spins-up windows VM, but not the SQL Server. I feel I need to insert SQL Server authentication details (somewhere but not sure where), but since I'm passing in the SQL2012SP4-WS2012R2, can I expect it to spin-up SQL Server on Windows VM or am I missing anything.
If I'm doing with portal, I get an extra option than spinning up normal VM for SQL Server on VM in which we need to enable authentication and provide login details.
I'm trying to wrap my head around on how I can get this to working.
All I'm expecting is to have SQL Server Configurations option appearing on VM Dashboard.
Thanks!
The text was updated successfully, but these errors were encountered: