Symptoms
Created a package using PandD.
In the package, I specified a variable, and set a value.
I can deploy the package, and the variable works fine.
I am doing a POC for a customer who has many environments who wants to use PowerShell to create a deployment script (.xml).
I did that with them this morning.
Within the XML file that is created, there is a variable definition:
However, when I deploy with PowerShell, it throws this error:
The variable 'Release' could not be found in the configuration file 'CDeploymentTest1.XML'
It still continues to deploy successfully, but does not set the variable when deploying.
Diagnoses
The issue seems to be specific to VM only. I tested with 3 different VM and did not see the issue.
Resolution
Was able to download a fresh VM and that does not see this issue.