https://github.com/dzsquared/functions-import-bacpac
https://github.com/dzsquared/functions-import-bacpac
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dzsquared/functions-import-bacpac
- Owner: dzsquared
- License: mit
- Created: 2022-03-18T23:50:31.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-07T22:07:53.000Z (about 4 years ago)
- Last Synced: 2024-12-27T17:20:28.489Z (over 1 year ago)
- Language: C#
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Azure Function for populating a database by importing a sample bacpac or publishing a sample dacpac
Invoke this Function either via a POST request or in an Azure Logic App to perform DacFx import/publish operations from a bacpac/dacpac in Azure Blob Storage.
## Required settings
The following parameters must be set either in the POST body or in app settings - if set in both places the POST body value will take precedence.
- [AzureStorageConnectionString](https://docs.microsoft.com/azure/storage/blobs/storage-quickstart-blobs-dotnet?tabs=environment-variable-windows#copy-your-credentials-from-the-azure-portal)
- AzureStorageContainerName
- FileName (.bacpac or .dacpac files only)
- sqlServerName (prefix to .database.windows.net)
- sqlDatabaseName
- sqlPassword (*it is recommended that this value is stored in app settings*)
- sqlUser
## Includes contributor
In this example, a deployment contributor is included to adjust the import/publish process by moving all trigger creation to the end of the plan.