-
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
Azure SQL DB - Cant move database in or out of ElasticPool #590
Comments
After a bit of digging, I am wondering if this is actually a bug in the Azure Rest SDK. I am saying that because the docs say that if elasticPoolName is set:
My go is really weak, but tracing through the source of this provider and the azure go library, it appears that the provider is doing the correct thing. |
I was considering raising another issue, but I believe my issue is related I'm seeing the following error when simply trying to move from one Service Level Objective to another:-
I agree with your guess and it looks like the error message above confirms that both Requested Service Objective ID and Name need to be changed at the same time looking at azurerm/resource_arm_sql_database.go there is a comment about this:-
That issue 1609 appears to have been closed now I'm new to GO too, so not sure how much help I will be |
Closing this issue as #1503 was merged on Jul 5, 2018. |
Hey, thanks for getting to this, and I wish I could test for you, but the world has moved on for me, and I am not using terraform or Azure anymore. |
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! |
Terraform Version
Terraform v0.11.0
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Module
Resource
Expected Behavior
Terraform should be able to move a SQL database into or out of an ElasticPool
Actual Behavior
both ways fail.
Moving a DB out of a pool
requested_service_objective_name: "ElasticPool" => "S0"
Error: Error applying plan:
1 error(s) occurred:
module.ActivitiesDatabase.azurerm_sql_database.RzDatabase: 1 error(s) occurred
:
azurerm_sql_database.RzDatabase: sql.DatabasesClient#CreateOrUpdate: Failure r
esponding to request: StatusCode=400 -- Original Error: autorest/azure: Service
returned an error. Status=400 Code="Unknown" Message="Unknown service error"
Moving a DB into a pool
azurerm_sql_database.RzDatabase: sql.DatabasesClient#CreateOrUpdate: Failure sending request: StatusCode=200
-- Original Error: Long running operation terminated with status 'Failed': Code="40860" Message="Elastic pool
'rz-pool-dev' and service level objective 'S0' combination is invalid."
Steps to Reproduce
terraform apply
Important Factoids
I also tried using the parameter requested_service_objective_id on the database with the correct GUID and that also resulted in the same behavior.
Totally a guess, but it appears that that the two setting that need to change are happening independently.
I also tested with the Azure Powershell commands to verify that Azure REST API's themselves were not broken, and that worked.
The text was updated successfully, but these errors were encountered: