-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config transform in Release when using AzureRmWebAppDeployment #4776
Comments
@AmeetAB , Currently transformation is applied using Release-Environment Name. You need to change Release Environment Name and not Release Configuration. Please change the Environment name to (CloudQa, CloudUat or CloudProd). |
@AmeetAB , *.Release.config is selected by default when available( in the same folder). If Web.Release.config has no significance in your package, can you remove the file or provide the below tag in the same file ?
|
@vincentdass applied
to both Web.Debug.config and Web.Release.config and made the CI build configuration to run on "Debug" this resulted in the release picking the environment specific config file for transformation for the web api. We, however, also have a web job as part of the solution which we'd like deployed. Although I'm getting the webjob deployed as desired, the transformation of App.config isn't happening. Here's the log from the release: It seems that the XML Transformation is looking for a Web.config and the transformation file instead of App.config. How do we handle App.config transformation? Here are the tasks in And this is the config of the web job deploy task: We have a lot of components using webjobs and releases with webjobs are important as part of ALM. Your help is appreciated! |
@AmeetAB, To apply transformation in Can you please ensure that the files are present in same folder as well? |
@vincentdass they're in a different project but at the root and in the format App..config etc In our case, App.CloudDev.config and so on. |
@AmeetAB , can you please share the debug logs for the release (by setting variable Need to confirm whether the artifact contains the config and transform file in the same folder. |
@vincentdass here's some more information from my research: I have also found another "gotcha": Unless the above happens, the config files are not part of the artifact package and transformation at release time cannot find the specific transform file. With webjob kind projects, in the build, this happens:
Obviously, at this point the App.config file has been changed into Transactions.WebJob.exe.config in the artifact package. I'm trying to apply the transformation at Release time and it cannot find the App.config or the corresponding App..config file. I can get the files to get copied over by adding but what about the App.config file getting copied into something else? |
@AmeetAB , As you mentioned App.config is renamed to "<Application_Name>.exe.config". This is done by MSBuild to match the executable application file name [Link]. You need to rename your transform files something like this
|
@vincentdass did what you recommended and although the files are part of the artifact, the transformation task still seems to be looking for Web.config file for transformation. |
@AmeetAB , please share the debug logs for the same. |
@vincentdass what's the best way to send you these logs? |
@AmeetAB , you can paste the logs here. |
@AmeetAB , closing the thread as there is no action item on us. (Based on the offline discussion) |
Hi,
We have a product version specific build that has a release pipeline that goes from QA -> UAT -> PROD all on Azure.
We've somehow got the config transform to execute but will issues. The issue is that it picks up the Web.Release.config even when the environment variable "ReleaseConfiguration" is set to CloudQa, CloudUat & CloudProd in the variables section. Also the task for deployment fails without any logs so I've had to literally wait for it to come to a point when it fails while watching the logs and take a printscreen. That's how we've found out that the transform is happening with Web.Release.config which does not have any transform related entries in it.
How do I force the task to transform using the "ReleaseConfiguration" value?
The text was updated successfully, but these errors were encountered: