-
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
New Resource: azurerm_mssql_virtual_machine
#5263
Conversation
azurerm_mssql_virtual_machine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @yupwei68, thank you for the new resource,
I've done an initial review and left comments inline that need to be addressed.
azurerm/internal/services/mssqlvm/data_source_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssqlvm/data_source_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssqlvm/data_source_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssqlvm/tests/resource_arm_mssql_virtual_machine_test.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssqlvm/tests/resource_arm_mssql_virtual_machine_test.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssqlvm/tests/resource_arm_mssql_virtual_machine_test.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssqlvm/tests/resource_arm_mssql_virtual_machine_test.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssqlvm/tests/resource_arm_mssql_virtual_machine_test.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
azurerm/internal/services/mssqlvm/data_source_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssqlvm/data_source_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssqlvm/data_source_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssqlvm/data_source_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
hi @tombuildsstuff @katbyte ,I have updated code and restested with pass to fit azurerm 2.0. Please help to review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @yupwei68,
I've left some more comments inline that should be addressed before merge.
azurerm/internal/services/mssql/resource_arm_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssql/resource_arm_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssql/resource_arm_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssql/resource_arm_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssql/resource_arm_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssql/resource_arm_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssql/resource_arm_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssql/resource_arm_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssql/tests/resource_arm_mssql_virtual_machine_test.go
Outdated
Show resolved
Hide resolved
azurerm_mssql_virtual_machine
azurerm_mssql_virtual_machine
azurerm_mssql_virtual_machine
azurerm_mssql_virtual_machine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the change @yupwei68, just a couple more minor comments and it seems like the tests are failing in our CI:
Test Failed
------- Stdout: -------
=== RUN TestAccAzureRMMsSqlVirtualMachine_basic
=== PAUSE TestAccAzureRMMsSqlVirtualMachine_basic
=== CONT TestAccAzureRMMsSqlVirtualMachine_basic
--- FAIL: TestAccAzureRMMsSqlVirtualMachine_basic (150.75s)
testing.go:640: Step 0 error: errors during apply:
Error: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="SkuNotAvailable" Message="The requested size for resource '/subscriptions/1a6092a6-137e-4025-9a7c-ef77f76f2c02/resourceGroups/acctestRG-mssql-200325213822100701/providers/Microsoft.Compute/virtualMachines/acctest-VM-200325213822100701' is currently not available in location 'westeurope' zones '' for subscription '1a6092a6-137e-4025-9a7c-ef77f76f2c02'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details."
on /opt/teamcity-agent/temp/buildTmp/tf-test082828343/main.tf line 90:
(source code not available)
azurerm/internal/services/mssql/resource_arm_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/mssql/resource_arm_mssql_virtual_machine.go
Outdated
Show resolved
Hide resolved
Hi @yupwei68 |
Hello, |
Thanks @Ugo-G - we've seen evidence of this also. The test didn't need the size of instance it was using to check the functionality. I'm also reasonably sure that the SKU in the test isn't normally available in West Europe in normal conditions (though v2 variants are). |
@katbyte @jackofallops Sorry the delay. I have updated the comments' changes. But recently, the update autopatch functions seem to fail in service team. They're looking for solution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes @yupwei68, LGTM now 👍
Hi, Are there any plans to add support for spanned disks, I'm currently trying to add multiple disks for data, log, tempdb. In ARM this is configured in the SQL extension or SQL resource provider: "StorageConfigurationSettings": { |
Hi @azjon , we shall wait till the service returns the storage configuration back. |
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 👉 hashibot-feedback@hashicorp.com. Thanks! |
add resource mssqlvm
fixes #3891
fixes Azure/terraform-azurerm-compute#63
2020.03.05 all test passed!