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
8 changes: 4 additions & 4 deletions src/Monitor/Monitor/help/Remove-AzDataCollectionRule.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Delete a data collection rule.
### ByName (Default)
```
Remove-AzDataCollectionRule
-ResourceGroupName <string>
-RuleName <string>
-ResourceGroupName <string>
-RuleName <string>
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
Expand Down Expand Up @@ -49,13 +49,13 @@ Remove-AzDataCollectionRule
## DESCRIPTION
The **Remove-AzDataCollectionRule** cmdlet delete a data collection rule.

Data Collection Rules (DCR) define data coming into Azure Monitor and specify where that data should be sent or stored. Here is the complete [DCR overview article](https://docs.microsoft.com/azure/azure-monitor/platform/data-collection-rule-overview).
Data Collection Rules (DCR) define data coming into Azure Monitor and specify where that data should be sent or stored. Here is the complete [DCR overview article](https://docs.microsoft.com/azure/azure-monitor/essentials/data-collection-rule-overview).

## EXAMPLES

### Example 1: Delete data collection rule with name and resource group parameters
```powershell
Remove-AzDataCollectionRule -ResourceGroupName "testgroup" -RuleName "testDcr"
Remove-AzDataCollectionRule -ResourceGroupName "testgroup" -RuleName "testDcr"
```

### Example 2: Delete data collection rule with name and resource group return bool
Expand Down
10 changes: 5 additions & 5 deletions src/Monitor/Monitor/help/Set-AzDataCollectionRule.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Updates (full replacement) a data collection rule.

### ByName (Default)
```
Set-AzDataCollectionRule
Set-AzDataCollectionRule
-Location <string>
-ResourceGroupName <string>
-RuleName <string>
Expand All @@ -29,7 +29,7 @@ Set-AzDataCollectionRule

### ByResourceId
```
Set-AzDataCollectionRule
Set-AzDataCollectionRule
-Location <string>
-RuleId <string>
-RuleFile <string>
Expand All @@ -43,8 +43,8 @@ Set-AzDataCollectionRule

### ByInputObject
```
Set-AzDataCollectionRule
-InputObject <PSDataCollectionRuleResource>
Set-AzDataCollectionRule
-InputObject <PSDataCollectionRuleResource>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
Expand All @@ -54,7 +54,7 @@ Set-AzDataCollectionRule
## DESCRIPTION
The **Set-AzDataCollectionRule** cmdlet replaces an existing data collection rule.

Data Collection Rules (DCR) define data coming into Azure Monitor and specify where that data should be sent or stored. Here is the complete [DCR overview article](https://docs.microsoft.com/azure/azure-monitor/platform/data-collection-rule-overview).
Data Collection Rules (DCR) define data coming into Azure Monitor and specify where that data should be sent or stored. Here is the complete [DCR overview article](https://docs.microsoft.com/azure/azure-monitor/essentials/data-collection-rule-overview).

To use the -RuleFile parameter, construct a json file containing three properties: dataSources, destinations, dataFlows (see Example #1).

Expand Down
36 changes: 18 additions & 18 deletions src/Monitor/Monitor/help/Update-AzDataCollectionRule.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,32 @@ Updates a data collection rule tags property.

### ByName (Default)
```
Update-AzDataCollectionRule
-ResourceGroupName <string>
-RuleName <string>
[-Tag <hashtable>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
Update-AzDataCollectionRule
-ResourceGroupName <string>
-RuleName <string>
[-Tag <hashtable>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

### ByResourceId
```
Update-AzDataCollectionRule
-RuleId <string>
[-Tag <hashtable>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
Update-AzDataCollectionRule
-RuleId <string>
[-Tag <hashtable>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

### ByInputObject
```
Update-AzDataCollectionRule
-InputObject <PSDataCollectionRuleResource>
[-Tag <hashtable>]
Update-AzDataCollectionRule
-InputObject <PSDataCollectionRuleResource>
[-Tag <hashtable>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
Expand All @@ -49,7 +49,7 @@ Update-AzDataCollectionRule
## DESCRIPTION
The **Update-AzDataCollectionRule** cmdlet updates a data collection rule Tags property.

Data Collection Rules (DCR) define data coming into Azure Monitor and specify where that data should be sent or stored. Here is the complete [DCR overview article](https://docs.microsoft.com/azure/azure-monitor/platform/data-collection-rule-overview).
Data Collection Rules (DCR) define data coming into Azure Monitor and specify where that data should be sent or stored. Here is the complete [DCR overview article](https://docs.microsoft.com/azure/azure-monitor/essentials/data-collection-rule-overview).

## EXAMPLES

Expand All @@ -61,7 +61,7 @@ Update-AzDataCollectionRule -RuleName 'newDcr' `
```

```output
Description :
Description :
DataSources : Microsoft.Azure.Commands.Insights.OutputClasses.PSDataCollectionRuleDataSources
Destinations : Microsoft.Azure.Commands.Insights.OutputClasses.PSDataCollectionRuleDestinations
DataFlows : {Microsoft.Azure.Commands.Insights.OutputClasses.PSDataFlow}
Expand All @@ -83,7 +83,7 @@ Update-AzDataCollectionRule -RuleId '/subscriptions/{subId}/resourceGroups/testd
```

```output
Description :
Description :
DataSources : Microsoft.Azure.Commands.Insights.OutputClasses.PSDataCollectionRuleDataSources
Destinations : Microsoft.Azure.Commands.Insights.OutputClasses.PSDataCollectionRuleDestinations
DataFlows : {Microsoft.Azure.Commands.Insights.OutputClasses.PSDataFlow}
Expand All @@ -105,7 +105,7 @@ $dcr | Update-AzDataCollectionRule -Tag @{"tag1"="value1"; "tag2"="value2"}
```

```output
Description :
Description :
DataSources : Microsoft.Azure.Commands.Insights.OutputClasses.PSDataCollectionRuleDataSources
Destinations : Microsoft.Azure.Commands.Insights.OutputClasses.PSDataCollectionRuleDestinations
DataFlows : {Microsoft.Azure.Commands.Insights.OutputClasses.PSDataFlow}
Expand Down