• Print
  • Share
  • Dark

Azure Cloud Service Configuration

  • Updated on 13 Jun 2018
  • 1 minute to read
  • Contributors

This article covers how to use Azure Cloud Services and configure Stackify's settings in your service defintion. This would be used for Azure web and worker roles.

The Service Definition File

You will need to define the following properties in the ConfigurationSettings section of the Service Definition file as shown above:

	<Setting name="Stackify.ApiKey"/>
	<Setting name="Stackify.AppName"/>
	<Setting name="Stackify.Environment"/> 


The Local and Cloud Service Configuration Files

In the ServiceConfiguration.Local.cscfg and ServiceConfiguration.Cloud.cscfg files you will give values to the three Setting names you created in the ServiceDefinition.csdef file:

<Setting name="Stackify.ApiKey" value="YOUR_APIKEY"/>
<Setting name="Stackify.AppName" value="YOUR_APP_NAME"/> 
<Setting name="Stackify.Environment" value="YOUR_ENVIRONMENT"/>


By making the Environment names of the Local file and Cloud file different you will see these different environments in Stackify.  For example, you can name the Environment name of the ServiceConfiguration.Local file "Dev" and the name of the ServiceConfiguration.Cloud file "Prod" to differentiate the two deployments.