Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add data-collection cmds #378

Merged
merged 1 commit into from
Dec 27, 2023
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
16 changes: 16 additions & 0 deletions Commands/monitor/data-collection/endpoint/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor data-collection endpoint create_

Create a data collection endpoint.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbmVuZHBvaW50cy97fQ==/2022-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/datacollectionendpoints/{} 2022-06-01 -->

#### examples

- Create data collection endpoint
```bash
monitor data-collection endpoint create -g "myResourceGroup" -l "eastus2euap" --name "myCollectionEndpoint" --public-network-access "Enabled"
```
16 changes: 16 additions & 0 deletions Commands/monitor/data-collection/endpoint/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor data-collection endpoint delete_

Delete a data collection endpoint.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbmVuZHBvaW50cy97fQ==/2022-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/datacollectionendpoints/{} 2022-06-01 -->

#### examples

- Delete data collection endpoint
```bash
monitor data-collection endpoint delete --name "myCollectionEndpoint" --resource-group "myResourceGroup"
```
22 changes: 22 additions & 0 deletions Commands/monitor/data-collection/endpoint/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# [Command] _monitor data-collection endpoint list_

List all data collection endpoints in the specified subscription

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbmVuZHBvaW50cw==/2022-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.insights/datacollectionendpoints 2022-06-01 -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/datacollectionendpoints 2022-06-01 -->

#### examples

- List data collection endpoints by resource group
```bash
monitor data-collection endpoint list --resource-group "myResourceGroup"
```

- List data collection endpoints by subscription
```bash
monitor data-collection endpoint list
```
16 changes: 16 additions & 0 deletions Commands/monitor/data-collection/endpoint/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor data-collection endpoint show_

Get the specified data collection endpoint.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbmVuZHBvaW50cy97fQ==/2022-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/datacollectionendpoints/{} 2022-06-01 -->

#### examples

- Get data collection endpoint
```bash
monitor data-collection endpoint show --name "myCollectionEndpoint" --resource-group "myResourceGroup"
```
16 changes: 16 additions & 0 deletions Commands/monitor/data-collection/endpoint/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor data-collection endpoint update_

Update a data collection endpoint.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbmVuZHBvaW50cy97fQ==/2022-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/datacollectionendpoints/{} 2022-06-01 -->

#### examples

- Update data collection endpoint
```bash
monitor data-collection endpoint update --tags tag1="A" tag2="B" tag3="C" --name "myCollectionEndpoint" --resource-group "myResourceGroup"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _monitor data-collection endpoint association list_

List associations for the specified data collection endpoint.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbmVuZHBvaW50cy97fS9hc3NvY2lhdGlvbnM=/2022-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/datacollectionendpoints/{}/associations 2022-06-01 -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# [Group] _monitor data-collection endpoint association_

monitor data-collection endpoint association

## Commands

- [list](/Commands/monitor/data-collection/endpoint/association/_list.md)
: List associations for the specified data collection endpoint.
25 changes: 25 additions & 0 deletions Commands/monitor/data-collection/endpoint/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# [Group] _monitor data-collection endpoint_

Manage data collection endpoint for monitor control service.

## Subgroups

- [association](/Commands/monitor/data-collection/endpoint/association/readme.md)
: monitor data-collection endpoint association

## Commands

- [create](/Commands/monitor/data-collection/endpoint/_create.md)
: Create a data collection endpoint.

- [delete](/Commands/monitor/data-collection/endpoint/_delete.md)
: Delete a data collection endpoint.

- [list](/Commands/monitor/data-collection/endpoint/_list.md)
: List all data collection endpoints in the specified subscription

- [show](/Commands/monitor/data-collection/endpoint/_show.md)
: Get the specified data collection endpoint.

- [update](/Commands/monitor/data-collection/endpoint/_update.md)
: Update a data collection endpoint.
11 changes: 11 additions & 0 deletions Commands/monitor/data-collection/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [Group] _monitor data-collection_

Manage data collection for monitor control service.

## Subgroups

- [endpoint](/Commands/monitor/data-collection/endpoint/readme.md)
: Manage data collection endpoint for monitor control service.

- [rule](/Commands/monitor/data-collection/rule/readme.md)
: Manage data collection rule for monitor control service.
16 changes: 16 additions & 0 deletions Commands/monitor/data-collection/rule/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor data-collection rule create_

Create a data collection rule.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbnJ1bGVzL3t9/2022-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/datacollectionrules/{} 2022-06-01 -->

#### examples

- Create data collection rule
```bash
monitor data-collection rule create --resource-group "myResourceGroup" --location "eastus" --name "myCollectionRule" --rule-file "C:\samples\dcrEx1.json"
```
16 changes: 16 additions & 0 deletions Commands/monitor/data-collection/rule/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor data-collection rule delete_

Delete a data collection rule.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbnJ1bGVzL3t9/2022-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/datacollectionrules/{} 2022-06-01 -->

#### examples

- Delete data collection rule
```bash
monitor data-collection rule delete --name "myCollectionRule" --resource-group "myResourceGroup"
```
22 changes: 22 additions & 0 deletions Commands/monitor/data-collection/rule/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# [Command] _monitor data-collection rule list_

List all data collection rules in the specified resource group. And Lists all data collection rules in the specified subscription.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbnJ1bGVz/2022-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.insights/datacollectionrules 2022-06-01 -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/datacollectionrules 2022-06-01 -->

#### examples

- List data collection rules by resource group
```bash
monitor data-collection rule list --resource-group "myResourceGroup"
```

- List data collection rules by subscription
```bash
monitor data-collection rule list
```
16 changes: 16 additions & 0 deletions Commands/monitor/data-collection/rule/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor data-collection rule show_

Return the specified data collection rule.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbnJ1bGVzL3t9/2022-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/datacollectionrules/{} 2022-06-01 -->

#### examples

- Get data collection rule
```bash
monitor data-collection rule show --name "myCollectionRule" --resource-group "myResourceGroup"
```
16 changes: 16 additions & 0 deletions Commands/monitor/data-collection/rule/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor data-collection rule update_

Update a data collection rule.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbnJ1bGVzL3t9/2022-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/datacollectionrules/{} 2022-06-01 -->

#### examples

- Update data collection rule
```bash
monitor data-collection rule update --resource-group "myResourceGroup" --name "myCollectionRule" --data-flows destinations="centralWorkspace" streams="Microsoft-Perf" streams="Microsoft-Syslog" streams="Microsoft-WindowsEvent" --log-analytics name="centralWorkspace" resource-id="/subscriptions/703362b3-f278-4e4b-9179- c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspac es/centralTeamWorkspace" --performance-counters name="appTeamExtraCounters" counter- specifiers="\\Process(_Total)\\Thread Count" sampling-frequency=30 streams="Microsoft-Perf" --syslog name="cronSyslog" facility-names="cron" log-levels="Debug" log-levels="Critical" log-levels="Emergency" streams="Microsoft-Syslog" --windows-event-logs name="cloudSecurityTeamEvents" streams="Microsoft-WindowsEvent" x-path-queries="Security!"
```
16 changes: 16 additions & 0 deletions Commands/monitor/data-collection/rule/association/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor data-collection rule association create_

Create an association.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbnJ1bGVhc3NvY2lhdGlvbnMve30=/2022-06-01.xml) **Stable**

<!-- mgmt-plane /{resourceuri}/providers/microsoft.insights/datacollectionruleassociations/{} 2022-06-01 -->

#### examples

- Create association
```bash
monitor data-collection rule association create --name "myAssociation" --rule-id "/subscriptions/703362b3-f278-4e4b-9179- c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule" --resource "subscriptions/703362b3-f278-4e4b-9179- c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm "
```
16 changes: 16 additions & 0 deletions Commands/monitor/data-collection/rule/association/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor data-collection rule association delete_

Delete an association.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbnJ1bGVhc3NvY2lhdGlvbnMve30=/2022-06-01.xml) **Stable**

<!-- mgmt-plane /{resourceuri}/providers/microsoft.insights/datacollectionruleassociations/{} 2022-06-01 -->

#### examples

- Delete association
```bash
monitor data-collection rule association delete --name "myAssociation" --resource "subscr iptions/703362b3-f278-4e4b-9179- c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm "
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _monitor data-collection rule association list-by-resource_

List associations for the specified resource.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbnJ1bGVhc3NvY2lhdGlvbnM=/2022-06-01.xml) **Stable**

<!-- mgmt-plane /{resourceuri}/providers/microsoft.insights/datacollectionruleassociations 2022-06-01 -->
9 changes: 9 additions & 0 deletions Commands/monitor/data-collection/rule/association/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _monitor data-collection rule association list_

List associations for the specified data collection rule.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbnJ1bGVzL3t9L2Fzc29jaWF0aW9ucw==/2022-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/datacollectionrules/{}/associations 2022-06-01 -->
16 changes: 16 additions & 0 deletions Commands/monitor/data-collection/rule/association/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor data-collection rule association show_

Get the specified association.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbnJ1bGVhc3NvY2lhdGlvbnMve30=/2022-06-01.xml) **Stable**

<!-- mgmt-plane /{resourceuri}/providers/microsoft.insights/datacollectionruleassociations/{} 2022-06-01 -->

#### examples

- Get association
```bash
monitor data-collection rule association show --name "myAssociation" --resource "subscrip tions/703362b3-f278-4e4b-9179- c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm "
```
16 changes: 16 additions & 0 deletions Commands/monitor/data-collection/rule/association/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _monitor data-collection rule association update_

Update an association.

## Versions

### [2022-06-01](/Resources/mgmt-plane/L3tyZXNvdXJjZXVyaX0vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9kYXRhY29sbGVjdGlvbnJ1bGVhc3NvY2lhdGlvbnMve30=/2022-06-01.xml) **Stable**

<!-- mgmt-plane /{resourceuri}/providers/microsoft.insights/datacollectionruleassociations/{} 2022-06-01 -->

#### examples

- Update association
```bash
monitor data-collection rule association update --name "myAssociation" --rule-id "/subscr iptions/703362b3-f278-4e4b-9179- c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules /myCollectionRule" --resource "subscriptions/703362b3-f278-4e4b-9179- c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm "
```
23 changes: 23 additions & 0 deletions Commands/monitor/data-collection/rule/association/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# [Group] _monitor data-collection rule association_

Manage data collection rule association for monitor control service.

## Commands

- [create](/Commands/monitor/data-collection/rule/association/_create.md)
: Create an association.

- [delete](/Commands/monitor/data-collection/rule/association/_delete.md)
: Delete an association.

- [list](/Commands/monitor/data-collection/rule/association/_list.md)
: List associations for the specified data collection rule.

- [list-by-resource](/Commands/monitor/data-collection/rule/association/_list-by-resource.md)
: List associations for the specified resource.

- [show](/Commands/monitor/data-collection/rule/association/_show.md)
: Get the specified association.

- [update](/Commands/monitor/data-collection/rule/association/_update.md)
: Update an association.
25 changes: 25 additions & 0 deletions Commands/monitor/data-collection/rule/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# [Group] _monitor data-collection rule_

Manage data collection rule for monitor control service.

## Subgroups

- [association](/Commands/monitor/data-collection/rule/association/readme.md)
: Manage data collection rule association for monitor control service.

## Commands

- [create](/Commands/monitor/data-collection/rule/_create.md)
: Create a data collection rule.

- [delete](/Commands/monitor/data-collection/rule/_delete.md)
: Delete a data collection rule.

- [list](/Commands/monitor/data-collection/rule/_list.md)
: List all data collection rules in the specified resource group. And Lists all data collection rules in the specified subscription.

- [show](/Commands/monitor/data-collection/rule/_show.md)
: Return the specified data collection rule.

- [update](/Commands/monitor/data-collection/rule/_update.md)
: Update a data collection rule.
5 changes: 4 additions & 1 deletion Commands/monitor/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [Group] _monitor_

Manage the Azure Monitor Service.
Monitor.

## Subgroups

Expand All @@ -19,6 +19,9 @@ Manage the Azure Monitor Service.
- [autoscale](/Commands/monitor/autoscale/readme.md)
: Manage autoscale settings

- [data-collection](/Commands/monitor/data-collection/readme.md)
: Manage data collection for monitor control service.

- [diagnostic-settings](/Commands/monitor/diagnostic-settings/readme.md)
: Manage service diagnostic settings.

Expand Down
Loading