Yes - that Jake.
Yes - that Jake.

Reputation: 17119

When deploying to Azure from git, how do I store my secrets?

I'm setting up a project to deploy to Azure every time a particular branch in github changes. The first step of the deployment is to create the database required by all the other components. In order to do this programmatically, I need to provide credentials.

If I were deploying to Heroku, I would push the credentials to an environmental variable and have the database builder read the credentials from there. What is the analogue in Azure?

Upvotes: 1

Views: 119

Answers (1)

AlexC
AlexC

Reputation: 10756

Presuming you are using an Azure website you should be storing your secrets in either App Settings or Connection Strings. Both of these are available from the configure tab of the web site.

configure tab example

settings and connection strings

The connection strings acts just like a connection string in web config. App settings act like app keys in webconfig apart from it is good practice to access them using the cloud configuration manager and particularly the method get settings.

Upvotes: 2

Related Questions