Specifying a storage account

Another way to specify the storage account for storing application-specific diagnostic data is by specifying the storage account in the ServiceConfiguration.cscfg file. This is also convenient as during the development time itself, you can specify the storage account. It is also possible to specify an altogether different storage account during development and production. The Azure storage account might also be configured as one of the dynamic environment variables during the deployment process.

The account information is defined as a connection string in a configuration setting. The following example shows the default connection string created for a new microservice project in Visual Studio:

<ConfigurationSettings ...

Get Building Microservices with .NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.