File: 1006.md

package info (click to toggle)
azure-cli 2.83.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,346,000 kB
  • sloc: python: 1,930,197; sh: 1,344; makefile: 407; cs: 145; javascript: 74; sql: 37; xml: 21
file content (51 lines) | stat: -rw-r--r-- 1,423 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
### 1006 - Cmd Parameter Added

**Description**: Checks whether a new parameter is added to a cmd from the previous cli version. 

**Analysis**: This is considered an additive change in new cli version. 
* If the added parameter is a `required` argument, then, it is a breaking change
* If the added parameter is just optional, it's not a breaking change.

**Example**: A new parameter `--marketplace-partner-id` is being added to cmd `az monitor diagnostic-setting create` in new cli version.

#### Before
> az monitor diagnostic-settings create -h 
> 
> Command
>   
> az monitor diagnostic-settings create : Create diagnostic settings for the specified resource.
>
> Arguments
> 
> --name -n [Required] : The name of the diagnostic setting. Required.
> 
> --event-hub : Name or ID an event hub. 
> 
> --event-hub-rule : Name or ID of the event hub authorization rule.
> 
> ...
> 
> ...
> 

#### After 
> az monitor diagnostic-settings create -h 
> 
> Command
>   
> az monitor diagnostic-settings create : Create diagnostic settings for the specified resource.
>
> Arguments
> 
> --name -n [Required] : The name of the diagnostic setting. Required.
> 
> --marketplace-partner-id : The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
> 
> --event-hub : Name or ID an event hub. 
> 
> --event-hub-rule : Name or ID of the event hub authorization rule.
> 
> ...
> 
> ...
>