title: How to pass a variable into the 'az pipelines variable-group variable create' command
body: <p>I am trying to use the "az pipelines variable-group variable create ..." command to create a variable which references a different variable. e.g. </p>
  
  <pre><code>az pipelines variable-group variable create --project MyTestProject -- 
  group-id 15 --name ‘ApplicationName’ --value 'TestApp-$(env)' 
  </code></pre>
  
  <p>where the variable “env” is defined in a variable-group within the same project library. </p>
  
  <p>When I run the command above it gives the error: </p>
  
  <pre><code>“Failed to load python executable” “exit /b 1”. 
  </code></pre>
  
  <p>Despite an error being generated the variable is created; in the example above the variable 'ApplicationName' has the value 'TestApp-$(env', the trailing bracket  character, ")", is missing and seems to be causing the problem. </p>
  
  <p>The dollar sign, "$", and/or the opening bracket character "(" don't generate any error when used without the closing bracket ")". </p>
  
  <p>I have tried escaping the closing bracket character with backslashes "\" and caret "`" characters but couldn't find any combination that would create the desired variable value, "TestApp-$(env)". </p>
  
  <p>Could someone tell me how to escape the closing bracket so the variable is correctly created within the variable group. </p>
  
  <p>I am running the following versions of az:</p>
  
  <pre><code>azure-cli                         2.0.73
  command-modules-nspkg               2.0.3
  core                              2.0.73
  nspkg                              3.0.4
  telemetry                          1.0.3
  Extensions:
  azure-devops                      0.12.0
  
  Python (Windows) 3.6.6 
  </code></pre>
  
  <p>Many Thanks,</p>
  
  <p>Gary</p>