Hi..
I want to add Environment variable in my csdef file. When I <Environment> element in my ServiceDefinition.csdef file, it's giving me error.
Warning 1 The element 'VirtualMachineRole' in namespace 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition' has invalid child element 'Startup' in namespace 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition'.
List of possible elements expected: 'Certificates, LocalResources, Endpoints, ConfigurationSettings' in namespace 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition'. c:\users\administrator\documents\visual studio 2010\Projects\WindowsAzure6_Env\WindowsAzure6_Env\ServiceDefinition.csdef
7 6 WindowsAzure6_Env
My File look like below
<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="WindowsAzure6_Env" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2012-05.1.7">
<VirtualMachineRole name="VMRole1" vmsize="Small">
<Imports>
<Import moduleName="Diagnostics" />
</Imports>
<Startup>
<Environment>
<Variable name="MY_ENV" value="my_value" />
</Environment>
</Startup>
<Runtime>
<Environment>
<Variable name="MY_SECOND_ENV" value="my_value2" />
</Environment>
</Runtime>
</VirtualMachineRole>
</ServiceDefinition>
Please let me know if you have any solution.Thanks