Skip to content

Commit 2a817d7

Browse files
authored
update Az.OperationalInsights examples (#16907)
1 parent 124a1b9 commit 2a817d7

8 files changed

+112
-0
lines changed

src/OperationalInsights/OperationalInsights/help/Disable-AzOperationalInsightsIISLogCollection.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ The **Disable-AzOperationalInsightsIISLogCollection** cmdlet stops collection of
3030

3131
## EXAMPLES
3232

33+
### Example 1
34+
```powershell
35+
PS C:\> Disable-AzOperationalInsightsIISLogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight
36+
37+
Name : DataSource_IISLogs
38+
ResourceGroupName : yuzhi-rg
39+
WorkspaceName : OperationalInsight
40+
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
41+
rkspaces/OperationalInsight/datasources/DataSource_IISLogs
42+
Kind : IISLogs
43+
Properties : {"state":"OnPremiseDisabled"}
44+
```
45+
Stops collection of Internet Information Services (IIS) logs from connected computers in a workspace.
46+
3347
## PARAMETERS
3448

3549
### -DefaultProfile

src/OperationalInsights/OperationalInsights/help/Disable-AzOperationalInsightsLinuxCustomLogCollection.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ The **Disable-AzOperationalInsightsLinuxCustomLogCollection** cmdlet stops colle
3030

3131
## EXAMPLES
3232

33+
### Example 1
34+
```powershell
35+
PS C:\> Disable-AzOperationalInsightsLinuxCustomLogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight
36+
37+
Name : DataSource_CustomLogCollection
38+
ResourceGroupName : yuzhi-rg
39+
WorkspaceName : OperationalInsight
40+
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
41+
rkspaces/OperationalInsight/datasources/DataSource_CustomLogCollection
42+
Kind : CustomLogCollection
43+
Properties : {"state":"LinuxLogsDisabled"}
44+
```
45+
Stops collection of custom logs from connected Linux computers in a workspace.
46+
3347
## PARAMETERS
3448

3549
### -DefaultProfile

src/OperationalInsights/OperationalInsights/help/Disable-AzOperationalInsightsLinuxPerformanceCollection.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ The **Disable-AzOperationalInsightsLinuxPerformanceCollection** cmdlet stops col
3030

3131
## EXAMPLES
3232

33+
### Example 1
34+
```powershell
35+
PS C:\> Disable-AzOperationalInsightsLinuxPerformanceCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight
36+
37+
Name : DataSource_LinuxPerformanceCollection
38+
ResourceGroupName : yuzhi-rg
39+
WorkspaceName : OperationalInsight
40+
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
41+
rkspaces/OperationalInsight/datasources/DataSource_LinuxPerformanceCollection
42+
Kind : LinuxPerformanceCollection
43+
Properties : {"state":"Disabled"}
44+
```
45+
Stops collection of performance counters from connected Linux computers in a workspace.
46+
3347
## PARAMETERS
3448

3549
### -DefaultProfile

src/OperationalInsights/OperationalInsights/help/Disable-AzOperationalInsightsLinuxSyslogCollection.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ The **Disable-AzOperationalInsightsLinuxSyslogCollection** cmdlet stops collecti
3030

3131
## EXAMPLES
3232

33+
### Example 1
34+
```powershell
35+
PS C:\> Disable-AzOperationalInsightsLinuxSyslogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsights-1
36+
37+
Name : DataSource_LinuxSyslogCollection
38+
ResourceGroupName : yuzhi-rg
39+
WorkspaceName : OperationalInsights-1
40+
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
41+
rkspaces/OperationalInsights-1/datasources/DataSource_LinuxSyslogCollection
42+
Kind : LinuxSyslogCollection
43+
Properties : {"state":"Disabled"}
44+
```
45+
Stops collection of syslog data from connected Linux computers in a workspace.
46+
3347
## PARAMETERS
3448

3549
### -DefaultProfile

src/OperationalInsights/OperationalInsights/help/Enable-AzOperationalInsightsIISLogCollection.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ The **Enable-AzOperationalInsightsIISLogCollection** cmdlet starts collection of
3030

3131
## EXAMPLES
3232

33+
### Example 1
34+
```powershell
35+
PS C:\> Enable-AzOperationalInsightsIISLogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight
36+
37+
Name : DataSource_IISLogs
38+
ResourceGroupName : yuzhi-rg
39+
WorkspaceName : OperationalInsight
40+
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
41+
rkspaces/OperationalInsight/datasources/DataSource_IISLogs
42+
Kind : IISLogs
43+
Properties : {"state":"OnPremiseEnabled"}
44+
```
45+
Starts collection of Internet Information Services (IIS) logs from connected computers in a workspace.
46+
3347
## PARAMETERS
3448

3549
### -DefaultProfile

src/OperationalInsights/OperationalInsights/help/Enable-AzOperationalInsightsLinuxCustomLogCollection.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ The **Enable-AzOperationalInsightsLinuxCustomLogCollection** cmdlet starts colle
3030

3131
## EXAMPLES
3232

33+
### Example 1
34+
```powershell
35+
PS C:\> Enable-AzOperationalInsightsLinuxCustomLogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight
36+
37+
Name : DataSource_CustomLogCollection
38+
ResourceGroupName : yuzhi-rg
39+
WorkspaceName : OperationalInsight
40+
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
41+
rkspaces/OperationalInsight/datasources/DataSource_CustomLogCollection
42+
Kind : CustomLogCollection
43+
Properties : {"state":"LinuxLogsEnabled"}
44+
```
45+
Starts collection of custom logs from connected Linux computers in a workspace.
46+
3347
## PARAMETERS
3448

3549
### -DefaultProfile

src/OperationalInsights/OperationalInsights/help/Enable-AzOperationalInsightsLinuxPerformanceCollection.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ The **Enable-AzOperationalInsightsLinuxPerformanceCollection** cmdlet starts col
3030

3131
## EXAMPLES
3232

33+
### Example 1
34+
```powershell
35+
PS C:\> Enable-AzOperationalInsightsLinuxPerformanceCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight
36+
37+
Name : DataSource_LinuxPerformanceCollection
38+
ResourceGroupName : yuzhi-rg
39+
WorkspaceName : OperationalInsight
40+
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
41+
rkspaces/OperationalInsight/datasources/DataSource_LinuxPerformanceCollection
42+
Kind : LinuxPerformanceCollection
43+
Properties : {"state":"Enabled"}
44+
```
45+
Starts collection of performance counters from connected Linux computers in a workspace.
46+
3347
## PARAMETERS
3448

3549
### -DefaultProfile

src/OperationalInsights/OperationalInsights/help/Enable-AzOperationalInsightsLinuxSyslogCollection.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ The **Enable-AzOperationalInsightsLinuxSyslogCollection** cmdlet starts collecti
3030

3131
## EXAMPLES
3232

33+
### Example 1
34+
```powershell
35+
PS C:\> Enable-AzOperationalInsightsLinuxSyslogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight
36+
37+
Name : DataSource_LinuxSyslogCollection
38+
ResourceGroupName : yuzhi-rg
39+
WorkspaceName : OperationalInsight
40+
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
41+
rkspaces/OperationalInsight/datasources/DataSource_LinuxSyslogCollection
42+
Kind : LinuxSyslogCollection
43+
Properties : {"state":"Enabled"}
44+
```
45+
Starts collection of syslog data from connected Linux computers in a workspace.
46+
3347
## PARAMETERS
3448

3549
### -DefaultProfile

0 commit comments

Comments
 (0)