diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/tests/Azure.ResourceManager.Monitor.Tests.csproj b/sdk/monitor/Azure.ResourceManager.Monitor/tests/Azure.ResourceManager.Monitor.Tests.csproj
index 91b2a7e438995..e874f45f98c21 100644
--- a/sdk/monitor/Azure.ResourceManager.Monitor/tests/Azure.ResourceManager.Monitor.Tests.csproj
+++ b/sdk/monitor/Azure.ResourceManager.Monitor/tests/Azure.ResourceManager.Monitor.Tests.csproj
@@ -1,5 +1,6 @@
+
diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/tests/ResourceDataHelper.cs b/sdk/monitor/Azure.ResourceManager.Monitor/tests/ResourceDataHelper.cs
index 755c4bd9218b4..7a485656f10a6 100644
--- a/sdk/monitor/Azure.ResourceManager.Monitor/tests/ResourceDataHelper.cs
+++ b/sdk/monitor/Azure.ResourceManager.Monitor/tests/ResourceDataHelper.cs
@@ -9,6 +9,8 @@
using NUnit.Framework;
using Azure.Core;
using System;
+using Azure.ResourceManager.Storage;
+using Azure.ResourceManager.Storage.Models;
namespace Azure.ResourceManager.Monitor.Tests
{
@@ -288,11 +290,11 @@ public static void AssertMetricAlert(MetricAlertData data1, MetricAlertData data
Assert.AreEqual(data1.Description, data2.Description);
}
- public static MetricAlertData GetBasicMetricAlertData(AzureLocation location, ActionGroupResource actionGroup)
+ public static MetricAlertData GetBasicMetricAlertData(AzureLocation location, ActionGroupResource actionGroup, string storageAccountId)
{
IEnumerable scopes = new List()
{
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest",
+ storageAccountId,
// "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0122/providers/Microsoft.Compute/virtualMachines/MetricAlertActionTestVM02"
};
var metricAlertAction = new MetricAlertAction()
@@ -312,5 +314,23 @@ public static MetricAlertData GetBasicMetricAlertData(AzureLocation location, Ac
{ Actions = { metricAlertAction } };
}
#endregion
+
+ #region storage account
+ public static StorageAccountData GetStorageAccountData()
+ {
+ var data = new StorageAccountData(AzureLocation.EastUS)
+ {
+ };
+ return data;
+ }
+ public static StorageAccountCreateOrUpdateContent GetContent()
+ {
+ var content = new StorageAccountCreateOrUpdateContent(new StorageSku(StorageSkuName.StandardLrs), StorageKind.BlobStorage, AzureLocation.EastUS)
+ {
+ AccessTier = StorageAccountAccessTier.Hot
+ };
+ return content;
+ }
+ #endregion
}
}
diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/CreateOrUpdate().json b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/CreateOrUpdate().json
index 450071f257098..52d2376adae9e 100644
--- a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/CreateOrUpdate().json
+++ b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/CreateOrUpdate().json
@@ -6,10 +6,9 @@
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Connection": "keep-alive",
- "traceparent": "00-f664d92023c7934c85e24bb791f712cf-f871365111d1da49-00",
+ "traceparent": "00-45192e2bf11c9642940b588db57a3080-11349e165a52014f-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "4ccd48eff2100e5a259c42425561e456",
+ "x-ms-client-request-id": "70aa2252710fb4460249193c6dc94a82",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -18,15 +17,15 @@
"Cache-Control": "no-cache",
"Content-Length": "748",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:53:51 GMT",
+ "Date": "Tue, 14 Mar 2023 09:04:38 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "cfef1c08-f303-4b33-ac56-f7ebc5187258",
- "x-ms-ratelimit-remaining-subscription-reads": "11998",
- "x-ms-request-id": "cfef1c08-f303-4b33-ac56-f7ebc5187258",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025351Z:cfef1c08-f303-4b33-ac56-f7ebc5187258"
+ "x-ms-correlation-request-id": "788a315d-fcb0-43f2-8ca5-61b59d83e325",
+ "x-ms-ratelimit-remaining-subscription-reads": "11986",
+ "x-ms-request-id": "788a315d-fcb0-43f2-8ca5-61b59d83e325",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090439Z:788a315d-fcb0-43f2-8ca5-61b59d83e325"
},
"ResponseBody": {
"id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c",
@@ -57,16 +56,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-9317?api-version=**",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-9620?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "44",
"Content-Type": "application/json",
- "traceparent": "00-e03842fb5379184ebe9062576be9c3ee-181e2dd31f1b8048-00",
+ "traceparent": "00-626a3331e4be1b479aa40f8226d614f0-b7f965e90131fe43-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "88d89fb09b8e95ac11ae93bc336c5659",
+ "x-ms-client-request-id": "c247506414332739f032c1f1f68911d0",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -80,19 +79,19 @@
"Cache-Control": "no-cache",
"Content-Length": "242",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:53:53 GMT",
+ "Date": "Tue, 14 Mar 2023 09:04:39 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "7c4ff28e-c25a-4192-b736-7560bdeaf805",
- "x-ms-ratelimit-remaining-subscription-writes": "1198",
- "x-ms-request-id": "7c4ff28e-c25a-4192-b736-7560bdeaf805",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025354Z:7c4ff28e-c25a-4192-b736-7560bdeaf805"
+ "x-ms-correlation-request-id": "38335901-e3a1-47df-8478-7cfd49774a18",
+ "x-ms-ratelimit-remaining-subscription-writes": "1196",
+ "x-ms-request-id": "38335901-e3a1-47df-8478-7cfd49774a18",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090440Z:38335901-e3a1-47df-8478-7cfd49774a18"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9317",
- "name": "testRG-9317",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9620",
+ "name": "testRG-9620",
"type": "Microsoft.Resources/resourceGroups",
"location": "eastus2",
"tags": {
@@ -104,16 +103,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9317/providers/Microsoft.Insights/actionGroups/testActionGroup-2077?api-version=2023-01-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9620/providers/Microsoft.Insights/actionGroups/testActionGroup-7554?api-version=2023-01-01",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "143",
"Content-Type": "application/json",
- "traceparent": "00-8714359a1d866b48bb51c1d157c0575e-8f235fc6e79aa14f-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "3ef9c10b542a0862c6aa914b06df03dd",
+ "traceparent": "00-8191622f66626a4484dc1dc2755d2234-a4e808f0da11fd42-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "3e9733aaec5fe5fc6690c4a42017226e",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -137,23 +136,23 @@
"Cache-Control": "no-cache",
"Content-Length": "647",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:54:00 GMT",
+ "Date": "Tue, 14 Mar 2023 09:04:47 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-HTTPAPI/2.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
- "X-ActivityId": "3ef9c10b-542a-0862-c6aa-914b06df03dd",
+ "X-ActivityId": "3e9733aa-ec5f-e5fc-6690-c4a42017226e",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "5ec404fe-6bca-4c95-bd56-e2d5ff94e6a1",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "23",
- "x-ms-request-id": "5ec404fe-6bca-4c95-bd56-e2d5ff94e6a1",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025401Z:5ec404fe-6bca-4c95-bd56-e2d5ff94e6a1",
- "X-ServedBy": "EUS2ONEIM000004"
+ "x-ms-correlation-request-id": "24bfab3a-92ae-4879-aae4-2d93cfc9269c",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "24",
+ "x-ms-request-id": "24bfab3a-92ae-4879-aae4-2d93cfc9269c",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090447Z:24bfab3a-92ae-4879-aae4-2d93cfc9269c",
+ "X-ServedBy": "WUS2ONEIM000004"
},
"ResponseBody": {
- "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9317/providers/microsoft.insights/actionGroups/testActionGroup-2077",
+ "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9620/providers/microsoft.insights/actionGroups/testActionGroup-7554",
"type": "Microsoft.Insights/ActionGroups",
- "name": "testActionGroup-2077",
+ "name": "testActionGroup-7554",
"location": "Global",
"tags": null,
"properties": {
@@ -181,16 +180,63 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9317/providers/Microsoft.Insights/metricAlerts/testMetricAlert2849?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-9293?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Content-Length": "749",
+ "Content-Length": "44",
+ "Content-Type": "application/json",
+ "traceparent": "00-1a93547a3126cb41bfcafb17d237b0aa-4f6528b2cce9264a-00",
+ "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "1e800633710d1e493e85c30bc0076b31",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "tags": {
+ "test": "env"
+ },
+ "location": "eastus2"
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "Cache-Control": "no-cache",
+ "Content-Length": "242",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 14 Mar 2023 09:04:48 GMT",
+ "Expires": "-1",
+ "Pragma": "no-cache",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
+ "X-Content-Type-Options": "nosniff",
+ "x-ms-correlation-request-id": "081ce5bb-ff7d-4b3d-8e55-5b7d7d139551",
+ "x-ms-ratelimit-remaining-subscription-writes": "1195",
+ "x-ms-request-id": "081ce5bb-ff7d-4b3d-8e55-5b7d7d139551",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090448Z:081ce5bb-ff7d-4b3d-8e55-5b7d7d139551"
+ },
+ "ResponseBody": {
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9293",
+ "name": "testRG-9293",
+ "type": "Microsoft.Resources/resourceGroups",
+ "location": "eastus2",
+ "tags": {
+ "test": "env"
+ },
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ }
+ },
+ {
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9620/providers/Microsoft.Insights/metricAlerts/testMetricAlert6826?api-version=2018-03-01",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Authorization": "Sanitized",
+ "Content-Length": "748",
"Content-Type": "application/json",
- "traceparent": "00-286de339e5ce28419d37b6b6c2d6fd87-c762432e03bc344d-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "9dbc3835ad60b720fe43c751f230ebe9",
+ "traceparent": "00-8109051f2e21dc479aba30218fd67efc-e53b61d32753dd4d-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "22e04ab8fe9307550f0f18399b2a2ef3",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -200,7 +246,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9293/providers/Microsoft.Storage/storageAccounts/metrictests3825"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -219,7 +265,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9317/providers/microsoft.insights/actionGroups/testActionGroup-2077",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9620/providers/microsoft.insights/actionGroups/testActionGroup-7554",
"webHookProperties": {
"key1": "value1"
}
@@ -232,9 +278,9 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
- "Content-Length": "1263",
+ "Content-Length": "1262",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:54:13 GMT",
+ "Date": "Tue, 14 Mar 2023 09:05:26 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -242,18 +288,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "07bfc8ed-173e-4276-919b-5fd682a61e53",
+ "x-ms-correlation-request-id": "0e7f61cb-dffb-446d-8488-3841afec1827",
"x-ms-ratelimit-remaining-subscription-resource-requests": "298",
"x-ms-request-id": [
- "07bfc8ed-173e-4276-919b-5fd682a61e53",
- "07bfc8ed-173e-4276-919b-5fd682a61e53"
+ "0e7f61cb-dffb-446d-8488-3841afec1827",
+ "0e7f61cb-dffb-446d-8488-3841afec1827"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025413Z:07bfc8ed-173e-4276-919b-5fd682a61e53",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090527Z:0e7f61cb-dffb-446d-8488-3841afec1827",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9317/providers/Microsoft.Insights/metricAlerts/testMetricAlert2849",
- "name": "testMetricAlert2849",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9620/providers/Microsoft.Insights/metricAlerts/testMetricAlert6826",
+ "name": "testMetricAlert6826",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -261,7 +307,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9293/providers/Microsoft.Storage/storageAccounts/metrictests3825"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -280,7 +326,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9317/providers/microsoft.insights/actionGroups/testActionGroup-2077",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9620/providers/microsoft.insights/actionGroups/testActionGroup-7554",
"webHookProperties": {
"key1": "value1"
}
@@ -292,7 +338,7 @@
],
"Variables": {
"AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/",
- "RandomSeed": "2002928296",
+ "RandomSeed": "1108002789",
"RESOURCE_MANAGER_URL": null,
"SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c"
}
diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/CreateOrUpdate()Async.json b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/CreateOrUpdate()Async.json
index 6a4b74b543aaf..9080e43d32239 100644
--- a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/CreateOrUpdate()Async.json
+++ b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/CreateOrUpdate()Async.json
@@ -6,10 +6,9 @@
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Connection": "keep-alive",
- "traceparent": "00-3a4b0cd4961b6c48976e887add938b1f-35bf64770daa7d4a-00",
+ "traceparent": "00-1982ae80effb344aa5effe2c6ed83560-8fe753932fa28240-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "92a7034884d0fd84f286c15ee6ef2fe6",
+ "x-ms-client-request-id": "a58e95ece082a78f05506e66b00b6a27",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -18,15 +17,15 @@
"Cache-Control": "no-cache",
"Content-Length": "748",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:56:37 GMT",
+ "Date": "Tue, 14 Mar 2023 09:07:13 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "648e0acd-b5b8-453c-9afa-1b94e016e10f",
- "x-ms-ratelimit-remaining-subscription-reads": "11999",
- "x-ms-request-id": "648e0acd-b5b8-453c-9afa-1b94e016e10f",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025637Z:648e0acd-b5b8-453c-9afa-1b94e016e10f"
+ "x-ms-correlation-request-id": "03b3935d-598e-4a98-8c05-d92116ac11c7",
+ "x-ms-ratelimit-remaining-subscription-reads": "11975",
+ "x-ms-request-id": "03b3935d-598e-4a98-8c05-d92116ac11c7",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090714Z:03b3935d-598e-4a98-8c05-d92116ac11c7"
},
"ResponseBody": {
"id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c",
@@ -57,16 +56,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-9489?api-version=**",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-4587?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "44",
"Content-Type": "application/json",
- "traceparent": "00-85cc4c6d0821864ca5a0773883373a24-1cb6d1404320d140-00",
+ "traceparent": "00-331f48b9b780f748b27795975890e95e-112e2dffc5672b49-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "236d048904d6b7a716c81697787fd0c9",
+ "x-ms-client-request-id": "7d153ab10197a75d9aee85b06df13205",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -80,19 +79,19 @@
"Cache-Control": "no-cache",
"Content-Length": "242",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:56:40 GMT",
+ "Date": "Tue, 14 Mar 2023 09:07:15 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "1f8ac6af-4fde-4398-a46b-5bad566ce6bc",
- "x-ms-ratelimit-remaining-subscription-writes": "1199",
- "x-ms-request-id": "1f8ac6af-4fde-4398-a46b-5bad566ce6bc",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025640Z:1f8ac6af-4fde-4398-a46b-5bad566ce6bc"
+ "x-ms-correlation-request-id": "14347b8e-75f5-4df7-9bc5-19e94b50e589",
+ "x-ms-ratelimit-remaining-subscription-writes": "1187",
+ "x-ms-request-id": "14347b8e-75f5-4df7-9bc5-19e94b50e589",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090715Z:14347b8e-75f5-4df7-9bc5-19e94b50e589"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9489",
- "name": "testRG-9489",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4587",
+ "name": "testRG-4587",
"type": "Microsoft.Resources/resourceGroups",
"location": "eastus2",
"tags": {
@@ -104,16 +103,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9489/providers/Microsoft.Insights/actionGroups/testActionGroup-3053?api-version=2023-01-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4587/providers/Microsoft.Insights/actionGroups/testActionGroup-8129?api-version=2023-01-01",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "143",
"Content-Type": "application/json",
- "traceparent": "00-b66273eecc5d7048a3861494ad99b701-a0033b093ca6fb41-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "5f4628edc2e71ad5a5bee2008f99fdcf",
+ "traceparent": "00-d4af057c37dd8d40a20e7d6e579cc764-f020c72e33d93c46-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "59ae3eb6c78cad1bfb436ed83440d0c3",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -137,23 +136,23 @@
"Cache-Control": "no-cache",
"Content-Length": "647",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:56:47 GMT",
+ "Date": "Tue, 14 Mar 2023 09:07:19 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-HTTPAPI/2.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
- "X-ActivityId": "5f4628ed-c2e7-1ad5-a5be-e2008f99fdcf",
+ "X-ActivityId": "59ae3eb6-c78c-ad1b-fb43-6ed83440d0c3",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "9c5f8566-a62a-4e43-8a1d-7fe247b32418",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "24",
- "x-ms-request-id": "9c5f8566-a62a-4e43-8a1d-7fe247b32418",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025648Z:9c5f8566-a62a-4e43-8a1d-7fe247b32418",
- "X-ServedBy": "EUS2ONEIM000004"
+ "x-ms-correlation-request-id": "382be788-bf8f-4cae-bb44-a23f4772d878",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "21",
+ "x-ms-request-id": "382be788-bf8f-4cae-bb44-a23f4772d878",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090719Z:382be788-bf8f-4cae-bb44-a23f4772d878",
+ "X-ServedBy": "WUS2ONEIM000000"
},
"ResponseBody": {
- "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9489/providers/microsoft.insights/actionGroups/testActionGroup-3053",
+ "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-4587/providers/microsoft.insights/actionGroups/testActionGroup-8129",
"type": "Microsoft.Insights/ActionGroups",
- "name": "testActionGroup-3053",
+ "name": "testActionGroup-8129",
"location": "Global",
"tags": null,
"properties": {
@@ -181,16 +180,63 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9489/providers/Microsoft.Insights/metricAlerts/testMetricAlert1786?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-1888?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Content-Length": "749",
+ "Content-Length": "44",
+ "Content-Type": "application/json",
+ "traceparent": "00-5bd9f26292ec504db1f633b74cd48108-9c896c90571a0848-00",
+ "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "540211923194e7fdf20af6985f3b61b5",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "tags": {
+ "test": "env"
+ },
+ "location": "eastus2"
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "Cache-Control": "no-cache",
+ "Content-Length": "242",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 14 Mar 2023 09:07:19 GMT",
+ "Expires": "-1",
+ "Pragma": "no-cache",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
+ "X-Content-Type-Options": "nosniff",
+ "x-ms-correlation-request-id": "ddf3cb94-13a0-43ac-bea4-1bf563e10764",
+ "x-ms-ratelimit-remaining-subscription-writes": "1186",
+ "x-ms-request-id": "ddf3cb94-13a0-43ac-bea4-1bf563e10764",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090720Z:ddf3cb94-13a0-43ac-bea4-1bf563e10764"
+ },
+ "ResponseBody": {
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-1888",
+ "name": "testRG-1888",
+ "type": "Microsoft.Resources/resourceGroups",
+ "location": "eastus2",
+ "tags": {
+ "test": "env"
+ },
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ }
+ },
+ {
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4587/providers/Microsoft.Insights/metricAlerts/testMetricAlert2412?api-version=2018-03-01",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Authorization": "Sanitized",
+ "Content-Length": "748",
"Content-Type": "application/json",
- "traceparent": "00-450c0c2f9fe8be4ba2c30414680c9a01-db8b79e3c6597740-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "b6d53f7cff71dbffbabb6d657907f195",
+ "traceparent": "00-def0a4c72685f64398267f819c173e3e-935528c28de05540-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "c2e758bca310c76c81ddc6a8d4392c23",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -200,7 +246,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-1888/providers/Microsoft.Storage/storageAccounts/metrictests7270"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -219,7 +265,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9489/providers/microsoft.insights/actionGroups/testActionGroup-3053",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-4587/providers/microsoft.insights/actionGroups/testActionGroup-8129",
"webHookProperties": {
"key1": "value1"
}
@@ -232,9 +278,9 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
- "Content-Length": "1263",
+ "Content-Length": "1262",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:56:55 GMT",
+ "Date": "Tue, 14 Mar 2023 09:07:54 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -242,18 +288,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "7606b960-e621-4f1c-8883-4aad1c43d375",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "299",
+ "x-ms-correlation-request-id": "d25d5be8-cef6-48bf-8713-0d2488a6879c",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "294",
"x-ms-request-id": [
- "7606b960-e621-4f1c-8883-4aad1c43d375",
- "7606b960-e621-4f1c-8883-4aad1c43d375"
+ "d25d5be8-cef6-48bf-8713-0d2488a6879c",
+ "d25d5be8-cef6-48bf-8713-0d2488a6879c"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025656Z:7606b960-e621-4f1c-8883-4aad1c43d375",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090755Z:d25d5be8-cef6-48bf-8713-0d2488a6879c",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9489/providers/Microsoft.Insights/metricAlerts/testMetricAlert1786",
- "name": "testMetricAlert1786",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4587/providers/Microsoft.Insights/metricAlerts/testMetricAlert2412",
+ "name": "testMetricAlert2412",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -261,7 +307,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-1888/providers/Microsoft.Storage/storageAccounts/metrictests7270"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -280,7 +326,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9489/providers/microsoft.insights/actionGroups/testActionGroup-3053",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-4587/providers/microsoft.insights/actionGroups/testActionGroup-8129",
"webHookProperties": {
"key1": "value1"
}
@@ -292,7 +338,7 @@
],
"Variables": {
"AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/",
- "RandomSeed": "1836957318",
+ "RandomSeed": "1229802993",
"RESOURCE_MANAGER_URL": null,
"SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c"
}
diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/Get().json b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/Get().json
index a1c35eb59a526..d5b6158b2513f 100644
--- a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/Get().json
+++ b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/Get().json
@@ -6,10 +6,9 @@
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Connection": "keep-alive",
- "traceparent": "00-448bfffeebc7e548a4dd6c1ce71aef2e-683b74e2628a6846-00",
+ "traceparent": "00-91c8cd6b2fcaa94c8cde834bb47d0d2c-a3b7f160f712334f-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "f0af94e6ddea4dc23330fea8df571529",
+ "x-ms-client-request-id": "1d35c519c020ddd141ef47b49f647bb7",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -18,15 +17,15 @@
"Cache-Control": "no-cache",
"Content-Length": "748",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:54:31 GMT",
+ "Date": "Tue, 14 Mar 2023 09:05:32 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "7241cfb2-73c3-4b7d-934e-d337b08abb4c",
- "x-ms-ratelimit-remaining-subscription-reads": "11999",
- "x-ms-request-id": "7241cfb2-73c3-4b7d-934e-d337b08abb4c",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025432Z:7241cfb2-73c3-4b7d-934e-d337b08abb4c"
+ "x-ms-correlation-request-id": "64566fcf-8cba-4b1f-935b-3a77797f0a7f",
+ "x-ms-ratelimit-remaining-subscription-reads": "11983",
+ "x-ms-request-id": "64566fcf-8cba-4b1f-935b-3a77797f0a7f",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090533Z:64566fcf-8cba-4b1f-935b-3a77797f0a7f"
},
"ResponseBody": {
"id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c",
@@ -57,16 +56,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-4188?api-version=**",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-434?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "44",
"Content-Type": "application/json",
- "traceparent": "00-175c89bd283d28498af6341ec551c559-a2bf9631348d8048-00",
+ "traceparent": "00-10e1230d27ac904da971582e467591a3-ba956d214da96b4e-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "c3ed223186dde781503ad6dfd29139fe",
+ "x-ms-client-request-id": "1ca7753e72d313d2079e00f78112f3b3",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -78,21 +77,21 @@
"StatusCode": 201,
"ResponseHeaders": {
"Cache-Control": "no-cache",
- "Content-Length": "242",
+ "Content-Length": "240",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:54:37 GMT",
+ "Date": "Tue, 14 Mar 2023 09:05:33 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "d255e274-63e5-415e-a7a0-7da71862e3fd",
- "x-ms-ratelimit-remaining-subscription-writes": "1199",
- "x-ms-request-id": "d255e274-63e5-415e-a7a0-7da71862e3fd",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025437Z:d255e274-63e5-415e-a7a0-7da71862e3fd"
+ "x-ms-correlation-request-id": "b62d584f-45a7-4ffd-a605-1106f6a9845e",
+ "x-ms-ratelimit-remaining-subscription-writes": "1193",
+ "x-ms-request-id": "b62d584f-45a7-4ffd-a605-1106f6a9845e",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090534Z:b62d584f-45a7-4ffd-a605-1106f6a9845e"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4188",
- "name": "testRG-4188",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-434",
+ "name": "testRG-434",
"type": "Microsoft.Resources/resourceGroups",
"location": "eastus2",
"tags": {
@@ -104,16 +103,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4188/providers/Microsoft.Insights/actionGroups/testActionGroup-9323?api-version=2023-01-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-434/providers/Microsoft.Insights/actionGroups/testActionGroup-3642?api-version=2023-01-01",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "143",
"Content-Type": "application/json",
- "traceparent": "00-ffaa78d0c1479d4fb392f211b917670f-b0a4e5552eb54b42-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "07ff6baea4050b1e152ddf405bd4bdc7",
+ "traceparent": "00-9eb3bb60eb78444c8d12f54f0b24c81c-84930fc69010b441-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "7a9dc818a4e4336c439977eb8e38a434",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -135,25 +134,25 @@
"Access-Control-Expose-Headers": "x-activityid",
"api-supported-versions": "2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview",
"Cache-Control": "no-cache",
- "Content-Length": "647",
+ "Content-Length": "646",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:54:45 GMT",
+ "Date": "Tue, 14 Mar 2023 09:05:37 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-HTTPAPI/2.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
- "X-ActivityId": "07ff6bae-a405-0b1e-152d-df405bd4bdc7",
+ "X-ActivityId": "7a9dc818-a4e4-336c-4399-77eb8e38a434",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "fc8dfbe2-ccb8-4159-90fa-b9222cd9f9e2",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "24",
- "x-ms-request-id": "fc8dfbe2-ccb8-4159-90fa-b9222cd9f9e2",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025445Z:fc8dfbe2-ccb8-4159-90fa-b9222cd9f9e2",
- "X-ServedBy": "EUS2ONEIM000007"
+ "x-ms-correlation-request-id": "58b83986-88ba-4009-b450-bf62d2ee489f",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "23",
+ "x-ms-request-id": "58b83986-88ba-4009-b450-bf62d2ee489f",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090538Z:58b83986-88ba-4009-b450-bf62d2ee489f",
+ "X-ServedBy": "WUS2ONEIM000004"
},
"ResponseBody": {
- "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-4188/providers/microsoft.insights/actionGroups/testActionGroup-9323",
+ "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-434/providers/microsoft.insights/actionGroups/testActionGroup-3642",
"type": "Microsoft.Insights/ActionGroups",
- "name": "testActionGroup-9323",
+ "name": "testActionGroup-3642",
"location": "Global",
"tags": null,
"properties": {
@@ -181,16 +180,63 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4188/providers/Microsoft.Insights/metricAlerts/testMetricAlert1309?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-169?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Content-Length": "749",
+ "Content-Length": "44",
+ "Content-Type": "application/json",
+ "traceparent": "00-bfe40b1a83d1dc41a1e9029432d4d0d0-b56dc08627413140-00",
+ "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "46ce77876253190a22d1e6c0dd5300ef",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "tags": {
+ "test": "env"
+ },
+ "location": "eastus2"
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "Cache-Control": "no-cache",
+ "Content-Length": "240",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 14 Mar 2023 09:05:38 GMT",
+ "Expires": "-1",
+ "Pragma": "no-cache",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
+ "X-Content-Type-Options": "nosniff",
+ "x-ms-correlation-request-id": "d19207cc-047d-43f8-b364-c45e450e1bfe",
+ "x-ms-ratelimit-remaining-subscription-writes": "1192",
+ "x-ms-request-id": "d19207cc-047d-43f8-b364-c45e450e1bfe",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090538Z:d19207cc-047d-43f8-b364-c45e450e1bfe"
+ },
+ "ResponseBody": {
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-169",
+ "name": "testRG-169",
+ "type": "Microsoft.Resources/resourceGroups",
+ "location": "eastus2",
+ "tags": {
+ "test": "env"
+ },
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ }
+ },
+ {
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-434/providers/Microsoft.Insights/metricAlerts/testMetricAlert7968?api-version=2018-03-01",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Authorization": "Sanitized",
+ "Content-Length": "746",
"Content-Type": "application/json",
- "traceparent": "00-79481c064405ee43b9eac8ca4c6123a9-31470f1da5e1484b-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "af2bc0bd0e08082e99a2ec6d609fc4a9",
+ "traceparent": "00-38f330415bfde941a4c4b5d4d5bc9360-cc64795e386ec34c-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "77d93c36a66a09e0b6fffb1cfa338d2a",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -200,7 +246,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-169/providers/Microsoft.Storage/storageAccounts/metrictests5415"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -219,7 +265,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-4188/providers/microsoft.insights/actionGroups/testActionGroup-9323",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-434/providers/microsoft.insights/actionGroups/testActionGroup-3642",
"webHookProperties": {
"key1": "value1"
}
@@ -232,9 +278,9 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
- "Content-Length": "1263",
+ "Content-Length": "1259",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:54:55 GMT",
+ "Date": "Tue, 14 Mar 2023 09:06:11 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -242,18 +288,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "e826fab1-6300-4cd2-aa04-d869d4dfe986",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "299",
+ "x-ms-correlation-request-id": "a8e83b70-2b28-495e-b70c-c1ad16720a2a",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "297",
"x-ms-request-id": [
- "e826fab1-6300-4cd2-aa04-d869d4dfe986",
- "e826fab1-6300-4cd2-aa04-d869d4dfe986"
+ "a8e83b70-2b28-495e-b70c-c1ad16720a2a",
+ "a8e83b70-2b28-495e-b70c-c1ad16720a2a"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025456Z:e826fab1-6300-4cd2-aa04-d869d4dfe986",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090611Z:a8e83b70-2b28-495e-b70c-c1ad16720a2a",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4188/providers/Microsoft.Insights/metricAlerts/testMetricAlert1309",
- "name": "testMetricAlert1309",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-434/providers/Microsoft.Insights/metricAlerts/testMetricAlert7968",
+ "name": "testMetricAlert7968",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -261,7 +307,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-169/providers/Microsoft.Storage/storageAccounts/metrictests5415"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -280,7 +326,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-4188/providers/microsoft.insights/actionGroups/testActionGroup-9323",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-434/providers/microsoft.insights/actionGroups/testActionGroup-3642",
"webHookProperties": {
"key1": "value1"
}
@@ -290,14 +336,14 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4188/providers/Microsoft.Insights/metricAlerts/testMetricAlert1309?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-434/providers/Microsoft.Insights/metricAlerts/testMetricAlert7968?api-version=2018-03-01",
"RequestMethod": "GET",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "traceparent": "00-5d6ef6378bc81f479d8b27f72cf8feb1-9cc41c0d4f762a4f-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "2aaaa9e52bb6cf7eb8c858a2a6f46618",
+ "traceparent": "00-40bb08c7fb7d214988d896c42700795a-b14209e3b68a2740-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "9b2924c53d40902674b23db6c9669c49",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -306,9 +352,9 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
- "Content-Length": "1263",
+ "Content-Length": "1259",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:54:56 GMT",
+ "Date": "Tue, 14 Mar 2023 09:06:11 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -316,18 +362,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "754ccbbc-a47c-4665-933a-5d6474feed90",
- "x-ms-ratelimit-remaining-subscription-reads": "11998",
+ "x-ms-correlation-request-id": "ddeb6ff2-811d-4734-9ea2-53a039b3d0fb",
+ "x-ms-ratelimit-remaining-subscription-reads": "11980",
"x-ms-request-id": [
- "754ccbbc-a47c-4665-933a-5d6474feed90",
- "754ccbbc-a47c-4665-933a-5d6474feed90"
+ "ddeb6ff2-811d-4734-9ea2-53a039b3d0fb",
+ "ddeb6ff2-811d-4734-9ea2-53a039b3d0fb"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025457Z:754ccbbc-a47c-4665-933a-5d6474feed90",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090612Z:ddeb6ff2-811d-4734-9ea2-53a039b3d0fb",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4188/providers/Microsoft.Insights/metricAlerts/testMetricAlert1309",
- "name": "testMetricAlert1309",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-434/providers/Microsoft.Insights/metricAlerts/testMetricAlert7968",
+ "name": "testMetricAlert7968",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -335,7 +381,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-169/providers/Microsoft.Storage/storageAccounts/metrictests5415"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -354,7 +400,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-4188/providers/microsoft.insights/actionGroups/testActionGroup-9323",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-434/providers/microsoft.insights/actionGroups/testActionGroup-3642",
"webHookProperties": {
"key1": "value1"
}
@@ -366,7 +412,7 @@
],
"Variables": {
"AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/",
- "RandomSeed": "1521703955",
+ "RandomSeed": "409530795",
"RESOURCE_MANAGER_URL": null,
"SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c"
}
diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/Get()Async.json b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/Get()Async.json
index d488c39a67156..e8f4762216a7c 100644
--- a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/Get()Async.json
+++ b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/Get()Async.json
@@ -6,9 +6,9 @@
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "traceparent": "00-e53cab9902fc604d8ddc3eaf45f6e6eb-4530526cd6117845-00",
+ "traceparent": "00-da6fd91c0b83be47b5d202ca53364cee-710f211c03141248-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "41ae06b28b394a463ac1346ace8bd6c1",
+ "x-ms-client-request-id": "1e0cd7dbef7e3c7dad14a4b506075800",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -17,15 +17,15 @@
"Cache-Control": "no-cache",
"Content-Length": "748",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:57:01 GMT",
+ "Date": "Tue, 14 Mar 2023 09:07:58 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "617a854a-231f-4c9e-9a59-3d6b1171632a",
- "x-ms-ratelimit-remaining-subscription-reads": "11998",
- "x-ms-request-id": "617a854a-231f-4c9e-9a59-3d6b1171632a",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025701Z:617a854a-231f-4c9e-9a59-3d6b1171632a"
+ "x-ms-correlation-request-id": "1d9eb3a8-6592-436d-81a4-04158497fc2a",
+ "x-ms-ratelimit-remaining-subscription-reads": "11972",
+ "x-ms-request-id": "1d9eb3a8-6592-436d-81a4-04158497fc2a",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090759Z:1d9eb3a8-6592-436d-81a4-04158497fc2a"
},
"ResponseBody": {
"id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c",
@@ -56,16 +56,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-910?api-version=**",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-6663?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "44",
"Content-Type": "application/json",
- "traceparent": "00-66b367039782fa4b870835e89a1fe44f-c66d9ec5b8e70d43-00",
+ "traceparent": "00-bae10a0b6c215040ab7b47a5f4a21eb1-e50582235b12814d-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "692418de4cba674e64412e8fbf3f950f",
+ "x-ms-client-request-id": "43f3a60de91343b372098477ae45e1c2",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -77,21 +77,21 @@
"StatusCode": 201,
"ResponseHeaders": {
"Cache-Control": "no-cache",
- "Content-Length": "240",
+ "Content-Length": "242",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:57:02 GMT",
+ "Date": "Tue, 14 Mar 2023 09:07:59 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "2cab63f1-1799-4088-81da-5628d53c9672",
- "x-ms-ratelimit-remaining-subscription-writes": "1198",
- "x-ms-request-id": "2cab63f1-1799-4088-81da-5628d53c9672",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025702Z:2cab63f1-1799-4088-81da-5628d53c9672"
+ "x-ms-correlation-request-id": "c0a6eb97-019e-4180-bbce-3304bdd96e84",
+ "x-ms-ratelimit-remaining-subscription-writes": "1184",
+ "x-ms-request-id": "c0a6eb97-019e-4180-bbce-3304bdd96e84",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090800Z:c0a6eb97-019e-4180-bbce-3304bdd96e84"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-910",
- "name": "testRG-910",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-6663",
+ "name": "testRG-6663",
"type": "Microsoft.Resources/resourceGroups",
"location": "eastus2",
"tags": {
@@ -103,16 +103,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-910/providers/Microsoft.Insights/actionGroups/testActionGroup-8701?api-version=2023-01-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-6663/providers/Microsoft.Insights/actionGroups/testActionGroup-7393?api-version=2023-01-01",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "143",
"Content-Type": "application/json",
- "traceparent": "00-872821f9b4ddcc4aacf451de862dd1c2-c175ba254086a94e-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "7c51196a738567a83294ded732af02b6",
+ "traceparent": "00-f1a4fc1b939ac042a9082002661cce92-00f36147020af247-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "a6c56cdce352399e89354e4c989a9650",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -134,25 +134,25 @@
"Access-Control-Expose-Headers": "x-activityid",
"api-supported-versions": "2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview",
"Cache-Control": "no-cache",
- "Content-Length": "646",
+ "Content-Length": "647",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:57:06 GMT",
+ "Date": "Tue, 14 Mar 2023 09:08:03 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-HTTPAPI/2.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
- "X-ActivityId": "7c51196a-7385-67a8-3294-ded732af02b6",
+ "X-ActivityId": "a6c56cdc-e352-399e-8935-4e4c989a9650",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "70b830c2-3930-4611-8efd-cbd07f4807c9",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "23",
- "x-ms-request-id": "70b830c2-3930-4611-8efd-cbd07f4807c9",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025706Z:70b830c2-3930-4611-8efd-cbd07f4807c9",
- "X-ServedBy": "EUS2ONEIM000004"
+ "x-ms-correlation-request-id": "4939bc88-c207-4eac-a8f7-605e6210ad13",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "20",
+ "x-ms-request-id": "4939bc88-c207-4eac-a8f7-605e6210ad13",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090803Z:4939bc88-c207-4eac-a8f7-605e6210ad13",
+ "X-ServedBy": "WUS2ONEIM000000"
},
"ResponseBody": {
- "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-910/providers/microsoft.insights/actionGroups/testActionGroup-8701",
+ "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-6663/providers/microsoft.insights/actionGroups/testActionGroup-7393",
"type": "Microsoft.Insights/ActionGroups",
- "name": "testActionGroup-8701",
+ "name": "testActionGroup-7393",
"location": "Global",
"tags": null,
"properties": {
@@ -180,16 +180,63 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-910/providers/Microsoft.Insights/metricAlerts/testMetricAlert2140?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-5367?api-version=**",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Authorization": "Sanitized",
+ "Content-Length": "44",
+ "Content-Type": "application/json",
+ "traceparent": "00-e1efb036418d5646acc179b5652a0e60-70912d2c5d387147-00",
+ "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "c8e3df6258ee0bdae6f8c4fecfc3f272",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "tags": {
+ "test": "env"
+ },
+ "location": "eastus2"
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "Cache-Control": "no-cache",
+ "Content-Length": "242",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 14 Mar 2023 09:08:03 GMT",
+ "Expires": "-1",
+ "Pragma": "no-cache",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
+ "X-Content-Type-Options": "nosniff",
+ "x-ms-correlation-request-id": "3b719488-bdea-4b9d-bd5a-4f3f1bb9d851",
+ "x-ms-ratelimit-remaining-subscription-writes": "1183",
+ "x-ms-request-id": "3b719488-bdea-4b9d-bd5a-4f3f1bb9d851",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090804Z:3b719488-bdea-4b9d-bd5a-4f3f1bb9d851"
+ },
+ "ResponseBody": {
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-5367",
+ "name": "testRG-5367",
+ "type": "Microsoft.Resources/resourceGroups",
+ "location": "eastus2",
+ "tags": {
+ "test": "env"
+ },
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ }
+ },
+ {
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-6663/providers/Microsoft.Insights/metricAlerts/testMetricAlert2578?api-version=2018-03-01",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "748",
"Content-Type": "application/json",
- "traceparent": "00-a00c01bd87e1ef439cc5b2329e7a177c-1f3dd9df988f3a4c-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "df4d5f61baf8d960d54a17ba7b829f5a",
+ "traceparent": "00-f509c14dfecbbd4ebbd20ba7db5bba2e-5e167b4dcb904b44-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "ffb59eda1244574cde58d7d54379e816",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -199,7 +246,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-5367/providers/Microsoft.Storage/storageAccounts/metrictests2339"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -218,7 +265,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-910/providers/microsoft.insights/actionGroups/testActionGroup-8701",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-6663/providers/microsoft.insights/actionGroups/testActionGroup-7393",
"webHookProperties": {
"key1": "value1"
}
@@ -231,9 +278,9 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
- "Content-Length": "1261",
+ "Content-Length": "1262",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:57:13 GMT",
+ "Date": "Tue, 14 Mar 2023 09:08:38 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -241,18 +288,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "76e7bc2d-4337-45fa-adbf-e310a26167c2",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "298",
+ "x-ms-correlation-request-id": "6602085a-6514-414e-b196-7f9b33a14313",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "293",
"x-ms-request-id": [
- "76e7bc2d-4337-45fa-adbf-e310a26167c2",
- "76e7bc2d-4337-45fa-adbf-e310a26167c2"
+ "6602085a-6514-414e-b196-7f9b33a14313",
+ "6602085a-6514-414e-b196-7f9b33a14313"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025713Z:76e7bc2d-4337-45fa-adbf-e310a26167c2",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090838Z:6602085a-6514-414e-b196-7f9b33a14313",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-910/providers/Microsoft.Insights/metricAlerts/testMetricAlert2140",
- "name": "testMetricAlert2140",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-6663/providers/Microsoft.Insights/metricAlerts/testMetricAlert2578",
+ "name": "testMetricAlert2578",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -260,7 +307,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-5367/providers/Microsoft.Storage/storageAccounts/metrictests2339"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -279,7 +326,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-910/providers/microsoft.insights/actionGroups/testActionGroup-8701",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-6663/providers/microsoft.insights/actionGroups/testActionGroup-7393",
"webHookProperties": {
"key1": "value1"
}
@@ -289,14 +336,14 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-910/providers/Microsoft.Insights/metricAlerts/testMetricAlert2140?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-6663/providers/Microsoft.Insights/metricAlerts/testMetricAlert2578?api-version=2018-03-01",
"RequestMethod": "GET",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "traceparent": "00-470f276d1ed1734da172d3ec54a15189-fd7fa2388126304b-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "70bc20cb586b7ca50287b76f9032922b",
+ "traceparent": "00-0ca2d25d71af194989d7235c907eeb75-8460c835611c5847-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "14d69b8545876349583b451c25dadc43",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -305,9 +352,9 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
- "Content-Length": "1261",
+ "Content-Length": "1262",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:57:13 GMT",
+ "Date": "Tue, 14 Mar 2023 09:08:38 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -315,18 +362,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "f2660b18-9fca-45a6-a859-b0706cb3976c",
- "x-ms-ratelimit-remaining-subscription-reads": "11997",
+ "x-ms-correlation-request-id": "8005a94d-e3eb-4505-939b-d734ded9ca69",
+ "x-ms-ratelimit-remaining-subscription-reads": "11969",
"x-ms-request-id": [
- "f2660b18-9fca-45a6-a859-b0706cb3976c",
- "f2660b18-9fca-45a6-a859-b0706cb3976c"
+ "8005a94d-e3eb-4505-939b-d734ded9ca69",
+ "8005a94d-e3eb-4505-939b-d734ded9ca69"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025713Z:f2660b18-9fca-45a6-a859-b0706cb3976c",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090839Z:8005a94d-e3eb-4505-939b-d734ded9ca69",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-910/providers/Microsoft.Insights/metricAlerts/testMetricAlert2140",
- "name": "testMetricAlert2140",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-6663/providers/Microsoft.Insights/metricAlerts/testMetricAlert2578",
+ "name": "testMetricAlert2578",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -334,7 +381,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-5367/providers/Microsoft.Storage/storageAccounts/metrictests2339"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -353,7 +400,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-910/providers/microsoft.insights/actionGroups/testActionGroup-8701",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-6663/providers/microsoft.insights/actionGroups/testActionGroup-7393",
"webHookProperties": {
"key1": "value1"
}
@@ -365,7 +412,7 @@
],
"Variables": {
"AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/",
- "RandomSeed": "1198437122",
+ "RandomSeed": "39248276",
"RESOURCE_MANAGER_URL": null,
"SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c"
}
diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/GetAll().json b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/GetAll().json
index 5a63b47aeb82b..2871e287d165c 100644
--- a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/GetAll().json
+++ b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/GetAll().json
@@ -6,10 +6,9 @@
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Connection": "keep-alive",
- "traceparent": "00-3fac288615780141a60fc20bd1d64a5f-48731bad044e2740-00",
+ "traceparent": "00-c3db4e449c8e4740b38e1e14d148edbc-a64773b6cb4ae240-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "809e5cfe66b868cdda1e414917dd79ce",
+ "x-ms-client-request-id": "8f99a1712650cb02a12f72db63a8a7f6",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -18,15 +17,15 @@
"Cache-Control": "no-cache",
"Content-Length": "748",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:55:37 GMT",
+ "Date": "Tue, 14 Mar 2023 09:06:17 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "c94115ea-59b8-4ffa-b35f-4047823b56cb",
- "x-ms-ratelimit-remaining-subscription-reads": "11999",
- "x-ms-request-id": "c94115ea-59b8-4ffa-b35f-4047823b56cb",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025538Z:c94115ea-59b8-4ffa-b35f-4047823b56cb"
+ "x-ms-correlation-request-id": "f52b180a-2644-486b-b1e5-b020fed2fc6f",
+ "x-ms-ratelimit-remaining-subscription-reads": "11979",
+ "x-ms-request-id": "f52b180a-2644-486b-b1e5-b020fed2fc6f",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090617Z:f52b180a-2644-486b-b1e5-b020fed2fc6f"
},
"ResponseBody": {
"id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c",
@@ -57,16 +56,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-3047?api-version=**",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-8413?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "44",
"Content-Type": "application/json",
- "traceparent": "00-b8b58d08721e8248aa3f4ebdc0fd8314-1433c7b4fb3d814f-00",
+ "traceparent": "00-6d3bb6984fe15e4e8360baa66981d26b-ca4742cad675514f-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "67e572169712832b3b884540624bf145",
+ "x-ms-client-request-id": "6d8b6912e6fe22637c6578bd68e95166",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -80,19 +79,19 @@
"Cache-Control": "no-cache",
"Content-Length": "242",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:55:42 GMT",
+ "Date": "Tue, 14 Mar 2023 09:06:18 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "864f8da0-b120-4157-95dd-ba5f83089010",
- "x-ms-ratelimit-remaining-subscription-writes": "1199",
- "x-ms-request-id": "864f8da0-b120-4157-95dd-ba5f83089010",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025542Z:864f8da0-b120-4157-95dd-ba5f83089010"
+ "x-ms-correlation-request-id": "4f34d47f-b15a-4515-9593-51f779c52fd5",
+ "x-ms-ratelimit-remaining-subscription-writes": "1190",
+ "x-ms-request-id": "4f34d47f-b15a-4515-9593-51f779c52fd5",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090618Z:4f34d47f-b15a-4515-9593-51f779c52fd5"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-3047",
- "name": "testRG-3047",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-8413",
+ "name": "testRG-8413",
"type": "Microsoft.Resources/resourceGroups",
"location": "eastus2",
"tags": {
@@ -104,16 +103,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-3047/providers/Microsoft.Insights/actionGroups/testActionGroup-7766?api-version=2023-01-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-8413/providers/Microsoft.Insights/actionGroups/testActionGroup-6772?api-version=2023-01-01",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "143",
"Content-Type": "application/json",
- "traceparent": "00-2342afc6fb7ff8468b8e87bef5ab35d1-e37828f691507841-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "c035f68a00a98bd61b658590bb079cf5",
+ "traceparent": "00-78aad5de0167a2409f132ac7d4679ac3-5c6b52510939a143-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "f560e8e54bc5f7a73980933813cee3a5",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -137,23 +136,23 @@
"Cache-Control": "no-cache",
"Content-Length": "647",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:55:50 GMT",
+ "Date": "Tue, 14 Mar 2023 09:06:21 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-HTTPAPI/2.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
- "X-ActivityId": "c035f68a-00a9-8bd6-1b65-8590bb079cf5",
+ "X-ActivityId": "f560e8e5-4bc5-f7a7-3980-933813cee3a5",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "58f03567-59a7-4dfb-b6f9-d50d83e9f782",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "24",
- "x-ms-request-id": "58f03567-59a7-4dfb-b6f9-d50d83e9f782",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025550Z:58f03567-59a7-4dfb-b6f9-d50d83e9f782",
- "X-ServedBy": "EUS2ONEIM000007"
+ "x-ms-correlation-request-id": "6cbf7c16-334f-4e8e-bf53-69675819c12e",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "22",
+ "x-ms-request-id": "6cbf7c16-334f-4e8e-bf53-69675819c12e",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090622Z:6cbf7c16-334f-4e8e-bf53-69675819c12e",
+ "X-ServedBy": "WUS2ONEIM000004"
},
"ResponseBody": {
- "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-3047/providers/microsoft.insights/actionGroups/testActionGroup-7766",
+ "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-8413/providers/microsoft.insights/actionGroups/testActionGroup-6772",
"type": "Microsoft.Insights/ActionGroups",
- "name": "testActionGroup-7766",
+ "name": "testActionGroup-6772",
"location": "Global",
"tags": null,
"properties": {
@@ -181,16 +180,63 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-3047/providers/Microsoft.Insights/metricAlerts/testMetricAlert-8169?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-5344?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Content-Length": "749",
+ "Content-Length": "44",
+ "Content-Type": "application/json",
+ "traceparent": "00-097b695a01591f4e814b07f1ece2b5e7-7a23fb71d5b44545-00",
+ "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "bb7396e76d35c0d38a0e384521742eff",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "tags": {
+ "test": "env"
+ },
+ "location": "eastus2"
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "Cache-Control": "no-cache",
+ "Content-Length": "242",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 14 Mar 2023 09:06:22 GMT",
+ "Expires": "-1",
+ "Pragma": "no-cache",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
+ "X-Content-Type-Options": "nosniff",
+ "x-ms-correlation-request-id": "fa504023-853c-4042-953f-6ac8343cc64c",
+ "x-ms-ratelimit-remaining-subscription-writes": "1189",
+ "x-ms-request-id": "fa504023-853c-4042-953f-6ac8343cc64c",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090623Z:fa504023-853c-4042-953f-6ac8343cc64c"
+ },
+ "ResponseBody": {
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-5344",
+ "name": "testRG-5344",
+ "type": "Microsoft.Resources/resourceGroups",
+ "location": "eastus2",
+ "tags": {
+ "test": "env"
+ },
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ }
+ },
+ {
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-8413/providers/Microsoft.Insights/metricAlerts/testMetricAlert-920?api-version=2018-03-01",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Authorization": "Sanitized",
+ "Content-Length": "747",
"Content-Type": "application/json",
- "traceparent": "00-160d7260336bca4482ab9d609efbffcd-1280e33a08ae6a4f-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "4693a450c5ebfd737cde872877d35003",
+ "traceparent": "00-190f05100108624f97ce764e7f3a6be0-5619055d65046b49-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "f2f58596db32904f5c29197fa3afa2a1",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -200,7 +246,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-5344/providers/Microsoft.Storage/storageAccounts/metrictests689"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -219,7 +265,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-3047/providers/microsoft.insights/actionGroups/testActionGroup-7766",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-8413/providers/microsoft.insights/actionGroups/testActionGroup-6772",
"webHookProperties": {
"key1": "value1"
}
@@ -232,9 +278,9 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
- "Content-Length": "1265",
+ "Content-Length": "1261",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:56:01 GMT",
+ "Date": "Tue, 14 Mar 2023 09:06:56 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -242,18 +288,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "2e5a463d-3855-4eaa-9342-f1ea1441f14b",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "299",
+ "x-ms-correlation-request-id": "1bc52fed-9ba2-491b-a85e-9d01e1a3b6f3",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "296",
"x-ms-request-id": [
- "2e5a463d-3855-4eaa-9342-f1ea1441f14b",
- "2e5a463d-3855-4eaa-9342-f1ea1441f14b"
+ "1bc52fed-9ba2-491b-a85e-9d01e1a3b6f3",
+ "1bc52fed-9ba2-491b-a85e-9d01e1a3b6f3"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025602Z:2e5a463d-3855-4eaa-9342-f1ea1441f14b",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090657Z:1bc52fed-9ba2-491b-a85e-9d01e1a3b6f3",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-3047/providers/Microsoft.Insights/metricAlerts/testMetricAlert-8169",
- "name": "testMetricAlert-8169",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-8413/providers/Microsoft.Insights/metricAlerts/testMetricAlert-920",
+ "name": "testMetricAlert-920",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -261,7 +307,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-5344/providers/Microsoft.Storage/storageAccounts/metrictests689"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -280,7 +326,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-3047/providers/microsoft.insights/actionGroups/testActionGroup-7766",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-8413/providers/microsoft.insights/actionGroups/testActionGroup-6772",
"webHookProperties": {
"key1": "value1"
}
@@ -290,16 +336,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-3047/providers/Microsoft.Insights/metricAlerts/testMetricAlert-5348?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-8413/providers/Microsoft.Insights/metricAlerts/testMetricAlert-9424?api-version=2018-03-01",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Content-Length": "749",
+ "Content-Length": "747",
"Content-Type": "application/json",
- "traceparent": "00-1deb39f68553584da772f509c7f638b3-b16ca167f5ad804a-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "b1998253716ddc0ff631a5f37f80a84b",
+ "traceparent": "00-53c138942109ff4daa14063f601a8096-e81b3eb42cdc3344-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "afba1e1715ae6ed31f5aeacfe7999033",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -309,7 +355,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-5344/providers/Microsoft.Storage/storageAccounts/metrictests689"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -328,7 +374,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-3047/providers/microsoft.insights/actionGroups/testActionGroup-7766",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-8413/providers/microsoft.insights/actionGroups/testActionGroup-6772",
"webHookProperties": {
"key1": "value1"
}
@@ -341,9 +387,9 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
- "Content-Length": "1265",
+ "Content-Length": "1263",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:56:13 GMT",
+ "Date": "Tue, 14 Mar 2023 09:07:07 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -351,18 +397,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "c35aa769-7865-4299-ab60-b13c8e1193ff",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "298",
+ "x-ms-correlation-request-id": "4548713e-c4b0-4909-b9ce-740956b77594",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "295",
"x-ms-request-id": [
- "c35aa769-7865-4299-ab60-b13c8e1193ff",
- "c35aa769-7865-4299-ab60-b13c8e1193ff"
+ "4548713e-c4b0-4909-b9ce-740956b77594",
+ "4548713e-c4b0-4909-b9ce-740956b77594"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025614Z:c35aa769-7865-4299-ab60-b13c8e1193ff",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090708Z:4548713e-c4b0-4909-b9ce-740956b77594",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-3047/providers/Microsoft.Insights/metricAlerts/testMetricAlert-5348",
- "name": "testMetricAlert-5348",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-8413/providers/Microsoft.Insights/metricAlerts/testMetricAlert-9424",
+ "name": "testMetricAlert-9424",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -370,7 +416,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-5344/providers/Microsoft.Storage/storageAccounts/metrictests689"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -389,7 +435,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-3047/providers/microsoft.insights/actionGroups/testActionGroup-7766",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-8413/providers/microsoft.insights/actionGroups/testActionGroup-6772",
"webHookProperties": {
"key1": "value1"
}
@@ -399,14 +445,14 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-3047/providers/Microsoft.Insights/metricAlerts?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-8413/providers/Microsoft.Insights/metricAlerts?api-version=2018-03-01",
"RequestMethod": "GET",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "traceparent": "00-d1cf72b1f14a184d9179ef013ff72dac-1d3c9a8f9235ca4e-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "b14cfbf89ea3c231c22c224e62a49235",
+ "traceparent": "00-5e8308af6010b9479eb041e6f45ffa37-62f53f4b54b3d343-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "6534f98f329dd7ecb2d99967b0d4be0f",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -415,9 +461,9 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
- "Content-Length": "2854",
+ "Content-Length": "2848",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:56:14 GMT",
+ "Date": "Tue, 14 Mar 2023 09:07:07 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -425,20 +471,20 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "1910de3f-7b68-48bb-b79b-43326f3e8a82",
- "x-ms-ratelimit-remaining-subscription-reads": "11998",
+ "x-ms-correlation-request-id": "05ecdffa-2cab-4903-9525-11e4f723bdbf",
+ "x-ms-ratelimit-remaining-subscription-reads": "11976",
"x-ms-request-id": [
- "1910de3f-7b68-48bb-b79b-43326f3e8a82",
- "1910de3f-7b68-48bb-b79b-43326f3e8a82"
+ "05ecdffa-2cab-4903-9525-11e4f723bdbf",
+ "05ecdffa-2cab-4903-9525-11e4f723bdbf"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025615Z:1910de3f-7b68-48bb-b79b-43326f3e8a82",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090708Z:05ecdffa-2cab-4903-9525-11e4f723bdbf",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
"value": [
{
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-3047/providers/Microsoft.Insights/metricAlerts/testMetricAlert-8169",
- "name": "testMetricAlert-8169",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-8413/providers/Microsoft.Insights/metricAlerts/testMetricAlert-920",
+ "name": "testMetricAlert-920",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -446,7 +492,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-5344/providers/Microsoft.Storage/storageAccounts/metrictests689"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -465,7 +511,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-3047/providers/microsoft.insights/actionGroups/testActionGroup-7766",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-8413/providers/microsoft.insights/actionGroups/testActionGroup-6772",
"webHookProperties": {
"key1": "value1"
}
@@ -474,8 +520,8 @@
}
},
{
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-3047/providers/Microsoft.Insights/metricAlerts/testMetricAlert-5348",
- "name": "testMetricAlert-5348",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-8413/providers/Microsoft.Insights/metricAlerts/testMetricAlert-9424",
+ "name": "testMetricAlert-9424",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -483,7 +529,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-5344/providers/Microsoft.Storage/storageAccounts/metrictests689"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -502,7 +548,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-3047/providers/microsoft.insights/actionGroups/testActionGroup-7766",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-8413/providers/microsoft.insights/actionGroups/testActionGroup-6772",
"webHookProperties": {
"key1": "value1"
}
@@ -516,7 +562,7 @@
],
"Variables": {
"AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/",
- "RandomSeed": "1867972082",
+ "RandomSeed": "1291416533",
"RESOURCE_MANAGER_URL": null,
"SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c"
}
diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/GetAll()Async.json b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/GetAll()Async.json
index 55bd1f25ea3bd..b8d1fac9e7648 100644
--- a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/GetAll()Async.json
+++ b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertCollectionTests/GetAll()Async.json
@@ -6,9 +6,9 @@
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "traceparent": "00-60e5861edfa7de489bd64d2d384c78f1-c277b270c07bac42-00",
+ "traceparent": "00-7ecef630628fdb4f9ccb0ffd8e4522f7-54d581906819b040-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "9899291521325dfcf6094daa5ae8aae8",
+ "x-ms-client-request-id": "36546e55848f16ed4a13a5492b8b944a",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -17,15 +17,15 @@
"Cache-Control": "no-cache",
"Content-Length": "748",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:57:24 GMT",
+ "Date": "Tue, 14 Mar 2023 09:08:44 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "c274b652-fc7f-4b7e-a7f5-24c212cae212",
- "x-ms-ratelimit-remaining-subscription-reads": "11996",
- "x-ms-request-id": "c274b652-fc7f-4b7e-a7f5-24c212cae212",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025724Z:c274b652-fc7f-4b7e-a7f5-24c212cae212"
+ "x-ms-correlation-request-id": "85cacb54-7f2f-4e10-a8a0-5e337857b3b9",
+ "x-ms-ratelimit-remaining-subscription-reads": "11968",
+ "x-ms-request-id": "85cacb54-7f2f-4e10-a8a0-5e337857b3b9",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090845Z:85cacb54-7f2f-4e10-a8a0-5e337857b3b9"
},
"ResponseBody": {
"id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c",
@@ -56,16 +56,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-59?api-version=**",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-323?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "44",
"Content-Type": "application/json",
- "traceparent": "00-59a5e6fa873fe34a8767f6444aa21751-dd0a7a73b69b1e43-00",
+ "traceparent": "00-786c5dc4f7eacf4c952fe72c9c1a81cc-432c5e2252463a4b-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "a0d1ebe4de83b0a0151a75ba2cf1c133",
+ "x-ms-client-request-id": "685bf9e0ca9e6eafddc7dfbb042938c6",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -77,21 +77,21 @@
"StatusCode": 201,
"ResponseHeaders": {
"Cache-Control": "no-cache",
- "Content-Length": "238",
+ "Content-Length": "240",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:57:25 GMT",
+ "Date": "Tue, 14 Mar 2023 09:08:45 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "23582d12-1daa-402d-9050-3436e768f102",
- "x-ms-ratelimit-remaining-subscription-writes": "1197",
- "x-ms-request-id": "23582d12-1daa-402d-9050-3436e768f102",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025725Z:23582d12-1daa-402d-9050-3436e768f102"
+ "x-ms-correlation-request-id": "9098bca3-ced1-4a49-8fea-01b991d90778",
+ "x-ms-ratelimit-remaining-subscription-writes": "1181",
+ "x-ms-request-id": "9098bca3-ced1-4a49-8fea-01b991d90778",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090846Z:9098bca3-ced1-4a49-8fea-01b991d90778"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-59",
- "name": "testRG-59",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-323",
+ "name": "testRG-323",
"type": "Microsoft.Resources/resourceGroups",
"location": "eastus2",
"tags": {
@@ -103,16 +103,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-59/providers/Microsoft.Insights/actionGroups/testActionGroup-4586?api-version=2023-01-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-323/providers/Microsoft.Insights/actionGroups/testActionGroup-4433?api-version=2023-01-01",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "143",
"Content-Type": "application/json",
- "traceparent": "00-5349909083a96449b252a48012a406d8-f6fd7c865810bc4c-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "8f0c02f9a0fe5156886f49a0183c2db5",
+ "traceparent": "00-463bf6cfa531e444996fbe50e38a660c-c9e8b0920c843a46-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "5beb01f721fd39ada6eea5af277d5dce",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -134,25 +134,25 @@
"Access-Control-Expose-Headers": "x-activityid",
"api-supported-versions": "2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview",
"Cache-Control": "no-cache",
- "Content-Length": "645",
+ "Content-Length": "646",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:57:29 GMT",
+ "Date": "Tue, 14 Mar 2023 09:08:48 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-HTTPAPI/2.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
- "X-ActivityId": "8f0c02f9-a0fe-5156-886f-49a0183c2db5",
+ "X-ActivityId": "5beb01f7-21fd-39ad-a6ee-a5af277d5dce",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "ad5a06cd-def6-4442-acce-3a1f403b2a2e",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "22",
- "x-ms-request-id": "ad5a06cd-def6-4442-acce-3a1f403b2a2e",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025729Z:ad5a06cd-def6-4442-acce-3a1f403b2a2e",
- "X-ServedBy": "EUS2ONEIM000004"
+ "x-ms-correlation-request-id": "e933a598-3331-4016-81ac-5cac358b33f1",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "19",
+ "x-ms-request-id": "e933a598-3331-4016-81ac-5cac358b33f1",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090849Z:e933a598-3331-4016-81ac-5cac358b33f1",
+ "X-ServedBy": "WUS2ONEIM000000"
},
"ResponseBody": {
- "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-59/providers/microsoft.insights/actionGroups/testActionGroup-4586",
+ "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-323/providers/microsoft.insights/actionGroups/testActionGroup-4433",
"type": "Microsoft.Insights/ActionGroups",
- "name": "testActionGroup-4586",
+ "name": "testActionGroup-4433",
"location": "Global",
"tags": null,
"properties": {
@@ -180,16 +180,63 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-59/providers/Microsoft.Insights/metricAlerts/testMetricAlert-7842?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-9390?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Content-Length": "747",
+ "Content-Length": "44",
+ "Content-Type": "application/json",
+ "traceparent": "00-ef491883fdd7054bba59a36ceccf28e8-a636bbd6424b174d-00",
+ "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "a4b6113fc7a4bcb20d5b45e96c82d7f1",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "tags": {
+ "test": "env"
+ },
+ "location": "eastus2"
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "Cache-Control": "no-cache",
+ "Content-Length": "242",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 14 Mar 2023 09:08:49 GMT",
+ "Expires": "-1",
+ "Pragma": "no-cache",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
+ "X-Content-Type-Options": "nosniff",
+ "x-ms-correlation-request-id": "458bc76f-3e4f-465a-9e84-c4da5865f7e7",
+ "x-ms-ratelimit-remaining-subscription-writes": "1180",
+ "x-ms-request-id": "458bc76f-3e4f-465a-9e84-c4da5865f7e7",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090850Z:458bc76f-3e4f-465a-9e84-c4da5865f7e7"
+ },
+ "ResponseBody": {
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9390",
+ "name": "testRG-9390",
+ "type": "Microsoft.Resources/resourceGroups",
+ "location": "eastus2",
+ "tags": {
+ "test": "env"
+ },
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ }
+ },
+ {
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-323/providers/Microsoft.Insights/metricAlerts/testMetricAlert-1231?api-version=2018-03-01",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Authorization": "Sanitized",
+ "Content-Length": "746",
"Content-Type": "application/json",
- "traceparent": "00-2fc61fdc520da849844487acae74eca8-008c5ecf933f7a45-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "e61280d44b92e7f91c0687a3ca178c77",
+ "traceparent": "00-64cf701eb67524428bf954e0defb0c2d-3a98fbf23b9cfd4a-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "435869155a144582a5761e29b8f4bef9",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -199,7 +246,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9390/providers/Microsoft.Storage/storageAccounts/metrictests703"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -218,7 +265,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-59/providers/microsoft.insights/actionGroups/testActionGroup-4586",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-323/providers/microsoft.insights/actionGroups/testActionGroup-4433",
"webHookProperties": {
"key1": "value1"
}
@@ -233,7 +280,7 @@
"Cache-Control": "no-cache",
"Content-Length": "1261",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:57:36 GMT",
+ "Date": "Tue, 14 Mar 2023 09:09:23 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -241,18 +288,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "eccc01fd-9340-42a5-b890-17c235e47e2e",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "297",
+ "x-ms-correlation-request-id": "11206ef7-1b15-452d-b101-c67202291d4c",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "292",
"x-ms-request-id": [
- "eccc01fd-9340-42a5-b890-17c235e47e2e",
- "eccc01fd-9340-42a5-b890-17c235e47e2e"
+ "11206ef7-1b15-452d-b101-c67202291d4c",
+ "11206ef7-1b15-452d-b101-c67202291d4c"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025736Z:eccc01fd-9340-42a5-b890-17c235e47e2e",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090924Z:11206ef7-1b15-452d-b101-c67202291d4c",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-59/providers/Microsoft.Insights/metricAlerts/testMetricAlert-7842",
- "name": "testMetricAlert-7842",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-323/providers/Microsoft.Insights/metricAlerts/testMetricAlert-1231",
+ "name": "testMetricAlert-1231",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -260,7 +307,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9390/providers/Microsoft.Storage/storageAccounts/metrictests703"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -279,7 +326,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-59/providers/microsoft.insights/actionGroups/testActionGroup-4586",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-323/providers/microsoft.insights/actionGroups/testActionGroup-4433",
"webHookProperties": {
"key1": "value1"
}
@@ -289,16 +336,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-59/providers/Microsoft.Insights/metricAlerts/testMetricAlert-7597?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-323/providers/Microsoft.Insights/metricAlerts/testMetricAlert-9876?api-version=2018-03-01",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Content-Length": "747",
+ "Content-Length": "746",
"Content-Type": "application/json",
- "traceparent": "00-8bb5d47404d29a448ec26529e3febe67-8c5f9aa33fecd245-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "eadca7ee4be64f7bfa6e5610fdde4705",
+ "traceparent": "00-47b492bfde0a594398bb8780c6f1cbf6-091199c080b4704c-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "c1c9a9996fbbb037fe28771da974493a",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -308,7 +355,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9390/providers/Microsoft.Storage/storageAccounts/metrictests703"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -327,7 +374,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-59/providers/microsoft.insights/actionGroups/testActionGroup-4586",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-323/providers/microsoft.insights/actionGroups/testActionGroup-4433",
"webHookProperties": {
"key1": "value1"
}
@@ -342,7 +389,7 @@
"Cache-Control": "no-cache",
"Content-Length": "1261",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:57:43 GMT",
+ "Date": "Tue, 14 Mar 2023 09:09:34 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -350,18 +397,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "3ebacffc-57d4-44fe-b77f-fcc51b383555",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "296",
+ "x-ms-correlation-request-id": "3841793a-387d-41d3-9b2d-8de1fac4d9bf",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "291",
"x-ms-request-id": [
- "3ebacffc-57d4-44fe-b77f-fcc51b383555",
- "3ebacffc-57d4-44fe-b77f-fcc51b383555"
+ "3841793a-387d-41d3-9b2d-8de1fac4d9bf",
+ "3841793a-387d-41d3-9b2d-8de1fac4d9bf"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025744Z:3ebacffc-57d4-44fe-b77f-fcc51b383555",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090935Z:3841793a-387d-41d3-9b2d-8de1fac4d9bf",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-59/providers/Microsoft.Insights/metricAlerts/testMetricAlert-7597",
- "name": "testMetricAlert-7597",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-323/providers/Microsoft.Insights/metricAlerts/testMetricAlert-9876",
+ "name": "testMetricAlert-9876",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -369,7 +416,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9390/providers/Microsoft.Storage/storageAccounts/metrictests703"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -388,7 +435,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-59/providers/microsoft.insights/actionGroups/testActionGroup-4586",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-323/providers/microsoft.insights/actionGroups/testActionGroup-4433",
"webHookProperties": {
"key1": "value1"
}
@@ -398,13 +445,14 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-59/providers/Microsoft.Insights/metricAlerts?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-323/providers/Microsoft.Insights/metricAlerts?api-version=2018-03-01",
"RequestMethod": "GET",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "20401da967cc12b7a7e29aceaebe58bd",
+ "Connection": "close",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "1130cad1124c43070c38561fef4c48e1",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -413,9 +461,10 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
+ "Connection": "close",
"Content-Length": "2846",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:57:44 GMT",
+ "Date": "Tue, 14 Mar 2023 09:09:34 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -423,20 +472,20 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "7f83d984-51ba-444d-8416-6f1d54632e9d",
- "x-ms-ratelimit-remaining-subscription-reads": "11995",
+ "x-ms-correlation-request-id": "632fb266-cde1-4382-99aa-3f4a769f3609",
+ "x-ms-ratelimit-remaining-subscription-reads": "11965",
"x-ms-request-id": [
- "7f83d984-51ba-444d-8416-6f1d54632e9d",
- "7f83d984-51ba-444d-8416-6f1d54632e9d"
+ "632fb266-cde1-4382-99aa-3f4a769f3609",
+ "632fb266-cde1-4382-99aa-3f4a769f3609"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025745Z:7f83d984-51ba-444d-8416-6f1d54632e9d",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090935Z:632fb266-cde1-4382-99aa-3f4a769f3609",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
"value": [
{
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-59/providers/Microsoft.Insights/metricAlerts/testMetricAlert-7842",
- "name": "testMetricAlert-7842",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-323/providers/Microsoft.Insights/metricAlerts/testMetricAlert-1231",
+ "name": "testMetricAlert-1231",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -444,7 +493,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9390/providers/Microsoft.Storage/storageAccounts/metrictests703"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -463,7 +512,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-59/providers/microsoft.insights/actionGroups/testActionGroup-4586",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-323/providers/microsoft.insights/actionGroups/testActionGroup-4433",
"webHookProperties": {
"key1": "value1"
}
@@ -472,8 +521,8 @@
}
},
{
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-59/providers/Microsoft.Insights/metricAlerts/testMetricAlert-7597",
- "name": "testMetricAlert-7597",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-323/providers/Microsoft.Insights/metricAlerts/testMetricAlert-9876",
+ "name": "testMetricAlert-9876",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -481,7 +530,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9390/providers/Microsoft.Storage/storageAccounts/metrictests703"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -500,7 +549,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-59/providers/microsoft.insights/actionGroups/testActionGroup-4586",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-323/providers/microsoft.insights/actionGroups/testActionGroup-4433",
"webHookProperties": {
"key1": "value1"
}
@@ -514,7 +563,7 @@
],
"Variables": {
"AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/",
- "RandomSeed": "505978420",
+ "RandomSeed": "1438672973",
"RESOURCE_MANAGER_URL": null,
"SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c"
}
diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Delete().json b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Delete().json
index 7ff5e7c4e8b25..5ae52ac03f8d0 100644
--- a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Delete().json
+++ b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Delete().json
@@ -6,10 +6,9 @@
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Connection": "keep-alive",
- "traceparent": "00-bb7f2483a914ac4a91e12d17f3ba68de-9de01cca04ddae4d-00",
+ "traceparent": "00-07d5d2deaf5aea499e688875e1c4dd58-7e7f0cffd9f82242-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "ab0f81ceea4deed5b4f1b6cf1327552f",
+ "x-ms-client-request-id": "f4536864889dc5f7795bd028febb58fb",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -18,15 +17,15 @@
"Cache-Control": "no-cache",
"Content-Length": "748",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:59:26 GMT",
+ "Date": "Tue, 14 Mar 2023 09:09:41 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "b3a58731-2f6b-4378-8717-c4d00524d2f6",
- "x-ms-ratelimit-remaining-subscription-reads": "11999",
- "x-ms-request-id": "b3a58731-2f6b-4378-8717-c4d00524d2f6",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025926Z:b3a58731-2f6b-4378-8717-c4d00524d2f6"
+ "x-ms-correlation-request-id": "09010602-f663-4722-9437-ce249ab07562",
+ "x-ms-ratelimit-remaining-subscription-reads": "11998",
+ "x-ms-request-id": "09010602-f663-4722-9437-ce249ab07562",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090941Z:09010602-f663-4722-9437-ce249ab07562"
},
"ResponseBody": {
"id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c",
@@ -57,16 +56,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-2630?api-version=**",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-1454?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "44",
"Content-Type": "application/json",
- "traceparent": "00-9d3234230f4b2742861d5208b670a281-ec12302e06eedb4e-00",
+ "traceparent": "00-9b7a4349d7f3d64cb3ef9bd11be4f0dd-45a561d484329445-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "a20ef61745b0035cd492162f02ee4b71",
+ "x-ms-client-request-id": "f050f588b73ccc0111a2466b0da72dfd",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -80,19 +79,19 @@
"Cache-Control": "no-cache",
"Content-Length": "242",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:59:30 GMT",
+ "Date": "Tue, 14 Mar 2023 09:09:44 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "d2570a36-c961-4e06-8862-a0199df22815",
- "x-ms-ratelimit-remaining-subscription-writes": "1199",
- "x-ms-request-id": "d2570a36-c961-4e06-8862-a0199df22815",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025930Z:d2570a36-c961-4e06-8862-a0199df22815"
+ "x-ms-correlation-request-id": "b4b1fcbc-91a6-4fdf-9334-ed1b97ef7f66",
+ "x-ms-ratelimit-remaining-subscription-writes": "1197",
+ "x-ms-request-id": "b4b1fcbc-91a6-4fdf-9334-ed1b97ef7f66",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090945Z:b4b1fcbc-91a6-4fdf-9334-ed1b97ef7f66"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-2630",
- "name": "testRG-2630",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-1454",
+ "name": "testRG-1454",
"type": "Microsoft.Resources/resourceGroups",
"location": "eastus2",
"tags": {
@@ -104,16 +103,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-2630/providers/Microsoft.Insights/actionGroups/testActionGroup-2552?api-version=2023-01-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-1454/providers/Microsoft.Insights/actionGroups/testActionGroup-4821?api-version=2023-01-01",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "143",
"Content-Type": "application/json",
- "traceparent": "00-4b376c7d9a3f4b449a8a9485a8e598e0-88fdac3362c27e42-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "6a133d1c53132d7be33543dffbd76a9f",
+ "traceparent": "00-21d13a9d1da7df4aae893e9e0003e6b6-62df5e4f290ba746-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "2a861a02507a9387cf013fd662d96899",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -137,23 +136,23 @@
"Cache-Control": "no-cache",
"Content-Length": "647",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:59:35 GMT",
+ "Date": "Tue, 14 Mar 2023 09:09:50 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-HTTPAPI/2.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
- "X-ActivityId": "6a133d1c-5313-2d7b-e335-43dffbd76a9f",
+ "X-ActivityId": "2a861a02-507a-9387-cf01-3fd662d96899",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "7ef2f652-17ae-42cd-9d31-123a9dfbea2c",
+ "x-ms-correlation-request-id": "ff3fa48f-e0cc-482f-b6fb-abb5c5ea3798",
"x-ms-ratelimit-remaining-subscription-resource-requests": "24",
- "x-ms-request-id": "7ef2f652-17ae-42cd-9d31-123a9dfbea2c",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025936Z:7ef2f652-17ae-42cd-9d31-123a9dfbea2c",
- "X-ServedBy": "WUS2ONEIM000004"
+ "x-ms-request-id": "ff3fa48f-e0cc-482f-b6fb-abb5c5ea3798",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090951Z:ff3fa48f-e0cc-482f-b6fb-abb5c5ea3798",
+ "X-ServedBy": "EUS2ONEIM000004"
},
"ResponseBody": {
- "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-2630/providers/microsoft.insights/actionGroups/testActionGroup-2552",
+ "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-1454/providers/microsoft.insights/actionGroups/testActionGroup-4821",
"type": "Microsoft.Insights/ActionGroups",
- "name": "testActionGroup-2552",
+ "name": "testActionGroup-4821",
"location": "Global",
"tags": null,
"properties": {
@@ -181,16 +180,63 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-2630/providers/Microsoft.Insights/metricAlerts/testMetricAlert-4818?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-215?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Content-Length": "749",
+ "Content-Length": "44",
+ "Content-Type": "application/json",
+ "traceparent": "00-48f071ede928a64e87c8fbda66b649b4-29fe876d97033042-00",
+ "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "736fdfc29b2cd0f276557e0e4e29fa00",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "tags": {
+ "test": "env"
+ },
+ "location": "eastus2"
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "Cache-Control": "no-cache",
+ "Content-Length": "240",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 14 Mar 2023 09:09:52 GMT",
+ "Expires": "-1",
+ "Pragma": "no-cache",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
+ "X-Content-Type-Options": "nosniff",
+ "x-ms-correlation-request-id": "588e7cca-8382-470b-b2af-b82af93874a5",
+ "x-ms-ratelimit-remaining-subscription-writes": "1196",
+ "x-ms-request-id": "588e7cca-8382-470b-b2af-b82af93874a5",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T090952Z:588e7cca-8382-470b-b2af-b82af93874a5"
+ },
+ "ResponseBody": {
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-215",
+ "name": "testRG-215",
+ "type": "Microsoft.Resources/resourceGroups",
+ "location": "eastus2",
+ "tags": {
+ "test": "env"
+ },
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ }
+ },
+ {
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-1454/providers/Microsoft.Insights/metricAlerts/testMetricAlert-6543?api-version=2018-03-01",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Authorization": "Sanitized",
+ "Content-Length": "747",
"Content-Type": "application/json",
- "traceparent": "00-0f6774e6859f3f4faeb3c2463cb4e153-83e9dfaff386584a-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "93f6b04cd12b4eca4a1643d885efc783",
+ "traceparent": "00-730ad46226ac204ab2369828eebc80fb-d3e0ea0d421c424b-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "ac207dde5546e66f2f15e7d1169a627e",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -200,7 +246,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-215/providers/Microsoft.Storage/storageAccounts/metrictests6032"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -219,7 +265,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-2630/providers/microsoft.insights/actionGroups/testActionGroup-2552",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-1454/providers/microsoft.insights/actionGroups/testActionGroup-4821",
"webHookProperties": {
"key1": "value1"
}
@@ -232,9 +278,9 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
- "Content-Length": "1265",
+ "Content-Length": "1263",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:59:48 GMT",
+ "Date": "Tue, 14 Mar 2023 09:10:28 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -242,18 +288,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "52dd09b8-debf-4333-9f18-65534a4b0f5a",
+ "x-ms-correlation-request-id": "be4e6873-1fd2-4350-b4dd-ebfef3a9668a",
"x-ms-ratelimit-remaining-subscription-resource-requests": "299",
"x-ms-request-id": [
- "52dd09b8-debf-4333-9f18-65534a4b0f5a",
- "52dd09b8-debf-4333-9f18-65534a4b0f5a"
+ "be4e6873-1fd2-4350-b4dd-ebfef3a9668a",
+ "be4e6873-1fd2-4350-b4dd-ebfef3a9668a"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025948Z:52dd09b8-debf-4333-9f18-65534a4b0f5a",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091028Z:be4e6873-1fd2-4350-b4dd-ebfef3a9668a",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-2630/providers/Microsoft.Insights/metricAlerts/testMetricAlert-4818",
- "name": "testMetricAlert-4818",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-1454/providers/Microsoft.Insights/metricAlerts/testMetricAlert-6543",
+ "name": "testMetricAlert-6543",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -261,7 +307,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-215/providers/Microsoft.Storage/storageAccounts/metrictests6032"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -280,7 +326,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-2630/providers/microsoft.insights/actionGroups/testActionGroup-2552",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-1454/providers/microsoft.insights/actionGroups/testActionGroup-4821",
"webHookProperties": {
"key1": "value1"
}
@@ -290,14 +336,14 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-2630/providers/Microsoft.Insights/metricAlerts/testMetricAlert-4818?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-1454/providers/Microsoft.Insights/metricAlerts/testMetricAlert-6543?api-version=2018-03-01",
"RequestMethod": "DELETE",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "traceparent": "00-dce20811b0ad8142a30999652d969e0d-af297700e827784e-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "f2391fa1909fa2039374cc0f1924d9bb",
+ "traceparent": "00-16ad83054a15a94d9e42e9cdc532fa5b-87f86264ed247f49-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "47686e3d939c62988a0227bdbdab8ee7",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -307,20 +353,20 @@
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
"Content-Length": "0",
- "Date": "Thu, 09 Mar 2023 02:59:52 GMT",
+ "Date": "Tue, 14 Mar 2023 09:10:34 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "c0284696-3bbd-4787-b4e9-a3166cd54557",
+ "x-ms-correlation-request-id": "f3f5b1c5-38be-4a97-a373-a4c0738d7687",
"x-ms-ratelimit-remaining-subscription-deletes": "14999",
"x-ms-request-id": [
- "c0284696-3bbd-4787-b4e9-a3166cd54557",
- "c0284696-3bbd-4787-b4e9-a3166cd54557"
+ "f3f5b1c5-38be-4a97-a373-a4c0738d7687",
+ "f3f5b1c5-38be-4a97-a373-a4c0738d7687"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025953Z:c0284696-3bbd-4787-b4e9-a3166cd54557",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091035Z:f3f5b1c5-38be-4a97-a373-a4c0738d7687",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": null
@@ -328,7 +374,7 @@
],
"Variables": {
"AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/",
- "RandomSeed": "924134368",
+ "RandomSeed": "1391241299",
"RESOURCE_MANAGER_URL": null,
"SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c"
}
diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Delete()Async.json b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Delete()Async.json
index 4ae30ace886d1..8b543542f0478 100644
--- a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Delete()Async.json
+++ b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Delete()Async.json
@@ -6,10 +6,9 @@
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Connection": "keep-alive",
- "traceparent": "00-cb8a2f81ed4d4a4ba6e6339acbc97026-5dd91989c5a52843-00",
+ "traceparent": "00-4d32b7e801b65b41828e847ff68877b0-2c5ed2ca9da93642-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "fc96f80ef7d8d5d4d8fa3d663aa7180a",
+ "x-ms-client-request-id": "8d6e27a9be4ba7ee4acf3f4935e5465a",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -18,15 +17,15 @@
"Cache-Control": "no-cache",
"Content-Length": "748",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 03:02:16 GMT",
+ "Date": "Tue, 14 Mar 2023 09:11:32 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "3d836311-df50-4c95-9d09-06501e2c3f5e",
- "x-ms-ratelimit-remaining-subscription-reads": "11999",
- "x-ms-request-id": "3d836311-df50-4c95-9d09-06501e2c3f5e",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T030216Z:3d836311-df50-4c95-9d09-06501e2c3f5e"
+ "x-ms-correlation-request-id": "4e4a3455-e021-4b19-a93f-3018281037d3",
+ "x-ms-ratelimit-remaining-subscription-reads": "11991",
+ "x-ms-request-id": "4e4a3455-e021-4b19-a93f-3018281037d3",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091133Z:4e4a3455-e021-4b19-a93f-3018281037d3"
},
"ResponseBody": {
"id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c",
@@ -57,16 +56,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-9349?api-version=**",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-7858?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "44",
"Content-Type": "application/json",
- "traceparent": "00-a88e1fac1bcfe740bb73180597bf49e0-a400344ca4c15448-00",
+ "traceparent": "00-752414d23e37c741ab146a1f646e8ff6-5e7931ccbf5e054b-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "f28e8f669fd25a8312243d75c6f30a6d",
+ "x-ms-client-request-id": "3128f68b1bd4577237339829f27c4f9c",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -80,19 +79,19 @@
"Cache-Control": "no-cache",
"Content-Length": "242",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 03:02:21 GMT",
+ "Date": "Tue, 14 Mar 2023 09:11:33 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "4bc29c60-393e-4cfd-9ed1-8ef1bb1ebf81",
- "x-ms-ratelimit-remaining-subscription-writes": "1199",
- "x-ms-request-id": "4bc29c60-393e-4cfd-9ed1-8ef1bb1ebf81",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T030221Z:4bc29c60-393e-4cfd-9ed1-8ef1bb1ebf81"
+ "x-ms-correlation-request-id": "9ec57d61-0a74-415e-8896-907f7cfe8559",
+ "x-ms-ratelimit-remaining-subscription-writes": "1191",
+ "x-ms-request-id": "9ec57d61-0a74-415e-8896-907f7cfe8559",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091134Z:9ec57d61-0a74-415e-8896-907f7cfe8559"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9349",
- "name": "testRG-9349",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-7858",
+ "name": "testRG-7858",
"type": "Microsoft.Resources/resourceGroups",
"location": "eastus2",
"tags": {
@@ -104,16 +103,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9349/providers/Microsoft.Insights/actionGroups/testActionGroup-4044?api-version=2023-01-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-7858/providers/Microsoft.Insights/actionGroups/testActionGroup-6996?api-version=2023-01-01",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "143",
"Content-Type": "application/json",
- "traceparent": "00-be395a8efc45d8429a1c02a6c129e5ec-3f269010da97814f-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "07d828042fc97f00b07d32a085484ceb",
+ "traceparent": "00-7e8fea9d9f4e9c43b09e70584686e7f8-8705f8bb1049aa4c-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "61cf4c1d46437654b5c4520fc4fc506e",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -137,23 +136,23 @@
"Cache-Control": "no-cache",
"Content-Length": "647",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 03:02:29 GMT",
+ "Date": "Tue, 14 Mar 2023 09:11:38 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-HTTPAPI/2.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
- "X-ActivityId": "07d82804-2fc9-7f00-b07d-32a085484ceb",
+ "X-ActivityId": "61cf4c1d-4643-7654-b5c4-520fc4fc506e",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "5bc47d69-a523-4ee5-85f3-9a31fb2773c1",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "24",
- "x-ms-request-id": "5bc47d69-a523-4ee5-85f3-9a31fb2773c1",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T030230Z:5bc47d69-a523-4ee5-85f3-9a31fb2773c1",
- "X-ServedBy": "WUS2ONEIM000002"
+ "x-ms-correlation-request-id": "a66b1454-41b2-4c14-9224-5eb4ed8cecea",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "22",
+ "x-ms-request-id": "a66b1454-41b2-4c14-9224-5eb4ed8cecea",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091139Z:a66b1454-41b2-4c14-9224-5eb4ed8cecea",
+ "X-ServedBy": "EUS2ONEIM000002"
},
"ResponseBody": {
- "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9349/providers/microsoft.insights/actionGroups/testActionGroup-4044",
+ "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-7858/providers/microsoft.insights/actionGroups/testActionGroup-6996",
"type": "Microsoft.Insights/ActionGroups",
- "name": "testActionGroup-4044",
+ "name": "testActionGroup-6996",
"location": "Global",
"tags": null,
"properties": {
@@ -181,16 +180,63 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9349/providers/Microsoft.Insights/metricAlerts/testMetricAlert-936?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-6627?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Content-Length": "749",
+ "Content-Length": "44",
+ "Content-Type": "application/json",
+ "traceparent": "00-1ed1462787a9a74799fe81e887e60a27-13d1267dd6e1704d-00",
+ "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "77692fa75353f41a87ba0e20dcc2f998",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "tags": {
+ "test": "env"
+ },
+ "location": "eastus2"
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "Cache-Control": "no-cache",
+ "Content-Length": "242",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 14 Mar 2023 09:11:39 GMT",
+ "Expires": "-1",
+ "Pragma": "no-cache",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
+ "X-Content-Type-Options": "nosniff",
+ "x-ms-correlation-request-id": "cfca3945-1f01-4e4d-9e58-1ff5ae199e98",
+ "x-ms-ratelimit-remaining-subscription-writes": "1190",
+ "x-ms-request-id": "cfca3945-1f01-4e4d-9e58-1ff5ae199e98",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091140Z:cfca3945-1f01-4e4d-9e58-1ff5ae199e98"
+ },
+ "ResponseBody": {
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-6627",
+ "name": "testRG-6627",
+ "type": "Microsoft.Resources/resourceGroups",
+ "location": "eastus2",
+ "tags": {
+ "test": "env"
+ },
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ }
+ },
+ {
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-7858/providers/Microsoft.Insights/metricAlerts/testMetricAlert-737?api-version=2018-03-01",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Authorization": "Sanitized",
+ "Content-Length": "747",
"Content-Type": "application/json",
- "traceparent": "00-f9b0684a0babed468af34d201dc0753e-a227a0087baa4f47-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "cba021cf251b78f67de4af9862344a5c",
+ "traceparent": "00-ac466118d5c04c4f9433602112fb73a0-730e8bbaacc5c541-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "9ed0c85506645b2f76a09dc095fdbac0",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -200,7 +246,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-6627/providers/Microsoft.Storage/storageAccounts/metrictests154"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -219,7 +265,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9349/providers/microsoft.insights/actionGroups/testActionGroup-4044",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-7858/providers/microsoft.insights/actionGroups/testActionGroup-6996",
"webHookProperties": {
"key1": "value1"
}
@@ -232,9 +278,9 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
- "Content-Length": "1263",
+ "Content-Length": "1261",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 03:02:40 GMT",
+ "Date": "Tue, 14 Mar 2023 09:12:12 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -242,18 +288,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "6fc9831b-d749-4a00-a222-f2d555b8e35c",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "299",
+ "x-ms-correlation-request-id": "7a1e4927-39d7-4f61-94eb-33a566ffd180",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "297",
"x-ms-request-id": [
- "6fc9831b-d749-4a00-a222-f2d555b8e35c",
- "6fc9831b-d749-4a00-a222-f2d555b8e35c"
+ "7a1e4927-39d7-4f61-94eb-33a566ffd180",
+ "7a1e4927-39d7-4f61-94eb-33a566ffd180"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T030240Z:6fc9831b-d749-4a00-a222-f2d555b8e35c",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091212Z:7a1e4927-39d7-4f61-94eb-33a566ffd180",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9349/providers/Microsoft.Insights/metricAlerts/testMetricAlert-936",
- "name": "testMetricAlert-936",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-7858/providers/Microsoft.Insights/metricAlerts/testMetricAlert-737",
+ "name": "testMetricAlert-737",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -261,7 +307,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-6627/providers/Microsoft.Storage/storageAccounts/metrictests154"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -280,7 +326,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9349/providers/microsoft.insights/actionGroups/testActionGroup-4044",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-7858/providers/microsoft.insights/actionGroups/testActionGroup-6996",
"webHookProperties": {
"key1": "value1"
}
@@ -290,14 +336,14 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9349/providers/Microsoft.Insights/metricAlerts/testMetricAlert-936?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-7858/providers/Microsoft.Insights/metricAlerts/testMetricAlert-737?api-version=2018-03-01",
"RequestMethod": "DELETE",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "traceparent": "00-e197ab1706320545aad5cc0e37934870-a7a7f000afb89742-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "e114bdcc06805f9d8e72212251ba8ddc",
+ "traceparent": "00-06bb5ee5ab7ed6409f37f0022ba8651f-0b3c57446970014f-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "f08008a8134c117f5f742d5db4d25b06",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -307,20 +353,20 @@
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
"Content-Length": "0",
- "Date": "Thu, 09 Mar 2023 03:02:45 GMT",
+ "Date": "Tue, 14 Mar 2023 09:12:18 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "be161701-9b48-47ec-ac6e-e54d22b26644",
- "x-ms-ratelimit-remaining-subscription-deletes": "14999",
+ "x-ms-correlation-request-id": "a1c79140-f75a-4d31-ae49-95598abe5b46",
+ "x-ms-ratelimit-remaining-subscription-deletes": "14998",
"x-ms-request-id": [
- "be161701-9b48-47ec-ac6e-e54d22b26644",
- "be161701-9b48-47ec-ac6e-e54d22b26644"
+ "a1c79140-f75a-4d31-ae49-95598abe5b46",
+ "a1c79140-f75a-4d31-ae49-95598abe5b46"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T030245Z:be161701-9b48-47ec-ac6e-e54d22b26644",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091218Z:a1c79140-f75a-4d31-ae49-95598abe5b46",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": null
@@ -328,7 +374,7 @@
],
"Variables": {
"AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/",
- "RandomSeed": "1470401262",
+ "RandomSeed": "1460309975",
"RESOURCE_MANAGER_URL": null,
"SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c"
}
diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Get().json b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Get().json
index 593cc2a7f7b2a..c4253b7abc98e 100644
--- a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Get().json
+++ b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Get().json
@@ -6,9 +6,9 @@
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "traceparent": "00-4dedbf1fad5e6d4ab71485c7c5fdf9ba-1740a055a1396749-00",
+ "traceparent": "00-31440d94af55c0479375fddba6dec184-9c0fbca5a875104c-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "d6d0d4a649ee5d7667974c31ba8d9cdf",
+ "x-ms-client-request-id": "4c7ceefce80c914c2b6f6f9532795da3",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -17,15 +17,15 @@
"Cache-Control": "no-cache",
"Content-Length": "748",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 02:59:58 GMT",
+ "Date": "Tue, 14 Mar 2023 09:10:40 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "da345f1f-a06e-47eb-96ad-843ffb265f25",
- "x-ms-ratelimit-remaining-subscription-reads": "11998",
- "x-ms-request-id": "da345f1f-a06e-47eb-96ad-843ffb265f25",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T025959Z:da345f1f-a06e-47eb-96ad-843ffb265f25"
+ "x-ms-correlation-request-id": "fe319bd1-eae8-402b-a7d2-a69eff6d8a0c",
+ "x-ms-ratelimit-remaining-subscription-reads": "11995",
+ "x-ms-request-id": "fe319bd1-eae8-402b-a7d2-a69eff6d8a0c",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091041Z:fe319bd1-eae8-402b-a7d2-a69eff6d8a0c"
},
"ResponseBody": {
"id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c",
@@ -56,16 +56,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-9578?api-version=**",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-96?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "44",
"Content-Type": "application/json",
- "traceparent": "00-b24c017e194d24489ab22ccc31efc4b2-30b0bbff63a7f24e-00",
+ "traceparent": "00-b4d0f04cfded554eaa3a48bf47d1956a-acb75119153e524c-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "97873d1b49ecc299b08449788f5ee3bb",
+ "x-ms-client-request-id": "07a4b94b2bfa675cf40ee58591e91719",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -77,21 +77,21 @@
"StatusCode": 201,
"ResponseHeaders": {
"Cache-Control": "no-cache",
- "Content-Length": "242",
+ "Content-Length": "238",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 03:00:01 GMT",
+ "Date": "Tue, 14 Mar 2023 09:10:42 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "6e97c6fb-ee64-4a7e-916f-91b0d5d46041",
- "x-ms-ratelimit-remaining-subscription-writes": "1198",
- "x-ms-request-id": "6e97c6fb-ee64-4a7e-916f-91b0d5d46041",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T030001Z:6e97c6fb-ee64-4a7e-916f-91b0d5d46041"
+ "x-ms-correlation-request-id": "717555e5-f81d-4aaa-85cd-3e60f7f191af",
+ "x-ms-ratelimit-remaining-subscription-writes": "1194",
+ "x-ms-request-id": "717555e5-f81d-4aaa-85cd-3e60f7f191af",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091042Z:717555e5-f81d-4aaa-85cd-3e60f7f191af"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9578",
- "name": "testRG-9578",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-96",
+ "name": "testRG-96",
"type": "Microsoft.Resources/resourceGroups",
"location": "eastus2",
"tags": {
@@ -103,16 +103,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9578/providers/Microsoft.Insights/actionGroups/testActionGroup-8194?api-version=2023-01-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-96/providers/Microsoft.Insights/actionGroups/testActionGroup-5218?api-version=2023-01-01",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "143",
"Content-Type": "application/json",
- "traceparent": "00-3897750d3aeee5438c3825cce0fcccf4-252619effaf39f46-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "f1e929b25dd440a2b2c7d7db4d47d17c",
+ "traceparent": "00-4648bbde5371a441bc2a85f4b22fc4da-5c1c132263ce6447-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "ded52114906170ba90d812656fb092ad",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -134,25 +134,25 @@
"Access-Control-Expose-Headers": "x-activityid",
"api-supported-versions": "2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview",
"Cache-Control": "no-cache",
- "Content-Length": "647",
+ "Content-Length": "645",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 03:00:04 GMT",
+ "Date": "Tue, 14 Mar 2023 09:10:46 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-HTTPAPI/2.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
- "X-ActivityId": "f1e929b2-5dd4-40a2-b2c7-d7db4d47d17c",
+ "X-ActivityId": "ded52114-9061-70ba-90d8-12656fb092ad",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "600a0620-d035-4b3b-884a-767461b6ee17",
+ "x-ms-correlation-request-id": "766394cd-5210-4eca-bbaf-32615dd65f64",
"x-ms-ratelimit-remaining-subscription-resource-requests": "23",
- "x-ms-request-id": "600a0620-d035-4b3b-884a-767461b6ee17",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T030004Z:600a0620-d035-4b3b-884a-767461b6ee17",
- "X-ServedBy": "WUS2ONEIM000004"
+ "x-ms-request-id": "766394cd-5210-4eca-bbaf-32615dd65f64",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091047Z:766394cd-5210-4eca-bbaf-32615dd65f64",
+ "X-ServedBy": "EUS2ONEIM000008"
},
"ResponseBody": {
- "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9578/providers/microsoft.insights/actionGroups/testActionGroup-8194",
+ "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-96/providers/microsoft.insights/actionGroups/testActionGroup-5218",
"type": "Microsoft.Insights/ActionGroups",
- "name": "testActionGroup-8194",
+ "name": "testActionGroup-5218",
"location": "Global",
"tags": null,
"properties": {
@@ -180,16 +180,63 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9578/providers/Microsoft.Insights/metricAlerts/testMetricAlert-3888?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-9832?api-version=**",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Authorization": "Sanitized",
+ "Content-Length": "44",
+ "Content-Type": "application/json",
+ "traceparent": "00-64e4017603e9e54f8604319bf58ce678-f31bd9321ae10a46-00",
+ "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "f556eb5650f3a4f0f33eaca6de867e18",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "tags": {
+ "test": "env"
+ },
+ "location": "eastus2"
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "Cache-Control": "no-cache",
+ "Content-Length": "242",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 14 Mar 2023 09:10:47 GMT",
+ "Expires": "-1",
+ "Pragma": "no-cache",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
+ "X-Content-Type-Options": "nosniff",
+ "x-ms-correlation-request-id": "ffedd23a-a838-4ded-b860-dc9e1719dfdd",
+ "x-ms-ratelimit-remaining-subscription-writes": "1193",
+ "x-ms-request-id": "ffedd23a-a838-4ded-b860-dc9e1719dfdd",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091048Z:ffedd23a-a838-4ded-b860-dc9e1719dfdd"
+ },
+ "ResponseBody": {
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9832",
+ "name": "testRG-9832",
+ "type": "Microsoft.Resources/resourceGroups",
+ "location": "eastus2",
+ "tags": {
+ "test": "env"
+ },
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ }
+ },
+ {
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-96/providers/Microsoft.Insights/metricAlerts/testMetricAlert-9649?api-version=2018-03-01",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Content-Length": "749",
+ "Content-Length": "746",
"Content-Type": "application/json",
- "traceparent": "00-f97eef72364e5b4b84693e41fedeed4a-dc89a9d48fa0b040-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "b4265b84e70e3c862c99f213ee07ed4e",
+ "traceparent": "00-f762aed91300644cbbf5104fe4bad190-8a7b68b3b5c3934f-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "7eb5b50042f6af08256856bd96d23e96",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -199,7 +246,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9832/providers/Microsoft.Storage/storageAccounts/metrictests4746"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -218,7 +265,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9578/providers/microsoft.insights/actionGroups/testActionGroup-8194",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-96/providers/microsoft.insights/actionGroups/testActionGroup-5218",
"webHookProperties": {
"key1": "value1"
}
@@ -231,9 +278,9 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
- "Content-Length": "1265",
+ "Content-Length": "1260",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 03:00:14 GMT",
+ "Date": "Tue, 14 Mar 2023 09:11:23 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -241,18 +288,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "c2ee930b-1898-41e3-9612-8df8d4afbf5a",
+ "x-ms-correlation-request-id": "dd05285e-c608-48f9-bf42-f862b392eb7b",
"x-ms-ratelimit-remaining-subscription-resource-requests": "298",
"x-ms-request-id": [
- "c2ee930b-1898-41e3-9612-8df8d4afbf5a",
- "c2ee930b-1898-41e3-9612-8df8d4afbf5a"
+ "dd05285e-c608-48f9-bf42-f862b392eb7b",
+ "dd05285e-c608-48f9-bf42-f862b392eb7b"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T030015Z:c2ee930b-1898-41e3-9612-8df8d4afbf5a",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091123Z:dd05285e-c608-48f9-bf42-f862b392eb7b",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9578/providers/Microsoft.Insights/metricAlerts/testMetricAlert-3888",
- "name": "testMetricAlert-3888",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-96/providers/Microsoft.Insights/metricAlerts/testMetricAlert-9649",
+ "name": "testMetricAlert-9649",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -260,7 +307,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9832/providers/Microsoft.Storage/storageAccounts/metrictests4746"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -279,7 +326,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9578/providers/microsoft.insights/actionGroups/testActionGroup-8194",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-96/providers/microsoft.insights/actionGroups/testActionGroup-5218",
"webHookProperties": {
"key1": "value1"
}
@@ -289,14 +336,14 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9578/providers/Microsoft.Insights/metricAlerts/testMetricAlert-3888?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-96/providers/Microsoft.Insights/metricAlerts/testMetricAlert-9649?api-version=2018-03-01",
"RequestMethod": "GET",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "traceparent": "00-8b69d9147931034ba0274c70e532e6eb-cdb408d9abcf9c46-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "b5e940fe4cf2e046e4573982c2e6633d",
+ "traceparent": "00-7b5275b0258a1b48b335dd0316cc57ad-f5cadbfa7d08224c-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "fcb571ff5d38f640ba3f5fd774efeb90",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -305,9 +352,9 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
- "Content-Length": "1265",
+ "Content-Length": "1260",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 03:00:15 GMT",
+ "Date": "Tue, 14 Mar 2023 09:11:23 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -315,18 +362,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "91ddbb90-55fa-41d7-95bf-38543f41db41",
- "x-ms-ratelimit-remaining-subscription-reads": "11997",
+ "x-ms-correlation-request-id": "8ac2294c-2588-4103-8bc0-8dcd3e6d0e59",
+ "x-ms-ratelimit-remaining-subscription-reads": "11992",
"x-ms-request-id": [
- "91ddbb90-55fa-41d7-95bf-38543f41db41",
- "91ddbb90-55fa-41d7-95bf-38543f41db41"
+ "8ac2294c-2588-4103-8bc0-8dcd3e6d0e59",
+ "8ac2294c-2588-4103-8bc0-8dcd3e6d0e59"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T030015Z:91ddbb90-55fa-41d7-95bf-38543f41db41",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091124Z:8ac2294c-2588-4103-8bc0-8dcd3e6d0e59",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9578/providers/Microsoft.Insights/metricAlerts/testMetricAlert-3888",
- "name": "testMetricAlert-3888",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-96/providers/Microsoft.Insights/metricAlerts/testMetricAlert-9649",
+ "name": "testMetricAlert-9649",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -334,7 +381,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-9832/providers/Microsoft.Storage/storageAccounts/metrictests4746"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -353,7 +400,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-9578/providers/microsoft.insights/actionGroups/testActionGroup-8194",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-96/providers/microsoft.insights/actionGroups/testActionGroup-5218",
"webHookProperties": {
"key1": "value1"
}
@@ -365,7 +412,7 @@
],
"Variables": {
"AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/",
- "RandomSeed": "1756601263",
+ "RandomSeed": "753798744",
"RESOURCE_MANAGER_URL": null,
"SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c"
}
diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Get()Async.json b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Get()Async.json
index 748c8a218ba04..a6b88ea5faabb 100644
--- a/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Get()Async.json
+++ b/sdk/monitor/Azure.ResourceManager.Monitor/tests/SessionRecords/MetricAlertOperationsTests/Get()Async.json
@@ -6,9 +6,9 @@
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "traceparent": "00-8c40520938ccea4098a3607de17d676e-65f50ad3806e1343-00",
+ "traceparent": "00-d6a0288fdbab5f48a00f13af004ea3e5-a35bcb033a7cc949-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "d6aadc534cd81bffc79e2692393413da",
+ "x-ms-client-request-id": "3c0cb735678e2964577c81d73520b213",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -17,15 +17,15 @@
"Cache-Control": "no-cache",
"Content-Length": "748",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 03:02:51 GMT",
+ "Date": "Tue, 14 Mar 2023 09:12:24 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "82ae88a2-d0d5-4660-84d5-f018f019ef0e",
- "x-ms-ratelimit-remaining-subscription-reads": "11998",
- "x-ms-request-id": "82ae88a2-d0d5-4660-84d5-f018f019ef0e",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T030252Z:82ae88a2-d0d5-4660-84d5-f018f019ef0e"
+ "x-ms-correlation-request-id": "8206c7fc-f608-4d55-bf8a-120f4cb893f6",
+ "x-ms-ratelimit-remaining-subscription-reads": "11988",
+ "x-ms-request-id": "8206c7fc-f608-4d55-bf8a-120f4cb893f6",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091224Z:8206c7fc-f608-4d55-bf8a-120f4cb893f6"
},
"ResponseBody": {
"id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c",
@@ -56,16 +56,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-4781?api-version=**",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-7445?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "44",
"Content-Type": "application/json",
- "traceparent": "00-62d17fd0f9a9e84ca41ad187e1cf059f-5de0eb1d43fc7a4d-00",
+ "traceparent": "00-3a454ab54daeaf499327b13338227b27-8d4c7c2db47a8346-00",
"User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "7cdad1b82e28f26bf57dd7e928c05611",
+ "x-ms-client-request-id": "5d521d8117d49fc4daae08ee4b63b925",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -79,19 +79,19 @@
"Cache-Control": "no-cache",
"Content-Length": "242",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 03:02:53 GMT",
+ "Date": "Tue, 14 Mar 2023 09:12:26 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "ae2464d5-972f-43eb-8bc5-f235828410a0",
- "x-ms-ratelimit-remaining-subscription-writes": "1198",
- "x-ms-request-id": "ae2464d5-972f-43eb-8bc5-f235828410a0",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T030253Z:ae2464d5-972f-43eb-8bc5-f235828410a0"
+ "x-ms-correlation-request-id": "99d1a46f-7117-45e8-a564-28a81ca7c3d3",
+ "x-ms-ratelimit-remaining-subscription-writes": "1188",
+ "x-ms-request-id": "99d1a46f-7117-45e8-a564-28a81ca7c3d3",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091226Z:99d1a46f-7117-45e8-a564-28a81ca7c3d3"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4781",
- "name": "testRG-4781",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-7445",
+ "name": "testRG-7445",
"type": "Microsoft.Resources/resourceGroups",
"location": "eastus2",
"tags": {
@@ -103,16 +103,16 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4781/providers/Microsoft.Insights/actionGroups/testActionGroup-3842?api-version=2023-01-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-7445/providers/Microsoft.Insights/actionGroups/testActionGroup-3505?api-version=2023-01-01",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
"Content-Length": "143",
"Content-Type": "application/json",
- "traceparent": "00-c44fe742f2f95942ac5eabff72c0b015-115e8f2912230d4d-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "5222085ff91efb035fe5054f318157f2",
+ "traceparent": "00-f5836c118ddab348a103df0e71e8fb99-47a76a9c12204b45-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "2b4ede7617b281515775b45d28c20bcd",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -136,23 +136,23 @@
"Cache-Control": "no-cache",
"Content-Length": "647",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 03:02:56 GMT",
+ "Date": "Tue, 14 Mar 2023 09:12:32 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-HTTPAPI/2.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
- "X-ActivityId": "5222085f-f91e-fb03-5fe5-054f318157f2",
+ "X-ActivityId": "2b4ede76-17b2-8151-5775-b45d28c20bcd",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "64bd7822-46bf-4468-8eac-89a568b397f1",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "23",
- "x-ms-request-id": "64bd7822-46bf-4468-8eac-89a568b397f1",
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T030257Z:64bd7822-46bf-4468-8eac-89a568b397f1",
- "X-ServedBy": "WUS2ONEIM000002"
+ "x-ms-correlation-request-id": "225bb1df-b3ca-44c5-96f9-b3d9cf9dfd7b",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "21",
+ "x-ms-request-id": "225bb1df-b3ca-44c5-96f9-b3d9cf9dfd7b",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091232Z:225bb1df-b3ca-44c5-96f9-b3d9cf9dfd7b",
+ "X-ServedBy": "EUS2ONEIM000004"
},
"ResponseBody": {
- "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-4781/providers/microsoft.insights/actionGroups/testActionGroup-3842",
+ "id": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-7445/providers/microsoft.insights/actionGroups/testActionGroup-3505",
"type": "Microsoft.Insights/ActionGroups",
- "name": "testActionGroup-3842",
+ "name": "testActionGroup-3505",
"location": "Global",
"tags": null,
"properties": {
@@ -180,16 +180,63 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4781/providers/Microsoft.Insights/metricAlerts/testMetricAlert-9312?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/testRG-4978?api-version=**",
"RequestMethod": "PUT",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "Content-Length": "749",
+ "Content-Length": "44",
+ "Content-Type": "application/json",
+ "traceparent": "00-2336c1b1cdc7fb46b6f98eea81ea2e56-487454e391089e42-00",
+ "User-Agent": "azsdk-net-ResourceManager/1.4.0 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "d7d6e638f4e3ee778db62068301e1e0f",
+ "x-ms-return-client-request-id": "true"
+ },
+ "RequestBody": {
+ "tags": {
+ "test": "env"
+ },
+ "location": "eastus2"
+ },
+ "StatusCode": 201,
+ "ResponseHeaders": {
+ "Cache-Control": "no-cache",
+ "Content-Length": "242",
+ "Content-Type": "application/json; charset=utf-8",
+ "Date": "Tue, 14 Mar 2023 09:12:32 GMT",
+ "Expires": "-1",
+ "Pragma": "no-cache",
+ "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
+ "X-Content-Type-Options": "nosniff",
+ "x-ms-correlation-request-id": "3556a784-f72f-4b34-897c-8fe982bd85b2",
+ "x-ms-ratelimit-remaining-subscription-writes": "1187",
+ "x-ms-request-id": "3556a784-f72f-4b34-897c-8fe982bd85b2",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091233Z:3556a784-f72f-4b34-897c-8fe982bd85b2"
+ },
+ "ResponseBody": {
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4978",
+ "name": "testRG-4978",
+ "type": "Microsoft.Resources/resourceGroups",
+ "location": "eastus2",
+ "tags": {
+ "test": "env"
+ },
+ "properties": {
+ "provisioningState": "Succeeded"
+ }
+ }
+ },
+ {
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-7445/providers/Microsoft.Insights/metricAlerts/testMetricAlert-3999?api-version=2018-03-01",
+ "RequestMethod": "PUT",
+ "RequestHeaders": {
+ "Accept": "application/json",
+ "Authorization": "Sanitized",
+ "Content-Length": "748",
"Content-Type": "application/json",
- "traceparent": "00-7f72d0f7121cb245a87a93d583bae63a-794d73c67336e040-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "569b8a02b3d76b7be5568144de75663c",
+ "traceparent": "00-58c3688114b35746b20ba5afac6e59ac-cc72cc798301bd4d-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "37f3794a2765b96ac2f2799e2c976e90",
"x-ms-return-client-request-id": "true"
},
"RequestBody": {
@@ -199,7 +246,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4978/providers/Microsoft.Storage/storageAccounts/metrictests5180"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -218,7 +265,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-4781/providers/microsoft.insights/actionGroups/testActionGroup-3842",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-7445/providers/microsoft.insights/actionGroups/testActionGroup-3505",
"webHookProperties": {
"key1": "value1"
}
@@ -231,9 +278,9 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
- "Content-Length": "1265",
+ "Content-Length": "1264",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 03:03:09 GMT",
+ "Date": "Tue, 14 Mar 2023 09:13:07 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -241,18 +288,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "e782e676-2cfb-4d74-9a05-f07022e5fdc8",
- "x-ms-ratelimit-remaining-subscription-resource-requests": "298",
+ "x-ms-correlation-request-id": "c5e08af4-440c-4444-bc21-d4a706e3b254",
+ "x-ms-ratelimit-remaining-subscription-resource-requests": "296",
"x-ms-request-id": [
- "e782e676-2cfb-4d74-9a05-f07022e5fdc8",
- "e782e676-2cfb-4d74-9a05-f07022e5fdc8"
+ "c5e08af4-440c-4444-bc21-d4a706e3b254",
+ "c5e08af4-440c-4444-bc21-d4a706e3b254"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T030310Z:e782e676-2cfb-4d74-9a05-f07022e5fdc8",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091308Z:c5e08af4-440c-4444-bc21-d4a706e3b254",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4781/providers/Microsoft.Insights/metricAlerts/testMetricAlert-9312",
- "name": "testMetricAlert-9312",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-7445/providers/Microsoft.Insights/metricAlerts/testMetricAlert-3999",
+ "name": "testMetricAlert-3999",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -260,7 +307,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4978/providers/Microsoft.Storage/storageAccounts/metrictests5180"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -279,7 +326,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-4781/providers/microsoft.insights/actionGroups/testActionGroup-3842",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-7445/providers/microsoft.insights/actionGroups/testActionGroup-3505",
"webHookProperties": {
"key1": "value1"
}
@@ -289,14 +336,14 @@
}
},
{
- "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4781/providers/Microsoft.Insights/metricAlerts/testMetricAlert-9312?api-version=2018-03-01",
+ "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-7445/providers/Microsoft.Insights/metricAlerts/testMetricAlert-3999?api-version=2018-03-01",
"RequestMethod": "GET",
"RequestHeaders": {
"Accept": "application/json",
"Authorization": "Sanitized",
- "traceparent": "00-908ca1a0c8a5b245b932582c4f20a5d6-66ae96059d371149-00",
- "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230308.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
- "x-ms-client-request-id": "d1b47a281d0ad899d781c94865a3c4fb",
+ "traceparent": "00-9209d1724e97cf4abe599ff8b602b1ed-3ed966f587ab3e44-00",
+ "User-Agent": "azsdk-net-ResourceManager.Monitor/1.1.0-alpha.20230314.1 (.NET Framework 4.8.9139.0; Microsoft Windows 10.0.22621 )",
+ "x-ms-client-request-id": "d10d954764638d4b66dc8b76c8be3a05",
"x-ms-return-client-request-id": "true"
},
"RequestBody": null,
@@ -305,9 +352,9 @@
"api-supported-versions": "2017-09-01-preview, 2018-03-01",
"Arr-Disable-Session-Affinity": "true",
"Cache-Control": "no-cache",
- "Content-Length": "1265",
+ "Content-Length": "1264",
"Content-Type": "application/json; charset=utf-8",
- "Date": "Thu, 09 Mar 2023 03:03:09 GMT",
+ "Date": "Tue, 14 Mar 2023 09:13:07 GMT",
"Expires": "-1",
"Pragma": "no-cache",
"Server": "Microsoft-IIS/10.0",
@@ -315,18 +362,18 @@
"Vary": "Accept-Encoding",
"X-AspNet-Version": "4.0.30319",
"X-Content-Type-Options": "nosniff",
- "x-ms-correlation-request-id": "89a14d71-2730-4bfe-a1ce-9ce283d31e58",
- "x-ms-ratelimit-remaining-subscription-reads": "11997",
+ "x-ms-correlation-request-id": "8f5b1db7-95c4-493d-9e39-54536c73623f",
+ "x-ms-ratelimit-remaining-subscription-reads": "11985",
"x-ms-request-id": [
- "89a14d71-2730-4bfe-a1ce-9ce283d31e58",
- "89a14d71-2730-4bfe-a1ce-9ce283d31e58"
+ "8f5b1db7-95c4-493d-9e39-54536c73623f",
+ "8f5b1db7-95c4-493d-9e39-54536c73623f"
],
- "x-ms-routing-request-id": "SOUTHEASTASIA:20230309T030310Z:89a14d71-2730-4bfe-a1ce-9ce283d31e58",
+ "x-ms-routing-request-id": "SOUTHEASTASIA:20230314T091308Z:8f5b1db7-95c4-493d-9e39-54536c73623f",
"X-Powered-By": "ASP.NET"
},
"ResponseBody": {
- "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4781/providers/Microsoft.Insights/metricAlerts/testMetricAlert-9312",
- "name": "testMetricAlert-9312",
+ "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-7445/providers/Microsoft.Insights/metricAlerts/testMetricAlert-3999",
+ "name": "testMetricAlert-3999",
"type": "Microsoft.Insights/metricAlerts",
"location": "global",
"tags": {},
@@ -334,7 +381,7 @@
"severity": 3,
"enabled": true,
"scopes": [
- "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/deleteme0309/providers/Microsoft.Storage/storageAccounts/metricalerttest"
+ "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testRG-4978/providers/Microsoft.Storage/storageAccounts/metrictests5180"
],
"evaluationFrequency": "PT1M",
"windowSize": "PT5M",
@@ -353,7 +400,7 @@
},
"actions": [
{
- "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-4781/providers/microsoft.insights/actionGroups/testActionGroup-3842",
+ "actionGroupId": "/subscriptions/DB1AB6F0-4769-4B27-930E-01E2EF9C123C/resourceGroups/testRG-7445/providers/microsoft.insights/actionGroups/testActionGroup-3505",
"webHookProperties": {
"key1": "value1"
}
@@ -365,7 +412,7 @@
],
"Variables": {
"AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com/",
- "RandomSeed": "1317040969",
+ "RandomSeed": "1747497056",
"RESOURCE_MANAGER_URL": null,
"SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c"
}
diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/tests/TestCase/MetricAlertCollectionTests.cs b/sdk/monitor/Azure.ResourceManager.Monitor/tests/TestCase/MetricAlertCollectionTests.cs
index d76c89aaf5914..3167b141846cf 100644
--- a/sdk/monitor/Azure.ResourceManager.Monitor/tests/TestCase/MetricAlertCollectionTests.cs
+++ b/sdk/monitor/Azure.ResourceManager.Monitor/tests/TestCase/MetricAlertCollectionTests.cs
@@ -6,6 +6,7 @@
using System.Threading.Tasks;
using Azure.Core.TestFramework;
using Azure.ResourceManager.Monitor;
+using Azure.ResourceManager.Storage;
using Azure.ResourceManager.Monitor.Tests;
using NUnit.Framework;
@@ -18,8 +19,33 @@ public MetricAlertCollectionTests(bool isAsync)
{
}
+ #region storage account
+ public async Task GetStorageAccountId()
+ {
+ var resourceGroup = await CreateResourceGroupAsync();
+ var storageCeollection = resourceGroup.GetStorageAccounts();
+ string accountName = Recording.GenerateAssetName("metrictests");
+ var storageContent = ResourceDataHelper.GetContent();
+ //var storageAccount = await storageCeollection.CreateOrUpdateAsync(WaitUntil.Completed, accountName, storageContent);
+ string storageAccountId;
+ if (Mode == RecordedTestMode.Playback)
+ {
+ storageAccountId = StorageAccountResource.CreateResourceIdentifier(resourceGroup.Id.SubscriptionId, resourceGroup.Id.Name, accountName).ToString();
+ //storageAccountId = $"/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/{resourceGroup.Id.Name}/providers/Microsoft.Storage/storageAccounts/{accountName}";
+ }
+ else
+ {
+ using (Recording.DisableRecording())
+ {
+ var storageAccount = await storageCeollection.CreateOrUpdateAsync(WaitUntil.Completed, accountName, storageContent);
+ storageAccountId = storageAccount.Value.Data.Id;
+ }
+ }
+ return storageAccountId;
+ }
+ #endregion
+
[TestCase]
- [RecordedTest]
public async Task CreateOrUpdate()
{
var resourceGroup = await CreateResourceGroupAsync().ConfigureAwait(false);
@@ -30,14 +56,14 @@ public async Task CreateOrUpdate()
var actionGroupData = ResourceDataHelper.GetBasicActionGroupData("Global");
var actionGroup = (await actionGroupCollection.CreateOrUpdateAsync(WaitUntil.Completed, actionGroupName, actionGroupData).ConfigureAwait(false)).Value;
- var metricAlertData = ResourceDataHelper.GetBasicMetricAlertData("global", actionGroup);
var metricAlertName = Recording.GenerateAssetName("testMetricAlert");
+ string storageAccountId = await GetStorageAccountId();
+ var metricAlertData = ResourceDataHelper.GetBasicMetricAlertData("global", actionGroup, storageAccountId);
var metricAlert = (await metricAlertCollection.CreateOrUpdateAsync(WaitUntil.Completed, metricAlertName, metricAlertData)).Value;
Assert.AreEqual(metricAlertName, metricAlert.Data.Name);
}
[TestCase]
- [RecordedTest]
public async Task Get()
{
var resourceGroup = await CreateResourceGroupAsync().ConfigureAwait(false);
@@ -48,15 +74,15 @@ public async Task Get()
var actionGroupData = ResourceDataHelper.GetBasicActionGroupData("Global");
var actionGroup = (await actionGroupCollection.CreateOrUpdateAsync(WaitUntil.Completed, actionGroupName, actionGroupData).ConfigureAwait(false)).Value;
- var metricAlertData = ResourceDataHelper.GetBasicMetricAlertData("global", actionGroup);
var metricAlertName = Recording.GenerateAssetName("testMetricAlert");
+ string storageAccountId = await GetStorageAccountId();
+ var metricAlertData = ResourceDataHelper.GetBasicMetricAlertData("global", actionGroup, storageAccountId);
var alert1 = (await metricAlertCollection.CreateOrUpdateAsync(WaitUntil.Completed, metricAlertName, metricAlertData)).Value;
MetricAlertResource alert2 = await metricAlertCollection.GetAsync(metricAlertName);
ResourceDataHelper.AssertMetricAlert(alert1.Data, alert2.Data);
}
[TestCase]
- [RecordedTest]
public async Task GetAll()
{
var resourceGroup = await CreateResourceGroupAsync().ConfigureAwait(false);
@@ -65,11 +91,14 @@ public async Task GetAll()
var actionGroupName = Recording.GenerateAssetName("testActionGroup-");
var actionGroupData = ResourceDataHelper.GetBasicActionGroupData("Global");
+ var metricAlertName1 = Recording.GenerateAssetName("testMetricAlert-");
+ var metricAlertName2 = Recording.GenerateAssetName("testMetricAlert-");
var actionGroup = (await actionGroupCollection.CreateOrUpdateAsync(WaitUntil.Completed, actionGroupName, actionGroupData).ConfigureAwait(false)).Value;
- var metricAlertData = ResourceDataHelper.GetBasicMetricAlertData("global", actionGroup);
- _ = await metricAlertCollection.CreateOrUpdateAsync(WaitUntil.Completed, Recording.GenerateAssetName("testMetricAlert-"), metricAlertData);
- _ = await metricAlertCollection.CreateOrUpdateAsync(WaitUntil.Completed, Recording.GenerateAssetName("testMetricAlert-"), metricAlertData);
+ string storageAccountId = await GetStorageAccountId();
+ var metricAlertData = ResourceDataHelper.GetBasicMetricAlertData("global", actionGroup, storageAccountId);
+ _ = await metricAlertCollection.CreateOrUpdateAsync(WaitUntil.Completed, metricAlertName1, metricAlertData);
+ _ = await metricAlertCollection.CreateOrUpdateAsync(WaitUntil.Completed, metricAlertName2, metricAlertData);
Assert.GreaterOrEqual(metricAlertCollection.GetAllAsync().ToEnumerableAsync().Result.Count, 2);
}
diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/tests/TestCase/MetricAlertOperationsTests.cs b/sdk/monitor/Azure.ResourceManager.Monitor/tests/TestCase/MetricAlertOperationsTests.cs
index 7d57505fe3797..f9b3a8864cc64 100644
--- a/sdk/monitor/Azure.ResourceManager.Monitor/tests/TestCase/MetricAlertOperationsTests.cs
+++ b/sdk/monitor/Azure.ResourceManager.Monitor/tests/TestCase/MetricAlertOperationsTests.cs
@@ -1,11 +1,13 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
+using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Azure.Core.TestFramework;
using Azure.ResourceManager.Monitor.Models;
using Azure.ResourceManager.Monitor.Tests;
+using Azure.ResourceManager.Storage;
using NUnit.Framework;
namespace Azure.ResourceManager.Monitor.Tests
@@ -17,6 +19,30 @@ public MetricAlertOperationsTests(bool isAsync)
{
}
+ #region storage account
+ public async Task GetStorageAccountId()
+ {
+ var resourceGroup = await CreateResourceGroupAsync();
+ var storageCeollection = resourceGroup.GetStorageAccounts();
+ string accountName = Recording.GenerateAssetName("metrictests");
+ var storageContent = ResourceDataHelper.GetContent();
+ string storageAccountId;
+ if (Mode == RecordedTestMode.Playback)
+ {
+ storageAccountId = StorageAccountResource.CreateResourceIdentifier(resourceGroup.Id.SubscriptionId, resourceGroup.Id.Name, accountName).ToString();
+ //storageAccountId = $"/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/{resourceGroup.Id.Name}/providers/Microsoft.Storage/storageAccounts/{accountName}";
+ }
+ else
+ {
+ using (Recording.DisableRecording())
+ {
+ var storageAccount = await storageCeollection.CreateOrUpdateAsync(WaitUntil.Completed, accountName, storageContent);
+ storageAccountId = storageAccount.Value.Data.Id;
+ }
+ }
+ return storageAccountId;
+ }
+ #endregion
private async Task CreateMetricAlertAsync(string alertName)
{
var resourceGroup = await CreateResourceGroupAsync().ConfigureAwait(false);
@@ -26,7 +52,8 @@ private async Task CreateMetricAlertAsync(string alertName)
var actionGroupName = Recording.GenerateAssetName("testActionGroup-");
var actionGroupData = ResourceDataHelper.GetBasicActionGroupData("Global");
var actionGroup = (await actionGroupCollection.CreateOrUpdateAsync(WaitUntil.Completed, actionGroupName, actionGroupData).ConfigureAwait(false)).Value;
- var metricAlertData = ResourceDataHelper.GetBasicMetricAlertData("global", actionGroup);
+ string storageAccountId = await GetStorageAccountId();
+ var metricAlertData = ResourceDataHelper.GetBasicMetricAlertData("global", actionGroup, storageAccountId);
var metricAlert = await metricAlertCollection.CreateOrUpdateAsync(WaitUntil.Completed, alertName, metricAlertData);
return metricAlert.Value;
}