Azure / Azure/azure-cli

Allow passing of command line arguments via file

Offen
#17,543 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @jiasli Auf GitHub ansehen
act-platform-engineering-squad Core feature-request
Vorherrschende Sprache
Python
Sterne
4.6k
Forks
3.5k
Ø Merge
3 T. 2 Std.
Gemergte PRs (30 T.)
60

Beschreibung

**Is your feature request related to a problem? Please describe.**

We rely on AZ CLI to maintain our service infra. One of the things that we do is configure Web Access Firewall rules to allow access to endpoints only to certain IP address ranges. Unfortunately, the list of IP address ranges is too long and we're running into a problem with command line length (at least on Windows). I.e., when fully constructed, `az cdn waf policy custom-rule set` command line results in "The command line is too long" error message, not an actual functionality being performed.

**Describe the solution you'd like**

That'd be great if we could pass command line args via file instead of listing them all in the command line.

For example, 7-zip allows using @listfile when it comes to passing a list of files:

```
Usage: 7z [...] [...] [@listfile]
[...]

-ai[r[-|0]]{@listfile|!wildcard} : Include archives
-ax[r[-|0]]{@listfile|!wildcard} : eXclude archives
```

Given that AZ CLI has a diverse set of commands, I'd go with something like `az @argfile` to avoid figuring out which specific commands must be updated to allow passing a file instead of a list of args.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.