Skip to content

Commit 195727b

Browse files
committed
pr comments
1 parent 426a3c2 commit 195727b

File tree

6 files changed

+16
-10
lines changed

6 files changed

+16
-10
lines changed

src/OperationalInsights/OperationalInsights.Autorest/examples/Get-AzOperationalInsightsTable.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ AADDomainServicesAccountManagement /subscriptions/{SUB-id}/resourcegro
1313
1414
```
1515

16+
Get all tables for a given workspace name
17+
1618
### Example 2: Get a table by name
1719
```powershell
1820
Get-AzOperationalInsightsTable -ResourceGroupName {RG-Name} -WorkspaceName {WS-Name} -TableName {Table-Name}
19-
```
2021
2122
Name Id RetentionInDays
2223
---- -- ---------------
23-
{Table-Name} /subscriptions/{SUB-id}/resourcegroups/{RG-Name}/providers/Microsoft.OperationalInsights/workspaces/{WS-Name}/tables/{Table-Name} 90
24+
{Table-Name} /subscriptions/{SUB-id}/resourcegroups/{RG-Name}/providers/Microsoft.OperationalInsights/workspaces/{WS-Name}/tables/{Table-Name} 90
25+
```
26+
27+
Get a specific table by name for a given workspace

src/OperationalInsights/OperationalInsights.Autorest/examples/Get-AzOperationalInsightsWorkspace.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Location Name ETag
88
eastus WS_Name
99
1010
```
11+
Get a Log-Analytics workspace
1112

1213
### Example 2: List all worksapces for a given resource group name
1314
```powershell
@@ -20,4 +21,5 @@ eastus WS_Name1
2021
eastus WS_Name2
2122
eastus WS_Name3
2223
23-
```
24+
```
25+
List al Log-Analytics workspaces for a given resource group name

src/OperationalInsights/OperationalInsights.Autorest/examples/New-AzOperationalInsightsTable.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
### Example 1: Create a new custom table
22
```powershell
3-
43
PS C:\> $col1 = New-AzOperationalInsightsTableColumnObject -Name 'SourceSystem' -Description 'Type of agent the data was collected from. Possible values are OpsManager (Windows agent) or Linux.' -Type 'string'
54
PS C:\> $col2 = New-AzOperationalInsightsTableColumnObject -Name 'TimeGenerated' -Description 'Date and time the record was created.' -Type 'datetime'
65
PS C:\> $schemaColumns = ($col1, $col2)
@@ -13,4 +12,4 @@ dabenhamKuku1_CL
1312
1413
```
1514

16-
Create a new custom table with all needed dependencies
15+
Create a new custom table with all needed dependencies.

src/OperationalInsights/OperationalInsights.Autorest/examples/New-AzOperationalInsightsTableColumnObject.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ DataTypeHint Description DisplayName IsDefaultDisplay
1616
------------ ----------- ----------- ---------------- -------- ----
1717
Date and time the record was created. TimeGenerated
1818
19-
```
19+
```
20+
Creates a TableColumnObject which is required to use "New-AzOperationalInsightsTable" cmdlet.

src/OperationalInsights/OperationalInsights.Autorest/examples/Remove-AzOperationalInsightsTable.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ PS C:\> Remove-AzOperationalInsightsTable -ResourceGroupName {RG-name} -Name {Ta
99
### Example 2: Remove a default 'Heartbeat' table - fail
1010
```powershell
1111
PS C:\> Remove-AzOperationalInsightsTable -ResourceGroupName dabenham-dev -Name Heartbeat -WorkspaceName dabenham-PSH2
12-
1312
Remove-AzOperationalInsightsTable_Delete: No actual change was detected, for table - Heartbeat, both schema and metadata information modifications seems to be missing.
14-
```
1513
1614
Deletion of default tables is not possible
1715
After performing an update to a default table using 'New-AzOperationalInsightsTable' or 'Update-AzOperationalInsightsTable' cmdlets, performing delete will revert the default table to it's original values'
@@ -23,4 +21,5 @@ PS C:\> $tempTable.RetentionInDay
2321
PS C:\> Remove-AzOperationalInsightsTable -ResourceGroupName dabenham-dev -WorkspaceName dabenham-PSH2 -Name Heartbeat
2422
PS C:\> $tempTable = Get-AzOperationalInsightsTable -ResourceGroupName dabenham-dev -WorkspaceName dabenham-PSH2 -Name Heartbeat
2523
PS C:\> $tempTable.RetentionInDay
26-
30
24+
30
25+
```
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
### Example 1: Remove a workapce by resource group name and workspace name
22
```powershell
33
Remove-AzOperationalInsightsWorkspace -ResourceGroupName {RG-Name} -Name {WS-Name}
4-
```
54
65
Confirm
76
Are you sure you want to remove workspace '{WS-Name}' in resource group '{RG-Name}'?
87
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y
8+
```
9+
Removes a Log-Analytics workspace.

0 commit comments

Comments
 (0)