Currently it is possible to configure a variable on the level of a context (not inherited) using the web interface but not using powershell.
Powershell cmd-lets New-LiquitContext or Set-LiquitContext do not have the possibility to define variables on context level
This does not work as the -liquitcontext parameter of New-LiquitVariable is the connection context and not an actual context.
If you try the following, it will not work:
$testcontext = Get-LiquitContext -Name "contextname"
New-LiquitVariable -ID "testvar" -LiquitContext $testcontext
As per Recast documentation for New-LiquitVariable :
LiquitContext
<LiquitContext>Determines the selected zone.
No
Default
Are you sure this is not possible yet? I found the following:
https://docs.liquit.com/docs/lwsps-cmdlets-variables#:~:text=This%20command%20creates%20or%20updates%20an%20existing%20variable%20(in%20a%20zone%2C%20context%20or%20package%20snapshot).