diff --git a/src/Monitor/Monitor.Test/Alerts/AddAzureRmMetricAlertRuleV2Tests.cs b/src/Monitor/Monitor.Test/Alerts/AddAzureRmMetricAlertRuleV2Tests.cs index 0809ea89b6b9..66c8c2a19e93 100644 --- a/src/Monitor/Monitor.Test/Alerts/AddAzureRmMetricAlertRuleV2Tests.cs +++ b/src/Monitor/Monitor.Test/Alerts/AddAzureRmMetricAlertRuleV2Tests.cs @@ -106,6 +106,36 @@ public void NewMetricAlertRuleV2ByTargetResourceScopeAndActionGroupParametersPro It.IsAny()), Times.Once); } + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void NewMetricAlertRuleV2ByTargetResourceScopeActionGroupAndActionGroupIdParametersProcessing() + { + _cmdlet.TargetResourceScope = new[] { "resourceId1", "resourceId2" }; + _cmdlet.ActionGroup = new[] { + new ActivityLogAlertActionGroup("actionGroupId1", new Dictionary {{"key1", "value1"}}), + new ActivityLogAlertActionGroup("actionGroupId2", null) + }; + + _cmdlet.ActionGroupId = new[] { "actionGroupId1", "actionGroupId3" }; + + _cmdlet.ExecuteCmdlet(); + + Func verify = metricAlert => + { + Assert.Contains(_cmdlet.ActionGroup[0].ActionGroupId, metricAlert.Actions.Select(action => action.ActionGroupId)); + Assert.Contains(_cmdlet.ActionGroup[0].WebhookProperties, metricAlert.Actions.Select(action => action.WebHookProperties)); + Assert.Contains(_cmdlet.ActionGroup[1].ActionGroupId, metricAlert.Actions.Select(action => action.ActionGroupId)); + Assert.Contains(_cmdlet.ActionGroupId[1], metricAlert.Actions.Select(action => action.ActionGroupId)); + Assert.Equal(3, metricAlert.Actions.Count); + Assert.Contains(_cmdlet.TargetResourceScope[0], metricAlert.Scopes); + Assert.Contains(_cmdlet.TargetResourceScope[1], metricAlert.Scopes); + return true; + }; + + this._insightsMetricAlertsOperationsMock.Verify(o => o.CreateOrUpdateWithHttpMessagesAsync(It.IsAny(), It.IsAny(), It.Is(r => verify(r)), It.IsAny>>(), + It.IsAny()), Times.Once); + } + [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void NewMetricAlertRuleV2WithWebtestConditionProcessing() diff --git a/src/Monitor/Monitor.Test/ScenarioTests/AlertsTests.cs b/src/Monitor/Monitor.Test/ScenarioTests/AlertsTests.cs index 5115e9de0f02..e5320be26226 100644 --- a/src/Monitor/Monitor.Test/ScenarioTests/AlertsTests.cs +++ b/src/Monitor/Monitor.Test/ScenarioTests/AlertsTests.cs @@ -120,6 +120,13 @@ public void TestAddAzureRmMetricAlertRuleV2WithActionGroupId() TestsController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmMetricAlertRuleV2-ActionGroupId"); } + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestDisableAzureRmMetricAlertRuleV2WithActionGroups() + { + TestsController.NewInstance.RunPsTest(_logger, "Test-DisableAzureRmMetricAlertRuleV2WithActionGroups"); + } + [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAzureRmDynamicMetricAlertRuleV2() diff --git a/src/Monitor/Monitor.Test/ScenarioTests/AlertsTests.ps1 b/src/Monitor/Monitor.Test/ScenarioTests/AlertsTests.ps1 index 2f4bb86b9441..663c69b8e1f0 100644 --- a/src/Monitor/Monitor.Test/ScenarioTests/AlertsTests.ps1 +++ b/src/Monitor/Monitor.Test/ScenarioTests/AlertsTests.ps1 @@ -391,10 +391,7 @@ function Test-AddAzureRmMetricAlertRuleV2-ActionGroupId $actionGroup1 = New-AzActionGroup -ActionGroupId $NewActionGroup1.Id $condition = New-AzMetricAlertRuleV2Criteria -MetricName "UsedCapacity" -Operator GreaterThan -Threshold 8 -TimeAggregation Average try - { - # Test - cannot create metric alert with action group id and action group - Assert-Throws { Add-AzMetricAlertRuleV2 -Name $ruleName -ResourceGroupName $rgname -WindowSize 01:00:00 -Frequency 00:05:00 -TargetResourceId $targetResourceId -Condition $condition -ActionGroup $actionGroup1 -ActionGroupId $NewActionGroup1.Id, $NewActionGroup1.Id -Severity 3 } "Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided." - + { # Test - create metric alert by action group id $actual = Add-AzMetricAlertRuleV2 -Name $ruleName -ResourceGroupName $rgname -WindowSize 01:00:00 -Frequency 00:05:00 -TargetResourceId $targetResourceId -Condition $condition -ActionGroupId $NewActionGroup1.Id, $NewActionGroup2.Id -Severity 3 Assert-AreEqual $actual.Name $ruleName @@ -411,6 +408,60 @@ function Test-AddAzureRmMetricAlertRuleV2-ActionGroupId <# .SYNOPSIS +Tests disabling a GenV2 metric alert rule with action groups. +#> +function Test-DisableAzureRmMetricAlertRuleV2WithActionGroups +{ + # Setup + $sub = Get-AzContext + $subscription = $sub.subscription.subscriptionId + $rgname = Get-ResourceGroupName + $location =Get-ProviderLocation ResourceManagement + $resourceName = Get-ResourceName + $ruleWithActionGroupIdName = Get-ResourceName + $ruleByResourceId = Get-ResourceName + $ruleByResourceScope = Get-ResourceName + $actionGroupName1 = Get-ResourceName + $actionGroupName2 = Get-ResourceName + $targetResourceId = '/subscriptions/'+$subscription+'/resourceGroups/'+$rgname+'/providers/Microsoft.Storage/storageAccounts/'+$resourceName + $targetResourceScope = $targetResourceId + $targetResourceType = 'Microsoft.Storage/storageAccounts' + New-AzResourceGroup -Name $rgname -Location $location -Force + New-AzStorageAccount -ResourceGroupName $rgname -Name $resourceName -Location $location -Type Standard_GRS + $email = New-AzActionGroupReceiver -Name 'user1' -EmailReceiver -EmailAddress 'user1@example.com' + $newActionGroup1 = Set-AzureRmActionGroup -Name $actionGroupName1 -ResourceGroup $rgname -ShortName ASTG -Receiver $email + $newActionGroup2 = Set-AzureRmActionGroup -Name $actionGroupName2 -ResourceGroup $rgname -ShortName ASTG -Receiver $email + $condition = New-AzMetricAlertRuleV2Criteria -MetricName "UsedCapacity" -Operator GreaterThan -Threshold 8 -TimeAggregation Average + try + { + # Test - disable metric alert with resource id and action group + $actual = Add-AzMetricAlertRuleV2 -Name $ruleByResourceId -ResourceGroupName $rgname -WindowSize 01:00:00 -Frequency 00:05:00 -TargetResourceId $targetResourceId -Condition $condition -Severity 3 -ActionGroupId $newActionGroup1.Id, $newActionGroup2.Id + $actual = Get-AzMetricAlertRuleV2 -ResourceGroupName $rgname -Name $ruleByResourceId | Add-AzMetricAlertRuleV2 -DisableRule + Assert-AreEqual $actual.Name $ruleByResourceId + Assert-AreEqual $actual.Actions[0].ActionGroupId $NewActionGroup1.Id + Assert-AreEqual $actual.Actions[1].ActionGroupId $NewActionGroup2.Id + + # Test - disable metric alert with scope and action group + $actual = Add-AzMetricAlertRuleV2 -Name $ruleByResourceScope -ResourceGroupName $rgname -WindowSize 01:00:00 -Frequency 00:05:00 -TargetResourceScope $targetResourceScope -TargetResourceType $targetResourceType -TargetResourceRegion $location -Condition $condition -Severity 3 -ActionGroupId $newActionGroup1.Id, $newActionGroup2.Id + $actual = Get-AzMetricAlertRuleV2 -ResourceGroupName $rgname -Name $ruleByResourceScope | Add-AzMetricAlertRuleV2 -DisableRule + Assert-AreEqual $actual.Name $ruleByResourceScope + Assert-AreEqual $actual.Actions[0].ActionGroupId $NewActionGroup1.Id + Assert-AreEqual $actual.Actions[1].ActionGroupId $NewActionGroup2.Id + } + finally + { + # Cleanup + Remove-AzMetricAlertRuleV2 -ResourceGroupName $rgname -Name $ruleByResourceId + Remove-AzMetricAlertRuleV2 -ResourceGroupName $rgname -Name $ruleByResourceScope + Remove-AzActionGroup -ResourceGroupName $rgname -Name $actionGroupName1 + Remove-AzActionGroup -ResourceGroupName $rgname -Name $actionGroupName2 + Remove-AzureRmStorageAccount -ResourceGroupName $rgName -Name $resourceName + Remove-AzResourceGroup -Name $rgname -Force + } +} + + <# +.SYNOPSIS Tests adding a GenV2 dyanmic metric alert rule. #> function Test-AddAzureRmMetricAlertRuleV2-DynamicThreshold diff --git a/src/Monitor/Monitor.Test/SessionRecords/Microsoft.Azure.Commands.Insights.Test.ScenarioTests.AlertsTests/TestAddAzureRmMetricAlertRuleV2WithActionGroupId.json b/src/Monitor/Monitor.Test/SessionRecords/Microsoft.Azure.Commands.Insights.Test.ScenarioTests.AlertsTests/TestAddAzureRmMetricAlertRuleV2WithActionGroupId.json index aa06610085b9..1d45209f6b78 100644 --- a/src/Monitor/Monitor.Test/SessionRecords/Microsoft.Azure.Commands.Insights.Test.ScenarioTests.AlertsTests/TestAddAzureRmMetricAlertRuleV2WithActionGroupId.json +++ b/src/Monitor/Monitor.Test/SessionRecords/Microsoft.Azure.Commands.Insights.Test.ScenarioTests.AlertsTests/TestAddAzureRmMetricAlertRuleV2WithActionGroupId.json @@ -1,22 +1,22 @@ { "Entries": [ { - "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourcegroups/ps1722?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlZ3JvdXBzL3BzMTcyMj9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourcegroups/ps9344?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlZ3JvdXBzL3BzOTM0ND9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "12351748-f5b4-4a45-acef-9b1f1f48b17d" + "132e4dab-4958-49d8-afdc-986e0ae433da" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28325.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.5" + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.20" ], "Content-Type": [ "application/json; charset=utf-8" @@ -36,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "17ae832f-797d-471f-b7de-c3ee2da27f43" + "033a428c-f712-47b7-b05c-8a90308d2340" ], "x-ms-correlation-request-id": [ - "17ae832f-797d-471f-b7de-c3ee2da27f43" + "033a428c-f712-47b7-b05c-8a90308d2340" ], "x-ms-routing-request-id": [ - "UKSOUTH2:20200204T154720Z:17ae832f-797d-471f-b7de-c3ee2da27f43" + "NORTHEUROPE:20200809T141959Z:033a428c-f712-47b7-b05c-8a90308d2340" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,7 +51,7 @@ "nosniff" ], "Date": [ - "Tue, 04 Feb 2020 15:47:20 GMT" + "Sun, 09 Aug 2020 14:19:59 GMT" ], "Content-Length": [ "165" @@ -63,26 +63,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722\",\r\n \"name\": \"ps1722\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344\",\r\n \"name\": \"ps9344\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/Microsoft.Storage/storageAccounts/ps7969?api-version=2017-10-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzMTcyMi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3BzNzk2OT9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344/providers/Microsoft.Storage/storageAccounts/ps4215?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTM0NC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3BzNDIxNT9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GRS\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"location\": \"West US\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "d34611d0-1b02-4610-b233-cd3f7d1ddb23" + "838760c9-dcd3-4220-bfe7-8cd74be1c079" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28325.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.Version2017.10.01.StorageManagementClient/1.3.5" + "Microsoft.Azure.Management.Storage.Version2017.10.01.StorageManagementClient/1.3.20" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,13 +99,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/providers/Microsoft.Storage/locations/westus/asyncoperations/faab6ad2-7dc4-4cb9-93e7-58a7cd06a740?monitor=true&api-version=2017-10-01" + "https://management.azure.com/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/providers/Microsoft.Storage/locations/westus/asyncoperations/11d72829-efcc-4035-8a5f-928465422344?monitor=true&api-version=2017-10-01" ], "Retry-After": [ "17" ], "x-ms-request-id": [ - "faab6ad2-7dc4-4cb9-93e7-58a7cd06a740" + "11d72829-efcc-4035-8a5f-928465422344" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -117,16 +117,16 @@ "1199" ], "x-ms-correlation-request-id": [ - "367e8644-4b9a-44fa-bb02-ff97592f7960" + "53fdba94-96d9-44d7-860a-8e2507b78b6a" ], "x-ms-routing-request-id": [ - "UKSOUTH2:20200204T154726Z:367e8644-4b9a-44fa-bb02-ff97592f7960" + "NORTHEUROPE:20200809T142005Z:53fdba94-96d9-44d7-860a-8e2507b78b6a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 04 Feb 2020 15:47:25 GMT" + "Sun, 09 Aug 2020 14:20:05 GMT" ], "Content-Type": [ "text/plain; charset=utf-8" @@ -142,16 +142,16 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/providers/Microsoft.Storage/locations/westus/asyncoperations/faab6ad2-7dc4-4cb9-93e7-58a7cd06a740?monitor=true&api-version=2017-10-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzL2FzeW5jb3BlcmF0aW9ucy9mYWFiNmFkMi03ZGM0LTRjYjktOTNlNy01OGE3Y2QwNmE3NDA/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/providers/Microsoft.Storage/locations/westus/asyncoperations/11d72829-efcc-4035-8a5f-928465422344?monitor=true&api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzL2FzeW5jb3BlcmF0aW9ucy8xMWQ3MjgyOS1lZmNjLTQwMzUtOGE1Zi05Mjg0NjU0MjIzNDQ/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMTctMTAtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.28325.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.Version2017.10.01.StorageManagementClient/1.3.5" + "Microsoft.Azure.Management.Storage.Version2017.10.01.StorageManagementClient/1.3.20" ] }, "ResponseHeaders": { @@ -162,7 +162,7 @@ "no-cache" ], "x-ms-request-id": [ - "72d2292e-3eb9-4075-8a73-9aeac2840e51" + "f4f1be68-f0a9-423c-927d-4a70740295e5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -174,16 +174,16 @@ "11999" ], "x-ms-correlation-request-id": [ - "93be39f1-e3ae-408c-bbab-7a1bd536497e" + "f946cdf2-b688-4772-9bb1-1abe8b10b63c" ], "x-ms-routing-request-id": [ - "UKSOUTH2:20200204T154743Z:93be39f1-e3ae-408c-bbab-7a1bd536497e" + "NORTHEUROPE:20200809T142022Z:f946cdf2-b688-4772-9bb1-1abe8b10b63c" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 04 Feb 2020 15:47:43 GMT" + "Sun, 09 Aug 2020 14:20:22 GMT" ], "Content-Length": [ "1074" @@ -195,26 +195,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/Microsoft.Storage/storageAccounts/ps7969\",\r\n \"name\": \"ps7969\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-02-04T15:47:25.5743844Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-02-04T15:47:25.5743844Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-02-04T15:47:25.5118825Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://ps7969.blob.core.windows.net/\",\r\n \"queue\": \"https://ps7969.queue.core.windows.net/\",\r\n \"table\": \"https://ps7969.table.core.windows.net/\",\r\n \"file\": \"https://ps7969.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"eastus\",\r\n \"statusOfSecondary\": \"available\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344/providers/Microsoft.Storage/storageAccounts/ps4215\",\r\n \"name\": \"ps4215\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-08-09T14:20:04.7395222Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-08-09T14:20:04.7395222Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-08-09T14:20:04.6613749Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://ps4215.blob.core.windows.net/\",\r\n \"queue\": \"https://ps4215.queue.core.windows.net/\",\r\n \"table\": \"https://ps4215.table.core.windows.net/\",\r\n \"file\": \"https://ps4215.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"eastus\",\r\n \"statusOfSecondary\": \"available\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/microsoft.insights/actionGroups/ps4420?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzMTcyMi9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL2FjdGlvbkdyb3Vwcy9wczQ0MjA/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344/providers/microsoft.insights/actionGroups/ps5211?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTM0NC9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL2FjdGlvbkdyb3Vwcy9wczUyMTE/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"groupShortName\": \"ASTG\",\r\n \"enabled\": true,\r\n \"emailReceivers\": [\r\n {\r\n \"name\": \"user1\",\r\n \"emailAddress\": \"user1@example.com\",\r\n \"useCommonAlertSchema\": false\r\n }\r\n ],\r\n \"smsReceivers\": [],\r\n \"webhookReceivers\": [],\r\n \"itsmReceivers\": [],\r\n \"azureAppPushReceivers\": [],\r\n \"automationRunbookReceivers\": [],\r\n \"voiceReceivers\": [],\r\n \"logicAppReceivers\": [],\r\n \"azureFunctionReceivers\": [],\r\n \"armRoleReceivers\": []\r\n },\r\n \"location\": \"Global\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "dad0dd17-19da-42c0-bc92-7009b3b5e482" + "c76e5abe-2c64-488a-b831-03cd2865169c" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28325.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.24.1.0" + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -234,7 +234,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ - "c53bf024-7c95-4094-b579-2f320f22308d" + "ba988f33-0174-407f-b8c8-ab255301d35a" ], "Server": [ "Microsoft-IIS/10.0" @@ -243,16 +243,16 @@ "1199" ], "x-ms-correlation-request-id": [ - "d13fd078-cc58-4ff3-afb0-e3815190a3d8" + "68eac1a0-cdb4-4adb-b05b-06e23790669c" ], "x-ms-routing-request-id": [ - "UKSOUTH2:20200204T154749Z:d13fd078-cc58-4ff3-afb0-e3815190a3d8" + "NORTHEUROPE:20200809T142029Z:68eac1a0-cdb4-4adb-b05b-06e23790669c" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 04 Feb 2020 15:47:49 GMT" + "Sun, 09 Aug 2020 14:20:29 GMT" ], "Content-Length": [ "632" @@ -264,26 +264,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/microsoft.insights/actionGroups/ps4420\",\r\n \"type\": \"Microsoft.Insights/ActionGroups\",\r\n \"name\": \"ps4420\",\r\n \"location\": \"Global\",\r\n \"kind\": null,\r\n \"tags\": null,\r\n \"properties\": {\r\n \"groupShortName\": \"ASTG\",\r\n \"enabled\": true,\r\n \"emailReceivers\": [\r\n {\r\n \"name\": \"user1\",\r\n \"emailAddress\": \"user1@example.com\",\r\n \"status\": \"Enabled\",\r\n \"useCommonAlertSchema\": false\r\n }\r\n ],\r\n \"smsReceivers\": [],\r\n \"webhookReceivers\": [],\r\n \"itsmReceivers\": [],\r\n \"azureAppPushReceivers\": [],\r\n \"automationRunbookReceivers\": [],\r\n \"voiceReceivers\": [],\r\n \"logicAppReceivers\": [],\r\n \"azureFunctionReceivers\": [],\r\n \"armRoleReceivers\": []\r\n },\r\n \"identity\": null\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344/providers/microsoft.insights/actionGroups/ps5211\",\r\n \"type\": \"Microsoft.Insights/ActionGroups\",\r\n \"name\": \"ps5211\",\r\n \"location\": \"Global\",\r\n \"kind\": null,\r\n \"tags\": null,\r\n \"properties\": {\r\n \"groupShortName\": \"ASTG\",\r\n \"enabled\": true,\r\n \"emailReceivers\": [\r\n {\r\n \"name\": \"user1\",\r\n \"emailAddress\": \"user1@example.com\",\r\n \"status\": \"Enabled\",\r\n \"useCommonAlertSchema\": false\r\n }\r\n ],\r\n \"smsReceivers\": [],\r\n \"webhookReceivers\": [],\r\n \"itsmReceivers\": [],\r\n \"azureAppPushReceivers\": [],\r\n \"automationRunbookReceivers\": [],\r\n \"voiceReceivers\": [],\r\n \"logicAppReceivers\": [],\r\n \"azureFunctionReceivers\": [],\r\n \"armRoleReceivers\": []\r\n },\r\n \"identity\": null\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/microsoft.insights/actionGroups/ps4420?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzMTcyMi9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL2FjdGlvbkdyb3Vwcy9wczQ0MjA/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344/providers/microsoft.insights/actionGroups/ps5211?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTM0NC9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL2FjdGlvbkdyb3Vwcy9wczUyMTE/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"groupShortName\": \"ASTG\",\r\n \"enabled\": true,\r\n \"emailReceivers\": [\r\n {\r\n \"name\": \"user1\",\r\n \"emailAddress\": \"user1@example.com\",\r\n \"useCommonAlertSchema\": false\r\n }\r\n ],\r\n \"smsReceivers\": [],\r\n \"webhookReceivers\": [],\r\n \"itsmReceivers\": [],\r\n \"azureAppPushReceivers\": [],\r\n \"automationRunbookReceivers\": [],\r\n \"voiceReceivers\": [],\r\n \"logicAppReceivers\": [],\r\n \"azureFunctionReceivers\": [],\r\n \"armRoleReceivers\": []\r\n },\r\n \"location\": \"Global\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "c47d7448-5028-48c2-af06-453aa9b162c2" + "6e4d57f2-706a-4b4e-923e-5d655521d9b3" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28325.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.24.1.0" + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -303,7 +303,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ - "f8c884d2-496c-40bd-9586-40826e1e3aeb" + "3dcfec95-7ca0-44f6-ba44-4b3369c9be8b" ], "Server": [ "Microsoft-IIS/10.0" @@ -312,16 +312,16 @@ "1198" ], "x-ms-correlation-request-id": [ - "13a9f552-2f8b-48f9-811b-ade7f5c3790b" + "6cb6c143-9440-4541-b455-e12ce9e61c64" ], "x-ms-routing-request-id": [ - "UKSOUTH2:20200204T154750Z:13a9f552-2f8b-48f9-811b-ade7f5c3790b" + "NORTHEUROPE:20200809T142030Z:6cb6c143-9440-4541-b455-e12ce9e61c64" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 04 Feb 2020 15:47:49 GMT" + "Sun, 09 Aug 2020 14:20:30 GMT" ], "Content-Length": [ "632" @@ -333,32 +333,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/microsoft.insights/actionGroups/ps4420\",\r\n \"type\": \"Microsoft.Insights/ActionGroups\",\r\n \"name\": \"ps4420\",\r\n \"location\": \"Global\",\r\n \"kind\": null,\r\n \"tags\": null,\r\n \"properties\": {\r\n \"groupShortName\": \"ASTG\",\r\n \"enabled\": true,\r\n \"emailReceivers\": [\r\n {\r\n \"name\": \"user1\",\r\n \"emailAddress\": \"user1@example.com\",\r\n \"status\": \"Enabled\",\r\n \"useCommonAlertSchema\": false\r\n }\r\n ],\r\n \"smsReceivers\": [],\r\n \"webhookReceivers\": [],\r\n \"itsmReceivers\": [],\r\n \"azureAppPushReceivers\": [],\r\n \"automationRunbookReceivers\": [],\r\n \"voiceReceivers\": [],\r\n \"logicAppReceivers\": [],\r\n \"azureFunctionReceivers\": [],\r\n \"armRoleReceivers\": []\r\n },\r\n \"identity\": null\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344/providers/microsoft.insights/actionGroups/ps5211\",\r\n \"type\": \"Microsoft.Insights/ActionGroups\",\r\n \"name\": \"ps5211\",\r\n \"location\": \"Global\",\r\n \"kind\": null,\r\n \"tags\": null,\r\n \"properties\": {\r\n \"groupShortName\": \"ASTG\",\r\n \"enabled\": true,\r\n \"emailReceivers\": [\r\n {\r\n \"name\": \"user1\",\r\n \"emailAddress\": \"user1@example.com\",\r\n \"status\": \"Enabled\",\r\n \"useCommonAlertSchema\": false\r\n }\r\n ],\r\n \"smsReceivers\": [],\r\n \"webhookReceivers\": [],\r\n \"itsmReceivers\": [],\r\n \"azureAppPushReceivers\": [],\r\n \"automationRunbookReceivers\": [],\r\n \"voiceReceivers\": [],\r\n \"logicAppReceivers\": [],\r\n \"azureFunctionReceivers\": [],\r\n \"armRoleReceivers\": []\r\n },\r\n \"identity\": null\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/Microsoft.Insights/metricAlerts/ps5417?api-version=2018-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzMTcyMi9wcm92aWRlcnMvTWljcm9zb2Z0Lkluc2lnaHRzL21ldHJpY0FsZXJ0cy9wczU0MTc/YXBpLXZlcnNpb249MjAxOC0wMy0wMQ==", + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344/providers/Microsoft.Insights/metricAlerts/ps7849?api-version=2018-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTM0NC9wcm92aWRlcnMvTWljcm9zb2Z0Lkluc2lnaHRzL21ldHJpY0FsZXJ0cy9wczc4NDk/YXBpLXZlcnNpb249MjAxOC0wMy0wMQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"This new Metric alert rule was created from Powershell version: 1.5.0\",\r\n \"severity\": 3,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/Microsoft.Storage/storageAccounts/ps7969\"\r\n ],\r\n \"evaluationFrequency\": \"PT5M\",\r\n \"windowSize\": \"PT1H\",\r\n \"criteria\": {\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\",\r\n \"allOf\": [\r\n {\r\n \"criterionType\": \"StaticThresholdCriterion\",\r\n \"operator\": \"GreaterThan\",\r\n \"threshold\": 8.0,\r\n \"name\": \"metric1\",\r\n \"metricName\": \"UsedCapacity\",\r\n \"timeAggregation\": \"Average\"\r\n }\r\n ]\r\n },\r\n \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/microsoft.insights/actionGroups/ps4420\"\r\n },\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/microsoft.insights/actionGroups/ps4420\"\r\n }\r\n ]\r\n },\r\n \"location\": \"global\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"This new Metric alert rule was created from Powershell version: 2.0.2\",\r\n \"severity\": 3,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344/providers/Microsoft.Storage/storageAccounts/ps4215\"\r\n ],\r\n \"evaluationFrequency\": \"PT5M\",\r\n \"windowSize\": \"PT1H\",\r\n \"criteria\": {\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\",\r\n \"allOf\": [\r\n {\r\n \"criterionType\": \"StaticThresholdCriterion\",\r\n \"operator\": \"GreaterThan\",\r\n \"threshold\": 8.0,\r\n \"name\": \"metric1\",\r\n \"metricName\": \"UsedCapacity\",\r\n \"timeAggregation\": \"Average\"\r\n }\r\n ]\r\n },\r\n \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344/providers/microsoft.insights/actionGroups/ps5211\"\r\n }\r\n ]\r\n },\r\n \"location\": \"global\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "fdb209ea-cf09-4655-85e8-c3f5b8a42830" + "96a9367a-52a1-4294-bd3f-eb755716a0d8" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28325.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.24.1.0" + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "1169" + "999" ] }, "ResponseHeaders": { @@ -369,10 +369,11 @@ "no-cache" ], "x-ms-request-id": [ - "b94a5d0f-209f-461f-9d57-671dfa02457f" + "047e7f5c-2577-4909-8342-e40811294cbc", + "047e7f5c-2577-4909-8342-e40811294cbc" ], "api-supported-versions": [ - "2017-09-01-preview, 2018-03-01" + "1.0, 2.0, 2017-09-01-preview, 2018-03-01" ], "Server": [ "Microsoft-IIS/10.0" @@ -387,10 +388,10 @@ "299" ], "x-ms-correlation-request-id": [ - "b94a5d0f-209f-461f-9d57-671dfa02457f" + "047e7f5c-2577-4909-8342-e40811294cbc" ], "x-ms-routing-request-id": [ - "UKSOUTH2:20200204T154754Z:b94a5d0f-209f-461f-9d57-671dfa02457f" + "NORTHEUROPE:20200809T142035Z:047e7f5c-2577-4909-8342-e40811294cbc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -399,10 +400,10 @@ "nosniff" ], "Date": [ - "Tue, 04 Feb 2020 15:47:54 GMT" + "Sun, 09 Aug 2020 14:20:35 GMT" ], "Content-Length": [ - "1526" + "1356" ], "Content-Type": [ "application/json; charset=utf-8" @@ -411,26 +412,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"location\": \"global\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"name\": \"ps5417\",\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/Microsoft.Insights/metricAlerts/ps5417\",\r\n \"properties\": {\r\n \"description\": \"This new Metric alert rule was created from Powershell version: 1.5.0\",\r\n \"severity\": 3,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/Microsoft.Storage/storageAccounts/ps7969\"\r\n ],\r\n \"evaluationFrequency\": \"PT5M\",\r\n \"windowSize\": \"PT1H\",\r\n \"templateType\": 8,\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": 8.0,\r\n \"name\": \"metric1\",\r\n \"metricNamespace\": \"microsoft.storage/storageaccounts\",\r\n \"metricName\": \"UsedCapacity\",\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n },\r\n \"targetResourceType\": \"microsoft.storage/storageaccounts\",\r\n \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/microsoft.insights/actionGroups/ps4420\"\r\n },\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/microsoft.insights/actionGroups/ps4420\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseBody": "{\r\n \"location\": \"global\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"name\": \"ps7849\",\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344/providers/Microsoft.Insights/metricAlerts/ps7849\",\r\n \"properties\": {\r\n \"description\": \"This new Metric alert rule was created from Powershell version: 2.0.2\",\r\n \"severity\": 3,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344/providers/Microsoft.Storage/storageAccounts/ps4215\"\r\n ],\r\n \"evaluationFrequency\": \"PT5M\",\r\n \"windowSize\": \"PT1H\",\r\n \"templateType\": 8,\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": 8.0,\r\n \"name\": \"metric1\",\r\n \"metricNamespace\": \"microsoft.storage/storageaccounts\",\r\n \"metricName\": \"UsedCapacity\",\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n },\r\n \"targetResourceType\": \"microsoft.storage/storageaccounts\",\r\n \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344/providers/microsoft.insights/actionGroups/ps5211\"\r\n }\r\n ]\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/Microsoft.Insights/metricAlerts/ps5417?api-version=2018-03-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzMTcyMi9wcm92aWRlcnMvTWljcm9zb2Z0Lkluc2lnaHRzL21ldHJpY0FsZXJ0cy9wczU0MTc/YXBpLXZlcnNpb249MjAxOC0wMy0wMQ==", + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344/providers/Microsoft.Insights/metricAlerts/ps7849?api-version=2018-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTM0NC9wcm92aWRlcnMvTWljcm9zb2Z0Lkluc2lnaHRzL21ldHJpY0FsZXJ0cy9wczc4NDk/YXBpLXZlcnNpb249MjAxOC0wMy0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9b2429ab-e9b0-4e66-882d-c19375ea596c" + "5f8de348-90ce-4280-845d-a48f7f8857fd" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28325.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.24.1.0" + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" ] }, "ResponseHeaders": { @@ -441,10 +442,11 @@ "no-cache" ], "x-ms-request-id": [ - "fb243557-eaf5-4e88-9fb0-43997f9ce93b" + "031152f0-0205-4b04-8e77-b9a96f47a648", + "031152f0-0205-4b04-8e77-b9a96f47a648" ], "api-supported-versions": [ - "2017-09-01-preview, 2018-03-01" + "1.0, 2.0, 2017-09-01-preview, 2018-03-01" ], "Server": [ "Microsoft-IIS/10.0" @@ -459,10 +461,10 @@ "14999" ], "x-ms-correlation-request-id": [ - "fb243557-eaf5-4e88-9fb0-43997f9ce93b" + "031152f0-0205-4b04-8e77-b9a96f47a648" ], "x-ms-routing-request-id": [ - "UKSOUTH2:20200204T154757Z:fb243557-eaf5-4e88-9fb0-43997f9ce93b" + "NORTHEUROPE:20200809T142038Z:031152f0-0205-4b04-8e77-b9a96f47a648" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -471,7 +473,7 @@ "nosniff" ], "Date": [ - "Tue, 04 Feb 2020 15:47:57 GMT" + "Sun, 09 Aug 2020 14:20:38 GMT" ], "Expires": [ "-1" @@ -484,22 +486,22 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/microsoft.insights/actionGroups/ps4420?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzMTcyMi9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL2FjdGlvbkdyb3Vwcy9wczQ0MjA/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344/providers/microsoft.insights/actionGroups/ps5211?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTM0NC9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL2FjdGlvbkdyb3Vwcy9wczUyMTE/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "35286a10-1d79-43f5-86c5-88328ceea150" + "c3447230-7fea-43df-a475-80feb4cece66" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28325.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.24.1.0" + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" ] }, "ResponseHeaders": { @@ -513,7 +515,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-request-id": [ - "78f2f084-f4e9-480e-8182-b44655c52beb" + "67e09f36-4fb3-4f60-88c5-4630b300f81a" ], "Server": [ "Microsoft-IIS/10.0" @@ -522,16 +524,16 @@ "14998" ], "x-ms-correlation-request-id": [ - "f5e97ca0-8d01-4814-8b39-0c52c0f76189" + "7aed7a8e-04db-4325-a1ad-54a1948a09dc" ], "x-ms-routing-request-id": [ - "UKSOUTH2:20200204T154759Z:f5e97ca0-8d01-4814-8b39-0c52c0f76189" + "NORTHEUROPE:20200809T142040Z:7aed7a8e-04db-4325-a1ad-54a1948a09dc" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 04 Feb 2020 15:47:59 GMT" + "Sun, 09 Aug 2020 14:20:40 GMT" ], "Expires": [ "-1" @@ -544,22 +546,22 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps1722/providers/Microsoft.Storage/storageAccounts/ps7969?api-version=2017-10-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzMTcyMi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3BzNzk2OT9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9344/providers/Microsoft.Storage/storageAccounts/ps4215?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTM0NC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3BzNDIxNT9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9eced379-a059-460b-88ab-e6f51a3ec14e" + "2a6fb55c-30bc-45d8-9ac9-3476437d5f1a" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28325.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.Version2017.10.01.StorageManagementClient/1.3.5" + "Microsoft.Azure.Management.Storage.Version2017.10.01.StorageManagementClient/1.3.20" ] }, "ResponseHeaders": { @@ -570,28 +572,28 @@ "no-cache" ], "x-ms-request-id": [ - "b280f0a9-e2e3-48f4-aabd-838fa654e7c0" + "08a13728-fbfe-4b5a-9899-5818038e4694" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], "Server": [ "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], "x-ms-correlation-request-id": [ - "f9b49682-bd13-4c28-b8b9-7d6a7dc50d9f" + "cd73cd2c-3e7c-4127-881f-f439b8223db4" ], "x-ms-routing-request-id": [ - "UKSOUTH2:20200204T154802Z:f9b49682-bd13-4c28-b8b9-7d6a7dc50d9f" + "NORTHEUROPE:20200809T142044Z:cd73cd2c-3e7c-4127-881f-f439b8223db4" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 04 Feb 2020 15:48:01 GMT" + "Sun, 09 Aug 2020 14:20:44 GMT" ], "Content-Type": [ "text/plain; charset=utf-8" @@ -607,22 +609,22 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourcegroups/ps1722?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlZ3JvdXBzL3BzMTcyMj9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourcegroups/ps9344?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlZ3JvdXBzL3BzOTM0ND9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "18f326df-b81a-45c8-b968-868a2c2d7e87" + "a71cf974-188a-467b-9775-3d8f0e75bf0f" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.28325.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.5" + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.20" ] }, "ResponseHeaders": { @@ -633,79 +635,22 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE3MjItV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + "https://management.azure.com/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkzNDQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-request-id": [ - "b54feb1e-2246-4b96-8082-9eeef139ca21" - ], - "x-ms-correlation-request-id": [ - "b54feb1e-2246-4b96-8082-9eeef139ca21" - ], - "x-ms-routing-request-id": [ - "UKSOUTH2:20200204T154804Z:b54feb1e-2246-4b96-8082-9eeef139ca21" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 04 Feb 2020 15:48:03 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE3MjItV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpFM01qSXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28325.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.5" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE3MjItV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" + "14996" ], "x-ms-request-id": [ - "575442b8-8a34-41b5-afa3-fe4ba6aa26f9" + "cfc81363-dad6-4da4-9d67-5bbad675e4a8" ], "x-ms-correlation-request-id": [ - "575442b8-8a34-41b5-afa3-fe4ba6aa26f9" + "cfc81363-dad6-4da4-9d67-5bbad675e4a8" ], "x-ms-routing-request-id": [ - "UKSOUTH2:20200204T154820Z:575442b8-8a34-41b5-afa3-fe4ba6aa26f9" + "NORTHEUROPE:20200809T142046Z:cfc81363-dad6-4da4-9d67-5bbad675e4a8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -714,7 +659,7 @@ "nosniff" ], "Date": [ - "Tue, 04 Feb 2020 15:48:20 GMT" + "Sun, 09 Aug 2020 14:20:46 GMT" ], "Expires": [ "-1" @@ -727,16 +672,16 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE3MjItV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpFM01qSXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkzNDQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXprek5EUXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.28325.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.5" + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.20" ] }, "ResponseHeaders": { @@ -747,22 +692,22 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE3MjItV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + "https://management.azure.com/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkzNDQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" + "11999" ], "x-ms-request-id": [ - "cfa169a5-f052-4cbf-919c-77cc9b9d6737" + "6a946673-5381-45e9-a2b0-5bf7402222c4" ], "x-ms-correlation-request-id": [ - "cfa169a5-f052-4cbf-919c-77cc9b9d6737" + "6a946673-5381-45e9-a2b0-5bf7402222c4" ], "x-ms-routing-request-id": [ - "UKSOUTH2:20200204T154835Z:cfa169a5-f052-4cbf-919c-77cc9b9d6737" + "NORTHEUROPE:20200809T142102Z:6a946673-5381-45e9-a2b0-5bf7402222c4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -771,7 +716,7 @@ "nosniff" ], "Date": [ - "Tue, 04 Feb 2020 15:48:35 GMT" + "Sun, 09 Aug 2020 14:21:01 GMT" ], "Expires": [ "-1" @@ -784,16 +729,16 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE3MjItV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpFM01qSXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkzNDQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXprek5EUXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.28325.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.5" + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.20" ] }, "ResponseHeaders": { @@ -804,22 +749,22 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE3MjItV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + "https://management.azure.com/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkzNDQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11998" ], "x-ms-request-id": [ - "849b8562-f0ec-421f-a85d-c597459bb9da" + "082f8bc5-22b1-4935-9127-c767d3ca8a22" ], "x-ms-correlation-request-id": [ - "849b8562-f0ec-421f-a85d-c597459bb9da" + "082f8bc5-22b1-4935-9127-c767d3ca8a22" ], "x-ms-routing-request-id": [ - "UKSOUTH2:20200204T154850Z:849b8562-f0ec-421f-a85d-c597459bb9da" + "NORTHEUROPE:20200809T142117Z:082f8bc5-22b1-4935-9127-c767d3ca8a22" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -828,7 +773,7 @@ "nosniff" ], "Date": [ - "Tue, 04 Feb 2020 15:48:50 GMT" + "Sun, 09 Aug 2020 14:21:16 GMT" ], "Expires": [ "-1" @@ -841,16 +786,16 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE3MjItV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpFM01qSXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkzNDQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXprek5EUXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.28325.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.5" + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.20" ] }, "ResponseHeaders": { @@ -861,16 +806,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11997" ], "x-ms-request-id": [ - "111d016e-ee30-4a21-9ef3-32cf8c03476a" + "91710820-1e6b-4dab-8789-795bb644f190" ], "x-ms-correlation-request-id": [ - "111d016e-ee30-4a21-9ef3-32cf8c03476a" + "91710820-1e6b-4dab-8789-795bb644f190" ], "x-ms-routing-request-id": [ - "UKSOUTH2:20200204T154906Z:111d016e-ee30-4a21-9ef3-32cf8c03476a" + "NORTHEUROPE:20200809T142132Z:91710820-1e6b-4dab-8789-795bb644f190" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -879,7 +824,7 @@ "nosniff" ], "Date": [ - "Tue, 04 Feb 2020 15:49:05 GMT" + "Sun, 09 Aug 2020 14:21:32 GMT" ], "Expires": [ "-1" @@ -892,16 +837,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzE3MjItV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpFM01qSXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkzNDQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXprek5EUXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.28325.01", + "FxVersion/4.6.29017.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.5" + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.20" ] }, "ResponseHeaders": { @@ -912,16 +857,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11996" ], "x-ms-request-id": [ - "1667a77f-63ec-43d6-86e5-3be73079b898" + "c9acd6db-915c-49a6-8a54-1c1df3b21c7b" ], "x-ms-correlation-request-id": [ - "1667a77f-63ec-43d6-86e5-3be73079b898" + "c9acd6db-915c-49a6-8a54-1c1df3b21c7b" ], "x-ms-routing-request-id": [ - "UKSOUTH2:20200204T154906Z:1667a77f-63ec-43d6-86e5-3be73079b898" + "NORTHEUROPE:20200809T142133Z:c9acd6db-915c-49a6-8a54-1c1df3b21c7b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -930,7 +875,7 @@ "nosniff" ], "Date": [ - "Tue, 04 Feb 2020 15:49:06 GMT" + "Sun, 09 Aug 2020 14:21:33 GMT" ], "Expires": [ "-1" @@ -945,10 +890,10 @@ ], "Names": { "Test-AddAzureRmMetricAlertRuleV2-ActionGroupId": [ - "ps1722", - "ps7969", - "ps5417", - "ps4420" + "ps9344", + "ps4215", + "ps7849", + "ps5211" ] }, "Variables": { diff --git a/src/Monitor/Monitor.Test/SessionRecords/Microsoft.Azure.Commands.Insights.Test.ScenarioTests.AlertsTests/TestDisableAzureRmMetricAlertRuleV2WithActionGroups.json b/src/Monitor/Monitor.Test/SessionRecords/Microsoft.Azure.Commands.Insights.Test.ScenarioTests.AlertsTests/TestDisableAzureRmMetricAlertRuleV2WithActionGroups.json new file mode 100644 index 000000000000..6f2018900bf1 --- /dev/null +++ b/src/Monitor/Monitor.Test/SessionRecords/Microsoft.Azure.Commands.Insights.Test.ScenarioTests.AlertsTests/TestDisableAzureRmMetricAlertRuleV2WithActionGroups.json @@ -0,0 +1,1418 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourcegroups/ps9298?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlZ3JvdXBzL3BzOTI5OD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "85ac3e9a-5342-4378-9979-0a5313631be0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.20" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "cd6b036f-efd2-4986-833c-bc11bcbbf41b" + ], + "x-ms-correlation-request-id": [ + "cd6b036f-efd2-4986-833c-bc11bcbbf41b" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141345Z:cd6b036f-efd2-4986-833c-bc11bcbbf41b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:13:45 GMT" + ], + "Content-Length": [ + "165" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298\",\r\n \"name\": \"ps9298\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Storage/storageAccounts/ps5666?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTI5OC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3BzNTY2Nj9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GRS\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1262b17e-7656-4045-afd9-2531e3816277" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.Version2017.10.01.StorageManagementClient/1.3.20" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "99" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/providers/Microsoft.Storage/locations/westus/asyncoperations/160eb2ae-6a57-4431-a6db-610d3a28c286?monitor=true&api-version=2017-10-01" + ], + "Retry-After": [ + "17" + ], + "x-ms-request-id": [ + "160eb2ae-6a57-4431-a6db-610d3a28c286" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "971ce1c7-3bec-4870-8763-80ccede4fbee" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141352Z:971ce1c7-3bec-4870-8763-80ccede4fbee" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:13:51 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/providers/Microsoft.Storage/locations/westus/asyncoperations/160eb2ae-6a57-4431-a6db-610d3a28c286?monitor=true&api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzL2FzeW5jb3BlcmF0aW9ucy8xNjBlYjJhZS02YTU3LTQ0MzEtYTZkYi02MTBkM2EyOGMyODY/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMTctMTAtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.Version2017.10.01.StorageManagementClient/1.3.20" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "54d582db-a979-439f-aaea-1b5416530b79" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "cea51cf5-957d-415a-9007-2b1905ee7868" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141409Z:cea51cf5-957d-415a-9007-2b1905ee7868" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:14:09 GMT" + ], + "Content-Length": [ + "1074" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Storage/storageAccounts/ps5666\",\r\n \"name\": \"ps5666\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": false,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-08-09T14:13:51.7983021Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-08-09T14:13:51.7983021Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-08-09T14:13:51.7357289Z\",\r\n \"primaryEndpoints\": {\r\n \"blob\": \"https://ps5666.blob.core.windows.net/\",\r\n \"queue\": \"https://ps5666.queue.core.windows.net/\",\r\n \"table\": \"https://ps5666.table.core.windows.net/\",\r\n \"file\": \"https://ps5666.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"eastus\",\r\n \"statusOfSecondary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps957?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTI5OC9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL2FjdGlvbkdyb3Vwcy9wczk1Nz9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"groupShortName\": \"ASTG\",\r\n \"enabled\": true,\r\n \"emailReceivers\": [\r\n {\r\n \"name\": \"user1\",\r\n \"emailAddress\": \"user1@example.com\",\r\n \"useCommonAlertSchema\": false\r\n }\r\n ],\r\n \"smsReceivers\": [],\r\n \"webhookReceivers\": [],\r\n \"itsmReceivers\": [],\r\n \"azureAppPushReceivers\": [],\r\n \"automationRunbookReceivers\": [],\r\n \"voiceReceivers\": [],\r\n \"logicAppReceivers\": [],\r\n \"azureFunctionReceivers\": [],\r\n \"armRoleReceivers\": []\r\n },\r\n \"location\": \"Global\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e7ef0620-09cb-4c69-9cdd-74124e4c1532" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "541" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "9e286917-3d01-472f-9cee-82eb9151f8e2" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "444bdb7d-e62e-4c83-a43c-9ea69d5b7d7e" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141416Z:444bdb7d-e62e-4c83-a43c-9ea69d5b7d7e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:14:15 GMT" + ], + "Content-Length": [ + "630" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps957\",\r\n \"type\": \"Microsoft.Insights/ActionGroups\",\r\n \"name\": \"ps957\",\r\n \"location\": \"Global\",\r\n \"kind\": null,\r\n \"tags\": null,\r\n \"properties\": {\r\n \"groupShortName\": \"ASTG\",\r\n \"enabled\": true,\r\n \"emailReceivers\": [\r\n {\r\n \"name\": \"user1\",\r\n \"emailAddress\": \"user1@example.com\",\r\n \"status\": \"Enabled\",\r\n \"useCommonAlertSchema\": false\r\n }\r\n ],\r\n \"smsReceivers\": [],\r\n \"webhookReceivers\": [],\r\n \"itsmReceivers\": [],\r\n \"azureAppPushReceivers\": [],\r\n \"automationRunbookReceivers\": [],\r\n \"voiceReceivers\": [],\r\n \"logicAppReceivers\": [],\r\n \"azureFunctionReceivers\": [],\r\n \"armRoleReceivers\": []\r\n },\r\n \"identity\": null\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps8082?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTI5OC9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL2FjdGlvbkdyb3Vwcy9wczgwODI/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"groupShortName\": \"ASTG\",\r\n \"enabled\": true,\r\n \"emailReceivers\": [\r\n {\r\n \"name\": \"user1\",\r\n \"emailAddress\": \"user1@example.com\",\r\n \"useCommonAlertSchema\": false\r\n }\r\n ],\r\n \"smsReceivers\": [],\r\n \"webhookReceivers\": [],\r\n \"itsmReceivers\": [],\r\n \"azureAppPushReceivers\": [],\r\n \"automationRunbookReceivers\": [],\r\n \"voiceReceivers\": [],\r\n \"logicAppReceivers\": [],\r\n \"azureFunctionReceivers\": [],\r\n \"armRoleReceivers\": []\r\n },\r\n \"location\": \"Global\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3395af39-871d-4e6b-9619-85c1917518f5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "541" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "a8194650-b812-4a98-bdda-b4b51de34e65" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "d3034f85-de97-48d6-b36f-93f0ba0ed64d" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141419Z:d3034f85-de97-48d6-b36f-93f0ba0ed64d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:14:18 GMT" + ], + "Content-Length": [ + "632" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps8082\",\r\n \"type\": \"Microsoft.Insights/ActionGroups\",\r\n \"name\": \"ps8082\",\r\n \"location\": \"Global\",\r\n \"kind\": null,\r\n \"tags\": null,\r\n \"properties\": {\r\n \"groupShortName\": \"ASTG\",\r\n \"enabled\": true,\r\n \"emailReceivers\": [\r\n {\r\n \"name\": \"user1\",\r\n \"emailAddress\": \"user1@example.com\",\r\n \"status\": \"Enabled\",\r\n \"useCommonAlertSchema\": false\r\n }\r\n ],\r\n \"smsReceivers\": [],\r\n \"webhookReceivers\": [],\r\n \"itsmReceivers\": [],\r\n \"azureAppPushReceivers\": [],\r\n \"automationRunbookReceivers\": [],\r\n \"voiceReceivers\": [],\r\n \"logicAppReceivers\": [],\r\n \"azureFunctionReceivers\": [],\r\n \"armRoleReceivers\": []\r\n },\r\n \"identity\": null\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Insights/metricAlerts/ps6677?api-version=2018-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTI5OC9wcm92aWRlcnMvTWljcm9zb2Z0Lkluc2lnaHRzL21ldHJpY0FsZXJ0cy9wczY2Nzc/YXBpLXZlcnNpb249MjAxOC0wMy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"This new Metric alert rule was created from Powershell version: 2.0.2\",\r\n \"severity\": 3,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Storage/storageAccounts/ps5666\"\r\n ],\r\n \"evaluationFrequency\": \"PT5M\",\r\n \"windowSize\": \"PT1H\",\r\n \"criteria\": {\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\",\r\n \"allOf\": [\r\n {\r\n \"criterionType\": \"StaticThresholdCriterion\",\r\n \"operator\": \"GreaterThan\",\r\n \"threshold\": 8.0,\r\n \"name\": \"metric1\",\r\n \"metricName\": \"UsedCapacity\",\r\n \"timeAggregation\": \"Average\"\r\n }\r\n ]\r\n },\r\n \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps957\"\r\n },\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps8082\"\r\n }\r\n ]\r\n },\r\n \"location\": \"global\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "15c06b60-4d23-422e-a70d-98e9529817e3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1168" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "8fb043d3-00e3-4404-8db8-960881246d10", + "8fb043d3-00e3-4404-8db8-960881246d10" + ], + "api-supported-versions": [ + "1.0, 2.0, 2017-09-01-preview, 2018-03-01" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "299" + ], + "x-ms-correlation-request-id": [ + "8fb043d3-00e3-4404-8db8-960881246d10" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141426Z:8fb043d3-00e3-4404-8db8-960881246d10" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:14:25 GMT" + ], + "Content-Length": [ + "1525" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"global\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"name\": \"ps6677\",\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Insights/metricAlerts/ps6677\",\r\n \"properties\": {\r\n \"description\": \"This new Metric alert rule was created from Powershell version: 2.0.2\",\r\n \"severity\": 3,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Storage/storageAccounts/ps5666\"\r\n ],\r\n \"evaluationFrequency\": \"PT5M\",\r\n \"windowSize\": \"PT1H\",\r\n \"templateType\": 8,\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": 8.0,\r\n \"name\": \"metric1\",\r\n \"metricNamespace\": \"microsoft.storage/storageaccounts\",\r\n \"metricName\": \"UsedCapacity\",\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n },\r\n \"targetResourceType\": \"microsoft.storage/storageaccounts\",\r\n \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps957\"\r\n },\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps8082\"\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Insights/metricAlerts/ps6677?api-version=2018-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTI5OC9wcm92aWRlcnMvTWljcm9zb2Z0Lkluc2lnaHRzL21ldHJpY0FsZXJ0cy9wczY2Nzc/YXBpLXZlcnNpb249MjAxOC0wMy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"This new Metric alert rule was created from Powershell version: 2.0.2\",\r\n \"severity\": 3,\r\n \"enabled\": false,\r\n \"scopes\": [\r\n \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Storage/storageAccounts/ps5666\"\r\n ],\r\n \"evaluationFrequency\": \"PT5M\",\r\n \"windowSize\": \"PT1H\",\r\n \"criteria\": {\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\",\r\n \"allOf\": [\r\n {\r\n \"criterionType\": \"StaticThresholdCriterion\",\r\n \"operator\": \"GreaterThan\",\r\n \"threshold\": 8.0,\r\n \"name\": \"metric1\",\r\n \"metricName\": \"UsedCapacity\",\r\n \"metricNamespace\": \"microsoft.storage/storageaccounts\",\r\n \"timeAggregation\": \"Average\"\r\n }\r\n ]\r\n },\r\n \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps957\"\r\n },\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps8082\"\r\n }\r\n ]\r\n },\r\n \"location\": \"global\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "56aeabc0-c0ba-48f9-bc33-11086160fab1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1236" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "678df3da-1b43-438c-99a6-5fe3e5704d08", + "678df3da-1b43-438c-99a6-5fe3e5704d08" + ], + "api-supported-versions": [ + "1.0, 2.0, 2017-09-01-preview, 2018-03-01" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "298" + ], + "x-ms-correlation-request-id": [ + "678df3da-1b43-438c-99a6-5fe3e5704d08" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141428Z:678df3da-1b43-438c-99a6-5fe3e5704d08" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:14:27 GMT" + ], + "Content-Length": [ + "1526" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"global\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"name\": \"ps6677\",\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Insights/metricAlerts/ps6677\",\r\n \"properties\": {\r\n \"description\": \"This new Metric alert rule was created from Powershell version: 2.0.2\",\r\n \"severity\": 3,\r\n \"enabled\": false,\r\n \"scopes\": [\r\n \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Storage/storageAccounts/ps5666\"\r\n ],\r\n \"evaluationFrequency\": \"PT5M\",\r\n \"windowSize\": \"PT1H\",\r\n \"templateType\": 0,\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": 8.0,\r\n \"name\": \"metric1\",\r\n \"metricNamespace\": \"microsoft.storage/storageaccounts\",\r\n \"metricName\": \"UsedCapacity\",\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n },\r\n \"targetResourceType\": \"microsoft.storage/storageaccounts\",\r\n \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps957\"\r\n },\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps8082\"\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Insights/metricAlerts/ps6677?api-version=2018-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTI5OC9wcm92aWRlcnMvTWljcm9zb2Z0Lkluc2lnaHRzL21ldHJpY0FsZXJ0cy9wczY2Nzc/YXBpLXZlcnNpb249MjAxOC0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7cea2636-58e3-4233-aa6d-3dfc385e8528" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "b419af93-b7a8-4551-ad3d-3853dd5e91e4", + "b419af93-b7a8-4551-ad3d-3853dd5e91e4" + ], + "api-supported-versions": [ + "1.0, 2.0, 2017-09-01-preview, 2018-03-01" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "b419af93-b7a8-4551-ad3d-3853dd5e91e4" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141426Z:b419af93-b7a8-4551-ad3d-3853dd5e91e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:14:25 GMT" + ], + "Content-Length": [ + "1525" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"global\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"name\": \"ps6677\",\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Insights/metricAlerts/ps6677\",\r\n \"properties\": {\r\n \"description\": \"This new Metric alert rule was created from Powershell version: 2.0.2\",\r\n \"severity\": 3,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Storage/storageAccounts/ps5666\"\r\n ],\r\n \"evaluationFrequency\": \"PT5M\",\r\n \"windowSize\": \"PT1H\",\r\n \"templateType\": 8,\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": 8.0,\r\n \"name\": \"metric1\",\r\n \"metricNamespace\": \"microsoft.storage/storageaccounts\",\r\n \"metricName\": \"UsedCapacity\",\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n },\r\n \"targetResourceType\": \"microsoft.storage/storageaccounts\",\r\n \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps957\"\r\n },\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps8082\"\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Insights/metricAlerts/ps8459?api-version=2018-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTI5OC9wcm92aWRlcnMvTWljcm9zb2Z0Lkluc2lnaHRzL21ldHJpY0FsZXJ0cy9wczg0NTk/YXBpLXZlcnNpb249MjAxOC0wMy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"This New multi resource Metric alert rule was created from Powershell version: 2.0.2\",\r\n \"severity\": 3,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Storage/storageAccounts/ps5666\"\r\n ],\r\n \"evaluationFrequency\": \"PT5M\",\r\n \"windowSize\": \"PT1H\",\r\n \"targetResourceType\": \"Microsoft.Storage/storageAccounts\",\r\n \"targetResourceRegion\": \"West US\",\r\n \"criteria\": {\r\n \"odata.type\": \"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria\",\r\n \"allOf\": [\r\n {\r\n \"criterionType\": \"StaticThresholdCriterion\",\r\n \"operator\": \"GreaterThan\",\r\n \"threshold\": 8.0,\r\n \"name\": \"metric1\",\r\n \"metricName\": \"UsedCapacity\",\r\n \"timeAggregation\": \"Average\"\r\n }\r\n ]\r\n },\r\n \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps957\"\r\n },\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps8082\"\r\n }\r\n ]\r\n },\r\n \"location\": \"global\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3b864657-a86f-4f3c-a1c5-ae8c322ef1e8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1289" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "04755d1d-bb76-40ef-8eaa-88c4d6352c88", + "04755d1d-bb76-40ef-8eaa-88c4d6352c88" + ], + "api-supported-versions": [ + "1.0, 2.0, 2017-09-01-preview, 2018-03-01" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "297" + ], + "x-ms-correlation-request-id": [ + "04755d1d-bb76-40ef-8eaa-88c4d6352c88" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141432Z:04755d1d-bb76-40ef-8eaa-88c4d6352c88" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:14:32 GMT" + ], + "Content-Length": [ + "1581" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"global\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"name\": \"ps8459\",\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Insights/metricAlerts/ps8459\",\r\n \"properties\": {\r\n \"description\": \"This New multi resource Metric alert rule was created from Powershell version: 2.0.2\",\r\n \"severity\": 3,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Storage/storageAccounts/ps5666\"\r\n ],\r\n \"evaluationFrequency\": \"PT5M\",\r\n \"windowSize\": \"PT1H\",\r\n \"templateType\": 8,\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": 8.0,\r\n \"name\": \"metric1\",\r\n \"metricNamespace\": \"microsoft.storage/storageaccounts\",\r\n \"metricName\": \"UsedCapacity\",\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria\"\r\n },\r\n \"targetResourceType\": \"Microsoft.Storage/storageAccounts\",\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps957\"\r\n },\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps8082\"\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Insights/metricAlerts/ps8459?api-version=2018-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTI5OC9wcm92aWRlcnMvTWljcm9zb2Z0Lkluc2lnaHRzL21ldHJpY0FsZXJ0cy9wczg0NTk/YXBpLXZlcnNpb249MjAxOC0wMy0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"description\": \"This New multi resource Metric alert rule was created from Powershell version: 2.0.2\",\r\n \"severity\": 3,\r\n \"enabled\": false,\r\n \"scopes\": [\r\n \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Storage/storageAccounts/ps5666\"\r\n ],\r\n \"evaluationFrequency\": \"PT5M\",\r\n \"windowSize\": \"PT1H\",\r\n \"targetResourceType\": \"Microsoft.Storage/storageAccounts\",\r\n \"targetResourceRegion\": \"westus\",\r\n \"criteria\": {\r\n \"odata.type\": \"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria\",\r\n \"allOf\": [\r\n {\r\n \"criterionType\": \"StaticThresholdCriterion\",\r\n \"operator\": \"GreaterThan\",\r\n \"threshold\": 8.0,\r\n \"name\": \"metric1\",\r\n \"metricName\": \"UsedCapacity\",\r\n \"metricNamespace\": \"microsoft.storage/storageaccounts\",\r\n \"timeAggregation\": \"Average\"\r\n }\r\n ]\r\n },\r\n \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps957\"\r\n },\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps8082\"\r\n }\r\n ]\r\n },\r\n \"location\": \"global\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6e080ec7-fa67-4a47-accb-a4ddaa4718e0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1356" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "966df3ce-ab36-486f-bf95-d0e537c3bc94", + "966df3ce-ab36-486f-bf95-d0e537c3bc94" + ], + "api-supported-versions": [ + "1.0, 2.0, 2017-09-01-preview, 2018-03-01" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ + "296" + ], + "x-ms-correlation-request-id": [ + "966df3ce-ab36-486f-bf95-d0e537c3bc94" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141434Z:966df3ce-ab36-486f-bf95-d0e537c3bc94" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:14:34 GMT" + ], + "Content-Length": [ + "1582" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"global\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"name\": \"ps8459\",\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Insights/metricAlerts/ps8459\",\r\n \"properties\": {\r\n \"description\": \"This New multi resource Metric alert rule was created from Powershell version: 2.0.2\",\r\n \"severity\": 3,\r\n \"enabled\": false,\r\n \"scopes\": [\r\n \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Storage/storageAccounts/ps5666\"\r\n ],\r\n \"evaluationFrequency\": \"PT5M\",\r\n \"windowSize\": \"PT1H\",\r\n \"templateType\": 0,\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": 8.0,\r\n \"name\": \"metric1\",\r\n \"metricNamespace\": \"microsoft.storage/storageaccounts\",\r\n \"metricName\": \"UsedCapacity\",\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria\"\r\n },\r\n \"targetResourceType\": \"Microsoft.Storage/storageAccounts\",\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps957\"\r\n },\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps8082\"\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Insights/metricAlerts/ps8459?api-version=2018-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTI5OC9wcm92aWRlcnMvTWljcm9zb2Z0Lkluc2lnaHRzL21ldHJpY0FsZXJ0cy9wczg0NTk/YXBpLXZlcnNpb249MjAxOC0wMy0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bfbcc7d6-10f1-4010-afeb-b9af93db34df" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7bbecafd-a24b-4c7b-81dc-61afdece23b4", + "7bbecafd-a24b-4c7b-81dc-61afdece23b4" + ], + "api-supported-versions": [ + "1.0, 2.0, 2017-09-01-preview, 2018-03-01" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "7bbecafd-a24b-4c7b-81dc-61afdece23b4" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141433Z:7bbecafd-a24b-4c7b-81dc-61afdece23b4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:14:32 GMT" + ], + "Content-Length": [ + "1581" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"global\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"name\": \"ps8459\",\r\n \"id\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Insights/metricAlerts/ps8459\",\r\n \"properties\": {\r\n \"description\": \"This New multi resource Metric alert rule was created from Powershell version: 2.0.2\",\r\n \"severity\": 3,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Storage/storageAccounts/ps5666\"\r\n ],\r\n \"evaluationFrequency\": \"PT5M\",\r\n \"windowSize\": \"PT1H\",\r\n \"templateType\": 8,\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": 8.0,\r\n \"name\": \"metric1\",\r\n \"metricNamespace\": \"microsoft.storage/storageaccounts\",\r\n \"metricName\": \"UsedCapacity\",\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria\"\r\n },\r\n \"targetResourceType\": \"Microsoft.Storage/storageAccounts\",\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps957\"\r\n },\r\n {\r\n \"actionGroupId\": \"/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps8082\"\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Insights/metricAlerts/ps6677?api-version=2018-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTI5OC9wcm92aWRlcnMvTWljcm9zb2Z0Lkluc2lnaHRzL21ldHJpY0FsZXJ0cy9wczY2Nzc/YXBpLXZlcnNpb249MjAxOC0wMy0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f12f4836-08ce-4a1c-9341-b3e088d0002b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9ac90bcf-a4b6-4709-a9a7-c5322c0c07ce", + "9ac90bcf-a4b6-4709-a9a7-c5322c0c07ce" + ], + "api-supported-versions": [ + "1.0, 2.0, 2017-09-01-preview, 2018-03-01" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "9ac90bcf-a4b6-4709-a9a7-c5322c0c07ce" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141436Z:9ac90bcf-a4b6-4709-a9a7-c5322c0c07ce" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:14:35 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Insights/metricAlerts/ps8459?api-version=2018-03-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTI5OC9wcm92aWRlcnMvTWljcm9zb2Z0Lkluc2lnaHRzL21ldHJpY0FsZXJ0cy9wczg0NTk/YXBpLXZlcnNpb249MjAxOC0wMy0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3ecdba59-7ea6-4a7a-950b-87561a0c8bde" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6cda5e11-c568-41c2-bfc5-bb0f61dd2c7a", + "6cda5e11-c568-41c2-bfc5-bb0f61dd2c7a" + ], + "api-supported-versions": [ + "1.0, 2.0, 2017-09-01-preview, 2018-03-01" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "6cda5e11-c568-41c2-bfc5-bb0f61dd2c7a" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141438Z:6cda5e11-c568-41c2-bfc5-bb0f61dd2c7a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:14:37 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps957?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTI5OC9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL2FjdGlvbkdyb3Vwcy9wczk1Nz9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "868a1e04-27f1-4e57-85c1-9e4823fcc65c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "c33b32d1-4c4a-4e3e-97f4-4138fb90dd8c" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "886ca2d3-c8c6-4e87-9d55-6636e2305a26" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141440Z:886ca2d3-c8c6-4e87-9d55-6636e2305a26" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:14:39 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/microsoft.insights/actionGroups/ps8082?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTI5OC9wcm92aWRlcnMvbWljcm9zb2Z0Lmluc2lnaHRzL2FjdGlvbkdyb3Vwcy9wczgwODI/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "131ac8d0-e444-4b33-963b-fd45170b4b10" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Monitor.MonitorManagementClient/0.25.1.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "2328bb55-18ac-4f3d-a126-d1770bdfc09a" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14996" + ], + "x-ms-correlation-request-id": [ + "1b6bda16-bc82-4c6a-9fb7-3c4c751afe28" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141442Z:1b6bda16-bc82-4c6a-9fb7-3c4c751afe28" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:14:41 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourceGroups/ps9298/providers/Microsoft.Storage/storageAccounts/ps5666?api-version=2017-10-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlR3JvdXBzL3BzOTI5OC9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3BzNTY2Nj9hcGktdmVyc2lvbj0yMDE3LTEwLTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8d7a35c7-a233-4576-8ac6-f15a4504901e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Storage.Version2017.10.01.StorageManagementClient/1.3.20" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9cae0f63-509b-42e2-99c7-6511a7189034" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14995" + ], + "x-ms-correlation-request-id": [ + "3eab4fb6-4bbc-4993-9416-d06d140f6109" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141446Z:3eab4fb6-4bbc-4993-9416-d06d140f6109" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:14:45 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/resourcegroups/ps9298?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL3Jlc291cmNlZ3JvdXBzL3BzOTI5OD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5c010d95-bd88-4fe3-b7e1-e2c987c67690" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.20" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkyOTgtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14994" + ], + "x-ms-request-id": [ + "fe80b0de-3418-4fa0-a459-5b1976519b38" + ], + "x-ms-correlation-request-id": [ + "fe80b0de-3418-4fa0-a459-5b1976519b38" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141447Z:fe80b0de-3418-4fa0-a459-5b1976519b38" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:14:47 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkyOTgtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpreU9UZ3RWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.20" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkyOTgtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "c273b85d-e1ae-4225-8e61-bd772a794f1c" + ], + "x-ms-correlation-request-id": [ + "c273b85d-e1ae-4225-8e61-bd772a794f1c" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141503Z:c273b85d-e1ae-4225-8e61-bd772a794f1c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:15:02 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkyOTgtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpreU9UZ3RWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.20" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkyOTgtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "c8385273-f223-4967-80bd-f1f8dc480eb0" + ], + "x-ms-correlation-request-id": [ + "c8385273-f223-4967-80bd-f1f8dc480eb0" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141518Z:c8385273-f223-4967-80bd-f1f8dc480eb0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:15:17 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkyOTgtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpreU9UZ3RWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.20" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "3ca65986-2f00-4ff0-b67e-e7d181172181" + ], + "x-ms-correlation-request-id": [ + "3ca65986-2f00-4ff0-b67e-e7d181172181" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141534Z:3ca65986-2f00-4ff0-b67e-e7d181172181" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:15:34 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzkyOTgtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTFhZWIwZWQtNDU2Yi00Y2EwLThkZjUtYjlmYmRjNjNkMGQzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpreU9UZ3RWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29017.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.18363.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.20" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "cb974b53-32d9-4097-bae2-1a779ab29835" + ], + "x-ms-correlation-request-id": [ + "cb974b53-32d9-4097-bae2-1a779ab29835" + ], + "x-ms-routing-request-id": [ + "NORTHEUROPE:20200809T141534Z:cb974b53-32d9-4097-bae2-1a779ab29835" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Sun, 09 Aug 2020 14:15:34 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-DisableAzureRmMetricAlertRuleV2WithActionGroups": [ + "ps9298", + "ps5666", + "ps3924", + "ps6677", + "ps8459", + "ps957", + "ps8082" + ] + }, + "Variables": { + "SubscriptionId": "11aeb0ed-456b-4ca0-8df5-b9fbdc63d0d3" + } +} \ No newline at end of file diff --git a/src/Monitor/Monitor/Alerts/AddAzureRmMetricAlertRuleV2Command.cs b/src/Monitor/Monitor/Alerts/AddAzureRmMetricAlertRuleV2Command.cs index 365457033f52..7ac74166c099 100644 --- a/src/Monitor/Monitor/Alerts/AddAzureRmMetricAlertRuleV2Command.cs +++ b/src/Monitor/Monitor/Alerts/AddAzureRmMetricAlertRuleV2Command.cs @@ -31,10 +31,6 @@ public class AddAzureRmMetricAlertRuleV2Command : ManagementCmdletBase { const string CreateAlertByResourceId = "CreateAlertByResourceId"; const string CreateAlertByScopes = "CreateAlertByScopes"; - const string CreateAlertByResourceIdAndActionGroup = "CreateAlertByResourceIdAndActionGroup"; - const string CreateAlertByScopesAndActionGroup = "CreateAlertByScopesAndActionGroup"; - const string CreateAlertByResourceIdAndActionGroupId = "CreateAlertByResourceIdAndActionGroupId"; - const string CreateAlertByScopesAndActionGroupId = "CreateAlertByScopesAndActionGroupId"; /// /// Gets or sets Name parameter of the cmdlet @@ -69,8 +65,6 @@ public class AddAzureRmMetricAlertRuleV2Command : ManagementCmdletBase /// Gets or sets the TargetResourceId parameter /// [Parameter(ParameterSetName = CreateAlertByResourceId, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The target resource id for rule")] - [Parameter(ParameterSetName = CreateAlertByResourceIdAndActionGroup, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The target resource id for rule")] - [Parameter(ParameterSetName = CreateAlertByResourceIdAndActionGroupId, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The target resource id for rule")] [ValidateNotNullOrEmpty] public string TargetResourceId { get; set; } @@ -78,8 +72,6 @@ public class AddAzureRmMetricAlertRuleV2Command : ManagementCmdletBase /// Gets or sets the TargetResourceScope parameter /// [Parameter(ParameterSetName = CreateAlertByScopes, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The target resource scope for rule")] - [Parameter(ParameterSetName = CreateAlertByScopesAndActionGroup, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The target resource scope for rule")] - [Parameter(ParameterSetName = CreateAlertByScopesAndActionGroupId, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The target resource scope for rule")] [ValidateNotNullOrEmpty] [Alias("Scopes")] public string[] TargetResourceScope { get; set; } @@ -88,8 +80,6 @@ public class AddAzureRmMetricAlertRuleV2Command : ManagementCmdletBase /// Gets or sets the TargetResourceType parameter /// [Parameter(ParameterSetName = CreateAlertByScopes, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The target resource type for rule")] - [Parameter(ParameterSetName = CreateAlertByScopesAndActionGroup, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The target resource type for rule")] - [Parameter(ParameterSetName = CreateAlertByScopesAndActionGroupId, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The target resource type for rule")] [ValidateNotNullOrEmpty] public string TargetResourceType { get; set; } @@ -97,8 +87,6 @@ public class AddAzureRmMetricAlertRuleV2Command : ManagementCmdletBase /// Gets or sets the TargetResourceRegion parameter /// [Parameter(ParameterSetName = CreateAlertByScopes, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The target resource region for rule")] - [Parameter(ParameterSetName = CreateAlertByScopesAndActionGroup, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The target resource region for rule")] - [Parameter(ParameterSetName = CreateAlertByScopesAndActionGroupId, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The target resource region for rule")] [ValidateNotNullOrEmpty] public string TargetResourceRegion { get; set; } @@ -113,16 +101,16 @@ public class AddAzureRmMetricAlertRuleV2Command : ManagementCmdletBase /// /// Gets or sets the ActionGroup parameter /// - [Parameter(ParameterSetName = CreateAlertByResourceIdAndActionGroup, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The Action Group for rule")] - [Parameter(ParameterSetName = CreateAlertByScopesAndActionGroup, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The Action Group for rule")] + [Parameter(Mandatory = false, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The Action Group for rule")] [Alias("Actions")] + [AllowEmptyCollection] public ActivityLogAlertActionGroup[] ActionGroup { get; set; } /// /// Gets or sets the ActionGroupId parameter /// - [Parameter(ParameterSetName = CreateAlertByResourceIdAndActionGroupId, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The Action Group id for rule")] - [Parameter(ParameterSetName = CreateAlertByScopesAndActionGroupId, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The Action Group id for rule")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The Action Group for rule")] + [AllowEmptyCollection] public string[] ActionGroupId { get; set; } /// @@ -147,14 +135,15 @@ public class AddAzureRmMetricAlertRuleV2Command : ManagementCmdletBase protected override void ProcessRecordInternal() { var actions = new List(); - if (this.ActionGroup != null) + if (this.ActionGroup != null && this.ActionGroup.Length > 0) { actions.AddRange(this.ActionGroup.Select(actionGroup => new MetricAlertAction(actionGroupId: actionGroup.ActionGroupId, webHookProperties: actionGroup.WebhookProperties))); } - if (this.ActionGroupId != null) + if (this.ActionGroupId != null && this.ActionGroupId.Length > 0) { - actions.AddRange(this.ActionGroupId.Select(actionGroupId => new MetricAlertAction(actionGroupId: actionGroupId))); + var newActionGroupIds = this.ActionGroupId.Where(id => ! actions.Exists(action => action.ActionGroupId == id)); + actions.AddRange(newActionGroupIds.Select(actionGroupId => new MetricAlertAction(actionGroupId: actionGroupId))); } if (this.Condition.Any(c => c.CriterionType == CriterionType.DynamicThresholdCriterion)) diff --git a/src/Monitor/Monitor/ChangeLog.md b/src/Monitor/Monitor/ChangeLog.md index 8d6672c66465..38007be06828 100644 --- a/src/Monitor/Monitor/ChangeLog.md +++ b/src/Monitor/Monitor/ChangeLog.md @@ -20,6 +20,7 @@ ## Upcoming Release * Extend the parameter set in `Set-AzDiagnosticSetting` for separation of Logs and Metrics enablement [#12482] +* Fixed bug for `Add-AzMetricAlertRuleV2` when getting metric alert from pipeline ## Version 2.0.2 * Fixed bug for `Get-AzDiagnosticSetting` when metrics or logs are null [#12272] diff --git a/src/Monitor/Monitor/help/Add-AzMetricAlertRuleV2.md b/src/Monitor/Monitor/help/Add-AzMetricAlertRuleV2.md index d31253f9b24d..ecec9794efa2 100644 --- a/src/Monitor/Monitor/help/Add-AzMetricAlertRuleV2.md +++ b/src/Monitor/Monitor/help/Add-AzMetricAlertRuleV2.md @@ -17,26 +17,9 @@ Adds or updates a V2 (non-classic) metric-based alert rule. Add-AzMetricAlertRuleV2 -Name -ResourceGroupName -WindowSize -Frequency -TargetResourceId -Condition - [-DisableRule] [-Description ] -Severity [-DefaultProfile ] [-WhatIf] - [-Confirm] [] -``` - -### CreateAlertByResourceIdAndActionGroup -``` -Add-AzMetricAlertRuleV2 -Name -ResourceGroupName -WindowSize -Frequency - -TargetResourceId - -Condition - -ActionGroup [-DisableRule] [-Description ] -Severity - [-DefaultProfile ] [-WhatIf] [-Confirm] [] -``` - -### CreateAlertByResourceIdAndActionGroupId -``` -Add-AzMetricAlertRuleV2 -Name -ResourceGroupName -WindowSize -Frequency - -TargetResourceId - -Condition - -ActionGroupId [-DisableRule] [-Description ] -Severity - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-ActionGroup ] [-ActionGroupId ] [-DisableRule] + [-Description ] -Severity [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ### CreateAlertByScopes @@ -44,26 +27,9 @@ Add-AzMetricAlertRuleV2 -Name -ResourceGroupName -WindowSize < Add-AzMetricAlertRuleV2 -Name -ResourceGroupName -WindowSize -Frequency -TargetResourceScope -TargetResourceType -TargetResourceRegion -Condition - [-DisableRule] [-Description ] -Severity [-DefaultProfile ] [-WhatIf] - [-Confirm] [] -``` - -### CreateAlertByScopesAndActionGroup -``` -Add-AzMetricAlertRuleV2 -Name -ResourceGroupName -WindowSize -Frequency - -TargetResourceScope -TargetResourceType -TargetResourceRegion - -Condition - -ActionGroup [-DisableRule] [-Description ] -Severity - [-DefaultProfile ] [-WhatIf] [-Confirm] [] -``` - -### CreateAlertByScopesAndActionGroupId -``` -Add-AzMetricAlertRuleV2 -Name -ResourceGroupName -WindowSize -Frequency - -TargetResourceScope -TargetResourceType -TargetResourceRegion - -Condition - -ActionGroupId [-DisableRule] [-Description ] -Severity - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-ActionGroup ] [-ActionGroupId ] [-DisableRule] + [-Description ] -Severity [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -185,13 +151,13 @@ The Action Group for rule ```yaml Type: Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertActionGroup[] -Parameter Sets: CreateAlertByResourceIdAndActionGroup, CreateAlertByScopesAndActionGroup +Parameter Sets: (All) Aliases: Actions -Required: True +Required: False Position: Named Default value: None -Accept pipeline input: True (ByPropertyName) +Accept pipeline input: True (ByPropertyName, ByValue) Accept wildcard characters: False ``` @@ -200,10 +166,10 @@ The Action Group id for rule ```yaml Type: System.String[] -Parameter Sets: CreateAlertByResourceIdAndActionGroupId, CreateAlertByScopesAndActionGroupId +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: True (ByPropertyName) @@ -335,7 +301,7 @@ The target resource id for rule ```yaml Type: System.String -Parameter Sets: CreateAlertByResourceId, CreateAlertByResourceIdAndActionGroup, CreateAlertByResourceIdAndActionGroupId +Parameter Sets: CreateAlertByResourceId Aliases: Required: True @@ -350,7 +316,7 @@ The target resource region for rule ```yaml Type: System.String -Parameter Sets: CreateAlertByScopes, CreateAlertByScopesAndActionGroup, CreateAlertByScopesAndActionGroupId +Parameter Sets: CreateAlertByScopes Aliases: Required: True @@ -365,7 +331,7 @@ The target resource scope for rule ```yaml Type: System.String[] -Parameter Sets: CreateAlertByScopes, CreateAlertByScopesAndActionGroup, CreateAlertByScopesAndActionGroupId +Parameter Sets: CreateAlertByScopes Aliases: Scopes Required: True @@ -380,7 +346,7 @@ The target resource type for rule ```yaml Type: System.String -Parameter Sets: CreateAlertByScopes, CreateAlertByScopesAndActionGroup, CreateAlertByScopesAndActionGroupId +Parameter Sets: CreateAlertByScopes Aliases: Required: True