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
Deploy Connection Strings using Azure App Service Deploy #9017
Comments
@gwoody1984 , the story is in out backlog and the feature will be added soon. |
It'd be great to have an example to follow while there is no support for setting connection string via the task. |
|
Thanks, that'd help anyone having the same issue. |
For any googlers struggling with this in the mean time, you can set your connection strings using the Azure Powershell task with script: |
well initialy when you create the function, you should have a local.settings.json file. What ever values are in there are convereted to the appsettings.json file. If you have the connection string in the local json file it will be added to the appsettigns.json, which will then allow you to change values for the server/db/user/pass per the environments youre deploying to. In my .net core based web app, I change the values to the appsettings.json before I deploy the webapp as I have my entity framework migration that requires the connection string to already have the right values in the connection string before I run the web app deployment. |
We have a new task for updating connection strings: https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/AzureAppServiceSettingsV1 now. |
Environment
Issue Description
I am attempting to deploy connection strings to an Azure Function App. I am able to specify app settings, but cannot figure out how to make my connection string show up in the connection string settings.
I would specify it manually through the Azure portal, but each new deployment wipes out the connection string, which would cause a manual step, which could be easily missed.
Is there a method of specifying a connection string for the connection strings settings?
The text was updated successfully, but these errors were encountered: