From 2d0b30df938953cbfb1090706b04a21009538af0 Mon Sep 17 00:00:00 2001 From: "v-yuzhichen@microsoft.com" Date: Thu, 7 Apr 2022 18:28:52 +0800 Subject: [PATCH 1/2] Fix Az.OperationalInsights Syntax Errors --- .../help/Get-AzOperationalInsightsCluster.md | 2 +- .../help/Get-AzOperationalInsightsDataExport.md | 4 ++-- .../help/Get-AzOperationalInsightsLinkedService.md | 2 +- .../help/Get-AzOperationalInsightsLinkedStorageAccount.md | 2 +- .../help/Get-AzOperationalInsightsOperationStatus.md | 2 +- .../New-AzOperationalInsightsApplicationInsightsDataSource.md | 2 +- .../help/New-AzOperationalInsightsCluster.md | 2 +- .../help/New-AzOperationalInsightsComputerGroup.md | 2 +- .../help/New-AzOperationalInsightsDataExport.md | 2 +- .../help/New-AzOperationalInsightsLinkedStorageAccount.md | 4 ++-- .../help/New-AzOperationalInsightsLinuxSyslogDataSource.md | 2 +- .../help/New-AzOperationalInsightsSavedSearch.md | 2 +- .../help/New-AzOperationalInsightsWindowsEventDataSource.md | 2 +- .../help/New-AzOperationalInsightsWorkspace.md | 2 +- .../help/Remove-AzOperationalInsightsCluster.md | 2 +- .../help/Remove-AzOperationalInsightsDataExport.md | 2 +- .../help/Remove-AzOperationalInsightsLinkedService.md | 2 +- .../help/Remove-AzOperationalInsightsLinkedStorageAccount.md | 2 +- .../help/Remove-AzOperationalInsightsSavedSearch.md | 2 +- .../help/Set-AzOperationalInsightsLinkedService.md | 2 +- .../help/Set-AzOperationalInsightsLinkedStorageAccount.md | 4 ++-- .../help/Set-AzOperationalInsightsSavedSearch.md | 2 +- .../help/Set-AzOperationalInsightsWorkspace.md | 2 +- .../help/Update-AzOperationalInsightsCluster.md | 2 +- .../help/Update-AzOperationalInsightsDataExport.md | 2 +- 25 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsCluster.md b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsCluster.md index ce7a36dfbfdc..523322c2414f 100644 --- a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsCluster.md +++ b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsCluster.md @@ -37,7 +37,7 @@ Get or list clusters, list clusters under resource group when "-ClusterName" was ### Example 1 ```powershell -Get-AzOperationalInsightsCluster -ResourceGroupName {rg-name} -ClusterName {cluster-name} +Get-AzOperationalInsightsCluster -ResourceGroupName "rg-name" -ClusterName "cluster-name" ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsDataExport.md b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsDataExport.md index 90b2d9da753b..7cdebcec7b3a 100644 --- a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsDataExport.md +++ b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsDataExport.md @@ -37,7 +37,7 @@ Gets a workspace's Data export by name or all existing workspace's data exports. ### Example 1 ```powershell -Get-AzOperationalInsightsDataExport -ResourceGroupName {rg-name} -WorkspaceName {workspace-name} -DataExportName {dataExportName} +Get-AzOperationalInsightsDataExport -ResourceGroupName rg-name -WorkspaceName workspace-name -DataExportName dataExportName ``` ```output @@ -59,7 +59,7 @@ Gets a workspace's Data export. ### Example 2 ```powershell -Get-AzOperationalInsightsDataExport -ResourceGroupName {rg-name} -WorkspaceName {workspace-name} +Get-AzOperationalInsightsDataExport -ResourceGroupName rg-name -WorkspaceName workspace-name ``` Gets all workspace's Data exports. diff --git a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedService.md b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedService.md index 4565a27218cb..7e44610b0ebf 100644 --- a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedService.md +++ b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedService.md @@ -24,7 +24,7 @@ Get or list linked service for workspace, list when "-LinkedServiceName" was not ### Example 1 ```powershell -Get-AzOperationalInsightsLinkedService -ResourceGroupName {rg-name} -WorkspaceName {workspace-name} -LinkedServiceName cluster +Get-AzOperationalInsightsLinkedService -ResourceGroupName rg-name -WorkspaceName workspace-name -LinkedServiceName cluster ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedStorageAccount.md b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedStorageAccount.md index c0bdc9c95a86..a492970f578c 100644 --- a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedStorageAccount.md +++ b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedStorageAccount.md @@ -24,7 +24,7 @@ Get linked storage account, list all linked storage accounts when "-DataSourceTy ### Example 1 ```powershell -Get-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName {rg-name} -WorkspaceName {workspace-name} +Get-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName rg-name -WorkspaceName workspace-name ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsOperationStatus.md b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsOperationStatus.md index 560deeb8dd12..76f07ce6d4de 100644 --- a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsOperationStatus.md +++ b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsOperationStatus.md @@ -24,7 +24,7 @@ Get the status of a long running azure asynchronous operation. ### Example 1 ```powershell -Get-AzOperationalInsightsOperationStatus -Location {location} -OperationId {op_id} +Get-AzOperationalInsightsOperationStatus -Location location -OperationId op_id ``` gets a long running azure asynchronous operation diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsApplicationInsightsDataSource.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsApplicationInsightsDataSource.md index 8e85edbfa825..0f8876f1a909 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsApplicationInsightsDataSource.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsApplicationInsightsDataSource.md @@ -70,7 +70,7 @@ This command creates an application-insights data source of a given application ### Example 2: Get workspace object and create application-insights data source by the application resource id ```powershell -Get-AzureRmOperationalInsightsWorkspace -Name "MyWorkspace" -ResourceGroupName "ContosoResourceGroup" | New-AzOperationalInsightsApplicationInsightsDataSource -ApplicationResourceId "/subscriptions/e791a474-ee54-46a2-bb06-5e058302d234/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication" +Get-AzOperationalInsightsDeletedWorkspace -Name "MyWorkspace" -ResourceGroupName "ContosoResourceGroup" | New-AzOperationalInsightsApplicationInsightsDataSource -ApplicationResourceId "/subscriptions/e791a474-ee54-46a2-bb06-5e058302d234/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication" ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsCluster.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsCluster.md index 210a20967891..e5dbb5fe5662 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsCluster.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsCluster.md @@ -28,7 +28,7 @@ Create cluster ### Example 1 ```powershell -New-AzOperationalInsightsCluster -ResourceGroupName {rg-name} -ClusterName {cluster-name} -Location eastus -IdentityType SystemAssigned -SkuName CapacityReservation -SkuCapacity 1000 +New-AzOperationalInsightsCluster -ResourceGroupName rg-name -ClusterName cluster-name -Location eastus -IdentityType SystemAssigned -SkuName CapacityReservation -SkuCapacity 1000 ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsComputerGroup.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsComputerGroup.md index 9c007f63d3b3..84ed018eae86 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsComputerGroup.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsComputerGroup.md @@ -32,7 +32,7 @@ Creates a computer group. (autogenerated) ```powershell -New-AzOperationalInsightsComputerGroup -Category 'ContosoSavedSearchCategory' -DisplayName 'ContosoSavedSearchDisplayName' -Query 'Type=Event' -ResourceGroupName myresourcegroup -SavedSearchId 'ContosoSavedSearchId' -Version 1 -WorkspaceName +New-AzOperationalInsightsComputerGroup -Category 'ContosoSavedSearchCategory' -DisplayName 'ContosoSavedSearchDisplayName' -Query 'Type=Event' -ResourceGroupName myresourcegroup -SavedSearchId 'ContosoSavedSearchId' -Version 1 -WorkspaceName 'workspacename' ``` ## PARAMETERS diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsDataExport.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsDataExport.md index 0486aaf3bbd7..0fbff13e3704 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsDataExport.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsDataExport.md @@ -25,7 +25,7 @@ Creates data export for a workspace. ### Example 1 ```powershell -New-AzOperationalInsightsDataExport -ResourceGroupName {rg-name} -WorkspaceName {workspace-name} -DataExportName {dataExportName} -TableNames {table_names} -ResourceId {resource} +New-AzOperationalInsightsDataExport -ResourceGroupName rg-name -WorkspaceName workspace-name -DataExportName dataExportName -TableName table_names -ResourceId {resource} ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsLinkedStorageAccount.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsLinkedStorageAccount.md index 3ad4696942f3..ce1af7455a40 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsLinkedStorageAccount.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsLinkedStorageAccount.md @@ -25,9 +25,9 @@ Create linked storage account for workspace ### Example 1 ```powershell -$account = Get-AzStorageAccount -ResourceGroupName {rg-name} -Name {account-name} +$account = Get-AzStorageAccount -ResourceGroupName rg-name -Name account-name -New-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName {rg-name} -WorkspaceName {workspace-name} -DataSourceType CustomLogs -StorageAccountIds $account.Id +New-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName rg-name -WorkspaceName workspace-name -DataSourceType CustomLogs -StorageAccountId $account.Id ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsLinuxSyslogDataSource.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsLinuxSyslogDataSource.md index 2caa3ab46516..80cf0fc0fe50 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsLinuxSyslogDataSource.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsLinuxSyslogDataSource.md @@ -58,7 +58,7 @@ foreach ($FacilityName in $FacilityNames) { -ResourceGroupName $ResourceGroupName ` -WorkspaceName $WorkspaceName ` -Name "Linux-syslog-$($Count)" ` - -Facility $FacilityName ` + -Facility $FacilityNames ` -CollectEmergency ` -CollectAlert ` -CollectCritical ` diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsSavedSearch.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsSavedSearch.md index 60cca88d51e3..77eeb279acff 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsSavedSearch.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsSavedSearch.md @@ -27,7 +27,7 @@ The **New-AzOperationalInsightsSavedSearch** cmdlet creates a new saved search w ### Example 1: Create a new saved search ```powershell -New-AzOperationalInsightsSavedSearch -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace" -SavedSearchId "ContosoSavedSearchId" -DisplayName "ContosoSavedSearchDisplayName" -Category "ContosoSavedSearchCategory" -Query "*" -Version $Version -Force +New-AzOperationalInsightsSavedSearch -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace" -SavedSearchId "ContosoSavedSearchId" -DisplayName "ContosoSavedSearchDisplayName" -Category "ContosoSavedSearchCategory" -Query "*" -Version 2 -Force ``` This command creates a new saved search. diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsWindowsEventDataSource.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsWindowsEventDataSource.md index da9f3b598040..ea0f9be970aa 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsWindowsEventDataSource.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsWindowsEventDataSource.md @@ -48,7 +48,7 @@ foreach ($EventLogName in $EventLogNames) { -ResourceGroupName $ResourceGroupName ` -WorkspaceName $WorkspaceName ` -Name "Windows-event-$($Count)" ` - -EventLogName $EventLogName ` + -EventLogName $EventLogNames ` -CollectErrors ` -CollectWarnings ` -CollectInformation diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsWorkspace.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsWorkspace.md index 038f5806d1e7..1a575bea1a64 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsWorkspace.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsWorkspace.md @@ -35,7 +35,7 @@ This command creates a standard SKU workspace named MyWorkspace in the resource ### Example 2: Create a workspace and link it to an existing account ```powershell -$OILinkTargets = Get-AzOperationalInsightsLinkTargets +$OILinkTargets = Get-AzOperationalInsightsWorkspace $OILinkTargets[0] | New-AzOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace" ``` diff --git a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsCluster.md b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsCluster.md index 10091c27fd8a..d24838a09cbd 100644 --- a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsCluster.md +++ b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsCluster.md @@ -37,7 +37,7 @@ Delete cluster, only apply to clusters with provisioning state "Succeeded" ### Example 1 ```powershell -Remove-AzOperationalInsightsCluster -ResourceGroupName {rg-name} -ClusterName {cluster-name} +Remove-AzOperationalInsightsCluster -ResourceGroupName rg-name -ClusterName cluster-name ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsDataExport.md b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsDataExport.md index 588bebe5c61d..c00d8d39cbe3 100644 --- a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsDataExport.md +++ b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsDataExport.md @@ -38,7 +38,7 @@ Deletes a data export for a given worksace ### Example 1 ```powershell -Remove-AzOperationalInsightsDataExport -ResourceGroupName {rg-name} -WorkspaceName {workspace-name} -DataExportName {dataExportName} +Remove-AzOperationalInsightsDataExport -ResourceGroupName rg-name -WorkspaceName workspace-name -DataExportName dataExportName ``` removed data export diff --git a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedService.md b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedService.md index b0a10e02a5f4..6a38536ae3d8 100644 --- a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedService.md +++ b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedService.md @@ -25,7 +25,7 @@ Unlink service for workspace ### Example 1 ```powershell -Remove-AzOperationalInsightsLinkedService -ResourceGroupName {rg-name} -WorkspaceName {workspace-name} -LinkedServiceName cluster +Remove-AzOperationalInsightsLinkedService -ResourceGroupName rg-name -WorkspaceName workspace-name -LinkedServiceName cluster ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedStorageAccount.md b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedStorageAccount.md index 3baf31a7eee2..a4e49fa019f2 100644 --- a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedStorageAccount.md +++ b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedStorageAccount.md @@ -25,7 +25,7 @@ Delete linked storage account for workspace ### Example 1 ```powershell -Remove-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName {rg-name} -WorkspaceName {workspace-name} -DataSourceType CustomLogs +Remove-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName rg-name -WorkspaceName workspace-name -DataSourceType CustomLogs ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsSavedSearch.md b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsSavedSearch.md index 6ba452bce97b..1d39d5f4e11b 100644 --- a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsSavedSearch.md +++ b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsSavedSearch.md @@ -25,7 +25,7 @@ The **Remove-AzOperationalInsightsSavedSearch** cmdlet removes a saved search fr ### Example 1: Remove a saved search ```powershell -Remove-AzOperationalInsightsSavedSearch -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace" -SavedSearchId "ContosoSavedSearchId" -Force +Remove-AzOperationalInsightsSavedSearch -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace" -SavedSearchId "ContosoSavedSearchId" ``` This command removes a saved search from the workspace. diff --git a/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedService.md b/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedService.md index 4501dd6eb44e..c74f8599b643 100644 --- a/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedService.md +++ b/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedService.md @@ -26,7 +26,7 @@ link service for workspace ### Example 1 ```powershell -Set-AzOperationalInsightsLinkedService -ResourceGroupName {rg-name} -WorkspaceName {workspace-name} -LinkedServiceName cluster -WriteAccessResourceId /subscriptions/{subscription}/resourceGroups/{rg-name}/providers/Microsoft.OperationalInsights/clusters/{cluster-name} +Set-AzOperationalInsightsLinkedService -ResourceGroupName rg-name -WorkspaceName workspace-name -LinkedServiceName cluster -WriteAccessResourceId /subscriptions/subscription/resourceGroups/rg-name/providers/Microsoft.OperationalInsights/clusters/cluster-name ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedStorageAccount.md b/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedStorageAccount.md index ec9d9cc527cb..dfc55d302deb 100644 --- a/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedStorageAccount.md +++ b/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedStorageAccount.md @@ -25,9 +25,9 @@ Set linked storage account for workspace ### Example 1 ```powershell -$account = Get-AzStorageAccount -ResourceGroupName {rg-name} -Name {account-name} +$account = Get-AzStorageAccount -ResourceGroupName rg-name -Name account-name -Set-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName {rg-name} -WorkspaceName {workspace-name} -DataSourceType CustomLogs -StorageAccountIds $account.Id +Set-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName rg-name -WorkspaceName workspace-name -DataSourceType CustomLogs -StorageAccountId $account.Id ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsSavedSearch.md b/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsSavedSearch.md index 32196f3ef8bb..02f3843d132a 100644 --- a/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsSavedSearch.md +++ b/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsSavedSearch.md @@ -27,7 +27,7 @@ The **Set-AzOperationalInsightsSavedSearch** cmdlet updates a saved search that ### Example 1: Sets a saved search with updated properties ```powershell -Set-AzOperationalInsightsSavedSearch -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace" -SavedSearchId "ContosoSavedSearchId" -DisplayName "ContosoSavedSearchDisplayName" -Category "ContosoSavedSearchCategory" -Query "Type=Event" -Version $Version -ETag "ContosoSavedSearchEtag" +Set-AzOperationalInsightsSavedSearch -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace" -SavedSearchId "ContosoSavedSearchId" -DisplayName "ContosoSavedSearchDisplayName" -Category "ContosoSavedSearchCategory" -Query "Type=Event" -Version 3.1.0 -ETag "ContosoSavedSearchEtag" ``` This command sets a saved search with updated properties. diff --git a/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsWorkspace.md b/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsWorkspace.md index fd63b7164f7c..7a7f307c58e8 100644 --- a/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsWorkspace.md +++ b/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsWorkspace.md @@ -37,7 +37,7 @@ The **Set-AzOperationalInsightsWorkspace** cmdlet changes the configuration of a ### Example 1: Modify a workspace by name ```powershell -Set-AzOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace" -Sku Standard -Tags @{ "Department" = "IT" } +Set-AzOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace" -Sku Standard -Tag @{ "Department" = "IT" } ``` This command modifies the SKU and tags of the workspace named MyWorkspace in the resource group named ContosoResourceGroup. diff --git a/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsCluster.md b/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsCluster.md index e5e946a6a408..f601e2709838 100644 --- a/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsCluster.md +++ b/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsCluster.md @@ -50,7 +50,7 @@ update cluster ### Example 1 ```powershell -Update-AzOperationalInsightsCluster -ResourceGroupName azps-test-group -ClusterName yabo-cluster10 -Location eastus -SkuName CapacityReservation -SkuCapacity 1200 -KeyVaultUri {uri} -KeyName {key-name} -KeyVersion {version} +Update-AzOperationalInsightsCluster -ResourceGroupName azps-test-group -ClusterName yabo-cluster10 -SkuName CapacityReservation -SkuCapacity 1200 -KeyVaultUri uri -KeyName key-name -KeyVersion version ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsDataExport.md b/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsDataExport.md index bdc9ef748505..23e22b4edfac 100644 --- a/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsDataExport.md +++ b/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsDataExport.md @@ -38,7 +38,7 @@ Updates a data export. ### Example 1 ```powershell -Update-AzOperationalInsightsDataExport -ResourceGroupName {rg-name} -WorkspaceName {workspace-name} -DataExportName {dataExportName} -TableNames {table_names} -Enable $true +Update-AzOperationalInsightsDataExport -ResourceGroupName rg-name -WorkspaceName workspace-name -DataExportName dataExportName -TableName table_names -Enable $true ``` ```output From 390be827132ed1735b1faedb0d6399d03b92e186 Mon Sep 17 00:00:00 2001 From: Ziyue Zheng Date: Wed, 27 Apr 2022 19:15:56 +0800 Subject: [PATCH 2/2] Fix Az.OperationalInsights Syntax Errors --- .../help/Get-AzOperationalInsightsDataExport.md | 4 ++-- .../help/Get-AzOperationalInsightsLinkedService.md | 2 +- .../Get-AzOperationalInsightsLinkedStorageAccount.md | 2 +- .../help/Get-AzOperationalInsightsOperationStatus.md | 2 +- ...perationalInsightsApplicationInsightsDataSource.md | 2 +- .../help/New-AzOperationalInsightsCluster.md | 2 +- .../help/New-AzOperationalInsightsComputerGroup.md | 2 +- .../help/New-AzOperationalInsightsDataExport.md | 4 ++-- .../New-AzOperationalInsightsLinkedStorageAccount.md | 4 ++-- .../help/New-AzOperationalInsightsSavedSearch.md | 2 +- .../help/New-AzOperationalInsightsWorkspace.md | 11 ----------- .../help/Remove-AzOperationalInsightsCluster.md | 6 +----- .../help/Remove-AzOperationalInsightsDataExport.md | 2 +- .../help/Remove-AzOperationalInsightsLinkedService.md | 6 +----- ...emove-AzOperationalInsightsLinkedStorageAccount.md | 6 +----- .../help/Set-AzOperationalInsightsLinkedService.md | 2 +- .../Set-AzOperationalInsightsLinkedStorageAccount.md | 4 ++-- .../help/Set-AzOperationalInsightsSavedSearch.md | 2 +- .../help/Update-AzOperationalInsightsCluster.md | 2 +- .../help/Update-AzOperationalInsightsDataExport.md | 4 ++-- 20 files changed, 24 insertions(+), 47 deletions(-) diff --git a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsDataExport.md b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsDataExport.md index 7cdebcec7b3a..388d0b1d474b 100644 --- a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsDataExport.md +++ b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsDataExport.md @@ -37,7 +37,7 @@ Gets a workspace's Data export by name or all existing workspace's data exports. ### Example 1 ```powershell -Get-AzOperationalInsightsDataExport -ResourceGroupName rg-name -WorkspaceName workspace-name -DataExportName dataExportName +Get-AzOperationalInsightsDataExport -ResourceGroupName "rg-name" -WorkspaceName "workspace-name" -DataExportName "dataExportName" ``` ```output @@ -59,7 +59,7 @@ Gets a workspace's Data export. ### Example 2 ```powershell -Get-AzOperationalInsightsDataExport -ResourceGroupName rg-name -WorkspaceName workspace-name +Get-AzOperationalInsightsDataExport -ResourceGroupName "rg-name" -WorkspaceName "workspace-name" ``` Gets all workspace's Data exports. diff --git a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedService.md b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedService.md index 7e44610b0ebf..df7682369ffa 100644 --- a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedService.md +++ b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedService.md @@ -24,7 +24,7 @@ Get or list linked service for workspace, list when "-LinkedServiceName" was not ### Example 1 ```powershell -Get-AzOperationalInsightsLinkedService -ResourceGroupName rg-name -WorkspaceName workspace-name -LinkedServiceName cluster +Get-AzOperationalInsightsLinkedService -ResourceGroupName "rg-name" -WorkspaceName "workspace-name" -LinkedServiceName cluster ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedStorageAccount.md b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedStorageAccount.md index a492970f578c..5f4983f1d391 100644 --- a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedStorageAccount.md +++ b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsLinkedStorageAccount.md @@ -24,7 +24,7 @@ Get linked storage account, list all linked storage accounts when "-DataSourceTy ### Example 1 ```powershell -Get-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName rg-name -WorkspaceName workspace-name +Get-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName "rg-name" -WorkspaceName "workspace-name" ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsOperationStatus.md b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsOperationStatus.md index 76f07ce6d4de..f7e5e834536a 100644 --- a/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsOperationStatus.md +++ b/src/OperationalInsights/OperationalInsights/help/Get-AzOperationalInsightsOperationStatus.md @@ -24,7 +24,7 @@ Get the status of a long running azure asynchronous operation. ### Example 1 ```powershell -Get-AzOperationalInsightsOperationStatus -Location location -OperationId op_id +Get-AzOperationalInsightsOperationStatus -Location "location" -OperationId "op_id" ``` gets a long running azure asynchronous operation diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsApplicationInsightsDataSource.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsApplicationInsightsDataSource.md index 0f8876f1a909..30ab44f1fa39 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsApplicationInsightsDataSource.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsApplicationInsightsDataSource.md @@ -70,7 +70,7 @@ This command creates an application-insights data source of a given application ### Example 2: Get workspace object and create application-insights data source by the application resource id ```powershell -Get-AzOperationalInsightsDeletedWorkspace -Name "MyWorkspace" -ResourceGroupName "ContosoResourceGroup" | New-AzOperationalInsightsApplicationInsightsDataSource -ApplicationResourceId "/subscriptions/e791a474-ee54-46a2-bb06-5e058302d234/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication" +Get-AzOperationalInsightsWorkspace -Name "MyWorkspace" -ResourceGroupName "ContosoResourceGroup" | New-AzOperationalInsightsApplicationInsightsDataSource -ApplicationResourceId "/subscriptions/e791a474-ee54-46a2-bb06-5e058302d234/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication" ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsCluster.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsCluster.md index e5dbb5fe5662..7ab8e836ce1b 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsCluster.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsCluster.md @@ -28,7 +28,7 @@ Create cluster ### Example 1 ```powershell -New-AzOperationalInsightsCluster -ResourceGroupName rg-name -ClusterName cluster-name -Location eastus -IdentityType SystemAssigned -SkuName CapacityReservation -SkuCapacity 1000 +New-AzOperationalInsightsCluster -ResourceGroupName "rg-name" -ClusterName "cluster-name" -Location eastus -IdentityType SystemAssigned -SkuName CapacityReservation -SkuCapacity 1000 ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsComputerGroup.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsComputerGroup.md index 84ed018eae86..9c007f63d3b3 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsComputerGroup.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsComputerGroup.md @@ -32,7 +32,7 @@ Creates a computer group. (autogenerated) ```powershell -New-AzOperationalInsightsComputerGroup -Category 'ContosoSavedSearchCategory' -DisplayName 'ContosoSavedSearchDisplayName' -Query 'Type=Event' -ResourceGroupName myresourcegroup -SavedSearchId 'ContosoSavedSearchId' -Version 1 -WorkspaceName 'workspacename' +New-AzOperationalInsightsComputerGroup -Category 'ContosoSavedSearchCategory' -DisplayName 'ContosoSavedSearchDisplayName' -Query 'Type=Event' -ResourceGroupName myresourcegroup -SavedSearchId 'ContosoSavedSearchId' -Version 1 -WorkspaceName ``` ## PARAMETERS diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsDataExport.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsDataExport.md index 0fbff13e3704..bcd1f13a909f 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsDataExport.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsDataExport.md @@ -25,14 +25,14 @@ Creates data export for a workspace. ### Example 1 ```powershell -New-AzOperationalInsightsDataExport -ResourceGroupName rg-name -WorkspaceName workspace-name -DataExportName dataExportName -TableName table_names -ResourceId {resource} +New-AzOperationalInsightsDataExport -ResourceGroupName "rg-name" -WorkspaceName "workspace-name" -DataExportName "dataExportName" -TableName "table_name" -ResourceId "resource_id" ``` ```output Name : {dataExportName} Id : /subscriptions/{subscription}/resourcegroups/{rg-name}/providers/microsoft.operationalinsights/workspaces/{workspace-name}/dataexports/{dataExportName} DataExportId : {GUID} -TableNames : {table_names} +TableNames : {table_name} ResourceId : /subscriptions/{subscription}/resourceGroups/{rg-name}/providers/Microsoft.EventHub/namespaces/{eventHub_namespace} DataExportType : EventHub EventHubName : diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsLinkedStorageAccount.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsLinkedStorageAccount.md index ce1af7455a40..8f950acf65eb 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsLinkedStorageAccount.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsLinkedStorageAccount.md @@ -25,9 +25,9 @@ Create linked storage account for workspace ### Example 1 ```powershell -$account = Get-AzStorageAccount -ResourceGroupName rg-name -Name account-name +$account = Get-AzStorageAccount -ResourceGroupName "rg-name" -Name "storage-account" -New-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName rg-name -WorkspaceName workspace-name -DataSourceType CustomLogs -StorageAccountId $account.Id +New-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName "rg-name" -WorkspaceName "workspace-name" -DataSourceType CustomLogs -StorageAccountId $account.Id ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsSavedSearch.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsSavedSearch.md index 77eeb279acff..73d22982013d 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsSavedSearch.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsSavedSearch.md @@ -27,7 +27,7 @@ The **New-AzOperationalInsightsSavedSearch** cmdlet creates a new saved search w ### Example 1: Create a new saved search ```powershell -New-AzOperationalInsightsSavedSearch -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace" -SavedSearchId "ContosoSavedSearchId" -DisplayName "ContosoSavedSearchDisplayName" -Category "ContosoSavedSearchCategory" -Query "*" -Version 2 -Force +New-AzOperationalInsightsSavedSearch -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace" -SavedSearchId "ContosoSavedSearchId" -DisplayName "ContosoSavedSearchDisplayName" -Category "ContosoSavedSearchCategory" -Query "*" -Version 1 -Force ``` This command creates a new saved search. diff --git a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsWorkspace.md b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsWorkspace.md index 1a575bea1a64..c5d488fbbf51 100644 --- a/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsWorkspace.md +++ b/src/OperationalInsights/OperationalInsights/help/New-AzOperationalInsightsWorkspace.md @@ -33,17 +33,6 @@ New-AzOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Na This command creates a standard SKU workspace named MyWorkspace in the resource group named ContosoResourceGroup. -### Example 2: Create a workspace and link it to an existing account -```powershell -$OILinkTargets = Get-AzOperationalInsightsWorkspace - -$OILinkTargets[0] | New-AzOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace" -``` - -The first command uses the Get-AzOperationalInsightsLinkTargets cmdlet to get Operational Insights account link targets, and then stores them in the $OILinkTargets variable. -The second command passes the first account link target in $OILinkTargets to the **New-AzOperationalInsightsWorkspace** cmdlet by using the pipeline operator. -The command creates a standard SKU workspace named MyWorkspace that is linked to the first Operational Insights account in $OILinkTargets. - ## PARAMETERS ### -DefaultProfile diff --git a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsCluster.md b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsCluster.md index d24838a09cbd..85508280725d 100644 --- a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsCluster.md +++ b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsCluster.md @@ -37,11 +37,7 @@ Delete cluster, only apply to clusters with provisioning state "Succeeded" ### Example 1 ```powershell -Remove-AzOperationalInsightsCluster -ResourceGroupName rg-name -ClusterName cluster-name -``` - -```output -true +Remove-AzOperationalInsightsCluster -ResourceGroupName "rg-name" -ClusterName "cluster-name" ``` Delete cluster diff --git a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsDataExport.md b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsDataExport.md index c00d8d39cbe3..2efa31e79ea4 100644 --- a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsDataExport.md +++ b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsDataExport.md @@ -38,7 +38,7 @@ Deletes a data export for a given worksace ### Example 1 ```powershell -Remove-AzOperationalInsightsDataExport -ResourceGroupName rg-name -WorkspaceName workspace-name -DataExportName dataExportName +Remove-AzOperationalInsightsDataExport -ResourceGroupName "rg-name" -WorkspaceName "workspace-name" -DataExportName "dataExportName" ``` removed data export diff --git a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedService.md b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedService.md index 6a38536ae3d8..b5da2c3e6e39 100644 --- a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedService.md +++ b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedService.md @@ -25,11 +25,7 @@ Unlink service for workspace ### Example 1 ```powershell -Remove-AzOperationalInsightsLinkedService -ResourceGroupName rg-name -WorkspaceName workspace-name -LinkedServiceName cluster -``` - -```output -true +Remove-AzOperationalInsightsLinkedService -ResourceGroupName "rg-name" -WorkspaceName "workspace-name" -LinkedServiceName cluster ``` Unlink linked service for workspace diff --git a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedStorageAccount.md b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedStorageAccount.md index a4e49fa019f2..75c6c6fd01d1 100644 --- a/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedStorageAccount.md +++ b/src/OperationalInsights/OperationalInsights/help/Remove-AzOperationalInsightsLinkedStorageAccount.md @@ -25,11 +25,7 @@ Delete linked storage account for workspace ### Example 1 ```powershell -Remove-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName rg-name -WorkspaceName workspace-name -DataSourceType CustomLogs -``` - -```output -True +Remove-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName "rg-name" -WorkspaceName "workspace-name" -DataSourceType CustomLogs ``` Delete linked storage account with type "CustomLogs" for {workspace-name} diff --git a/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedService.md b/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedService.md index c74f8599b643..b965a0153a50 100644 --- a/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedService.md +++ b/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedService.md @@ -26,7 +26,7 @@ link service for workspace ### Example 1 ```powershell -Set-AzOperationalInsightsLinkedService -ResourceGroupName rg-name -WorkspaceName workspace-name -LinkedServiceName cluster -WriteAccessResourceId /subscriptions/subscription/resourceGroups/rg-name/providers/Microsoft.OperationalInsights/clusters/cluster-name +Set-AzOperationalInsightsLinkedService -ResourceGroupName "rg-name" -WorkspaceName "workspace-name" -LinkedServiceName cluster -WriteAccessResourceId "/subscriptions/{subscription}/resourceGroups/{rg-name}/providers/Microsoft.OperationalInsights/clusters/{cluster-name}" ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedStorageAccount.md b/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedStorageAccount.md index dfc55d302deb..6f2d1fe701c6 100644 --- a/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedStorageAccount.md +++ b/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsLinkedStorageAccount.md @@ -25,9 +25,9 @@ Set linked storage account for workspace ### Example 1 ```powershell -$account = Get-AzStorageAccount -ResourceGroupName rg-name -Name account-name +$account = Get-AzStorageAccount -ResourceGroupName "rg-name" -Name "storage-account" -Set-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName rg-name -WorkspaceName workspace-name -DataSourceType CustomLogs -StorageAccountId $account.Id +Set-AzOperationalInsightsLinkedStorageAccount -ResourceGroupName "rg-name" -WorkspaceName "workspace-name" -DataSourceType CustomLogs -StorageAccountId $account.Id ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsSavedSearch.md b/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsSavedSearch.md index 02f3843d132a..5b6da01bf5d1 100644 --- a/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsSavedSearch.md +++ b/src/OperationalInsights/OperationalInsights/help/Set-AzOperationalInsightsSavedSearch.md @@ -27,7 +27,7 @@ The **Set-AzOperationalInsightsSavedSearch** cmdlet updates a saved search that ### Example 1: Sets a saved search with updated properties ```powershell -Set-AzOperationalInsightsSavedSearch -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace" -SavedSearchId "ContosoSavedSearchId" -DisplayName "ContosoSavedSearchDisplayName" -Category "ContosoSavedSearchCategory" -Query "Type=Event" -Version 3.1.0 -ETag "ContosoSavedSearchEtag" +Set-AzOperationalInsightsSavedSearch -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "ContosoWorkspace" -SavedSearchId "ContosoSavedSearchId" -DisplayName "ContosoSavedSearchDisplayName" -Category "ContosoSavedSearchCategory" -Query "Type=Event" -Version 1 -ETag "ContosoSavedSearchEtag" ``` This command sets a saved search with updated properties. diff --git a/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsCluster.md b/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsCluster.md index f601e2709838..e3b67eb7c0e8 100644 --- a/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsCluster.md +++ b/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsCluster.md @@ -50,7 +50,7 @@ update cluster ### Example 1 ```powershell -Update-AzOperationalInsightsCluster -ResourceGroupName azps-test-group -ClusterName yabo-cluster10 -SkuName CapacityReservation -SkuCapacity 1200 -KeyVaultUri uri -KeyName key-name -KeyVersion version +Update-AzOperationalInsightsCluster -ResourceGroupName "rg-name" -ClusterName "cluster-name" -SkuName CapacityReservation -SkuCapacity 1200 -KeyVaultUri "uri" -KeyName "key-name" -KeyVersion "version" ``` ```output diff --git a/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsDataExport.md b/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsDataExport.md index 23e22b4edfac..587a77634bdf 100644 --- a/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsDataExport.md +++ b/src/OperationalInsights/OperationalInsights/help/Update-AzOperationalInsightsDataExport.md @@ -38,7 +38,7 @@ Updates a data export. ### Example 1 ```powershell -Update-AzOperationalInsightsDataExport -ResourceGroupName rg-name -WorkspaceName workspace-name -DataExportName dataExportName -TableName table_names -Enable $true +Update-AzOperationalInsightsDataExport -ResourceGroupName "rg-name" -WorkspaceName "workspace-name" -DataExportName "dataExportName" -TableName "table_name" -Enable $true ``` ```output @@ -46,7 +46,7 @@ Name : {dataExportName} Id : /subscriptions/{subscription}/resourcegroups/{rg-name}/providers/microsoft.operationalinsights/workspaces/{workspace-name}/dataexports/{dataExportName} Type : Microsoft.OperationalInsights/workspaces/export DataExportId : {GUID} -TableNames : {table_names} +TableNames : {table_name} ResourceId : /subscriptions/{resource_subscription}/resourceGroups/{resource_rg}/providers/Microsoft.Storage/storageAc counts/{storage_name} DataExportType : StorageAccount