Skip to content

update Az.OperationalInsights examples #16907

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

Merged
merged 1 commit into from
Jan 25, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ The **Disable-AzOperationalInsightsIISLogCollection** cmdlet stops collection of

## EXAMPLES

### Example 1
```powershell
PS C:\> Disable-AzOperationalInsightsIISLogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight

Name : DataSource_IISLogs
ResourceGroupName : yuzhi-rg
WorkspaceName : OperationalInsight
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
rkspaces/OperationalInsight/datasources/DataSource_IISLogs
Kind : IISLogs
Properties : {"state":"OnPremiseDisabled"}
```
Stops collection of Internet Information Services (IIS) logs from connected computers in a workspace.

## PARAMETERS

### -DefaultProfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ The **Disable-AzOperationalInsightsLinuxCustomLogCollection** cmdlet stops colle

## EXAMPLES

### Example 1
```powershell
PS C:\> Disable-AzOperationalInsightsLinuxCustomLogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight

Name : DataSource_CustomLogCollection
ResourceGroupName : yuzhi-rg
WorkspaceName : OperationalInsight
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
rkspaces/OperationalInsight/datasources/DataSource_CustomLogCollection
Kind : CustomLogCollection
Properties : {"state":"LinuxLogsDisabled"}
```
Stops collection of custom logs from connected Linux computers in a workspace.

## PARAMETERS

### -DefaultProfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ The **Disable-AzOperationalInsightsLinuxPerformanceCollection** cmdlet stops col

## EXAMPLES

### Example 1
```powershell
PS C:\> Disable-AzOperationalInsightsLinuxPerformanceCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight

Name : DataSource_LinuxPerformanceCollection
ResourceGroupName : yuzhi-rg
WorkspaceName : OperationalInsight
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
rkspaces/OperationalInsight/datasources/DataSource_LinuxPerformanceCollection
Kind : LinuxPerformanceCollection
Properties : {"state":"Disabled"}
```
Stops collection of performance counters from connected Linux computers in a workspace.

## PARAMETERS

### -DefaultProfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ The **Disable-AzOperationalInsightsLinuxSyslogCollection** cmdlet stops collecti

## EXAMPLES

### Example 1
```powershell
PS C:\> Disable-AzOperationalInsightsLinuxSyslogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsights-1

Name : DataSource_LinuxSyslogCollection
ResourceGroupName : yuzhi-rg
WorkspaceName : OperationalInsights-1
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
rkspaces/OperationalInsights-1/datasources/DataSource_LinuxSyslogCollection
Kind : LinuxSyslogCollection
Properties : {"state":"Disabled"}
```
Stops collection of syslog data from connected Linux computers in a workspace.

## PARAMETERS

### -DefaultProfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ The **Enable-AzOperationalInsightsIISLogCollection** cmdlet starts collection of

## EXAMPLES

### Example 1
```powershell
PS C:\> Enable-AzOperationalInsightsIISLogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight

Name : DataSource_IISLogs
ResourceGroupName : yuzhi-rg
WorkspaceName : OperationalInsight
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
rkspaces/OperationalInsight/datasources/DataSource_IISLogs
Kind : IISLogs
Properties : {"state":"OnPremiseEnabled"}
```
Starts collection of Internet Information Services (IIS) logs from connected computers in a workspace.

## PARAMETERS

### -DefaultProfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ The **Enable-AzOperationalInsightsLinuxCustomLogCollection** cmdlet starts colle

## EXAMPLES

### Example 1
```powershell
PS C:\> Enable-AzOperationalInsightsLinuxCustomLogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight

Name : DataSource_CustomLogCollection
ResourceGroupName : yuzhi-rg
WorkspaceName : OperationalInsight
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
rkspaces/OperationalInsight/datasources/DataSource_CustomLogCollection
Kind : CustomLogCollection
Properties : {"state":"LinuxLogsEnabled"}
```
Starts collection of custom logs from connected Linux computers in a workspace.

## PARAMETERS

### -DefaultProfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ The **Enable-AzOperationalInsightsLinuxPerformanceCollection** cmdlet starts col

## EXAMPLES

### Example 1
```powershell
PS C:\> Enable-AzOperationalInsightsLinuxPerformanceCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight

Name : DataSource_LinuxPerformanceCollection
ResourceGroupName : yuzhi-rg
WorkspaceName : OperationalInsight
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
rkspaces/OperationalInsight/datasources/DataSource_LinuxPerformanceCollection
Kind : LinuxPerformanceCollection
Properties : {"state":"Enabled"}
```
Starts collection of performance counters from connected Linux computers in a workspace.

## PARAMETERS

### -DefaultProfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ The **Enable-AzOperationalInsightsLinuxSyslogCollection** cmdlet starts collecti

## EXAMPLES

### Example 1
```powershell
PS C:\> Enable-AzOperationalInsightsLinuxSyslogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight

Name : DataSource_LinuxSyslogCollection
ResourceGroupName : yuzhi-rg
WorkspaceName : OperationalInsight
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
rkspaces/OperationalInsight/datasources/DataSource_LinuxSyslogCollection
Kind : LinuxSyslogCollection
Properties : {"state":"Enabled"}
```
Starts collection of syslog data from connected Linux computers in a workspace.

## PARAMETERS

### -DefaultProfile
Expand Down