You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to pass a SQL connection string from a variable into a template override parameter for the Azure Resource Group Deployment task v2.* and the connection string has a space in the value.
I get this error when the deployment executes
2017-07-24T06:28:31.3651327Z ##[debug]Overriding Parameters..
2017-07-24T06:28:31.3651327Z ##[debug]Overriding key: pfxBlob
2017-07-24T06:28:31.3651327Z ##[debug]Overriding key: ConnectionString
2017-07-24T06:28:31.3651327Z ##[debug]Overriding key:
2017-07-24T06:28:31.3661320Z ##[debug]There was an error while overriding '' parameter because of 'TypeError: Cannot read property 'type' of undefined'.
If I take the space out of the SQL connection string the issue goes away. Even though I was able to work around this (change "User ID=..." in my connection string to "UID=..."), but it seems like a bug.
The text was updated successfully, but these errors were encountered:
Enclose the value in quotes, if it has spaces.
You should supply parameters in override parameters as -ConnectionString "$(ConnectionString)".
This is because, the agent upon execution replaces the $(ConnectionString) with the actual value.
For example, if your connectionString was "abc def" the string we receive upon execution would be -ConnectionString abc def. Our parser would consider abc and def to be 2 different literals and we end up assigning only the first literal to this key. Upon execution, the value of the connectionString would be only abc when you're expecting abc def. When you enclose it within quotes, abc def would be treated as a single literal.
I am trying to pass a SQL connection string from a variable into a template override parameter for the Azure Resource Group Deployment task v2.* and the connection string has a space in the value.
I get this error when the deployment executes
If I take the space out of the SQL connection string the issue goes away. Even though I was able to work around this (change "User ID=..." in my connection string to "UID=..."), but it seems like a bug.
The text was updated successfully, but these errors were encountered: