Skip to content

Commit 3608186

Browse files
Split Az.OperationalInsights Examples (#17279)
1 parent 4771338 commit 3608186

File tree

55 files changed

+189
-138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+189
-138
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ The **Disable-AzOperationalInsightsIISLogCollection** cmdlet stops collection of
3232

3333
### Example 1
3434
```powershell
35-
PS C:\> Disable-AzOperationalInsightsIISLogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight
35+
Disable-AzOperationalInsightsIISLogCollection -ResourceGroupName test-rg -WorkspaceName OperationalInsight
36+
```
3637

38+
```output
3739
Name : DataSource_IISLogs
38-
ResourceGroupName : yuzhi-rg
40+
ResourceGroupName : test-rg
3941
WorkspaceName : OperationalInsight
40-
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
42+
ResourceId : /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourceGroups/test-rg/providers/Microsoft.OperationalInsights/wo
4143
rkspaces/OperationalInsight/datasources/DataSource_IISLogs
4244
Kind : IISLogs
4345
Properties : {"state":"OnPremiseDisabled"}

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ The **Disable-AzOperationalInsightsLinuxCustomLogCollection** cmdlet stops colle
3232

3333
### Example 1
3434
```powershell
35-
PS C:\> Disable-AzOperationalInsightsLinuxCustomLogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight
35+
Disable-AzOperationalInsightsLinuxCustomLogCollection -ResourceGroupName test-rg -WorkspaceName OperationalInsight
36+
```
3637

38+
```output
3739
Name : DataSource_CustomLogCollection
38-
ResourceGroupName : yuzhi-rg
40+
ResourceGroupName : test-rg
3941
WorkspaceName : OperationalInsight
40-
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
42+
ResourceId : /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourceGroups/test-rg/providers/Microsoft.OperationalInsights/wo
4143
rkspaces/OperationalInsight/datasources/DataSource_CustomLogCollection
4244
Kind : CustomLogCollection
4345
Properties : {"state":"LinuxLogsDisabled"}

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ The **Disable-AzOperationalInsightsLinuxPerformanceCollection** cmdlet stops col
3232

3333
### Example 1
3434
```powershell
35-
PS C:\> Disable-AzOperationalInsightsLinuxPerformanceCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight
35+
Disable-AzOperationalInsightsLinuxPerformanceCollection -ResourceGroupName test-rg -WorkspaceName OperationalInsight
36+
```
3637

38+
```output
3739
Name : DataSource_LinuxPerformanceCollection
38-
ResourceGroupName : yuzhi-rg
40+
ResourceGroupName : test-rg
3941
WorkspaceName : OperationalInsight
40-
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
42+
ResourceId : /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourceGroups/test-rg/providers/Microsoft.OperationalInsights/wo
4143
rkspaces/OperationalInsight/datasources/DataSource_LinuxPerformanceCollection
4244
Kind : LinuxPerformanceCollection
4345
Properties : {"state":"Disabled"}

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ The **Disable-AzOperationalInsightsLinuxSyslogCollection** cmdlet stops collecti
3232

3333
### Example 1
3434
```powershell
35-
PS C:\> Disable-AzOperationalInsightsLinuxSyslogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsights-1
35+
Disable-AzOperationalInsightsLinuxSyslogCollection -ResourceGroupName test-rg -WorkspaceName OperationalInsights-1
36+
```
3637

38+
```output
3739
Name : DataSource_LinuxSyslogCollection
38-
ResourceGroupName : yuzhi-rg
40+
ResourceGroupName : test-rg
3941
WorkspaceName : OperationalInsights-1
40-
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
42+
ResourceId : /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourceGroups/test-rg/providers/Microsoft.OperationalInsights/wo
4143
rkspaces/OperationalInsights-1/datasources/DataSource_LinuxSyslogCollection
4244
Kind : LinuxSyslogCollection
4345
Properties : {"state":"Disabled"}

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ The **Enable-AzOperationalInsightsIISLogCollection** cmdlet starts collection of
3232

3333
### Example 1
3434
```powershell
35-
PS C:\> Enable-AzOperationalInsightsIISLogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight
35+
Enable-AzOperationalInsightsIISLogCollection -ResourceGroupName test-rg -WorkspaceName OperationalInsight
36+
```
3637

38+
```output
3739
Name : DataSource_IISLogs
38-
ResourceGroupName : yuzhi-rg
40+
ResourceGroupName : test-rg
3941
WorkspaceName : OperationalInsight
40-
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
42+
ResourceId : /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourceGroups/test-rg/providers/Microsoft.OperationalInsights/wo
4143
rkspaces/OperationalInsight/datasources/DataSource_IISLogs
4244
Kind : IISLogs
4345
Properties : {"state":"OnPremiseEnabled"}

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ The **Enable-AzOperationalInsightsLinuxCustomLogCollection** cmdlet starts colle
3232

3333
### Example 1
3434
```powershell
35-
PS C:\> Enable-AzOperationalInsightsLinuxCustomLogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight
35+
Enable-AzOperationalInsightsLinuxCustomLogCollection -ResourceGroupName test-rg -WorkspaceName OperationalInsight
36+
```
3637

38+
```output
3739
Name : DataSource_CustomLogCollection
38-
ResourceGroupName : yuzhi-rg
40+
ResourceGroupName : test-rg
3941
WorkspaceName : OperationalInsight
40-
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
42+
ResourceId : /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourceGroups/test-rg/providers/Microsoft.OperationalInsights/wo
4143
rkspaces/OperationalInsight/datasources/DataSource_CustomLogCollection
4244
Kind : CustomLogCollection
4345
Properties : {"state":"LinuxLogsEnabled"}

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ The **Enable-AzOperationalInsightsLinuxPerformanceCollection** cmdlet starts col
3232

3333
### Example 1
3434
```powershell
35-
PS C:\> Enable-AzOperationalInsightsLinuxPerformanceCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight
35+
Enable-AzOperationalInsightsLinuxPerformanceCollection -ResourceGroupName test-rg -WorkspaceName OperationalInsight
36+
```
3637

38+
```output
3739
Name : DataSource_LinuxPerformanceCollection
38-
ResourceGroupName : yuzhi-rg
40+
ResourceGroupName : test-rg
3941
WorkspaceName : OperationalInsight
40-
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
42+
ResourceId : /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourceGroups/test-rg/providers/Microsoft.OperationalInsights/wo
4143
rkspaces/OperationalInsight/datasources/DataSource_LinuxPerformanceCollection
4244
Kind : LinuxPerformanceCollection
4345
Properties : {"state":"Enabled"}

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ The **Enable-AzOperationalInsightsLinuxSyslogCollection** cmdlet starts collecti
3232

3333
### Example 1
3434
```powershell
35-
PS C:\> Enable-AzOperationalInsightsLinuxSyslogCollection -ResourceGroupName yuzhi-rg -WorkspaceName OperationalInsight
35+
Enable-AzOperationalInsightsLinuxSyslogCollection -ResourceGroupName test-rg -WorkspaceName OperationalInsight
36+
```
3637

38+
```output
3739
Name : DataSource_LinuxSyslogCollection
38-
ResourceGroupName : yuzhi-rg
40+
ResourceGroupName : test-rg
3941
WorkspaceName : OperationalInsight
40-
ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yuzhi-rg/providers/Microsoft.OperationalInsights/wo
42+
ResourceId : /subscriptions/xxxx-xxxx-xxxx-xxxx-xxxx/resourceGroups/test-rg/providers/Microsoft.OperationalInsights/wo
4143
rkspaces/OperationalInsight/datasources/DataSource_LinuxSyslogCollection
4244
Kind : LinuxSyslogCollection
4345
Properties : {"state":"Enabled"}

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsAvailableServiceTier.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ This command gets all available service tiers for a given worksapce.
2424

2525
### Example 1
2626
```powershell
27-
PS C:\> Get-AzOperationalInsightsAvailableServiceTier -ResourceGroupName ContosoResourceGroup -WorkspaceName MyWorkspace
27+
Get-AzOperationalInsightsAvailableServiceTier -ResourceGroupName ContosoResourceGroup -WorkspaceName MyWorkspace
28+
```
2829

30+
```output
2931
ServiceTier : PerGB2018
3032
Enabled : True
3133
MinimumRetention : 30

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsCluster.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ Get or list clusters, list clusters under resource group when "-ClusterName" was
3838
### Example 1
3939
```powershell
4040
Get-AzOperationalInsightsCluster -ResourceGroupName {rg-name} -ClusterName {cluster-name}
41+
```
4142

43+
```output
4244
Identity : Microsoft.Azure.Commands.OperationalInsights.Models.PSIdentity
4345
Sku : Microsoft.Azure.Commands.OperationalInsights.Models.PSClusterSku
4446
ClusterId : {cluster-id}

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsDataExport.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ Gets a workspace's Data export by name or all existing workspace's data exports.
3737

3838
### Example 1
3939
```powershell
40-
PS C:\> Get-AzOperationalInsightsDataExport -ResourceGroupName {rg-name} -WorkspaceName {workspace-name} -DataExportName {dataExportName}
40+
Get-AzOperationalInsightsDataExport -ResourceGroupName {rg-name} -WorkspaceName {workspace-name} -DataExportName {dataExportName}
41+
```
4142

43+
```output
4244
Name : {dataExportName}
4345
Id : /subscriptions/{subscription}/resourcegroups/{rg-name}/providers/microsoft.operationalinsights/workspaces/{workspace-name}/dataexports/{dataExportName}
4446
Type : Microsoft.OperationalInsights/workspaces/export
@@ -57,7 +59,7 @@ Gets a workspace's Data export.
5759

5860
### Example 2
5961
```powershell
60-
PS C:\> Get-AzOperationalInsightsDataExport -ResourceGroupName {rg-name} -WorkspaceName {workspace-name}
62+
Get-AzOperationalInsightsDataExport -ResourceGroupName {rg-name} -WorkspaceName {workspace-name}
6163
```
6264

6365
Gets all workspace's Data exports.

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsDeletedWorkspace.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ List deleted workspaces.
2424

2525
### Example 1
2626
```powershell
27-
PS C:\> $workspace = New-AzOperationalInsightsWorkspace -ResourceGroupName $rgname -Name $wsname -Location $wslocation
28-
PS C:\> $workspace | Remove-AzOperationalInsightsWorkspace
29-
PS C:\> Get-AzOperationalInsightsDeletedWorkspace -ResourceGroupName $rgname
27+
$workspace = New-AzOperationalInsightsWorkspace -ResourceGroupName $rgname -Name $wsname -Location $wslocation
28+
$workspace | Remove-AzOperationalInsightsWorkspace
29+
Get-AzOperationalInsightsDeletedWorkspace -ResourceGroupName $rgname
3030
```
3131

3232
List deleted workspaces.

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsIntelligencePack.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ The **Get-AzOperationalInsightsIntelligencePack** cmdlet gets the available Inte
2727
## EXAMPLES
2828

2929
### Example 1: Get Intelligence Packs
30-
```
31-
PS C:\>Get-AzOperationalInsightsStorageInsight -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace"
30+
```powershell
31+
Get-AzOperationalInsightsStorageInsight -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace"
3232
```
3333

3434
This command gets the available Intelligence Packs.

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedService.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ Get or list linked service for workspace, list when "-LinkedServiceName" was not
2525
### Example 1
2626
```powershell
2727
Get-AzOperationalInsightsLinkedService -ResourceGroupName {rg-name} -WorkspaceName {workspace-name} -LinkedServiceName cluster
28+
```
2829

30+
```output
2931
Id : /subscriptions/{subscription}/resourcegroups/{rg-name}/providers/microsoft.operationalinsights/workspaces/{workspace-name}/linkedservices/cluster
3032
Name : {cluster-name}/Cluster
3133
Type : Microsoft.OperationalInsights/workspaces/linkedServices

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedStorageAccount.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ Get linked storage account, list all linked storage accounts when "-DataSourceTy
2525
### Example 1
2626
```powershell
2727
Get-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName {rg-name} -WorkspaceName {workspace-name}
28+
```
2829

30+
```output
2931
Id : /subscriptions/{subscription}/resourceGroups/{rg-name}/providers/Microsoft.OperationalInsights/workspaces/{workspace-name}/linkedStorageAccounts/customlogs
3032
Name :
3133
Type : Microsoft.OperationalInsights/workspaces/linkedStorageAccounts

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsOperation.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ Lists all of the available OperationalInsights Rest API operations.
2323

2424
### Example 1
2525
```powershell
26-
PS C:\> Get-AzOperationalInsightsOperation
26+
Get-AzOperationalInsightsOperation
2727
```
2828

29+
```output
2930
Name : microsoft.operationalinsights/workspaces/features/{resource_name0}/read
3031
Provider : MicrosoftOperationalInsights
3132
Resource : {resource_name0}
@@ -37,7 +38,7 @@ Provider : MicrosoftOperationalInsights
3738
Resource : {resource_name1}
3839
Operation :
3940
Description :
40-
41+
```
4142
This command gets all available OperationalInsights Rest API operations by tenant.
4243

4344
## PARAMETERS

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsOperationStatus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Get the status of a long running azure asynchronous operation.
2424

2525
### Example 1
2626
```powershell
27-
PS C:\> Get-AzOperationalInsightsOperationStatus -Location {location} -OperationId {op_id}
27+
Get-AzOperationalInsightsOperationStatus -Location {location} -OperationId {op_id}
2828
```
2929

3030
gets a long running azure asynchronous operation

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsPurgeWorkspaceStatus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Gets status of an ongoing purge operation.
2424

2525
### Example 1
2626
```powershell
27-
PS C:\> Get-AzOperationalInsightsPurgeWorkspaceStatus -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "MyWorkspace" -PurgeId "cd944bc7-ba11-447e-910c-c6393ac020a9"
27+
Get-AzOperationalInsightsPurgeWorkspaceStatus -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "MyWorkspace" -PurgeId "cd944bc7-ba11-447e-910c-c6393ac020a9"
2828
```
2929

3030
This command gets the status of an ongoing purge operation by resource group name, workspace name and the purge id returned from New-AzOperationalInsightsPurgeWorkspace command.

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsSavedSearch.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ If you do specify a saved search ID, then the saved search corresponding to that
2525
## EXAMPLES
2626

2727
### Example 1: Get all saved searches for a workspace
28-
```
29-
PS C:\>Get-AzOperationalInsightsSavedSearch -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace"
28+
```powershell
29+
Get-AzOperationalInsightsSavedSearch -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace"
3030
```
3131

3232
This command gets all of the saved resources associated with a workspace.
3333

3434
### Example 2: Get a specific saved search by ID
35-
```
36-
PS C:\>Get-AzOperationalInsightsSavedSearch -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace" -SavedSearchId "ContosoSavedSearchId"
35+
```powershell
36+
Get-AzOperationalInsightsSavedSearch -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace" -SavedSearchId "ContosoSavedSearchId"
3737
```
3838

3939
This command gets a specific saved search by its ID.

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsSchema.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ The **Get-AzOperationalInsightsSchema** cmdlet returns the schema associated wit
2424
## EXAMPLES
2525

2626
### Example 1: Get the schemas for a workspace
27-
```
28-
PS C:\>Get-AzOperationalInsightsSchema -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace"
27+
```powershell
28+
Get-AzOperationalInsightsSchema -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace"
2929
```
3030

3131
This command gets the schemas associated with a workspace.

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsStorageInsight.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ If you do not specify a name, this cmdlet gets information about all storage ins
3333
## EXAMPLES
3434

3535
### Example 1: Get a Storage Insight by name
36-
```
37-
PS C:\>Get-AzOperationalInsightsStorageInsight -Name "MyStorageInsight" -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace"
36+
```powershell
37+
Get-AzOperationalInsightsStorageInsight -Name "MyStorageInsight" -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace"
3838
```
3939

4040
This command gets the storage insight named MyStorageInsight from the workspace named ContosoWorkspace.
4141

4242
### Example 2: Get a Storage Insight by using a workspace object
43-
```
44-
PS C:\>$Workspace = Get-AzOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace"
45-
PS C:\>Get-AzOperationalInsightsStorageInsight -Workspace $Workspace -Name "MyStorageInsight"
43+
```powershell
44+
$Workspace = Get-AzOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace"
45+
Get-AzOperationalInsightsStorageInsight -Workspace $Workspace -Name "MyStorageInsight"
4646
```
4747

4848
The first command uses the **Get-AzOperationalInsightsWorkspace** cmdlet to get an Operational Insights workspace, and then stores it in the $Workspace variable.

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsTable.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ Get or list tables for a workspace, list tables under workspace when "-TableName
2323
## EXAMPLES
2424

2525
### Example 1: Get all tables for a workspace
26-
```
27-
PS C:\>Get-AzOperationalInsightsTable -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace"
26+
```powershell
27+
Get-AzOperationalInsightsTable -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace"
2828
```
2929

3030
This command gets all of the tables associated with a workspace.
3131

3232
### Example 2: Get a specific table by name
33-
```
34-
PS C:\>Get-AzOperationalInsightsTable -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace" -tableName "ContosoSavedTableName"
33+
```powershell
34+
Get-AzOperationalInsightsTable -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace" -tableName "ContosoSavedTableName"
3535
```
3636

3737
This command gets a specific table by its name.

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsWorkspace.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ If you do not specify a name and resource group, this cmdlet gets information ab
2727
## EXAMPLES
2828

2929
### Example 1: Get a workspace by name
30-
```
31-
PS C:\>Get-AzOperationalInsightsWorkspace -Name "MyWorkspace" -ResourceGroupName "ContosoResourceGroup"
30+
```powershell
31+
Get-AzOperationalInsightsWorkspace -Name "MyWorkspace" -ResourceGroupName "ContosoResourceGroup"
3232
```
3333

3434
This command gets a workspace named MyWorkspace in the resource group named ContosoResourceGroup.

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsWorkspaceManagementGroup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ The **Get-AzOperationalInsightsWorkspaceManagementGroup** cmdlet lists the manag
2424
## EXAMPLES
2525

2626
### Example 1: Get management groups by workspace name
27-
```
28-
PS C:\>Get-AzOperationalInsightsWorkspaceManagementGroup -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace"
27+
```powershell
28+
Get-AzOperationalInsightsWorkspaceManagementGroup -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace"
2929
```
3030

3131
This command gets the management groups for the workspace named MyWorkspace in the resource group named ContosoResourceGroup.
3232

3333
### Example 2: Get management groups by using the pipeline
34-
```
35-
PS C:\>Get-AzOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace" | Get-AzOperationalInsightsWorkspaceManagementGroup
34+
```powershell
35+
Get-AzOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace" | Get-AzOperationalInsightsWorkspaceManagementGroup
3636
```
3737

3838
This command uses the Get-AzOperationalInsightsWorkspace cmdlet to get the workspace named MyWorkspace, and then passes the workspace to the current cmdlet, which gets the management groups for that workspace.

src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsWorkspaceSharedKey.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ The keys are used to connect Operational Insights agents to the workspace.
2525
## EXAMPLES
2626

2727
### Example 1: Get shared keys by workspace name
28-
```
29-
PS C:\>Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace"
28+
```powershell
29+
Get-AzOperationalInsightsWorkspaceSharedKey -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace"
3030
```
3131

3232
This command gets the shared keys for the workspace named MyWorkspace in the resource group named ContosoResourceGroup.
3333

3434
### Example 2: Get shared keys by using the pipeline
35-
```
36-
PS C:\>Get-AzOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace" | Get-AzOperationalInsightsWorkspaceSharedKey
35+
```powershell
36+
Get-AzOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace" | Get-AzOperationalInsightsWorkspaceSharedKey
3737
```
3838

3939
This command gets the workspace named MyWorkspace using the Get-AzOperationalInsightsWorkspace cmdlet, and then passes the workspace to the **Get-AzOperationalInsightsWorkspaceSharedKey** cmdlet.

0 commit comments

Comments
 (0)