How can we create secret variables with One-Way Git sync. I am unable to create variables with New-UAVariable error returning 400. We can create secret variables with Two-Way git sync via management api and ui.
To use the management API, you’ll need to use the api/v1/variable/secret endpoint. If you issue a PUT to the endpoint with the JSON for the variable you are trying to update, it should set the secret.