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
Is your feature request related to a problem? Please describe.
Unable to use @ for parameter file reference in Powershell 7. It requires to create scripts for windows batch and linux separate than Powershell 7. Also, Powershell has more features in command line than windows command terminal.
Describe the solution you'd like
Instead of modifying the parameters argument to support URI format to reference parameters file, create a new argument to support URI convention to support local files.
Describe alternatives you've considered
Update parameters to support URI convention for parameters to refer local files.
like --parameters ./parameters.json that will work in all environments
Additional context
The text was updated successfully, but these errors were encountered:
The reason why we don't design separate parameters for files is that we don't know which parameter should be read from the file. In other words, users can use a file as input for any parameter.
@ is a more general approach which supports all parameters. In PowerShell terminal, @ is reserved for splatting. To use it in az as a file name indicator, you only need to escape it:
# Escape with backtick
az `@body.json# Surround with single quotes
az '@body.json'# Surround with double quotes
az "@body.json"
Is your feature request related to a problem? Please describe.
Unable to use @ for parameter file reference in Powershell 7. It requires to create scripts for windows batch and linux separate than Powershell 7. Also, Powershell has more features in command line than windows command terminal.
Describe the solution you'd like
Instead of modifying the parameters argument to support URI format to reference parameters file, create a new argument to support URI convention to support local files.
Describe alternatives you've considered
Update parameters to support URI convention for parameters to refer local files.
like --parameters ./parameters.json that will work in all environments
Additional context
The text was updated successfully, but these errors were encountered: