Azure / Azure/azure-powershell
Set-AzureRmOperationalInsightsSavedSearch not working properly
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Cmdlet(s)
Set-AzureRmOperationalInsightsSavedSearch
### PowerShell Version
5.0.10586.494
### Module Version
Azure Powershell 3.0.0
### OS Version
10.0.10586.494
### Description
When you run Set-AzureRmOperationalInsightsSavedSearch to modify a saved search it generates a warning that "Newer data exists."
It looks like there is a bug where the ETAG does not get sent to the resource provider as part of the put command.
### Debug Output
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
PUT
Absolute Uri:
https://management.azure.com/subscriptions/c39e4605-fe9c-4bda-a716-739102ebd6ee/resourcegroups/804735raxsupport/providers/Microsoft.OperationalInsights/workspaces/804735RaxMonitoring/savedSearches/rax
malwaresignatures?api-version=2015-03-20
Headers:
x-ms-client-request-id : 8a855de7-c262-4eb1-ac0e-73efb09a60b5
Body:
{
"properties": {
"Category": "Alert",
"DisplayName": "Malware - Signatures Out of Date",
"Query": "Type=Event",
"Version": 1
}
}
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
Conflict
Headers:
Pragma : no-cache
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-request-id : 8e08cb53-8a0d-4200-9334-539a5454eeb5
x-ms-correlation-request-id : 8e08cb53-8a0d-4200-9334-539a5454eeb5
x-ms-routing-request-id : SOUTHCENTRALUS:20161011T195034Z:8e08cb53-8a0d-4200-9334-539a5454eeb5
Cache-Control : no-cache
Date : Tue, 11 Oct 2016 19:50:33 GMT
Server : Microsoft-IIS/8.5
X-Powered-By : ASP.NET
Body:
Set-AzureRmOperationalInsightsSavedSearch : Newer data exists.
At line:1 char:1
- Set-AzureRmOperationalInsightsSavedSearch -ResourceGroupName 804735ra ...
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [Set-AzureRmOper...ghtsSavedSearch], CloudException
- FullyQualifiedErrorId : Hyak.Common.CloudException,Microsoft.Azure.Commands.OperationalInsights.SetAzureOperationalInsightsSavedSearchCommand
### Script/Steps for Reproduction
Try to modify a saved search
Contributor guide
Assessment
This issue has not been assessed yet.