Skip to content

Commit

Permalink
Add table for exit codes (#7572)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlan-eagling authored and tjprescott committed Oct 16, 2018
1 parent 3e124d2 commit 77cbe10
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,13 @@ jasonsha@MyVM:~$

#### Exit Codes
For scripting purposes, we output certain exit codes for differing scenarios.
`0`: Command ran successfully.
`1`: Generic error; server returned bad status code, CLI validation failed, etc.
`2`: Parser error; check input to command line.
`3`: Missing ARM resource; used for existence check from `show` commands.

|Exit Code |Scenario |
|---|---|
|0 |Command ran successfully. |
|1 |Generic error; server returned bad status code, CLI validation failed, etc. |
|2 |Parser error; check input to command line. |
|3 |Missing ARM resource; used for existence check from `show` commands. |

#### More Samples and Snippets
For more usage examples, take a look at our [GitHub samples repo](http://github.com/Azure/azure-cli-samples) or [https://docs.microsoft.com/en-us/cli/azure/overview](https://docs.microsoft.com/en-us/cli/azure/overview).
Expand Down

0 comments on commit 77cbe10

Please sign in to comment.