Skip to content
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

Support for Import bacpac in azurerm_mssql_database #6282

Open
frugecn opened this issue Mar 27, 2020 · 12 comments
Open

Support for Import bacpac in azurerm_mssql_database #6282

frugecn opened this issue Mar 27, 2020 · 12 comments

Comments

@frugecn
Copy link

frugecn commented Mar 27, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

With the creation of the new azurerm_mssql_database resource, some parameters were not ported across. Import from bacpac was one of the features not ported across from azurerm_sql_database.

New or Affected Resource(s)

  • azurerm_mssql_database

Potential Terraform Configuration

import supports the following:

storage_uri - (Required) Specifies the blob URI of the .bacpac file.
storage_key - (Required) Specifies the access key for the storage account.
storage_key_type - (Required) Specifies the type of access key for the storage account. Valid values are StorageAccessKey or SharedAccessKey.
administrator_login - (Required) Specifies the name of the SQL administrator.
administrator_login_password - (Required) Specifies the password of the SQL administrator.
authentication_type - (Required) Specifies the type of authentication used to access the server. Valid values are SQL or ADPassword.
operation_mode - (Optional) Specifies the type of import operation being performed. The only allowable value is Import.


### References

https://www.terraform.io/docs/providers/azurerm/r/sql_database.html


@katbyte katbyte added enhancement service/mssql Microsoft SQL Server labels Mar 27, 2020
@kylelee24

This comment has been minimized.

@michaelbertoni
Copy link

Any update on this feature?

@v4ld3r5
Copy link

v4ld3r5 commented Jun 29, 2021

I'm also interested on this functionality

@lotaezhao
Copy link

lotaezhao commented Jul 20, 2021

I was trying to do this now and shocked to see azurerm_sql_database has it but azure_mssql_database doesn't! Please, if replacing deprecated resources can we at least get 1 to 1 feature parity. Quite a common scenario, needing to import a database from a different environment that you don't have access to. Please can this be added.

@nmaarse
Copy link

nmaarse commented Dec 6, 2021

I also require this feature. When recreating a new azure environment with an azure sql database you want to be able to restore the database from a bacpac file. The altenative is to do this via az cli, but then terraform state gets mixed up and i cannot get the terraform import to work after that to sync up.

So please merge this import into the azurerm_mssql_database.

@rille111
Copy link

rille111 commented Dec 6, 2021

How can this not be supported? Didnt know about this from the start, and that s-cks now that we spent so many days on learning and using Terraform.

@abhishekjerry2000
Copy link

Any updates about this feature.

@romina2001
Copy link

Any news on this feature? Is there any work around for it?

@OwendotKim
Copy link

I desperately want this feature

@ovidiubuligan
Copy link

After this is implemented ,will it have the same recommandation as google sql terraform provider ? :
image

@alexvolox2
Copy link

This feature is required, anyone who needs to migrate from on-prem SQL to managed SQL will need to pass from an import from bacpac........

@fcatacut
Copy link
Contributor

@katbyte @tombuildsstuff I think that this can be closed as implemented in v3.27.0. See PR #18588.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests