-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: cpendery <[email protected]> Co-authored-by: Grant Gurvis <[email protected]>
- Loading branch information
Showing
230 changed files
with
526,668 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
const completion: Fig.Spec = { | ||
name: "advisor", | ||
description: "Manage Azure Advisor", | ||
subcommands: [ | ||
{ | ||
name: "configuration", | ||
description: "Manage Azure Advisor configuration", | ||
subcommands: [ | ||
{ | ||
name: "list", | ||
description: | ||
"List Azure Advisor configuration for the entire subscription", | ||
}, | ||
{ | ||
name: "show", | ||
description: | ||
"Show Azure Advisor configuration for the given subscription or resource group", | ||
options: [ | ||
{ | ||
name: ["--resource-group", "-g"], | ||
description: | ||
"Name of resource group. You can configure the default group using az configure --defaults group=<name>", | ||
args: { name: "resource-group" }, | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "update", | ||
description: "Update Azure Advisor configuration", | ||
options: [ | ||
{ | ||
name: "--add", | ||
description: | ||
"Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>", | ||
args: { name: "add" }, | ||
}, | ||
{ | ||
name: "--configuration-name", | ||
description: | ||
'Advisor configuration name. Value must be "default"', | ||
args: { name: "configuration-name" }, | ||
}, | ||
{ | ||
name: ["--exclude", "-e"], | ||
description: "Exclude from recommendation generation", | ||
args: { name: "exclude" }, | ||
}, | ||
{ | ||
name: "--force-string", | ||
description: | ||
"When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON", | ||
}, | ||
{ | ||
name: ["--include", "-i"], | ||
description: "Include in recommendation generation", | ||
args: { name: "include" }, | ||
}, | ||
{ | ||
name: ["--low-cpu-threshold", "-l"], | ||
description: "Value for low CPU threshold", | ||
args: { | ||
name: "low-cpu-threshold", | ||
suggestions: ["10", "15", "20", "5"], | ||
}, | ||
}, | ||
{ | ||
name: "--remove", | ||
description: | ||
"Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove", | ||
args: { name: "remove" }, | ||
}, | ||
{ | ||
name: ["--resource-group", "-g"], | ||
description: | ||
"Name of resource group. You can configure the default group using az configure --defaults group=<name>", | ||
args: { name: "resource-group" }, | ||
}, | ||
{ | ||
name: "--set", | ||
description: | ||
"Update an object by specifying a property path and value to set. Example: --set property1.property2=", | ||
args: { name: "set" }, | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "recommendation", | ||
description: "Review Azure Advisor recommendations", | ||
subcommands: [ | ||
{ | ||
name: "disable", | ||
description: "Disable Azure Advisor recommendations", | ||
options: [ | ||
{ | ||
name: ["--days", "-d"], | ||
description: | ||
"Number of days to disable. If not specified, the recommendation is disabled forever", | ||
args: { name: "days" }, | ||
}, | ||
{ | ||
name: "--ids", | ||
description: | ||
'One or more resource IDs (space-delimited). If provided, no other "Resource Id" arguments should be specified', | ||
args: { name: "ids" }, | ||
}, | ||
{ | ||
name: ["--name", "-n"], | ||
description: | ||
"The name of the recommendation as output by the list command", | ||
args: { name: "name" }, | ||
}, | ||
{ | ||
name: ["--resource-group", "-g"], | ||
description: | ||
"Name of resource group. You can configure the default group using az configure --defaults group=<name>", | ||
args: { name: "resource-group" }, | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "enable", | ||
description: "Enable Azure Advisor recommendations", | ||
options: [ | ||
{ | ||
name: "--ids", | ||
description: | ||
'One or more resource IDs (space-delimited). If provided, no other "Resource Id" arguments should be specified', | ||
args: { name: "ids" }, | ||
}, | ||
{ | ||
name: ["--name", "-n"], | ||
description: | ||
"The name of the recommendation as output by the list command", | ||
args: { name: "name" }, | ||
}, | ||
{ | ||
name: ["--resource-group", "-g"], | ||
description: | ||
"Name of resource group. You can configure the default group using az configure --defaults group=<name>", | ||
args: { name: "resource-group" }, | ||
}, | ||
], | ||
}, | ||
{ | ||
name: "list", | ||
description: "List Azure Advisor recommendations", | ||
options: [ | ||
{ | ||
name: ["--category", "-c"], | ||
description: "Name of recommendation category", | ||
args: { | ||
name: "category", | ||
suggestions: [ | ||
"Cost", | ||
"HighAvailability", | ||
"Performance", | ||
"Security", | ||
], | ||
}, | ||
}, | ||
{ | ||
name: "--ids", | ||
description: | ||
'One or more resource IDs (space-delimited). If provided, no other "Resource Id" arguments should be specified', | ||
args: { name: "ids" }, | ||
}, | ||
{ | ||
name: ["--refresh", "-r"], | ||
description: "Generate new recommendations", | ||
args: { name: "refresh" }, | ||
}, | ||
{ | ||
name: ["--resource-group", "-g"], | ||
description: | ||
"Name of resource group. You can configure the default group using az configure --defaults group=<name>", | ||
args: { name: "resource-group" }, | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
}; | ||
|
||
export default completion; |
Oops, something went wrong.