The Sitecore Azure module 3.0 or later version modifies the "connectionStrings" element in the web.config file during the deployment to the Microsoft Azure SQL Databases Service databases.
This article provides a list of techniques that can be used to manually add a custom connection string to a new or existing Azure deployment.
The recommended approach to adding a custom connection string in Sitecore Azure is as follows:
<xsl:stylesheet>
...
<xsl:template match="/connectionStrings"> <connectionStrings>
...
<add name="security" connectionString="Data Source=tcp:ypm2rdc26v.database.windows.net;Initial Catalog=Sitecore_Security;Integrated Security=False;User ID=sitecore@ypm2rdc26v;Password=w3EYq47QZLGj;Encrypt=True" /> ... </connectionStrings>
</xsl:template> </xsl:stylesheet>