Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Commands/monitor/log-analytics/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ Manage Azure log analytics.
- [query-pack](/Commands/monitor/log-analytics/query-pack/readme.md)
: Manage Azure log analytics query pack.

- [solution](/Commands/monitor/log-analytics/solution/readme.md)
: Commands to manage monitor log-analytics solution.

- [workspace](/Commands/monitor/log-analytics/workspace/readme.md)
: Manage Azure log analytics workspace
16 changes: 16 additions & 0 deletions Commands/monitor/log-analytics/solution/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor log-analytics solution create_

Create the Solution.

## Versions

### [2015-11-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25zbWFuYWdlbWVudC9zb2x1dGlvbnMve30=/2015-11-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.operationsmanagement/solutions/{} 2015-11-01-preview -->

#### examples

- Create a log-analytics solution of type Containers
```bash
monitor log-analytics solution create --resource-group MyResourceGroup --solution-type Containers --tags key=value --workspace "/subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/ Microsoft.OperationalInsights/workspaces/{WorkspaceName}"
```
16 changes: 16 additions & 0 deletions Commands/monitor/log-analytics/solution/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor log-analytics solution delete_

Delete the solution in the subscription.

## Versions

### [2015-11-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25zbWFuYWdlbWVudC9zb2x1dGlvbnMve30=/2015-11-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.operationsmanagement/solutions/{} 2015-11-01-preview -->

#### examples

- Delete a log-analytics solution
```bash
monitor log-analytics solution delete --resource-group MyResourceGroup --name SolutionName
```
27 changes: 27 additions & 0 deletions Commands/monitor/log-analytics/solution/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# [Command] _monitor log-analytics solution list_

List the solution list. It will retrieve both first party and third party solutions

## Versions

### [2015-11-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25zbWFuYWdlbWVudC9zb2x1dGlvbnM=/2015-11-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.operationsmanagement/solutions 2015-11-01-preview -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.operationsmanagement/solutions 2015-11-01-preview -->

#### examples

- List all log-analytics solutions in the current subscription
```bash
monitor log-analytics solution list
```

- List all log-analytics solutions in a subscription
```bash
monitor log-analytics solution list --subscription MySubscription
```

- List all log-analytics solutions in a resource group
```bash
monitor log-analytics solution list --resource-group MyResourceGroup
```
16 changes: 16 additions & 0 deletions Commands/monitor/log-analytics/solution/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor log-analytics solution show_

Get the user solution.

## Versions

### [2015-11-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25zbWFuYWdlbWVudC9zb2x1dGlvbnMve30=/2015-11-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.operationsmanagement/solutions/{} 2015-11-01-preview -->

#### examples

- Show a log-analytics solution
```bash
monitor log-analytics solution show --resource-group MyResourceGroup --name SolutionName
```
16 changes: 16 additions & 0 deletions Commands/monitor/log-analytics/solution/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor log-analytics solution update_

Update a Solution. Only updating tags supported.

## Versions

### [2015-11-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25zbWFuYWdlbWVudC9zb2x1dGlvbnMve30=/2015-11-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.operationsmanagement/solutions/{} 2015-11-01-preview -->

#### examples

- Update a log-analytics solution
```bash
monitor log-analytics solution update --resource-group MyResourceGroup --name SolutionName --tags key=value
```
20 changes: 20 additions & 0 deletions Commands/monitor/log-analytics/solution/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# [Group] _monitor log-analytics solution_

Commands to manage monitor log-analytics solution.

## Commands

- [create](/Commands/monitor/log-analytics/solution/_create.md)
: Create the Solution.

- [delete](/Commands/monitor/log-analytics/solution/_delete.md)
: Delete the solution in the subscription.

- [list](/Commands/monitor/log-analytics/solution/_list.md)
: List the solution list. It will retrieve both first party and third party solutions

- [show](/Commands/monitor/log-analytics/solution/_show.md)
: Get the user solution.

- [update](/Commands/monitor/log-analytics/solution/_update.md)
: Update a Solution. Only updating tags supported.
184 changes: 184 additions & 0 deletions Commands/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -27173,6 +27173,190 @@
"query-pack"
]
},
"solution": {
"commands": {
"create": {
"help": {
"short": "Create the Solution."
},
"names": [
"monitor",
"log-analytics",
"solution",
"create"
],
"versions": [
{
"examples": [
{
"commands": [
"monitor log-analytics solution create --resource-group MyResourceGroup --solution-type Containers --tags key=value --workspace \"/subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/ Microsoft.OperationalInsights/workspaces/{WorkspaceName}\""
],
"name": "Create a log-analytics solution of type Containers"
}
],
"name": "2015-11-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationsmanagement/solutions/{}",
"plane": "mgmt-plane",
"version": "2015-11-01-preview"
}
]
}
]
},
"delete": {
"help": {
"short": "Delete the solution in the subscription."
},
"names": [
"monitor",
"log-analytics",
"solution",
"delete"
],
"versions": [
{
"examples": [
{
"commands": [
"monitor log-analytics solution delete --resource-group MyResourceGroup --name SolutionName"
],
"name": "Delete a log-analytics solution"
}
],
"name": "2015-11-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationsmanagement/solutions/{}",
"plane": "mgmt-plane",
"version": "2015-11-01-preview"
}
]
}
]
},
"list": {
"help": {
"short": "List the solution list. It will retrieve both first party and third party solutions"
},
"names": [
"monitor",
"log-analytics",
"solution",
"list"
],
"versions": [
{
"examples": [
{
"commands": [
"monitor log-analytics solution list"
],
"name": "List all log-analytics solutions in the current subscription"
},
{
"commands": [
"monitor log-analytics solution list --subscription MySubscription"
],
"name": "List all log-analytics solutions in a subscription"
},
{
"commands": [
"monitor log-analytics solution list --resource-group MyResourceGroup"
],
"name": "List all log-analytics solutions in a resource group"
}
],
"name": "2015-11-01-preview",
"resources": [
{
"id": "/subscriptions/{}/providers/microsoft.operationsmanagement/solutions",
"plane": "mgmt-plane",
"version": "2015-11-01-preview"
},
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationsmanagement/solutions",
"plane": "mgmt-plane",
"version": "2015-11-01-preview"
}
]
}
]
},
"show": {
"help": {
"short": "Get the user solution."
},
"names": [
"monitor",
"log-analytics",
"solution",
"show"
],
"versions": [
{
"examples": [
{
"commands": [
"monitor log-analytics solution show --resource-group MyResourceGroup --name SolutionName"
],
"name": "Show a log-analytics solution"
}
],
"name": "2015-11-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationsmanagement/solutions/{}",
"plane": "mgmt-plane",
"version": "2015-11-01-preview"
}
]
}
]
},
"update": {
"help": {
"short": "Update a Solution. Only updating tags supported."
},
"names": [
"monitor",
"log-analytics",
"solution",
"update"
],
"versions": [
{
"examples": [
{
"commands": [
"monitor log-analytics solution update --resource-group MyResourceGroup --name SolutionName --tags key=value"
],
"name": "Update a log-analytics solution"
}
],
"name": "2015-11-01-preview",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationsmanagement/solutions/{}",
"plane": "mgmt-plane",
"version": "2015-11-01-preview"
}
]
}
]
}
},
"help": {
"short": "Commands to manage monitor log-analytics solution."
},
"names": [
"monitor",
"log-analytics",
"solution"
]
},
"workspace": {
"commandGroups": {
"data-export": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.operationsmanagement/solutions", "version": "2015-11-01-preview", "swagger": "mgmt-plane/operationsmanagement/ResourceProviders/Microsoft.OperationsManagement/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk9wZXJhdGlvbnNNYW5hZ2VtZW50L3NvbHV0aW9ucw==/V/MjAxNS0xMS0wMS1wcmV2aWV3"}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationsmanagement/solutions", "version": "2015-11-01-preview", "swagger": "mgmt-plane/operationsmanagement/ResourceProviders/Microsoft.OperationsManagement/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uc01hbmFnZW1lbnQvc29sdXRpb25z/V/MjAxNS0xMS0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "monitor log-analytics solution", "commands": [{"name": "list", "version": "2015-11-01-preview", "resources": [{"id": "/subscriptions/{}/providers/microsoft.operationsmanagement/solutions", "version": "2015-11-01-preview", "swagger": "mgmt-plane/operationsmanagement/ResourceProviders/Microsoft.OperationsManagement/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk9wZXJhdGlvbnNNYW5hZ2VtZW50L3NvbHV0aW9ucw==/V/MjAxNS0xMS0wMS1wcmV2aWV3"}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationsmanagement/solutions", "version": "2015-11-01-preview", "swagger": "mgmt-plane/operationsmanagement/ResourceProviders/Microsoft.OperationsManagement/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uc01hbmFnZW1lbnQvc29sdXRpb25z/V/MjAxNS0xMS0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "conditions": [{"var": "$Condition_Solutions_ListBySubscription", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.subscriptionId"}, {"type": "not", "operator": {"type": "hasValue", "arg": "$Path.resourceGroupName"}}]}}, {"var": "$Condition_Solutions_ListByResourceGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.resourceGroupName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_Solutions_ListBySubscription"], "operationId": "Solutions_ListBySubscription", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.OperationsManagement/solutions", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2015-11-01-preview"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationsManagement/solutions/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "plan", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "product"}, {"type": "string", "name": "promotionCode"}, {"type": "string", "name": "publisher"}]}, {"type": "object", "name": "properties", "props": [{"type": "array<string>", "name": "containedResources", "item": {"type": "string"}}, {"readOnly": true, "type": "string", "name": "provisioningState"}, {"type": "array<string>", "name": "referencedResources", "item": {"type": "string"}}, {"type": "string", "name": "workspaceResourceId", "required": true}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"when": ["$Condition_Solutions_ListByResourceGroup"], "operationId": "Solutions_ListByResourceGroup", "http": {"path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"pattern": "^[-\\w\\._\\(\\)]+$", "maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2015-11-01-preview"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationsManagement/solutions/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "plan", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "product"}, {"type": "string", "name": "promotionCode"}, {"type": "string", "name": "publisher"}]}, {"type": "object", "name": "properties", "props": [{"type": "array<string>", "name": "containedResources", "item": {"type": "string"}}, {"readOnly": true, "type": "string", "name": "provisioningState"}, {"type": "array<string>", "name": "referencedResources", "item": {"type": "string"}}, {"type": "string", "name": "workspaceResourceId", "required": true}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]}
Loading