From 101b1d90683a2791e30da0cfcdc27414494e4060 Mon Sep 17 00:00:00 2001 From: "REDMOND\\wiboris" Date: Thu, 4 Dec 2025 22:05:38 -0800 Subject: [PATCH 1/5] changed the way we get the storageUrl from the get call to put call --- .../TestCreatePoolWithApplicationPackage.json | 146 ++++++------- .../TestUpdateApplicationPackage.json | 198 +++++++++--------- .../TestUpdatePoolWithApplicationPackage.json | 194 ++++++++--------- .../TestUploadApplicationPackage.json | 114 +++++----- .../TestPoolCRUD.json | 118 +++++------ .../Models/BatchClient.ApplicationPackages.cs | 29 ++- 6 files changed, 404 insertions(+), 395 deletions(-) diff --git a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestCreatePoolWithApplicationPackage.json b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestCreatePoolWithApplicationPackage.json index 17cdca7620f4..2d744585a6e5 100644 --- a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestCreatePoolWithApplicationPackage.json +++ b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestCreatePoolWithApplicationPackage.json @@ -6,16 +6,16 @@ "RequestMethod": "PUT", "RequestHeaders": { "x-ms-client-request-id": [ - "62fa4f92-ac37-436e-adf1-d705ef3e8595" + "c3ab4c68-ccfe-4646-b727-d0c532516594" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -33,10 +33,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE17DF339BFF18\"" + "W/\"0x8DE33C2D62829DD\"" ], "x-ms-request-id": [ - "ee3b1fa6-21b2-4fec-8870-17909e1efde5" + "cd2fb16d-e630-43a9-bc73-8b2a2ed7571d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,7 +45,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/westus2/91038b21-1dd6-40fe-8795-c77d35ea7011" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/b43f0824-54d6-40f6-af7a-71f561a5b30c" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" @@ -54,22 +54,22 @@ "11999" ], "x-ms-correlation-request-id": [ - "79a9f089-fd4e-482f-808a-ebcb9cb44391" + "881149f5-9f23-4cca-b754-1a90a24e7686" ], "x-ms-routing-request-id": [ - "WESTUS2:20251030T180734Z:79a9f089-fd4e-482f-808a-ebcb9cb44391" + "EASTUS2:20251205T055504Z:881149f5-9f23-4cca-b754-1a90a24e7686" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 60B00F9B91A4476B818F3536F395039B Ref B: CO1EDGE1806 Ref C: 2025-10-30T18:07:33Z" + "Ref A: 545A1C9A22644D28A6DCE55D34EC1D7F Ref B: CO6AA3150217049 Ref C: 2025-12-05T05:55:03Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:34 GMT" + "Fri, 05 Dec 2025 05:55:03 GMT" ], "Content-Length": [ - "667" + "631" ], "Content-Type": [ "application/json; charset=utf-8" @@ -78,10 +78,10 @@ "-1" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:07:34 GMT" + "Fri, 05 Dec 2025 05:55:04 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/createPoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE17DF339BFF18\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://dotnetstoragebatch1.blob.core.windows.net/app-createpoolwithapplicationp-2ccd606c10ff4d4ea841681cc31f3763/foo?sv=2018-03-28&sr=b&sig=qq%2BEqQPSomlDQyQTRH2smnHAoWGTbKK64j%2BB1IsoAFk%3D&st=2025-10-30T18%3A02%3A34Z&se=2025-10-30T22%3A07%3A34Z&sp=rw\",\r\n \"storageUrlExpiry\": \"2025-10-30T22:07:34.4284137Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/createPoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2D62829DD\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-createpoolwithapplicationp-7a6da6dc96f3403a8ecc37e3b52b0030/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A04Z&sr=b&sp=rw&sig=jtVPhdlABr4OqWJf7ip9hAacH7Bxit3uJ8uqqcEWhf4%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:04.2890641Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -93,13 +93,13 @@ "en-US" ], "x-ms-client-request-id": [ - "5d1e58ee-8e98-4bc7-b071-157dec4178df" + "8e9964f0-092e-4d04-b1ec-cbc8b6e2f1bf" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -117,10 +117,13 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE17DF381C2CAF\"" + "W/\"0x8DE33C2E069F604\"" + ], + "x-ms-operation-identifier": [ + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/a15df320-9db1-4e03-8779-1d5fa89eb027" ], "x-ms-request-id": [ - "1e02953c-7a8c-4a2f-b6d2-aee2846f400a" + "a0bb865a-1fca-43ee-bc0b-ec8b1cd153fe" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -128,9 +131,6 @@ "X-Content-Type-Options": [ "nosniff" ], - "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/6aefc011-f85f-4c51-ad91-46fec5c2e35c" - ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], @@ -138,22 +138,22 @@ "11999" ], "x-ms-correlation-request-id": [ - "8504663f-f087-43de-ad5d-f4a7bd8d860e" + "e898d105-80ce-43a3-95fd-96a480e62698" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180742Z:8504663f-f087-43de-ad5d-f4a7bd8d860e" + "EASTUS2:20251205T055521Z:e898d105-80ce-43a3-95fd-96a480e62698" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 668B8733A9B147BBA8968F1CA9CEA420 Ref B: CO1EDGE1806 Ref C: 2025-10-30T18:07:41Z" + "Ref A: 62B96078758744B4B548EA7EB9341A34 Ref B: CO6AA3150217049 Ref C: 2025-12-05T05:55:21Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:41 GMT" + "Fri, 05 Dec 2025 05:55:20 GMT" ], "Content-Length": [ - "739" + "701" ], "Content-Type": [ "application/json; charset=utf-8" @@ -162,10 +162,10 @@ "-1" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:07:41 GMT" + "Fri, 05 Dec 2025 05:55:21 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/createPoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE17DF381C2CAF\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://dotnetstoragebatch1.blob.core.windows.net/app-createpoolwithapplicationp-2ccd606c10ff4d4ea841681cc31f3763/foo?sv=2018-03-28&sr=b&sig=%2FWSKe%2Ba9Q1Yp74qrx4dfYYZl%2BCGLHcPfux7%2F%2FAMsE58%3D&st=2025-10-30T18%3A02%3A41Z&se=2025-10-30T22%3A07%3A41Z&sp=rw\",\r\n \"storageUrlExpiry\": \"2025-10-30T22:07:41.9997049Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-10-30T18:07:41.9573535Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/createPoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E069F604\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-createpoolwithapplicationp-7a6da6dc96f3403a8ecc37e3b52b0030/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A21Z&sr=b&sp=rw&sig=vAhy%2F3MR8cMspk4sXm6Qxn3FTwG0Pv7b3M%2BIa617f64%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:21.5173817Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:21.4717083Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -177,13 +177,13 @@ "en-US" ], "x-ms-client-request-id": [ - "5d1e58ee-8e98-4bc7-b071-157dec4178df" + "8e9964f0-092e-4d04-b1ec-cbc8b6e2f1bf" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ] }, "RequestBody": "", @@ -195,10 +195,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE17DF381C2CAF\"" + "W/\"0x8DE33C2E069F604\"" ], "x-ms-request-id": [ - "7528c838-e287-46f6-9eb1-7246af8743f2" + "93a64a51-192a-4798-9cb7-c75b8c473bdd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -207,7 +207,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/ac71cd63-f4d6-45d6-adf8-933a3c172cbb" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/88b37735-2d34-4eda-af70-1b8181ba0f85" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" @@ -216,22 +216,22 @@ "16499" ], "x-ms-correlation-request-id": [ - "3d6252c0-5083-48d4-bb9c-1cccf8ee5c76" + "7c7144d9-3f10-4a1f-9f9f-dd20eff442d8" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180742Z:3d6252c0-5083-48d4-bb9c-1cccf8ee5c76" + "EASTUS2:20251205T055521Z:7c7144d9-3f10-4a1f-9f9f-dd20eff442d8" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: E63C4BDBA9E246649EAAEBA132F62FF4 Ref B: CO1EDGE1806 Ref C: 2025-10-30T18:07:42Z" + "Ref A: 8719DA7447CF4F64B3AAA3924A00786E Ref B: CO6AA3150217049 Ref C: 2025-12-05T05:55:21Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:41 GMT" + "Fri, 05 Dec 2025 05:55:20 GMT" ], "Content-Length": [ - "729" + "701" ], "Content-Type": [ "application/json; charset=utf-8" @@ -240,10 +240,10 @@ "-1" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:07:41 GMT" + "Fri, 05 Dec 2025 05:55:21 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/createPoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE17DF381C2CAF\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://dotnetstoragebatch1.blob.core.windows.net/app-createpoolwithapplicationp-2ccd606c10ff4d4ea841681cc31f3763/foo?sv=2018-03-28&sr=b&sig=YXm3rpqRV5lC08U7GMqHm1WUPMJRjWitV0697oJwtt8%3D&st=2025-10-30T18%3A02%3A42Z&se=2025-10-30T22%3A07%3A42Z&sp=rw\",\r\n \"storageUrlExpiry\": \"2025-10-30T22:07:42.1809146Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-10-30T18:07:41.9573535Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/createPoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E069F604\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-createpoolwithapplicationp-7a6da6dc96f3403a8ecc37e3b52b0030/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A21Z&sr=b&sp=rw&sig=vAhy%2F3MR8cMspk4sXm6Qxn3FTwG0Pv7b3M%2BIa617f64%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:21.7023365Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:21.4717083Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -255,16 +255,16 @@ "en-US" ], "client-request-id": [ - "70aa6c10-2750-43f8-9d57-bedb7cc8cf7b" + "c50cf85c-8d2c-4339-a126-0bdbccfbd8de" ], "ocp-date": [ - "Thu, 30 Oct 2025 18:07:42 GMT" + "Fri, 05 Dec 2025 05:55:21 GMT" ], "x-ms-client-request-id": [ - "b659bd46-39f6-42d4-915b-cf6cba72be98" + "c2184995-7dce-48f9-93d1-21a87384a863" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", "Microsoft.Azure.Batch.Protocol.BatchServiceClient/16.300.124.47002", @@ -283,7 +283,7 @@ "chunked" ], "ETag": [ - "0x8DE17DF38B08E16" + "0x8DE33C2E0D79F70" ], "Location": [ "https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/testCreatePoolWithAppPackages" @@ -292,7 +292,7 @@ "Microsoft-HTTPAPI/2.0" ], "request-id": [ - "9a152dc3-e892-40f4-9082-89dbb2e9e8f7" + "f958c0e2-2f1f-4e0f-870f-2c92782429fe" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -307,10 +307,10 @@ "https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/testCreatePoolWithAppPackages" ], "Date": [ - "Thu, 30 Oct 2025 18:07:42 GMT" + "Fri, 05 Dec 2025 05:55:22 GMT" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:07:42 GMT" + "Fri, 05 Dec 2025 05:55:22 GMT" ] }, "ResponseBody": "", @@ -325,13 +325,13 @@ "en-US" ], "x-ms-client-request-id": [ - "c2a43536-adb8-49d6-848e-bae9b98b8e7e" + "4226778c-eca9-4c94-a8cf-d607ea4b3726" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ] }, "RequestBody": "", @@ -343,7 +343,7 @@ "no-cache" ], "x-ms-request-id": [ - "b8726fe9-0d75-484b-8981-fc1e7b4d24bc" + "5af9ec75-44a4-4f9b-8673-45df6b95a35e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -352,7 +352,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/82dd2775-1950-4b29-84a4-912067ac6697" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/f08fa768-0ab3-4023-a85f-a4f29481cd41" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" @@ -361,19 +361,19 @@ "11999" ], "x-ms-correlation-request-id": [ - "e4982018-fab0-4d13-9cb7-c02028c0f9ae" + "302d9737-3d05-40d9-bf97-188a1b744dc8" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180743Z:e4982018-fab0-4d13-9cb7-c02028c0f9ae" + "EASTUS2:20251205T055522Z:302d9737-3d05-40d9-bf97-188a1b744dc8" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 599D87FF048648BEB6100AEFB61F8B9A Ref B: CO1EDGE1806 Ref C: 2025-10-30T18:07:43Z" + "Ref A: EEC7BAE4CCF949AAB93A4ED3625B13BB Ref B: CO6AA3150217049 Ref C: 2025-12-05T05:55:22Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:43 GMT" + "Fri, 05 Dec 2025 05:55:21 GMT" ], "Expires": [ "-1" @@ -394,13 +394,13 @@ "en-US" ], "x-ms-client-request-id": [ - "391c7101-4c3d-42ef-9c13-ac376775829d" + "1d824fee-c943-4ea3-bbad-099f14ccf880" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ] }, "RequestBody": "", @@ -412,7 +412,7 @@ "no-cache" ], "x-ms-request-id": [ - "f997e425-3f40-43ac-92ce-e703d06b4915" + "99552fd7-db5e-4bc3-a915-3e80bd51acd0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -421,7 +421,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/2060d6d9-1438-4e7b-918d-6af8997ce977" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/11696609-8c0b-4bba-88a1-dd7436cc58ba" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" @@ -430,19 +430,19 @@ "11999" ], "x-ms-correlation-request-id": [ - "5970be4c-acca-440f-8974-9b3a1782876e" + "3616475e-1984-4b6e-8744-18b3c9d445f3" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180743Z:5970be4c-acca-440f-8974-9b3a1782876e" + "EASTUS2:20251205T055522Z:3616475e-1984-4b6e-8744-18b3c9d445f3" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: C3429FD99E884ED49A903DBBA0DC92FF Ref B: CO1EDGE1806 Ref C: 2025-10-30T18:07:43Z" + "Ref A: 36BA95CB3D854AD2A544B665488324F4 Ref B: CO6AA3150217049 Ref C: 2025-12-05T05:55:22Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:43 GMT" + "Fri, 05 Dec 2025 05:55:22 GMT" ], "Expires": [ "-1" @@ -463,16 +463,16 @@ "en-US" ], "client-request-id": [ - "4bb8bed8-c964-486d-86ec-96d30b39f979" + "304fcd97-3058-4a3d-b138-b8068a9e7ad0" ], "ocp-date": [ - "Thu, 30 Oct 2025 18:07:43 GMT" + "Fri, 05 Dec 2025 05:55:22 GMT" ], "x-ms-client-request-id": [ - "45320251-8c40-465a-bf38-62e263edfb93" + "1d602bb4-55ef-41d2-ac9f-b7cb1dbe8b5e" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", "Microsoft.Azure.Batch.Protocol.BatchServiceClient/16.300.124.47002", @@ -491,7 +491,7 @@ "Microsoft-HTTPAPI/2.0" ], "request-id": [ - "4c12e75a-8208-4d3f-8347-857e78fde4f8" + "18fb91cd-a563-48a3-a761-472984f16d55" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -503,7 +503,7 @@ "3.0" ], "Date": [ - "Thu, 30 Oct 2025 18:07:44 GMT" + "Fri, 05 Dec 2025 05:55:23 GMT" ] }, "ResponseBody": "", diff --git a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdateApplicationPackage.json b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdateApplicationPackage.json index 19acef4147b9..c017dc0088bd 100644 --- a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdateApplicationPackage.json +++ b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdateApplicationPackage.json @@ -6,16 +6,16 @@ "RequestMethod": "PUT", "RequestHeaders": { "x-ms-client-request-id": [ - "0d00a89f-d26e-47cd-8461-b35c0ca66a0f" + "56603fbb-9769-4e9f-90b0-203f9d392068" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -33,10 +33,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE17DF3A947985\"" + "W/\"0x8DE33C2E2F64EF4\"" ], "x-ms-request-id": [ - "c9b2df0a-5b61-4c64-9734-fa60b9e04c95" + "ae738c77-5d93-4850-96ae-d534aec8ef1a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,7 +45,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/westus2/7bc337c3-4c5a-409e-adab-3b758f9b88cb" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/westeurope/e9e3a758-827d-4f8a-90e7-66963214a2ef" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" @@ -54,22 +54,22 @@ "11999" ], "x-ms-correlation-request-id": [ - "08a78dd3-1746-4e69-973d-93ee8a753681" + "ea6a9e25-45d4-4d2c-ad21-60a5108c52e0" ], "x-ms-routing-request-id": [ - "WESTUS2:20251030T180746Z:08a78dd3-1746-4e69-973d-93ee8a753681" + "WESTEUROPE:20251205T055526Z:ea6a9e25-45d4-4d2c-ad21-60a5108c52e0" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 80B0A2A4B25244A6A29A94A358AEAAE7 Ref B: CO1EDGE1319 Ref C: 2025-10-30T18:07:45Z" + "Ref A: 906C702A19484E819301A91CADD5C0D7 Ref B: CO6AA3150219019 Ref C: 2025-12-05T05:55:24Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:46 GMT" + "Fri, 05 Dec 2025 05:55:25 GMT" ], "Content-Length": [ - "655" + "623" ], "Content-Type": [ "application/json; charset=utf-8" @@ -78,10 +78,10 @@ "-1" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:07:46 GMT" + "Fri, 05 Dec 2025 05:55:25 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE17DF3A947985\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://dotnetstoragebatch1.blob.core.windows.net/app-updateapplicationpackage-b34ab2f51301422f94c4f91c51db63d2/foo?sv=2018-03-28&sr=b&sig=3OqiwpPkbPRuPZejDLLU7ONDuK%2FtAoUWGvOcfU8uruY%3D&st=2025-10-30T18%3A02%3A46Z&se=2025-10-30T22%3A07%3A46Z&sp=rw\",\r\n \"storageUrlExpiry\": \"2025-10-30T22:07:46.1231927Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E2F64EF4\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-updateapplicationpackage-f6e144f065f54238a3e212baac4280fb/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A25Z&sr=b&sp=rw&sig=vGAcKcP%2B3XYnmQFEU02M8iwIMOunx4FkWdrEUzxtZLg%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:25.7670481Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -93,13 +93,13 @@ "en-US" ], "x-ms-client-request-id": [ - "43bb9d64-6651-474d-94eb-3f64ada28218" + "e501c5a3-4a77-4658-a7ac-303549178682" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ] }, "RequestBody": "", @@ -111,10 +111,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE17DF3A915DD1\"" + "W/\"0x8DE33C2E2F4E6D7\"" ], "x-ms-request-id": [ - "67c6c244-5a78-47ae-a142-c4a158e6c87c" + "37666989-c693-4cbb-9059-7fbea0e6a90a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -123,7 +123,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/3e2602f0-6245-4665-be69-d7b1fe143d41" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/e93d60e1-ef23-448c-b815-4335ec042257" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" @@ -132,19 +132,19 @@ "16499" ], "x-ms-correlation-request-id": [ - "1b2ad68a-5551-48f0-8627-a61e491cab8e" + "09447a84-a93d-421d-8bf1-a7008c8a6b2b" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180751Z:1b2ad68a-5551-48f0-8627-a61e491cab8e" + "EASTUS2:20251205T055527Z:09447a84-a93d-421d-8bf1-a7008c8a6b2b" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 1C5C597383EA4B20ACEEDF6B2B4E3C52 Ref B: CO1EDGE1319 Ref C: 2025-10-30T18:07:51Z" + "Ref A: D7F890BB8CB44E07B8EE44E1397C2768 Ref B: CO6AA3150219019 Ref C: 2025-12-05T05:55:27Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:51 GMT" + "Fri, 05 Dec 2025 05:55:26 GMT" ], "Content-Length": [ "341" @@ -156,10 +156,10 @@ "-1" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:07:46 GMT" + "Fri, 05 Dec 2025 05:55:25 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage\",\r\n \"name\": \"updateApplicationPackage\",\r\n \"etag\": \"W/\\\"0x8DE17DF3A915DD1\\\"\",\r\n \"properties\": {\r\n \"allowUpdates\": true\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage\",\r\n \"name\": \"updateApplicationPackage\",\r\n \"etag\": \"W/\\\"0x8DE33C2E2F4E6D7\\\"\",\r\n \"properties\": {\r\n \"allowUpdates\": true\r\n }\r\n}", "StatusCode": 200 }, { @@ -171,13 +171,13 @@ "en-US" ], "x-ms-client-request-id": [ - "fd3e1c47-3c5f-4a27-ab5c-0f5e0b272bfd" + "d5a8067a-410a-455c-a744-da8208d1426d" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ] }, "RequestBody": "", @@ -189,10 +189,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE17DF3E1911C5\"" + "W/\"0x8DE33C2E45D7302\"" ], "x-ms-request-id": [ - "51e0445f-29e0-4e18-921c-a372e1e3aa99" + "99ffb7b6-1a19-4260-927c-8be12958b3ab" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -201,28 +201,28 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/19feffc2-05a8-4dfb-be59-e16f84cd5fa5" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/c4a097fd-37f5-4055-a3ff-21261240d6a7" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "1098" + "1099" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ - "16498" + "16499" ], "x-ms-correlation-request-id": [ - "92da258a-271f-4521-a611-6f66be37703d" + "7cc6c60d-b120-4454-9e69-6d04ace193c3" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180752Z:92da258a-271f-4521-a611-6f66be37703d" + "EASTUS2:20251205T055528Z:7cc6c60d-b120-4454-9e69-6d04ace193c3" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: F3D9C45F1CD64D3B82750234D721E01D Ref B: CO1EDGE1319 Ref C: 2025-10-30T18:07:52Z" + "Ref A: 38447F3A8DC34E21BE7A1E23892E41C8 Ref B: CO6AA3150219019 Ref C: 2025-12-05T05:55:28Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:52 GMT" + "Fri, 05 Dec 2025 05:55:27 GMT" ], "Content-Length": [ "405" @@ -234,10 +234,10 @@ "-1" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:07:52 GMT" + "Fri, 05 Dec 2025 05:55:28 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage\",\r\n \"name\": \"updateApplicationPackage\",\r\n \"etag\": \"W/\\\"0x8DE17DF3E1911C5\\\"\",\r\n \"properties\": {\r\n \"displayName\": \"application-display-name\",\r\n \"allowUpdates\": true,\r\n \"defaultVersion\": \"foo\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage\",\r\n \"name\": \"updateApplicationPackage\",\r\n \"etag\": \"W/\\\"0x8DE33C2E45D7302\\\"\",\r\n \"properties\": {\r\n \"displayName\": \"application-display-name\",\r\n \"allowUpdates\": true,\r\n \"defaultVersion\": \"foo\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -249,13 +249,13 @@ "en-US" ], "x-ms-client-request-id": [ - "85ac2086-7cee-446f-bc7c-b66628f42a94" + "8db5b706-d8b5-429a-9220-73fad84f3bf0" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -273,10 +273,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE17DF3DD9DEAC\"" + "W/\"0x8DE33C2E420FC17\"" ], "x-ms-request-id": [ - "465c39c1-2606-4280-8fef-78fa041746f0" + "1805ec3e-52d3-4aee-9430-08d0c8230bb6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -285,7 +285,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/881e50eb-47c9-47a6-a39d-a8a143e3d169" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/bddacf85-37c7-4213-b6e2-fb77b52fdafa" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" @@ -294,22 +294,22 @@ "11999" ], "x-ms-correlation-request-id": [ - "8702550d-058f-4789-8750-65a581bf810d" + "fed6db3b-13a4-4f38-bac9-8185d282bba7" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180751Z:8702550d-058f-4789-8750-65a581bf810d" + "EASTUS2:20251205T055527Z:fed6db3b-13a4-4f38-bac9-8185d282bba7" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 2607081C5A6045E091084E46E2CA0C28 Ref B: CO1EDGE1319 Ref C: 2025-10-30T18:07:51Z" + "Ref A: 5D4A7E48B68E453F9E3F2F39F7E5A54C Ref B: CO6AA3150219019 Ref C: 2025-12-05T05:55:27Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:51 GMT" + "Fri, 05 Dec 2025 05:55:26 GMT" ], "Content-Length": [ - "725" + "692" ], "Content-Type": [ "application/json; charset=utf-8" @@ -318,10 +318,10 @@ "-1" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:07:51 GMT" + "Fri, 05 Dec 2025 05:55:27 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE17DF3DD9DEAC\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://dotnetstoragebatch1.blob.core.windows.net/app-updateapplicationpackage-b34ab2f51301422f94c4f91c51db63d2/foo?sv=2018-03-28&sr=b&sig=xrcJjV%2FZQUYEPuo49%2Fo5E4YT49Y8Wb8I6GWYU4Aw%2BtY%3D&st=2025-10-30T18%3A02%3A51Z&se=2025-10-30T22%3A07%3A51Z&sp=rw\",\r\n \"storageUrlExpiry\": \"2025-10-30T22:07:51.6243875Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-10-30T18:07:51.5910093Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E420FC17\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-updateapplicationpackage-f6e144f065f54238a3e212baac4280fb/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A27Z&sr=b&sp=rw&sig=t%2FDvDvMLNt%2B0nlQ3emsmHFCEnSF0Hy0L62u%2BXcS6nMg%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:27.7470058Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:27.704307Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -333,13 +333,13 @@ "en-US" ], "x-ms-client-request-id": [ - "85ac2086-7cee-446f-bc7c-b66628f42a94" + "8db5b706-d8b5-429a-9220-73fad84f3bf0" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ] }, "RequestBody": "", @@ -351,10 +351,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE17DF3DD9DEAC\"" + "W/\"0x8DE33C2E420FC17\"" ], "x-ms-request-id": [ - "9dab4e4e-78fc-4534-9ce2-eb38de3fa9ab" + "e48f6749-9085-47d1-80a0-cca047a7d81d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -363,31 +363,31 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/969db566-dbb1-4c9d-8b6a-70eed1b2b590" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/50a1263b-02ef-417b-a31c-53871ab89589" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "1099" + "1098" ], "x-ms-ratelimit-remaining-subscription-global-reads": [ - "16499" + "16498" ], "x-ms-correlation-request-id": [ - "db31ef0c-1df4-46ff-bcf3-ff12c6020895" + "7afdc415-f41a-44db-bcce-a21824d4eab4" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180751Z:db31ef0c-1df4-46ff-bcf3-ff12c6020895" + "EASTUS2:20251205T055527Z:7afdc415-f41a-44db-bcce-a21824d4eab4" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 11ECD5737F2F4AEC9586F069D22EEE0C Ref B: CO1EDGE1319 Ref C: 2025-10-30T18:07:51Z" + "Ref A: 88A75DC6520749519D309F13C52F8F02 Ref B: CO6AA3150219019 Ref C: 2025-12-05T05:55:27Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:51 GMT" + "Fri, 05 Dec 2025 05:55:27 GMT" ], "Content-Length": [ - "724" + "692" ], "Content-Type": [ "application/json; charset=utf-8" @@ -396,10 +396,10 @@ "-1" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:07:51 GMT" + "Fri, 05 Dec 2025 05:55:27 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE17DF3DD9DEAC\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://dotnetstoragebatch1.blob.core.windows.net/app-updateapplicationpackage-b34ab2f51301422f94c4f91c51db63d2/foo?sv=2018-03-28&sr=b&sig=xrcJjV%2FZQUYEPuo49%2Fo5E4YT49Y8Wb8I6GWYU4Aw%2BtY%3D&st=2025-10-30T18%3A02%3A51Z&se=2025-10-30T22%3A07%3A51Z&sp=rw\",\r\n \"storageUrlExpiry\": \"2025-10-30T22:07:51.771187Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-10-30T18:07:51.5910093Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E420FC17\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-updateapplicationpackage-f6e144f065f54238a3e212baac4280fb/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A27Z&sr=b&sp=rw&sig=t%2FDvDvMLNt%2B0nlQ3emsmHFCEnSF0Hy0L62u%2BXcS6nMg%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:27.9003889Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:27.704307Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -411,13 +411,13 @@ "en-US" ], "x-ms-client-request-id": [ - "bcd440f6-6bc3-40f0-86c9-e9c20ccc04af" + "79370a72-cf3d-435c-b4d0-67a07b6efb41" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -435,10 +435,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE17DF3E1911C5\"" + "W/\"0x8DE33C2E45D7302\"" ], "x-ms-request-id": [ - "a20ced67-9161-4bd4-8652-3a62e5416390" + "47b8f55f-8ad0-4242-a3a9-abedda70eb22" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -447,28 +447,28 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/226418e5-fccd-4cbd-9499-7fabadca80f1" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/78dee149-8ff2-435b-abbe-7a8b0071fdfc" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "798" + "799" ], "x-ms-ratelimit-remaining-subscription-global-writes": [ - "11998" + "11999" ], "x-ms-correlation-request-id": [ - "fa3474b7-c8fe-4dd0-b2a0-23d1383f8943" + "aa5e9430-c705-4163-881f-3f04bd3bd746" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180752Z:fa3474b7-c8fe-4dd0-b2a0-23d1383f8943" + "EASTUS2:20251205T055528Z:aa5e9430-c705-4163-881f-3f04bd3bd746" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 769924D1305E4BB8B9658CA75D0FCA3B Ref B: CO1EDGE1319 Ref C: 2025-10-30T18:07:51Z" + "Ref A: E1C3293B22AF4FA8940B4D1232B271B3 Ref B: CO6AA3150219019 Ref C: 2025-12-05T05:55:27Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:52 GMT" + "Fri, 05 Dec 2025 05:55:27 GMT" ], "Content-Length": [ "405" @@ -480,10 +480,10 @@ "-1" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:07:52 GMT" + "Fri, 05 Dec 2025 05:55:28 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage\",\r\n \"name\": \"updateApplicationPackage\",\r\n \"etag\": \"W/\\\"0x8DE17DF3E1911C5\\\"\",\r\n \"properties\": {\r\n \"displayName\": \"application-display-name\",\r\n \"allowUpdates\": true,\r\n \"defaultVersion\": \"foo\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage\",\r\n \"name\": \"updateApplicationPackage\",\r\n \"etag\": \"W/\\\"0x8DE33C2E45D7302\\\"\",\r\n \"properties\": {\r\n \"displayName\": \"application-display-name\",\r\n \"allowUpdates\": true,\r\n \"defaultVersion\": \"foo\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -492,16 +492,16 @@ "RequestMethod": "DELETE", "RequestHeaders": { "x-ms-client-request-id": [ - "a3dd7037-9f76-470e-8f6a-444d8136c2a7" + "859a5622-f292-4943-9af0-0e30a318d1bd" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ] }, "RequestBody": "", @@ -513,7 +513,7 @@ "no-cache" ], "x-ms-request-id": [ - "396831d0-914b-41e7-8348-1780c69fe51f" + "015e7483-d8a6-40d4-93da-59f68e1ef073" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -522,7 +522,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/0ae15623-9a54-4010-9486-9290a54f5dbf" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/2c77876c-6704-42fd-8552-7472697098cd" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" @@ -531,19 +531,19 @@ "11999" ], "x-ms-correlation-request-id": [ - "420cbe95-62bf-4395-9949-e011ad06974a" + "bb2597c8-0e9c-4029-911a-89300c5565af" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180752Z:420cbe95-62bf-4395-9949-e011ad06974a" + "EASTUS2:20251205T055528Z:bb2597c8-0e9c-4029-911a-89300c5565af" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 12C58918ED78431494C989140BD903D6 Ref B: CO1EDGE1319 Ref C: 2025-10-30T18:07:52Z" + "Ref A: 0A198F76686B48A09A8E4F5EF963899E Ref B: CO6AA3150219019 Ref C: 2025-12-05T05:55:28Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:52 GMT" + "Fri, 05 Dec 2025 05:55:27 GMT" ], "Expires": [ "-1" @@ -561,16 +561,16 @@ "RequestMethod": "DELETE", "RequestHeaders": { "x-ms-client-request-id": [ - "aa857dc1-4536-4306-b057-79756da648d9" + "239d52c6-259a-4d76-a620-a442fdbfdda4" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ] }, "RequestBody": "", @@ -582,7 +582,7 @@ "no-cache" ], "x-ms-request-id": [ - "bff2e96d-120b-4ac2-bfc2-d3409f0eb53b" + "023b6c54-4b29-4279-9ca5-6a0b95993607" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -591,7 +591,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/c80ba5e4-099c-436f-9d60-4cd84b4d48f3" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/859447d0-7e75-4cab-b2d8-bf6489d2d23c" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" @@ -600,19 +600,19 @@ "11999" ], "x-ms-correlation-request-id": [ - "e0f33fbe-a6ff-4c36-a675-2d72b4d5093a" + "4ddfd702-6e5d-445d-9838-e195c941a5c1" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180752Z:e0f33fbe-a6ff-4c36-a675-2d72b4d5093a" + "EASTUS2:20251205T055528Z:4ddfd702-6e5d-445d-9838-e195c941a5c1" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 082D420EE64D4AB498188FBF415AEEA9 Ref B: CO1EDGE1319 Ref C: 2025-10-30T18:07:52Z" + "Ref A: 6BBAC492E1254E2F9319EFF5E6CD04D7 Ref B: CO6AA3150219019 Ref C: 2025-12-05T05:55:28Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:52 GMT" + "Fri, 05 Dec 2025 05:55:28 GMT" ], "Expires": [ "-1" diff --git a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdatePoolWithApplicationPackage.json b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdatePoolWithApplicationPackage.json index aa96bd94a449..22b46a0d5102 100644 --- a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdatePoolWithApplicationPackage.json +++ b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdatePoolWithApplicationPackage.json @@ -6,16 +6,16 @@ "RequestMethod": "PUT", "RequestHeaders": { "x-ms-client-request-id": [ - "61710c27-904f-4597-a809-1d8e756eb012" + "123310bf-b111-47dc-b16f-16aa8a8a4fee" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -33,10 +33,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE17DF428668A2\"" + "W/\"0x8DE33C2E53B40E6\"" ], "x-ms-request-id": [ - "3a1f8a13-1cdd-40e5-9848-279b1963b8ff" + "5d88a437-a707-4958-9507-a9b8a4a87105" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,7 +45,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/westus2/77ed2588-1024-4925-9638-3045e3d39993" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/d319bbeb-0a54-49fc-81ed-be1bf4f458c9" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" @@ -54,22 +54,22 @@ "11999" ], "x-ms-correlation-request-id": [ - "df17414f-c5b0-4d53-93cd-4045858fc340" + "d4744060-2feb-4162-a9fc-8e2811cd3094" ], "x-ms-routing-request-id": [ - "WESTUS2:20251030T180759Z:df17414f-c5b0-4d53-93cd-4045858fc340" + "EASTUS2:20251205T055529Z:d4744060-2feb-4162-a9fc-8e2811cd3094" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 52A627CF379E42F298D3BD96FB08B688 Ref B: CO6AA3150219031 Ref C: 2025-10-30T18:07:58Z" + "Ref A: 90B66D40AB654798BA9ADDB002A58C8F Ref B: CO6AA3150218033 Ref C: 2025-12-05T05:55:29Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:58 GMT" + "Fri, 05 Dec 2025 05:55:29 GMT" ], "Content-Length": [ - "665" + "633" ], "Content-Type": [ "application/json; charset=utf-8" @@ -78,10 +78,10 @@ "-1" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:07:59 GMT" + "Fri, 05 Dec 2025 05:55:29 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updatePoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE17DF428668A2\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://dotnetstoragebatch1.blob.core.windows.net/app-updatepoolwithapplicationp-378c53211a6047ccbbb873d1cb6c03de/foo?sv=2018-03-28&sr=b&sig=g4zz038YckOt4IDLAMkc7yQsd8xK6tc7gip%2B2S7MEWg%3D&st=2025-10-30T18%3A02%3A59Z&se=2025-10-30T22%3A07%3A59Z&sp=rw\",\r\n \"storageUrlExpiry\": \"2025-10-30T22:07:59.4522344Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updatePoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E53B40E6\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-updatepoolwithapplicationp-303b3dd9d4654f8ebb17a14bae2e7358/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A29Z&sr=b&sp=rw&sig=3CX9MHRlacBwHTcyTTNBnXer7HrOroRt%2FNFoaGiedkg%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:29.5788922Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -93,13 +93,13 @@ "en-US" ], "client-request-id": [ - "da9fa380-cf75-4ae7-8c09-435e2fab7123" + "2705c416-308f-4033-82f5-f0bf792ff780" ], "ocp-date": [ - "Thu, 30 Oct 2025 18:07:59 GMT" + "Fri, 05 Dec 2025 05:55:29 GMT" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", "Microsoft.Azure.Batch.Protocol.BatchServiceClient/16.300.124.47002", @@ -118,7 +118,7 @@ "chunked" ], "ETag": [ - "0x8DE17DF42FC5AB3" + "0x8DE33C2E57C15CE" ], "Location": [ "https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/testUpdatePoolWithAppPackages" @@ -127,7 +127,7 @@ "Microsoft-HTTPAPI/2.0" ], "request-id": [ - "6f8d35ff-27a5-400d-9fb0-897e43c7f94d" + "33db695e-63a2-408c-957e-1547d6c7d224" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -142,10 +142,10 @@ "https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/testUpdatePoolWithAppPackages" ], "Date": [ - "Thu, 30 Oct 2025 18:07:59 GMT" + "Fri, 05 Dec 2025 05:55:29 GMT" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:08:00 GMT" + "Fri, 05 Dec 2025 05:55:29 GMT" ] }, "ResponseBody": "", @@ -160,13 +160,13 @@ "en-US" ], "x-ms-client-request-id": [ - "208d8737-f7b3-4950-9162-8124099998d0" + "d0c1b63d-23d7-4875-9387-98276dc961ea" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -184,10 +184,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE17DF45E8368C\"" + "W/\"0x8DE33C2E654C341\"" ], "x-ms-request-id": [ - "373cb97c-e473-4231-b7d6-e069e089e298" + "52af18be-5d51-441f-8b64-8e97cf49fb25" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -196,7 +196,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/0113067d-8fc8-4f2b-999d-775314200c52" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/0b461249-44f3-4a6b-9e1e-1ab9c04266ec" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" @@ -205,22 +205,22 @@ "11999" ], "x-ms-correlation-request-id": [ - "b3095de0-36ad-46a8-8ca8-dfa66b29850d" + "f255b727-f568-4d06-a4b9-eedab3bb5a9e" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180805Z:b3095de0-36ad-46a8-8ca8-dfa66b29850d" + "EASTUS2:20251205T055531Z:f255b727-f568-4d06-a4b9-eedab3bb5a9e" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 286802E29C814D5FB70D9F2DFDD4640B Ref B: CO6AA3150219031 Ref C: 2025-10-30T18:08:04Z" + "Ref A: 2FDAFEDBD5354B31ACEDBA1C07F4971B Ref B: CO6AA3150218033 Ref C: 2025-12-05T05:55:31Z" ], "Date": [ - "Thu, 30 Oct 2025 18:08:04 GMT" + "Fri, 05 Dec 2025 05:55:31 GMT" ], "Content-Length": [ - "728" + "699" ], "Content-Type": [ "application/json; charset=utf-8" @@ -229,10 +229,10 @@ "-1" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:08:05 GMT" + "Fri, 05 Dec 2025 05:55:31 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updatePoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE17DF45E8368C\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://dotnetstoragebatch1.blob.core.windows.net/app-updatepoolwithapplicationp-378c53211a6047ccbbb873d1cb6c03de/foo?sv=2018-03-28&sr=b&sig=Lxk3tZFFbIDhq80X9tfdsETZeB1Dvi8Ofcu4e%2BOpXL8%3D&st=2025-10-30T18%3A03%3A05Z&se=2025-10-30T22%3A08%3A05Z&sp=rw\",\r\n \"storageUrlExpiry\": \"2025-10-30T22:08:05.1440588Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-10-30T18:08:05.1076Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updatePoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E654C341\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-updatepoolwithapplicationp-303b3dd9d4654f8ebb17a14bae2e7358/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A31Z&sr=b&sp=rw&sig=HDHMMEQOZD7o%2FWHMN58hNEaTJY4rBzKcgfrOSDQ9vy8%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:31.4501849Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:31.3990634Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -244,13 +244,13 @@ "en-US" ], "x-ms-client-request-id": [ - "208d8737-f7b3-4950-9162-8124099998d0" + "d0c1b63d-23d7-4875-9387-98276dc961ea" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ] }, "RequestBody": "", @@ -262,10 +262,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE17DF45E8368C\"" + "W/\"0x8DE33C2E654C341\"" ], "x-ms-request-id": [ - "8bd4cfb7-1832-430d-8854-30eefa67f166" + "377b1e7e-fabf-4d6a-88f0-041f37c1e8f6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -274,7 +274,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/11e38535-6b70-499f-9c87-ad0f2b1ae2d0" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/a7f59bf0-e9cf-4007-bbf5-2ce69a69aa58" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" @@ -283,22 +283,22 @@ "16499" ], "x-ms-correlation-request-id": [ - "b71a3eab-744c-45e7-b481-173efa26dba3" + "0920e344-de09-412a-bed8-70dc9afe4634" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180805Z:b71a3eab-744c-45e7-b481-173efa26dba3" + "EASTUS2:20251205T055531Z:0920e344-de09-412a-bed8-70dc9afe4634" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 43BC6DC2CCBD482D8919F48B3E83874C Ref B: CO6AA3150219031 Ref C: 2025-10-30T18:08:05Z" + "Ref A: 34C923D0DAF6403792D8FBD1A059758B Ref B: CO6AA3150218033 Ref C: 2025-12-05T05:55:31Z" ], "Date": [ - "Thu, 30 Oct 2025 18:08:04 GMT" + "Fri, 05 Dec 2025 05:55:31 GMT" ], "Content-Length": [ - "728" + "699" ], "Content-Type": [ "application/json; charset=utf-8" @@ -307,10 +307,10 @@ "-1" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:08:05 GMT" + "Fri, 05 Dec 2025 05:55:31 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updatePoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE17DF45E8368C\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://dotnetstoragebatch1.blob.core.windows.net/app-updatepoolwithapplicationp-378c53211a6047ccbbb873d1cb6c03de/foo?sv=2018-03-28&sr=b&sig=Lxk3tZFFbIDhq80X9tfdsETZeB1Dvi8Ofcu4e%2BOpXL8%3D&st=2025-10-30T18%3A03%3A05Z&se=2025-10-30T22%3A08%3A05Z&sp=rw\",\r\n \"storageUrlExpiry\": \"2025-10-30T22:08:05.3641967Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-10-30T18:08:05.1076Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updatePoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E654C341\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-updatepoolwithapplicationp-303b3dd9d4654f8ebb17a14bae2e7358/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A31Z&sr=b&sp=rw&sig=HDHMMEQOZD7o%2FWHMN58hNEaTJY4rBzKcgfrOSDQ9vy8%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:31.6344349Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:31.3990634Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -322,16 +322,16 @@ "en-US" ], "client-request-id": [ - "13dd4927-7121-4e39-8ad4-33be853d2fce" + "23165b86-8b97-44a1-b745-1dc4d33717b4" ], "ocp-date": [ - "Thu, 30 Oct 2025 18:08:05 GMT" + "Fri, 05 Dec 2025 05:55:31 GMT" ], "x-ms-client-request-id": [ - "89127fe0-91a8-4e12-83c3-848e3fa0132b" + "9bb52009-87a0-4bae-8f7e-3e616ee29a73" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", "Microsoft.Azure.Batch.Protocol.BatchServiceClient/16.300.124.47002", @@ -344,13 +344,13 @@ "chunked" ], "ETag": [ - "0x8DE17DF42FC5AB3" + "0x8DE33C2E57C15CE" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "request-id": [ - "9380cbad-ffb0-4b5f-b287-8897037dba13" + "ac3c54b9-4dba-4e19-b7fa-4348db88711c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -362,16 +362,16 @@ "3.0" ], "Date": [ - "Thu, 30 Oct 2025 18:08:05 GMT" + "Fri, 05 Dec 2025 05:55:31 GMT" ], "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:08:00 GMT" + "Fri, 05 Dec 2025 05:55:29 GMT" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testUpdatePoolWithAppPackages\",\r\n \"url\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/testUpdatePoolWithAppPackages\",\r\n \"eTag\": \"0x8DE17DF42FC5AB3\",\r\n \"lastModified\": \"2025-10-30T18:08:00.2169523Z\",\r\n \"creationTime\": \"2025-10-30T18:08:00.2169516Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2025-10-30T18:08:00.2169516Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2025-10-30T18:08:00.2169524Z\",\r\n \"vmSize\": \"standard_d2s_v3\",\r\n \"resizeTimeout\": \"PT15M\",\r\n \"currentDedicatedNodes\": 0,\r\n \"targetDedicatedNodes\": 1,\r\n \"currentLowPriorityNodes\": 0,\r\n \"targetLowPriorityNodes\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": true,\r\n \"certificateReferences\": [],\r\n \"taskSlotsPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"virtualMachineConfiguration\": {\r\n \"imageReference\": {\r\n \"publisher\": \"canonical\",\r\n \"offer\": \"0001-com-ubuntu-server-focal\",\r\n \"sku\": \"20_04-lts\",\r\n \"version\": \"latest\"\r\n },\r\n \"nodeAgentSKUId\": \"batch.node.ubuntu 20.04\",\r\n \"nodePlacementConfiguration\": {\r\n \"policy\": \"Zonal\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testUpdatePoolWithAppPackages\",\r\n \"url\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/testUpdatePoolWithAppPackages\",\r\n \"eTag\": \"0x8DE33C2E57C15CE\",\r\n \"lastModified\": \"2025-12-05T05:55:29.997563Z\",\r\n \"creationTime\": \"2025-12-05T05:55:29.9975613Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2025-12-05T05:55:29.9975613Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2025-12-05T05:55:29.9975632Z\",\r\n \"vmSize\": \"standard_d2s_v3\",\r\n \"resizeTimeout\": \"PT15M\",\r\n \"currentDedicatedNodes\": 0,\r\n \"targetDedicatedNodes\": 1,\r\n \"currentLowPriorityNodes\": 0,\r\n \"targetLowPriorityNodes\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": true,\r\n \"certificateReferences\": [],\r\n \"taskSlotsPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"virtualMachineConfiguration\": {\r\n \"imageReference\": {\r\n \"publisher\": \"canonical\",\r\n \"offer\": \"0001-com-ubuntu-server-focal\",\r\n \"sku\": \"20_04-lts\",\r\n \"version\": \"latest\"\r\n },\r\n \"nodeAgentSKUId\": \"batch.node.ubuntu 20.04\",\r\n \"nodePlacementConfiguration\": {\r\n \"policy\": \"Zonal\"\r\n }\r\n }\r\n}", "StatusCode": 200 }, { @@ -383,16 +383,16 @@ "en-US" ], "client-request-id": [ - "abd769eb-90fd-4880-989b-2907762180a7" + "86d2d089-53c8-46b3-be75-3b97daf6c499" ], "ocp-date": [ - "Thu, 30 Oct 2025 18:08:06 GMT" + "Fri, 05 Dec 2025 05:55:31 GMT" ], "x-ms-client-request-id": [ - "7136ff98-3f1c-449c-8a81-3dc18177ad6d" + "88444b94-6fad-4b25-b875-743685b2e708" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", "Microsoft.Azure.Batch.Protocol.BatchServiceClient/16.300.124.47002", @@ -405,13 +405,13 @@ "chunked" ], "ETag": [ - "0x8DE17DF46B83054" + "0x8DE33C2E6BE3E5B" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "request-id": [ - "cc090d29-693d-4b64-a02a-85c3cca4e6aa" + "16f54576-f006-44f0-8e38-fbccecc77714" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -423,16 +423,16 @@ "3.0" ], "Date": [ - "Thu, 30 Oct 2025 18:08:05 GMT" + "Fri, 05 Dec 2025 05:55:31 GMT" ], "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:08:06 GMT" + "Fri, 05 Dec 2025 05:55:32 GMT" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testUpdatePoolWithAppPackages\",\r\n \"url\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/testUpdatePoolWithAppPackages\",\r\n \"eTag\": \"0x8DE17DF46B83054\",\r\n \"lastModified\": \"2025-10-30T18:08:06.4811092Z\",\r\n \"creationTime\": \"2025-10-30T18:08:00.2169516Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2025-10-30T18:08:00.2169516Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2025-10-30T18:08:00.2169524Z\",\r\n \"vmSize\": \"standard_d2s_v3\",\r\n \"resizeTimeout\": \"PT15M\",\r\n \"currentDedicatedNodes\": 0,\r\n \"targetDedicatedNodes\": 1,\r\n \"currentLowPriorityNodes\": 0,\r\n \"targetLowPriorityNodes\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": true,\r\n \"certificateReferences\": [],\r\n \"applicationPackageReferences\": [\r\n {\r\n \"applicationId\": \"updatepoolwithapplicationpackage\",\r\n \"version\": \"foo\"\r\n }\r\n ],\r\n \"taskSlotsPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"virtualMachineConfiguration\": {\r\n \"imageReference\": {\r\n \"publisher\": \"canonical\",\r\n \"offer\": \"0001-com-ubuntu-server-focal\",\r\n \"sku\": \"20_04-lts\",\r\n \"version\": \"latest\"\r\n },\r\n \"nodeAgentSKUId\": \"batch.node.ubuntu 20.04\",\r\n \"nodePlacementConfiguration\": {\r\n \"policy\": \"Zonal\"\r\n }\r\n },\r\n \"targetNodeCommunicationMode\": \"default\"\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"testUpdatePoolWithAppPackages\",\r\n \"url\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/testUpdatePoolWithAppPackages\",\r\n \"eTag\": \"0x8DE33C2E6BE3E5B\",\r\n \"lastModified\": \"2025-12-05T05:55:32.1088603Z\",\r\n \"creationTime\": \"2025-12-05T05:55:29.9975613Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2025-12-05T05:55:29.9975613Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2025-12-05T05:55:29.9975632Z\",\r\n \"vmSize\": \"standard_d2s_v3\",\r\n \"resizeTimeout\": \"PT15M\",\r\n \"currentDedicatedNodes\": 0,\r\n \"targetDedicatedNodes\": 1,\r\n \"currentLowPriorityNodes\": 0,\r\n \"targetLowPriorityNodes\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": true,\r\n \"certificateReferences\": [],\r\n \"applicationPackageReferences\": [\r\n {\r\n \"applicationId\": \"updatepoolwithapplicationpackage\",\r\n \"version\": \"foo\"\r\n }\r\n ],\r\n \"taskSlotsPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"virtualMachineConfiguration\": {\r\n \"imageReference\": {\r\n \"publisher\": \"canonical\",\r\n \"offer\": \"0001-com-ubuntu-server-focal\",\r\n \"sku\": \"20_04-lts\",\r\n \"version\": \"latest\"\r\n },\r\n \"nodeAgentSKUId\": \"batch.node.ubuntu 20.04\",\r\n \"nodePlacementConfiguration\": {\r\n \"policy\": \"Zonal\"\r\n }\r\n },\r\n \"targetNodeCommunicationMode\": \"default\"\r\n}", "StatusCode": 200 }, { @@ -444,16 +444,16 @@ "en-US" ], "client-request-id": [ - "2c0b79fc-fcd3-40b1-9d0c-727448c6cdc6" + "61f3ecdc-0afb-4247-a451-f6012f62c738" ], "ocp-date": [ - "Thu, 30 Oct 2025 18:08:06 GMT" + "Fri, 05 Dec 2025 05:55:31 GMT" ], "x-ms-client-request-id": [ - "93f16f2c-5962-4db8-968d-0556d833d07e" + "a1cc6d0b-007e-4098-8095-226240ea58be" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", "Microsoft.Azure.Batch.Protocol.BatchServiceClient/16.300.124.47002", @@ -469,13 +469,13 @@ "RequestBody": "{\r\n \"certificateReferences\": [],\r\n \"applicationPackageReferences\": [\r\n {\r\n \"applicationId\": \"updatePoolWithApplicationPackage\",\r\n \"version\": \"foo\"\r\n }\r\n ],\r\n \"metadata\": []\r\n}", "ResponseHeaders": { "ETag": [ - "0x8DE17DF46B83054" + "0x8DE33C2E6BE3E5B" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "request-id": [ - "d9afd210-7ea6-426f-9f57-5626c0e03528" + "8e02e560-7858-4120-9a36-c36bc28a5652" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -490,13 +490,13 @@ "https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/testUpdatePoolWithAppPackages/updateproperties" ], "Date": [ - "Thu, 30 Oct 2025 18:08:05 GMT" + "Fri, 05 Dec 2025 05:55:31 GMT" ], "Content-Length": [ "0" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:08:06 GMT" + "Fri, 05 Dec 2025 05:55:32 GMT" ] }, "ResponseBody": "", @@ -508,16 +508,16 @@ "RequestMethod": "DELETE", "RequestHeaders": { "x-ms-client-request-id": [ - "505ec86d-0dac-4124-8088-a4c574676ac8" + "5d11c9c6-d9ac-4f15-96a6-14c20af1413c" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ] }, "RequestBody": "", @@ -529,7 +529,7 @@ "no-cache" ], "x-ms-request-id": [ - "7544b8d6-2f8c-47e8-a385-84fc6a9948c5" + "b208c44e-dd88-4822-898e-f37e42af8b7d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -538,7 +538,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/8d643f46-c7ae-49bb-aa15-1a06f9d78b06" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/be22b548-72a2-4e33-aa67-d198042994b1" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" @@ -547,19 +547,19 @@ "11999" ], "x-ms-correlation-request-id": [ - "ba5a98d9-954b-41ff-a3b5-dc5eed5dd78d" + "51ac945a-4d3a-4094-8bf3-c404a35f35ef" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180806Z:ba5a98d9-954b-41ff-a3b5-dc5eed5dd78d" + "EASTUS2:20251205T055532Z:51ac945a-4d3a-4094-8bf3-c404a35f35ef" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: DCF6E640D8644E709FD6D9913A4E116C Ref B: CO6AA3150219031 Ref C: 2025-10-30T18:08:06Z" + "Ref A: 684DCBF2CDFB4BA0930B4D1362E7B7CA Ref B: CO6AA3150218033 Ref C: 2025-12-05T05:55:32Z" ], "Date": [ - "Thu, 30 Oct 2025 18:08:06 GMT" + "Fri, 05 Dec 2025 05:55:32 GMT" ], "Expires": [ "-1" @@ -577,16 +577,16 @@ "RequestMethod": "DELETE", "RequestHeaders": { "x-ms-client-request-id": [ - "5958a8d4-fb1b-4ef6-8263-9a664078c816" + "e480aae3-63c4-493c-92df-babe4d09830f" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ] }, "RequestBody": "", @@ -597,8 +597,11 @@ "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/2c8c758b-635e-417f-85b7-e9777850c752" + ], "x-ms-request-id": [ - "f7f9985a-3b49-453a-bd25-7eae9bdd2439" + "0ec754ce-8399-4807-9518-fced14ddefdb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -606,9 +609,6 @@ "X-Content-Type-Options": [ "nosniff" ], - "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/06e2e5b0-2f12-4ab9-b10c-a276a0b832ff" - ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" ], @@ -616,19 +616,19 @@ "11999" ], "x-ms-correlation-request-id": [ - "5d05afb3-88d6-4ac7-9193-84a468e82730" + "f2c436ac-8c75-4b1a-b2e6-428f86445856" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180807Z:5d05afb3-88d6-4ac7-9193-84a468e82730" + "EASTUS2:20251205T055532Z:f2c436ac-8c75-4b1a-b2e6-428f86445856" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 0157EA1F5CC54C389E2CFFE267ABCD95 Ref B: CO6AA3150219031 Ref C: 2025-10-30T18:08:06Z" + "Ref A: 015C1345EE784082B0AE7191B1F93C1F Ref B: CO6AA3150218033 Ref C: 2025-12-05T05:55:32Z" ], "Date": [ - "Thu, 30 Oct 2025 18:08:06 GMT" + "Fri, 05 Dec 2025 05:55:32 GMT" ], "Expires": [ "-1" @@ -649,13 +649,13 @@ "en-US" ], "client-request-id": [ - "0ad0a73e-daf0-4733-a4e3-2801ceb4480c" + "d0134fc5-f2e7-44ea-a800-9d160593f4cc" ], "ocp-date": [ - "Thu, 30 Oct 2025 18:08:06 GMT" + "Fri, 05 Dec 2025 05:55:32 GMT" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", "Microsoft.Azure.Batch.Protocol.BatchServiceClient/16.300.124.47002", @@ -674,7 +674,7 @@ "Microsoft-HTTPAPI/2.0" ], "request-id": [ - "d154742b-ce56-4b13-9714-fe4d7d3d407b" + "fbaf061b-89f2-4c9b-b5f9-b5ec68d486db" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -686,7 +686,7 @@ "3.0" ], "Date": [ - "Thu, 30 Oct 2025 18:08:06 GMT" + "Fri, 05 Dec 2025 05:55:32 GMT" ] }, "ResponseBody": "", diff --git a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json index 723b5e9a16b3..215f43ee79f0 100644 --- a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json +++ b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json @@ -6,16 +6,16 @@ "RequestMethod": "PUT", "RequestHeaders": { "x-ms-client-request-id": [ - "131105b5-e301-41bb-a3a5-a32b74169104" + "5b79e66a-725d-412b-8f91-7d6bba5709c9" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -33,10 +33,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE17DF3F3687F9\"" + "W/\"0x8DE33C25B7E6F83\"" ], "x-ms-request-id": [ - "cd657c86-e10c-42a8-b980-3f8135305345" + "9a91ae08-115c-4511-9303-a821b1d510bd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,7 +45,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/westus2/8b204904-0076-4bb6-8332-a7c7a5b077d1" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/westus2/cde1d508-7ab4-4974-9163-cdf6ac21671e" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" @@ -54,22 +54,22 @@ "11999" ], "x-ms-correlation-request-id": [ - "f53dd5f0-5140-43a5-bc76-06d7d90aaaa0" + "de4936d8-15c9-4f13-a0eb-c687f4c6e01c" ], "x-ms-routing-request-id": [ - "WESTUS2:20251030T180754Z:f53dd5f0-5140-43a5-bc76-06d7d90aaaa0" + "WESTUS2:20251205T055138Z:de4936d8-15c9-4f13-a0eb-c687f4c6e01c" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 19A021C13AB843DAB042F9341B25A036 Ref B: MWH011020806029 Ref C: 2025-10-30T18:07:53Z" + "Ref A: 0016000A092844D79943A0F43B5729BB Ref B: CO6AA3150217045 Ref C: 2025-12-05T05:51:37Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:53 GMT" + "Fri, 05 Dec 2025 05:51:38 GMT" ], "Content-Length": [ - "647" + "617" ], "Content-Type": [ "application/json; charset=utf-8" @@ -78,10 +78,10 @@ "-1" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:07:53 GMT" + "Fri, 05 Dec 2025 05:51:38 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE17DF3F3687F9\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://dotnetstoragebatch1.blob.core.windows.net/app-newapplicationpackage-838e4da1ea3b468bb3a2e46b049e90c8/foo?sv=2018-03-28&sr=b&sig=U8Pa1nk7wLTP3rS4eIPqkP50CsQA0VPWJ3ZgMgzvdO0%3D&st=2025-10-30T18%3A02%3A53Z&se=2025-10-30T22%3A07%3A53Z&sp=rw\",\r\n \"storageUrlExpiry\": \"2025-10-30T22:07:53.8930197Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C25B7E6F83\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-3ce3dc65454b4e9f80be4bed96659319/foo?sv=2025-05-05&se=2025-12-05T09%3A51%3A38Z&sr=b&sp=rw&sig=6JExmqF7rj%2BBSfJfDs2NWqFWjGObsnuP4JYxNC2NY60%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:51:38.4935942Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -93,13 +93,13 @@ "en-US" ], "x-ms-client-request-id": [ - "970fc5b7-a1ae-4db5-a66c-55e139062e71" + "2cc18784-ebbf-4eb0-9270-e70a56daf282" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -117,10 +117,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE17DF415E76E1\"" + "W/\"0x8DE33C26655BA3C\"" ], "x-ms-request-id": [ - "7192249e-aa53-4cd0-bd7f-66533f12ed37" + "670b964b-8489-4434-bcbe-8349fc2784a7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -129,7 +129,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/a353e9fe-cf94-48c1-8f47-1cc51e92e908" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/591b234a-7279-4cb3-a8cc-1023697d91b2" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" @@ -138,22 +138,22 @@ "11999" ], "x-ms-correlation-request-id": [ - "ce65b994-f702-4c78-af1a-5cdf2e6a2e43" + "5836de61-7ea3-40b1-b0bf-ae8b5907c02d" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180757Z:ce65b994-f702-4c78-af1a-5cdf2e6a2e43" + "EASTUS2:20251205T055156Z:5836de61-7ea3-40b1-b0bf-ae8b5907c02d" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 1A0655B7B0EE4AEEB37A20C1DD299BDD Ref B: MWH011020806029 Ref C: 2025-10-30T18:07:57Z" + "Ref A: 391211073A2C4D09BBBCD502BC207DD7 Ref B: CO6AA3150217045 Ref C: 2025-12-05T05:51:56Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:57 GMT" + "Fri, 05 Dec 2025 05:51:56 GMT" ], "Content-Length": [ - "717" + "683" ], "Content-Type": [ "application/json; charset=utf-8" @@ -162,10 +162,10 @@ "-1" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:07:57 GMT" + "Fri, 05 Dec 2025 05:51:56 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE17DF415E76E1\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://dotnetstoragebatch1.blob.core.windows.net/app-newapplicationpackage-838e4da1ea3b468bb3a2e46b049e90c8/foo?sv=2018-03-28&sr=b&sig=4TF%2FoqHdK%2FXNHvZh0cd8cilR4PLcjsL80VR1PgKeJwM%3D&st=2025-10-30T18%3A02%3A57Z&se=2025-10-30T22%3A07%3A57Z&sp=rw\",\r\n \"storageUrlExpiry\": \"2025-10-30T22:07:57.5293766Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-10-30T18:07:57.4930678Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C26655BA3C\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-3ce3dc65454b4e9f80be4bed96659319/foo?sv=2025-05-05&se=2025-12-05T09%3A51%3A56Z&sr=b&sp=rw&sig=ObE1SeRs5Rftw9cIRbAfJ20HWkdTKY%2BS2sqrqEchZVY%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:51:56.7132059Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:51:56.6560977Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -177,13 +177,13 @@ "en-US" ], "x-ms-client-request-id": [ - "970fc5b7-a1ae-4db5-a66c-55e139062e71" + "2cc18784-ebbf-4eb0-9270-e70a56daf282" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ] }, "RequestBody": "", @@ -195,10 +195,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE17DF415E76E1\"" + "W/\"0x8DE33C26655BA3C\"" ], "x-ms-request-id": [ - "07a6be17-a07f-460f-842a-2625cb56b6fa" + "b0065996-0dce-40f7-845a-57169c873b9d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -207,7 +207,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/66d1420c-cfdd-436d-8be2-1952a7d4a139" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/e1834b16-abc5-47b4-b790-7f1928691a80" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" @@ -216,22 +216,22 @@ "16499" ], "x-ms-correlation-request-id": [ - "b210304d-a0fb-442a-b9fa-bc17b8456d2e" + "0a727c7c-1f87-4531-b3ee-ada981a18c45" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180757Z:b210304d-a0fb-442a-b9fa-bc17b8456d2e" + "EASTUS2:20251205T055156Z:0a727c7c-1f87-4531-b3ee-ada981a18c45" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: E596C852848643059ED79E76E61FB44C Ref B: MWH011020806029 Ref C: 2025-10-30T18:07:57Z" + "Ref A: D8F12B36D0264D36BCD16FEA532C927D Ref B: CO6AA3150217045 Ref C: 2025-12-05T05:51:56Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:57 GMT" + "Fri, 05 Dec 2025 05:51:56 GMT" ], "Content-Length": [ - "717" + "683" ], "Content-Type": [ "application/json; charset=utf-8" @@ -240,10 +240,10 @@ "-1" ], "Last-Modified": [ - "Thu, 30 Oct 2025 18:07:57 GMT" + "Fri, 05 Dec 2025 05:51:56 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE17DF415E76E1\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://dotnetstoragebatch1.blob.core.windows.net/app-newapplicationpackage-838e4da1ea3b468bb3a2e46b049e90c8/foo?sv=2018-03-28&sr=b&sig=4TF%2FoqHdK%2FXNHvZh0cd8cilR4PLcjsL80VR1PgKeJwM%3D&st=2025-10-30T18%3A02%3A57Z&se=2025-10-30T22%3A07%3A57Z&sp=rw\",\r\n \"storageUrlExpiry\": \"2025-10-30T22:07:57.6805989Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-10-30T18:07:57.4930678Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C26655BA3C\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-3ce3dc65454b4e9f80be4bed96659319/foo?sv=2025-05-05&se=2025-12-05T09%3A51%3A56Z&sr=b&sp=rw&sig=ObE1SeRs5Rftw9cIRbAfJ20HWkdTKY%2BS2sqrqEchZVY%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:51:56.9030986Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:51:56.6560977Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -252,16 +252,16 @@ "RequestMethod": "DELETE", "RequestHeaders": { "x-ms-client-request-id": [ - "6195b583-4ca1-4ad5-876e-2c7da1b15981" + "8df61b26-1482-4b51-b615-b996578cd7a6" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ] }, "RequestBody": "", @@ -273,7 +273,7 @@ "no-cache" ], "x-ms-request-id": [ - "b87a7f9c-c5ef-425f-8869-3d5f5d8c37fb" + "cd8af093-447d-4ee6-a0d3-4b5b1207819b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -282,7 +282,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/c5ab13af-36e3-449e-9b2c-824f87eed624" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/06114013-f019-4b93-af6d-8fc7e22cfe96" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" @@ -291,19 +291,19 @@ "11999" ], "x-ms-correlation-request-id": [ - "835c5612-b483-4d06-887f-8cf794ba75d9" + "9006656e-87f6-47bb-afa2-a522a5a43584" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180758Z:835c5612-b483-4d06-887f-8cf794ba75d9" + "EASTUS2:20251205T055157Z:9006656e-87f6-47bb-afa2-a522a5a43584" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 1C26F63A7EC9445C83FFF3109A3B2B46 Ref B: MWH011020806029 Ref C: 2025-10-30T18:07:57Z" + "Ref A: D11F71D9742B42C69E7A6438A8B8A4B5 Ref B: CO6AA3150217045 Ref C: 2025-12-05T05:51:57Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:57 GMT" + "Fri, 05 Dec 2025 05:51:56 GMT" ], "Expires": [ "-1" @@ -321,16 +321,16 @@ "RequestMethod": "DELETE", "RequestHeaders": { "x-ms-client-request-id": [ - "866eb2c9-127b-4522-9834-8162aa611261" + "ae86ff69-8909-4a91-8dd8-bafd29108acc" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", - "Microsoft.Azure.Management.Batch.BatchManagementClient/3.7.1" + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" ] }, "RequestBody": "", @@ -342,7 +342,7 @@ "no-cache" ], "x-ms-request-id": [ - "0ee82342-11d8-4657-8755-57188c508c60" + "afabb208-7bf6-408e-b1eb-9f0417335cf6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -351,7 +351,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/95c408e6-bac6-40c8-9875-7d86f8b6b6bf" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/13180e2a-c4f9-4739-979a-94c7268656b5" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" @@ -360,19 +360,19 @@ "11999" ], "x-ms-correlation-request-id": [ - "44a655c3-0277-4bc5-b92e-4f74901c6884" + "ddbb1759-8e20-4d06-975b-726ef9118bea" ], "x-ms-routing-request-id": [ - "EASTUS2:20251030T180758Z:44a655c3-0277-4bc5-b92e-4f74901c6884" + "EASTUS2:20251205T055157Z:ddbb1759-8e20-4d06-975b-726ef9118bea" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 0236A91BFC4A4CF1AD2E2264819CEAC9 Ref B: MWH011020806029 Ref C: 2025-10-30T18:07:58Z" + "Ref A: 0784F765DFA74D5088EA85363B00D331 Ref B: CO6AA3150217045 Ref C: 2025-12-05T05:51:57Z" ], "Date": [ - "Thu, 30 Oct 2025 18:07:58 GMT" + "Fri, 05 Dec 2025 05:51:57 GMT" ], "Expires": [ "-1" diff --git a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestPoolCRUD.json b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestPoolCRUD.json index 217d35b6a102..2001b3ae7cc1 100644 --- a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestPoolCRUD.json +++ b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.PoolTests/TestPoolCRUD.json @@ -9,16 +9,16 @@ "en-US" ], "client-request-id": [ - "963be595-75bb-44bb-980c-f416a0ead922" + "8917a5c8-3190-480a-baeb-a269cb19dfec" ], "ocp-date": [ - "Wed, 29 Oct 2025 00:35:42 GMT" + "Fri, 05 Dec 2025 05:52:58 GMT" ], "x-ms-client-request-id": [ - "8a3dd911-d417-4c30-a42c-a1ba47c3189e" + "2c3af8ec-5ebf-4db8-8dfe-c819896314da" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", "Microsoft.Azure.Batch.Protocol.BatchServiceClient/16.300.124.47002", @@ -37,7 +37,7 @@ "chunked" ], "ETag": [ - "0x8DE168317A0141F" + "0x8DE33C28BB19F6D" ], "Location": [ "https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/pool1" @@ -46,7 +46,7 @@ "Microsoft-HTTPAPI/2.0" ], "request-id": [ - "82c3f980-b2c5-426b-9f86-ad87bf9102b3" + "bd8376c5-97cb-4a62-bb06-11204058947b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -61,10 +61,10 @@ "https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/pool1" ], "Date": [ - "Wed, 29 Oct 2025 00:35:42 GMT" + "Fri, 05 Dec 2025 05:52:59 GMT" ], "Last-Modified": [ - "Wed, 29 Oct 2025 00:35:42 GMT" + "Fri, 05 Dec 2025 05:52:59 GMT" ] }, "ResponseBody": "", @@ -79,16 +79,16 @@ "en-US" ], "client-request-id": [ - "e46d4d56-d2c6-4d63-a63d-523616cd7685" + "5fef1e36-3cab-4e10-b771-f3da58cda3e5" ], "ocp-date": [ - "Wed, 29 Oct 2025 00:35:42 GMT" + "Fri, 05 Dec 2025 05:53:00 GMT" ], "x-ms-client-request-id": [ - "0786de0f-38c4-42f3-91e7-155f9eba892f" + "3af4f77a-83ec-450d-999d-69ee1cbc68dd" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", "Microsoft.Azure.Batch.Protocol.BatchServiceClient/16.300.124.47002", @@ -107,7 +107,7 @@ "chunked" ], "ETag": [ - "0x8DE168317D30148" + "0x8DE33C28C61BE79" ], "Location": [ "https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/pool2" @@ -116,7 +116,7 @@ "Microsoft-HTTPAPI/2.0" ], "request-id": [ - "b96e0c50-7975-485e-8da6-7e63763fd608" + "42814c60-0f3d-424d-ac25-2fb1f8b093cb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -131,10 +131,10 @@ "https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/pool2" ], "Date": [ - "Wed, 29 Oct 2025 00:35:42 GMT" + "Fri, 05 Dec 2025 05:53:00 GMT" ], "Last-Modified": [ - "Wed, 29 Oct 2025 00:35:42 GMT" + "Fri, 05 Dec 2025 05:53:00 GMT" ] }, "ResponseBody": "", @@ -149,16 +149,16 @@ "en-US" ], "client-request-id": [ - "45fca24b-2529-4f73-aafe-751c9543d3cd" + "dbc4dffd-7a70-4416-b77a-2ecdc6d6b847" ], "ocp-date": [ - "Wed, 29 Oct 2025 00:35:43 GMT" + "Fri, 05 Dec 2025 05:53:00 GMT" ], "x-ms-client-request-id": [ - "9b3981ad-30cc-4402-8e76-1e816a5e9c3e" + "8c540cae-280d-4bf8-8242-ea06ce7b7b1a" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", "Microsoft.Azure.Batch.Protocol.BatchServiceClient/16.300.124.47002", @@ -174,7 +174,7 @@ "Microsoft-HTTPAPI/2.0" ], "request-id": [ - "08efa1ab-0c3e-4562-a443-d5a45bc8a1b7" + "696a6606-c061-49e0-be11-14af929ad92e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -186,13 +186,13 @@ "3.0" ], "Date": [ - "Wed, 29 Oct 2025 00:35:42 GMT" + "Fri, 05 Dec 2025 05:53:00 GMT" ], "Content-Type": [ "application/json; odata=minimalmetadata" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"pool1\",\r\n \"url\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/pool1\",\r\n \"eTag\": \"0x8DE168317A0141F\",\r\n \"lastModified\": \"2025-10-29T00:35:42.6082847Z\",\r\n \"creationTime\": \"2025-10-29T00:35:42.6082822Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2025-10-29T00:35:42.6082822Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2025-10-29T00:35:42.6082849Z\",\r\n \"vmSize\": \"standard_d1_v2\",\r\n \"resizeTimeout\": \"PT15M\",\r\n \"currentDedicatedNodes\": 0,\r\n \"targetDedicatedNodes\": 0,\r\n \"currentLowPriorityNodes\": 0,\r\n \"targetLowPriorityNodes\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"certificateReferences\": [],\r\n \"taskSlotsPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"virtualMachineConfiguration\": {\r\n \"imageReference\": {\r\n \"publisher\": \"microsoft-azure-batch\",\r\n \"offer\": \"ubuntu-server-container\",\r\n \"sku\": \"20-04-lts\",\r\n \"version\": \"latest\"\r\n },\r\n \"nodeAgentSKUId\": \"batch.node.ubuntu 20.04\",\r\n \"containerConfiguration\": {\r\n \"type\": \"dockerCompatible\",\r\n \"containerImageNames\": [\r\n \"test1\"\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"pool2\",\r\n \"url\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/pool2\",\r\n \"eTag\": \"0x8DE168317D30148\",\r\n \"lastModified\": \"2025-10-29T00:35:42.942036Z\",\r\n \"creationTime\": \"2025-10-29T00:35:42.9420349Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2025-10-29T00:35:42.9420349Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2025-10-29T00:35:42.9420361Z\",\r\n \"vmSize\": \"standard_d1_v2\",\r\n \"resizeTimeout\": \"PT15M\",\r\n \"currentDedicatedNodes\": 0,\r\n \"targetDedicatedNodes\": 0,\r\n \"currentLowPriorityNodes\": 0,\r\n \"targetLowPriorityNodes\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"certificateReferences\": [],\r\n \"taskSlotsPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"virtualMachineConfiguration\": {\r\n \"imageReference\": {\r\n \"publisher\": \"microsoft-azure-batch\",\r\n \"offer\": \"ubuntu-server-container\",\r\n \"sku\": \"20-04-lts\",\r\n \"version\": \"latest\"\r\n },\r\n \"nodeAgentSKUId\": \"batch.node.ubuntu 20.04\",\r\n \"containerConfiguration\": {\r\n \"type\": \"dockerCompatible\",\r\n \"containerImageNames\": [\r\n \"test2\"\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"pool1\",\r\n \"url\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/pool1\",\r\n \"eTag\": \"0x8DE33C28BB19F6D\",\r\n \"lastModified\": \"2025-12-05T05:52:59.3534829Z\",\r\n \"creationTime\": \"2025-12-05T05:52:59.3534806Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2025-12-05T05:52:59.3534806Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2025-12-05T05:52:59.3534831Z\",\r\n \"vmSize\": \"standard_d1_v2\",\r\n \"resizeTimeout\": \"PT15M\",\r\n \"currentDedicatedNodes\": 0,\r\n \"targetDedicatedNodes\": 0,\r\n \"currentLowPriorityNodes\": 0,\r\n \"targetLowPriorityNodes\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"certificateReferences\": [],\r\n \"taskSlotsPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"virtualMachineConfiguration\": {\r\n \"imageReference\": {\r\n \"publisher\": \"microsoft-azure-batch\",\r\n \"offer\": \"ubuntu-server-container\",\r\n \"sku\": \"20-04-lts\",\r\n \"version\": \"latest\"\r\n },\r\n \"nodeAgentSKUId\": \"batch.node.ubuntu 20.04\",\r\n \"containerConfiguration\": {\r\n \"type\": \"dockerCompatible\",\r\n \"containerImageNames\": [\r\n \"test1\"\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"pool2\",\r\n \"url\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/pool2\",\r\n \"eTag\": \"0x8DE33C28C61BE79\",\r\n \"lastModified\": \"2025-12-05T05:53:00.5077113Z\",\r\n \"creationTime\": \"2025-12-05T05:53:00.5077104Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2025-12-05T05:53:00.5077104Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2025-12-05T05:53:00.5077114Z\",\r\n \"vmSize\": \"standard_d1_v2\",\r\n \"resizeTimeout\": \"PT15M\",\r\n \"currentDedicatedNodes\": 0,\r\n \"targetDedicatedNodes\": 0,\r\n \"currentLowPriorityNodes\": 0,\r\n \"targetLowPriorityNodes\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"certificateReferences\": [],\r\n \"taskSlotsPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"virtualMachineConfiguration\": {\r\n \"imageReference\": {\r\n \"publisher\": \"microsoft-azure-batch\",\r\n \"offer\": \"ubuntu-server-container\",\r\n \"sku\": \"20-04-lts\",\r\n \"version\": \"latest\"\r\n },\r\n \"nodeAgentSKUId\": \"batch.node.ubuntu 20.04\",\r\n \"containerConfiguration\": {\r\n \"type\": \"dockerCompatible\",\r\n \"containerImageNames\": [\r\n \"test2\"\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { @@ -204,16 +204,16 @@ "en-US" ], "client-request-id": [ - "93c7290c-0925-4605-bd94-e16d35066de5" + "041bb31e-d67b-4c61-99cb-e348b85e6215" ], "ocp-date": [ - "Wed, 29 Oct 2025 00:35:44 GMT" + "Fri, 05 Dec 2025 05:53:00 GMT" ], "x-ms-client-request-id": [ - "632a0791-5ba8-404a-a207-b4e49ee6da55" + "38227053-4b9a-4683-985c-521d26c43e24" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", "Microsoft.Azure.Batch.Protocol.BatchServiceClient/16.300.124.47002", @@ -229,13 +229,13 @@ "RequestBody": "{\r\n \"startTask\": {\r\n \"commandLine\": \"/bin/bash -c 'echo start task'\"\r\n },\r\n \"certificateReferences\": [],\r\n \"applicationPackageReferences\": [],\r\n \"metadata\": []\r\n}", "ResponseHeaders": { "ETag": [ - "0x8DE168318D093B9" + "0x8DE33C28D6262A1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "request-id": [ - "c4ee76bf-5723-432c-8f7b-95bb76ff2576" + "f4d5682e-65af-40d4-8721-4b4d1ebe5683" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -250,13 +250,13 @@ "https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/pool2/updateproperties" ], "Date": [ - "Wed, 29 Oct 2025 00:35:43 GMT" + "Fri, 05 Dec 2025 05:53:01 GMT" ], "Content-Length": [ "0" ], "Last-Modified": [ - "Wed, 29 Oct 2025 00:35:44 GMT" + "Fri, 05 Dec 2025 05:53:02 GMT" ] }, "ResponseBody": "", @@ -271,16 +271,16 @@ "en-US" ], "client-request-id": [ - "73bd19c9-bbbc-4f79-b4b0-0bcd23ad2561" + "2a079469-8ef9-42a6-ae7b-9c291b46f974" ], "ocp-date": [ - "Wed, 29 Oct 2025 00:35:44 GMT" + "Fri, 05 Dec 2025 05:53:01 GMT" ], "x-ms-client-request-id": [ - "71cb5c2a-fa0c-4072-a5e8-c61ba38ab0de" + "3056e563-edfa-4e68-9c8b-53e156925fcd" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", "Microsoft.Azure.Batch.Protocol.BatchServiceClient/16.300.124.47002", @@ -293,13 +293,13 @@ "chunked" ], "ETag": [ - "0x8DE168318D093B9" + "0x8DE33C28D6262A1" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "request-id": [ - "b1465a1c-57aa-4034-81da-6ed1f92c0f77" + "5f09ea6c-32c2-4046-9474-9027f7448555" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -311,16 +311,16 @@ "3.0" ], "Date": [ - "Wed, 29 Oct 2025 00:35:43 GMT" + "Fri, 05 Dec 2025 05:53:01 GMT" ], "Content-Type": [ "application/json; odata=minimalmetadata" ], "Last-Modified": [ - "Wed, 29 Oct 2025 00:35:44 GMT" + "Fri, 05 Dec 2025 05:53:02 GMT" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"pool2\",\r\n \"url\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/pool2\",\r\n \"eTag\": \"0x8DE168318D093B9\",\r\n \"lastModified\": \"2025-10-29T00:35:44.6038457Z\",\r\n \"creationTime\": \"2025-10-29T00:35:42.9420349Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2025-10-29T00:35:42.9420349Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2025-10-29T00:35:44.5840513Z\",\r\n \"vmSize\": \"standard_d1_v2\",\r\n \"resizeTimeout\": \"PT15M\",\r\n \"currentDedicatedNodes\": 0,\r\n \"targetDedicatedNodes\": 0,\r\n \"currentLowPriorityNodes\": 0,\r\n \"targetLowPriorityNodes\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"/bin/bash -c 'echo start task'\",\r\n \"userIdentity\": {\r\n \"autoUser\": {\r\n \"scope\": \"pool\",\r\n \"elevationLevel\": \"nonadmin\"\r\n }\r\n },\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": true\r\n },\r\n \"certificateReferences\": [],\r\n \"taskSlotsPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"virtualMachineConfiguration\": {\r\n \"imageReference\": {\r\n \"publisher\": \"microsoft-azure-batch\",\r\n \"offer\": \"ubuntu-server-container\",\r\n \"sku\": \"20-04-lts\",\r\n \"version\": \"latest\"\r\n },\r\n \"nodeAgentSKUId\": \"batch.node.ubuntu 20.04\",\r\n \"containerConfiguration\": {\r\n \"type\": \"dockerCompatible\",\r\n \"containerImageNames\": [\r\n \"test2\"\r\n ]\r\n }\r\n },\r\n \"targetNodeCommunicationMode\": \"default\"\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/$metadata#pools/@Element\",\r\n \"id\": \"pool2\",\r\n \"url\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/pool2\",\r\n \"eTag\": \"0x8DE33C28D6262A1\",\r\n \"lastModified\": \"2025-12-05T05:53:02.1896353Z\",\r\n \"creationTime\": \"2025-12-05T05:53:00.5077104Z\",\r\n \"state\": \"active\",\r\n \"stateTransitionTime\": \"2025-12-05T05:53:00.5077104Z\",\r\n \"allocationState\": \"steady\",\r\n \"allocationStateTransitionTime\": \"2025-12-05T05:53:02.1692442Z\",\r\n \"vmSize\": \"standard_d1_v2\",\r\n \"resizeTimeout\": \"PT15M\",\r\n \"currentDedicatedNodes\": 0,\r\n \"targetDedicatedNodes\": 0,\r\n \"currentLowPriorityNodes\": 0,\r\n \"targetLowPriorityNodes\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"/bin/bash -c 'echo start task'\",\r\n \"userIdentity\": {\r\n \"autoUser\": {\r\n \"scope\": \"pool\",\r\n \"elevationLevel\": \"nonadmin\"\r\n }\r\n },\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": true\r\n },\r\n \"certificateReferences\": [],\r\n \"taskSlotsPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"virtualMachineConfiguration\": {\r\n \"imageReference\": {\r\n \"publisher\": \"microsoft-azure-batch\",\r\n \"offer\": \"ubuntu-server-container\",\r\n \"sku\": \"20-04-lts\",\r\n \"version\": \"latest\"\r\n },\r\n \"nodeAgentSKUId\": \"batch.node.ubuntu 20.04\",\r\n \"containerConfiguration\": {\r\n \"type\": \"dockerCompatible\",\r\n \"containerImageNames\": [\r\n \"test2\"\r\n ]\r\n }\r\n },\r\n \"targetNodeCommunicationMode\": \"default\"\r\n}", "StatusCode": 200 }, { @@ -332,16 +332,16 @@ "en-US" ], "client-request-id": [ - "2286d26c-e3df-4e8e-99fd-9f2eea9c52f6" + "7aaf47db-7436-47ec-b4a0-61250fd3bed3" ], "ocp-date": [ - "Wed, 29 Oct 2025 00:35:44 GMT" + "Fri, 05 Dec 2025 05:53:02 GMT" ], "x-ms-client-request-id": [ - "204e3f4a-b2bf-4a01-8748-067964862fe8" + "a7fee622-b5c4-4691-99b5-e7a4e2f280a7" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", "Microsoft.Azure.Batch.Protocol.BatchServiceClient/16.300.124.47002", @@ -360,7 +360,7 @@ "Microsoft-HTTPAPI/2.0" ], "request-id": [ - "a55c1a0f-2bad-46ab-8d43-92af08b76f0b" + "8eaac3ed-4cb7-4b0b-92ae-a5b974a99ccf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -372,7 +372,7 @@ "3.0" ], "Date": [ - "Wed, 29 Oct 2025 00:35:44 GMT" + "Fri, 05 Dec 2025 05:53:02 GMT" ] }, "ResponseBody": "", @@ -387,16 +387,16 @@ "en-US" ], "client-request-id": [ - "da8cb47b-db2c-4842-926c-12930a775fdf" + "ade59cb6-d09a-4482-90f2-fab81a1d7bdb" ], "ocp-date": [ - "Wed, 29 Oct 2025 00:35:44 GMT" + "Fri, 05 Dec 2025 05:53:02 GMT" ], "x-ms-client-request-id": [ - "451ea926-f4a7-4c59-aa6c-8f1bfb923004" + "b6f95b1c-f6ae-49c4-b352-65ff67ccbafb" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", "Microsoft.Azure.Batch.Protocol.BatchServiceClient/16.300.124.47002", @@ -415,7 +415,7 @@ "Microsoft-HTTPAPI/2.0" ], "request-id": [ - "0ac7f867-1909-4212-925f-b15d6a138fd3" + "ec5a515e-235b-44f4-aabc-9a440ba278d9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -427,7 +427,7 @@ "3.0" ], "Date": [ - "Wed, 29 Oct 2025 00:35:44 GMT" + "Fri, 05 Dec 2025 05:53:02 GMT" ] }, "ResponseBody": "", @@ -442,16 +442,16 @@ "en-US" ], "client-request-id": [ - "f399b293-6bf3-4847-8044-61881ca0da52" + "9df9df1a-70bf-44bb-afbe-c401e6546032" ], "ocp-date": [ - "Wed, 29 Oct 2025 00:35:44 GMT" + "Fri, 05 Dec 2025 05:53:02 GMT" ], "x-ms-client-request-id": [ - "69ab1806-9dd9-4daa-9718-e06cd4910524" + "dc9efb28-167b-4237-a780-081eb1a2bf6a" ], "User-Agent": [ - "FxVersion/8.0.2125.47513", + "FxVersion/8.0.2225.52707", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.26200", "Microsoft.Azure.Batch.Protocol.BatchServiceClient/16.300.124.47002", @@ -467,7 +467,7 @@ "Microsoft-HTTPAPI/2.0" ], "request-id": [ - "5556cb4a-4390-4c2b-9ead-c3bddadaafab" + "920a316d-e526-4548-b523-aaa6affb4aff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -479,13 +479,13 @@ "3.0" ], "Date": [ - "Wed, 29 Oct 2025 00:35:44 GMT" + "Fri, 05 Dec 2025 05:53:02 GMT" ], "Content-Type": [ "application/json; odata=minimalmetadata" ] }, - "ResponseBody": "{\r\n \"odata.metadata\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"pool1\",\r\n \"url\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/pool1\",\r\n \"eTag\": \"0x8DE168318F3CE16\",\r\n \"lastModified\": \"2025-10-29T00:35:44.8347158Z\",\r\n \"creationTime\": \"2025-10-29T00:35:42.6082822Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2025-10-29T00:35:44.8347158Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2025-10-29T00:35:44.8505701Z\",\r\n \"vmSize\": \"standard_d1_v2\",\r\n \"resizeTimeout\": \"PT7M9.497S\",\r\n \"currentDedicatedNodes\": 0,\r\n \"targetDedicatedNodes\": 0,\r\n \"currentLowPriorityNodes\": 0,\r\n \"targetLowPriorityNodes\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"certificateReferences\": [],\r\n \"taskSlotsPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"virtualMachineConfiguration\": {\r\n \"imageReference\": {\r\n \"publisher\": \"microsoft-azure-batch\",\r\n \"offer\": \"ubuntu-server-container\",\r\n \"sku\": \"20-04-lts\",\r\n \"version\": \"latest\"\r\n },\r\n \"nodeAgentSKUId\": \"batch.node.ubuntu 20.04\",\r\n \"containerConfiguration\": {\r\n \"type\": \"dockerCompatible\",\r\n \"containerImageNames\": [\r\n \"test1\"\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"pool2\",\r\n \"url\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/pool2\",\r\n \"eTag\": \"0x8DE16831903C4EE\",\r\n \"lastModified\": \"2025-10-29T00:35:44.939339Z\",\r\n \"creationTime\": \"2025-10-29T00:35:42.9420349Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2025-10-29T00:35:44.939339Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2025-10-29T00:35:44.9561207Z\",\r\n \"vmSize\": \"standard_d1_v2\",\r\n \"resizeTimeout\": \"PT7M9.497S\",\r\n \"currentDedicatedNodes\": 0,\r\n \"targetDedicatedNodes\": 0,\r\n \"currentLowPriorityNodes\": 0,\r\n \"targetLowPriorityNodes\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"/bin/bash -c 'echo start task'\",\r\n \"userIdentity\": {\r\n \"autoUser\": {\r\n \"scope\": \"pool\",\r\n \"elevationLevel\": \"nonadmin\"\r\n }\r\n },\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": true\r\n },\r\n \"certificateReferences\": [],\r\n \"taskSlotsPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"virtualMachineConfiguration\": {\r\n \"imageReference\": {\r\n \"publisher\": \"microsoft-azure-batch\",\r\n \"offer\": \"ubuntu-server-container\",\r\n \"sku\": \"20-04-lts\",\r\n \"version\": \"latest\"\r\n },\r\n \"nodeAgentSKUId\": \"batch.node.ubuntu 20.04\",\r\n \"containerConfiguration\": {\r\n \"type\": \"dockerCompatible\",\r\n \"containerImageNames\": [\r\n \"test2\"\r\n ]\r\n }\r\n },\r\n \"targetNodeCommunicationMode\": \"default\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"odata.metadata\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/$metadata#pools\",\r\n \"value\": [\r\n {\r\n \"id\": \"pool1\",\r\n \"url\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/pool1\",\r\n \"eTag\": \"0x8DE33C28D89D9D5\",\r\n \"lastModified\": \"2025-12-05T05:53:02.4482773Z\",\r\n \"creationTime\": \"2025-12-05T05:52:59.3534806Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2025-12-05T05:53:02.4482773Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2025-12-05T05:53:02.4643688Z\",\r\n \"vmSize\": \"standard_d1_v2\",\r\n \"resizeTimeout\": \"PT7M9.497S\",\r\n \"currentDedicatedNodes\": 0,\r\n \"targetDedicatedNodes\": 0,\r\n \"currentLowPriorityNodes\": 0,\r\n \"targetLowPriorityNodes\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"certificateReferences\": [],\r\n \"taskSlotsPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"virtualMachineConfiguration\": {\r\n \"imageReference\": {\r\n \"publisher\": \"microsoft-azure-batch\",\r\n \"offer\": \"ubuntu-server-container\",\r\n \"sku\": \"20-04-lts\",\r\n \"version\": \"latest\"\r\n },\r\n \"nodeAgentSKUId\": \"batch.node.ubuntu 20.04\",\r\n \"containerConfiguration\": {\r\n \"type\": \"dockerCompatible\",\r\n \"containerImageNames\": [\r\n \"test1\"\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"pool2\",\r\n \"url\": \"https://dotnotsdkbatchaccount2.eastus2.batch.azure.com/pools/pool2\",\r\n \"eTag\": \"0x8DE33C28D9B3A59\",\r\n \"lastModified\": \"2025-12-05T05:53:02.5621593Z\",\r\n \"creationTime\": \"2025-12-05T05:53:00.5077104Z\",\r\n \"state\": \"deleting\",\r\n \"stateTransitionTime\": \"2025-12-05T05:53:02.5621593Z\",\r\n \"allocationState\": \"resizing\",\r\n \"allocationStateTransitionTime\": \"2025-12-05T05:53:02.5771762Z\",\r\n \"vmSize\": \"standard_d1_v2\",\r\n \"resizeTimeout\": \"PT7M9.497S\",\r\n \"currentDedicatedNodes\": 0,\r\n \"targetDedicatedNodes\": 0,\r\n \"currentLowPriorityNodes\": 0,\r\n \"targetLowPriorityNodes\": 0,\r\n \"enableAutoScale\": false,\r\n \"enableInterNodeCommunication\": false,\r\n \"startTask\": {\r\n \"commandLine\": \"/bin/bash -c 'echo start task'\",\r\n \"userIdentity\": {\r\n \"autoUser\": {\r\n \"scope\": \"pool\",\r\n \"elevationLevel\": \"nonadmin\"\r\n }\r\n },\r\n \"maxTaskRetryCount\": 0,\r\n \"waitForSuccess\": true\r\n },\r\n \"certificateReferences\": [],\r\n \"taskSlotsPerNode\": 1,\r\n \"taskSchedulingPolicy\": {\r\n \"nodeFillType\": \"Spread\"\r\n },\r\n \"virtualMachineConfiguration\": {\r\n \"imageReference\": {\r\n \"publisher\": \"microsoft-azure-batch\",\r\n \"offer\": \"ubuntu-server-container\",\r\n \"sku\": \"20-04-lts\",\r\n \"version\": \"latest\"\r\n },\r\n \"nodeAgentSKUId\": \"batch.node.ubuntu 20.04\",\r\n \"containerConfiguration\": {\r\n \"type\": \"dockerCompatible\",\r\n \"containerImageNames\": [\r\n \"test2\"\r\n ]\r\n }\r\n },\r\n \"targetNodeCommunicationMode\": \"default\"\r\n }\r\n ]\r\n}", "StatusCode": 200 } ], diff --git a/src/Batch/Batch/Models/BatchClient.ApplicationPackages.cs b/src/Batch/Batch/Models/BatchClient.ApplicationPackages.cs index cef0cd729a25..b4713b5cc7d4 100644 --- a/src/Batch/Batch/Models/BatchClient.ApplicationPackages.cs +++ b/src/Batch/Batch/Models/BatchClient.ApplicationPackages.cs @@ -110,16 +110,18 @@ public virtual PSApplicationPackage UploadAndActivateApplicationPackage( throw new FileNotFoundException(string.Format(Resources.FileNotFound, filePath), filePath); } - // Else create Application Package and upload. - bool appPackageAlreadyExists; - - var storageUrl = GetStorageUrl(resourceGroupName, accountName, applicationName, version, out appPackageAlreadyExists); + // check to see if the application package already exists + bool appPackageAlreadyExists = AppPackageExists(resourceGroupName, accountName, applicationName, version); + // if exist verify it allows updates if (appPackageAlreadyExists) { CheckApplicationAllowsUpdates(resourceGroupName, accountName, applicationName, version); } + // Get the storage URL to upload the application package to by call create/update + var storageUrl = GetStorageUrl(resourceGroupName, accountName, applicationName, version); + UploadFileToApplicationPackage(resourceGroupName, accountName, applicationName, version, filePath, storageUrl, appPackageAlreadyExists); ActivateApplicationPackage(resourceGroupName, accountName, applicationName, version, format, Resources.UploadedApplicationButFailedToActivate); @@ -189,8 +191,10 @@ private void ActivateApplicationPackage(string resourceGroupName, string account } } - private string GetStorageUrl(string resourceGroupName, string accountName, string applicationName, string version, out bool appPackageAlreadyExists) + + private bool AppPackageExists(string resourceGroupName, string accountName, string applicationName, string version) { + try { // Checks to see if the package exists @@ -200,8 +204,8 @@ private string GetStorageUrl(string resourceGroupName, string accountName, strin applicationName, version); - appPackageAlreadyExists = true; - return response.StorageUrl; + return true; + } catch (CloudException exception) { @@ -213,6 +217,13 @@ private string GetStorageUrl(string resourceGroupName, string accountName, strin } } + return false; + } + + + private string GetStorageUrl(string resourceGroupName, string accountName, string applicationName, string version) + { + try { var addResponse = BatchManagementClient.ApplicationPackage.Create( @@ -221,8 +232,6 @@ private string GetStorageUrl(string resourceGroupName, string accountName, strin applicationName, version); - //Package didn't exist before we created it - appPackageAlreadyExists = false; return addResponse.StorageUrl; } catch (Exception exception) @@ -237,7 +246,7 @@ private static PSApplicationPackage ConvertGetApplicationPackageResponseToApplic return new PSApplicationPackage { Format = response.Format, - StorageUrl = response.StorageUrl, + //StorageUrl = response.StorageUrl, StorageUrlExpiry = response.StorageUrlExpiry, State = response.State.Value, Id = response.Id, From 9ae7574b1b0e9d289e39b01699d917f8077b7ec7 Mon Sep 17 00:00:00 2001 From: "REDMOND\\wiboris" Date: Thu, 4 Dec 2025 22:35:55 -0800 Subject: [PATCH 2/5] changed test to upload file not just activate it --- .../BatchApplicationPackageTests.ps1 | 2 +- .../TestUploadApplicationPackage.json | 342 +++++++++++++++--- 2 files changed, 292 insertions(+), 52 deletions(-) diff --git a/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.ps1 b/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.ps1 index dfda06da1cee..387eb84dc936 100644 --- a/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.ps1 +++ b/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.ps1 @@ -23,7 +23,7 @@ function Test-UploadApplicationPackage # Setup $context = New-Object Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ScenarioTestContext - $addAppPack = New-AzBatchApplicationPackage -ResourceGroupName $context.ResourceGroupName -AccountName $context.AccountName -ApplicationName $applicationName -ApplicationVersion $applicationVersion -format "zip" -ActivateOnly + $addAppPack = New-AzBatchApplicationPackage -ResourceGroupName $context.ResourceGroupName -AccountName $context.AccountName -ApplicationName $applicationName -ApplicationVersion $applicationVersion -format "zip" -FilePath $filePath $subId = $context.Subscription $resourceGroup = $context.ResourceGroupName $batchAccountName = $context.AccountName diff --git a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json index 215f43ee79f0..782485849a2d 100644 --- a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json +++ b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json @@ -6,7 +6,7 @@ "RequestMethod": "PUT", "RequestHeaders": { "x-ms-client-request-id": [ - "5b79e66a-725d-412b-8f91-7d6bba5709c9" + "972e68a4-7e37-49ea-a050-044a43599be6" ], "Accept-Language": [ "en-US" @@ -33,10 +33,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE33C25B7E6F83\"" + "W/\"0x8DE33C7B80291BF\"" ], "x-ms-request-id": [ - "9a91ae08-115c-4511-9303-a821b1d510bd" + "6862bfe1-3f89-487b-9220-0e6bb89fae87" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,7 +45,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/westus2/cde1d508-7ab4-4974-9163-cdf6ac21671e" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/5dfa8144-092f-4eb0-a160-95d44745db01" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" @@ -54,22 +54,22 @@ "11999" ], "x-ms-correlation-request-id": [ - "de4936d8-15c9-4f13-a0eb-c687f4c6e01c" + "66232b31-5344-4a0b-aed3-2b06e6ec33d1" ], "x-ms-routing-request-id": [ - "WESTUS2:20251205T055138Z:de4936d8-15c9-4f13-a0eb-c687f4c6e01c" + "EASTUS2:20251205T063001Z:66232b31-5344-4a0b-aed3-2b06e6ec33d1" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 0016000A092844D79943A0F43B5729BB Ref B: CO6AA3150217045 Ref C: 2025-12-05T05:51:37Z" + "Ref A: 9F4558A7B30F4F619B64FA4D40782BCE Ref B: CO6AA3150217047 Ref C: 2025-12-05T06:30:00Z" ], "Date": [ - "Fri, 05 Dec 2025 05:51:38 GMT" + "Fri, 05 Dec 2025 06:30:00 GMT" ], "Content-Length": [ - "617" + "681" ], "Content-Type": [ "application/json; charset=utf-8" @@ -78,22 +78,22 @@ "-1" ], "Last-Modified": [ - "Fri, 05 Dec 2025 05:51:38 GMT" + "Fri, 05 Dec 2025 06:30:01 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C25B7E6F83\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-3ce3dc65454b4e9f80be4bed96659319/foo?sv=2025-05-05&se=2025-12-05T09%3A51%3A38Z&sr=b&sp=rw&sig=6JExmqF7rj%2BBSfJfDs2NWqFWjGObsnuP4JYxNC2NY60%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:51:38.4935942Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C7B80291BF\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-c131d82c015846f6a98602bc1b037be5/foo?sv=2025-05-05&se=2025-12-05T10%3A30%3A01Z&sr=b&sp=rw&sig=HnHaIh1Rysgw8eVTkXmx7BGcJx8m8L0qXW64iI20QuE%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T10:30:01.1982987Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T06:21:17.6902339Z\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo/activate?api-version=2024-07-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTRiZDdkZWQtNjhiNC00ZmZhLTgyYTUtMzdhYzcyY2FhMmVjL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24vcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL2RvdG5vdHNka2JhdGNoYWNjb3VudDIvYXBwbGljYXRpb25zL25ld0FwcGxpY2F0aW9uUGFja2FnZS92ZXJzaW9ucy9mb28vYWN0aXZhdGU/YXBpLXZlcnNpb249MjAyNC0wNy0wMQ==", - "RequestMethod": "POST", + "RequestUri": "/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo?api-version=2024-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTRiZDdkZWQtNjhiNC00ZmZhLTgyYTUtMzdhYzcyY2FhMmVjL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24vcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL2RvdG5vdHNka2JhdGNoYWNjb3VudDIvYXBwbGljYXRpb25zL25ld0FwcGxpY2F0aW9uUGFja2FnZS92ZXJzaW9ucy9mb28/YXBpLXZlcnNpb249MjAyNC0wNy0wMQ==", + "RequestMethod": "PUT", "RequestHeaders": { "Accept-Language": [ "en-US" ], "x-ms-client-request-id": [ - "2cc18784-ebbf-4eb0-9270-e70a56daf282" + "d208a972-c329-45fb-9a01-c0dde935e514" ], "User-Agent": [ "FxVersion/8.0.2225.52707", @@ -105,10 +105,10 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "23" + "2" ] }, - "RequestBody": "{\r\n \"format\": \"zip\"\r\n}", + "RequestBody": "{}", "ResponseHeaders": { "Cache-Control": [ "no-cache" @@ -117,10 +117,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE33C26655BA3C\"" + "W/\"0x8DE33C7E21AEA47\"" ], "x-ms-request-id": [ - "670b964b-8489-4434-bcbe-8349fc2784a7" + "9ce65783-d8f9-4c8b-b23a-ee4fc8d53029" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -129,7 +129,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/591b234a-7279-4cb3-a8cc-1023697d91b2" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/f156fa19-705e-4369-8f7d-84b51513c114" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" @@ -138,22 +138,22 @@ "11999" ], "x-ms-correlation-request-id": [ - "5836de61-7ea3-40b1-b0bf-ae8b5907c02d" + "a45f4467-9c9b-42c3-8263-6a81d437c485" ], "x-ms-routing-request-id": [ - "EASTUS2:20251205T055156Z:5836de61-7ea3-40b1-b0bf-ae8b5907c02d" + "EASTUS2:20251205T063111Z:a45f4467-9c9b-42c3-8263-6a81d437c485" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 391211073A2C4D09BBBCD502BC207DD7 Ref B: CO6AA3150217045 Ref C: 2025-12-05T05:51:56Z" + "Ref A: D971A22B3B5C406098E3DF38EBE38745 Ref B: CO6AA3150217047 Ref C: 2025-12-05T06:31:11Z" ], "Date": [ - "Fri, 05 Dec 2025 05:51:56 GMT" + "Fri, 05 Dec 2025 06:31:11 GMT" ], "Content-Length": [ - "683" + "685" ], "Content-Type": [ "application/json; charset=utf-8" @@ -162,10 +162,10 @@ "-1" ], "Last-Modified": [ - "Fri, 05 Dec 2025 05:51:56 GMT" + "Fri, 05 Dec 2025 06:31:11 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C26655BA3C\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-3ce3dc65454b4e9f80be4bed96659319/foo?sv=2025-05-05&se=2025-12-05T09%3A51%3A56Z&sr=b&sp=rw&sig=ObE1SeRs5Rftw9cIRbAfJ20HWkdTKY%2BS2sqrqEchZVY%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:51:56.7132059Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:51:56.6560977Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C7E21AEA47\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-c131d82c015846f6a98602bc1b037be5/foo?sv=2025-05-05&se=2025-12-05T10%3A31%3A11Z&sr=b&sp=rw&sig=eKvoZC043S%2FmVhBPvgJhjc832Ru%2Bsr9AFyLxBdTolCI%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T10:31:11.8191108Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T06:21:17.6902339Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -177,7 +177,7 @@ "en-US" ], "x-ms-client-request-id": [ - "2cc18784-ebbf-4eb0-9270-e70a56daf282" + "d208a972-c329-45fb-9a01-c0dde935e514" ], "User-Agent": [ "FxVersion/8.0.2225.52707", @@ -195,10 +195,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE33C26655BA3C\"" + "W/\"0x8DE33C7B80291BF\"" ], "x-ms-request-id": [ - "b0065996-0dce-40f7-845a-57169c873b9d" + "003e9890-9959-4473-90f8-248f71093cca" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -207,7 +207,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/e1834b16-abc5-47b4-b790-7f1928691a80" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/14191080-0b33-4f47-981d-94aeb5c480c2" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" @@ -216,19 +216,97 @@ "16499" ], "x-ms-correlation-request-id": [ - "0a727c7c-1f87-4531-b3ee-ada981a18c45" + "ef6710ee-a5f7-4e1f-b105-8a78212cb406" ], "x-ms-routing-request-id": [ - "EASTUS2:20251205T055156Z:0a727c7c-1f87-4531-b3ee-ada981a18c45" + "EASTUS2:20251205T063100Z:ef6710ee-a5f7-4e1f-b105-8a78212cb406" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: D8F12B36D0264D36BCD16FEA532C927D Ref B: CO6AA3150217045 Ref C: 2025-12-05T05:51:56Z" + "Ref A: B7F13B328D6F4699B4715E1B04496A23 Ref B: CO6AA3150217047 Ref C: 2025-12-05T06:31:00Z" ], "Date": [ - "Fri, 05 Dec 2025 05:51:56 GMT" + "Fri, 05 Dec 2025 06:31:00 GMT" + ], + "Content-Length": [ + "681" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Fri, 05 Dec 2025 06:30:01 GMT" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C7B80291BF\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-c131d82c015846f6a98602bc1b037be5/foo?sv=2025-05-05&se=2025-12-05T10%3A31%3A00Z&sr=b&sp=rw&sig=aQO2MJYad0OLZCGJEtXUSpseAXeZBFGndfiHN1DjMg8%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T10:31:00.8557064Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T06:21:17.6902339Z\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo?api-version=2024-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTRiZDdkZWQtNjhiNC00ZmZhLTgyYTUtMzdhYzcyY2FhMmVjL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24vcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL2RvdG5vdHNka2JhdGNoYWNjb3VudDIvYXBwbGljYXRpb25zL25ld0FwcGxpY2F0aW9uUGFja2FnZS92ZXJzaW9ucy9mb28/YXBpLXZlcnNpb249MjAyNC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept-Language": [ + "en-US" + ], + "x-ms-client-request-id": [ + "d208a972-c329-45fb-9a01-c0dde935e514" + ], + "User-Agent": [ + "FxVersion/8.0.2225.52707", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.26200", + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" + ] + }, + "RequestBody": "", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"0x8DE33C7E6E64851\"" + ], + "x-ms-request-id": [ + "2c18aa52-c930-4960-ab34-adb41accd2bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-operation-identifier": [ + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/b46d3f00-d1a6-4fa4-a554-551646e6e62f" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "1099" + ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ + "16499" + ], + "x-ms-correlation-request-id": [ + "7c2e39fa-04ef-4f47-b72b-4223e4f1220f" + ], + "x-ms-routing-request-id": [ + "EASTUS2:20251205T063325Z:7c2e39fa-04ef-4f47-b72b-4223e4f1220f" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 5AD7296E15B04E17AA93D8F20DFC1AC0 Ref B: CO6AA3150218011 Ref C: 2025-12-05T06:33:24Z" + ], + "Date": [ + "Fri, 05 Dec 2025 06:33:24 GMT" ], "Content-Length": [ "683" @@ -240,10 +318,172 @@ "-1" ], "Last-Modified": [ - "Fri, 05 Dec 2025 05:51:56 GMT" + "Fri, 05 Dec 2025 06:31:19 GMT" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C7E6E64851\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-c131d82c015846f6a98602bc1b037be5/foo?sv=2025-05-05&se=2025-12-05T10%3A33%3A25Z&sr=b&sp=rw&sig=Re79w01T2q5z6h%2F9SoEKJXKfQpqpnefC341wJWcFmaE%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T10:33:25.0420776Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T06:31:19.8307036Z\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage?api-version=2024-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTRiZDdkZWQtNjhiNC00ZmZhLTgyYTUtMzdhYzcyY2FhMmVjL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24vcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL2RvdG5vdHNka2JhdGNoYWNjb3VudDIvYXBwbGljYXRpb25zL25ld0FwcGxpY2F0aW9uUGFja2FnZT9hcGktdmVyc2lvbj0yMDI0LTA3LTAx", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept-Language": [ + "en-US" + ], + "x-ms-client-request-id": [ + "d208a972-c329-45fb-9a01-c0dde935e514" + ], + "User-Agent": [ + "FxVersion/8.0.2225.52707", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.26200", + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" + ] + }, + "RequestBody": "", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"0x8DE33C5C3F582D1\"" + ], + "x-ms-request-id": [ + "38376bf5-d2f5-4816-b031-0ae98b0d6db6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-operation-identifier": [ + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/8d2ac1fd-6fb9-4451-9967-2309f4682398" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "1099" + ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ + "16499" + ], + "x-ms-correlation-request-id": [ + "ccb9e528-2b94-4fcd-87a9-2599ba5e9f81" + ], + "x-ms-routing-request-id": [ + "EASTUS2:20251205T063107Z:ccb9e528-2b94-4fcd-87a9-2599ba5e9f81" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 965ECA2CA4BA49DCB3907BA150CDFA60 Ref B: CO6AA3150217047 Ref C: 2025-12-05T06:31:07Z" + ], + "Date": [ + "Fri, 05 Dec 2025 06:31:06 GMT" + ], + "Content-Length": [ + "335" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Fri, 05 Dec 2025 06:16:02 GMT" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage\",\r\n \"name\": \"newApplicationPackage\",\r\n \"etag\": \"W/\\\"0x8DE33C5C3F582D1\\\"\",\r\n \"properties\": {\r\n \"allowUpdates\": true\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo/activate?api-version=2024-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTRiZDdkZWQtNjhiNC00ZmZhLTgyYTUtMzdhYzcyY2FhMmVjL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24vcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL2RvdG5vdHNka2JhdGNoYWNjb3VudDIvYXBwbGljYXRpb25zL25ld0FwcGxpY2F0aW9uUGFja2FnZS92ZXJzaW9ucy9mb28vYWN0aXZhdGU/YXBpLXZlcnNpb249MjAyNC0wNy0wMQ==", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept-Language": [ + "en-US" + ], + "x-ms-client-request-id": [ + "d208a972-c329-45fb-9a01-c0dde935e514" + ], + "User-Agent": [ + "FxVersion/8.0.2225.52707", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.26200", + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "23" + ] + }, + "RequestBody": "{\r\n \"format\": \"zip\"\r\n}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"0x8DE33C7E6E64851\"" + ], + "x-ms-request-id": [ + "056d8963-3d55-4da5-942f-804c7c5f8e7f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-operation-identifier": [ + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/613ab08a-b128-431c-84f7-777352a46e83" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "799" + ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "103136a6-81fe-4089-a238-ec2c566b9d6c" + ], + "x-ms-routing-request-id": [ + "EASTUS2:20251205T063119Z:103136a6-81fe-4089-a238-ec2c566b9d6c" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 682870187EEB48348CDDC7FF597BBEC0 Ref B: CO6AA3150217047 Ref C: 2025-12-05T06:31:19Z" + ], + "Date": [ + "Fri, 05 Dec 2025 06:31:19 GMT" + ], + "Content-Length": [ + "685" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Fri, 05 Dec 2025 06:31:19 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C26655BA3C\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-3ce3dc65454b4e9f80be4bed96659319/foo?sv=2025-05-05&se=2025-12-05T09%3A51%3A56Z&sr=b&sp=rw&sig=ObE1SeRs5Rftw9cIRbAfJ20HWkdTKY%2BS2sqrqEchZVY%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:51:56.9030986Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:51:56.6560977Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C7E6E64851\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-c131d82c015846f6a98602bc1b037be5/foo?sv=2025-05-05&se=2025-12-05T10%3A31%3A19Z&sr=b&sp=rw&sig=%2FREUKvWfYAptTptjQxlZr3B5wl0gbEceZc0E9pZRF%2FI%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T10:31:19.9003174Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T06:31:19.8307036Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -252,7 +492,7 @@ "RequestMethod": "DELETE", "RequestHeaders": { "x-ms-client-request-id": [ - "8df61b26-1482-4b51-b615-b996578cd7a6" + "6d09960e-99fd-4d61-a1fa-62064d6ec2be" ], "Accept-Language": [ "en-US" @@ -273,7 +513,7 @@ "no-cache" ], "x-ms-request-id": [ - "cd8af093-447d-4ee6-a0d3-4b5b1207819b" + "9d3688ab-18a6-4c18-9151-681105326ca0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -282,7 +522,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/06114013-f019-4b93-af6d-8fc7e22cfe96" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/838c0bc1-86c6-4e7b-ae99-1a79671096f3" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" @@ -291,19 +531,19 @@ "11999" ], "x-ms-correlation-request-id": [ - "9006656e-87f6-47bb-afa2-a522a5a43584" + "b086d688-0be3-4486-8dae-737b7399e2a1" ], "x-ms-routing-request-id": [ - "EASTUS2:20251205T055157Z:9006656e-87f6-47bb-afa2-a522a5a43584" + "EASTUS2:20251205T063325Z:b086d688-0be3-4486-8dae-737b7399e2a1" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: D11F71D9742B42C69E7A6438A8B8A4B5 Ref B: CO6AA3150217045 Ref C: 2025-12-05T05:51:57Z" + "Ref A: 72BD34FE438D4EC3B206FA31671B8A4C Ref B: CO6AA3150218011 Ref C: 2025-12-05T06:33:25Z" ], "Date": [ - "Fri, 05 Dec 2025 05:51:56 GMT" + "Fri, 05 Dec 2025 06:33:24 GMT" ], "Expires": [ "-1" @@ -321,7 +561,7 @@ "RequestMethod": "DELETE", "RequestHeaders": { "x-ms-client-request-id": [ - "ae86ff69-8909-4a91-8dd8-bafd29108acc" + "237179e3-ad9d-40a3-85af-799899d567f1" ], "Accept-Language": [ "en-US" @@ -342,7 +582,7 @@ "no-cache" ], "x-ms-request-id": [ - "afabb208-7bf6-408e-b1eb-9f0417335cf6" + "f75d1e92-9611-473a-8d32-c02b0670a3ac" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -351,7 +591,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/13180e2a-c4f9-4739-979a-94c7268656b5" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/09e105bf-7de7-4930-b6c5-3defd8489171" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" @@ -360,19 +600,19 @@ "11999" ], "x-ms-correlation-request-id": [ - "ddbb1759-8e20-4d06-975b-726ef9118bea" + "fc2008c8-1d8c-4a14-8446-70e47608c429" ], "x-ms-routing-request-id": [ - "EASTUS2:20251205T055157Z:ddbb1759-8e20-4d06-975b-726ef9118bea" + "EASTUS2:20251205T063325Z:fc2008c8-1d8c-4a14-8446-70e47608c429" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 0784F765DFA74D5088EA85363B00D331 Ref B: CO6AA3150217045 Ref C: 2025-12-05T05:51:57Z" + "Ref A: 71E8894AF92F4867A63873069B788376 Ref B: CO6AA3150218011 Ref C: 2025-12-05T06:33:25Z" ], "Date": [ - "Fri, 05 Dec 2025 05:51:57 GMT" + "Fri, 05 Dec 2025 06:33:24 GMT" ], "Expires": [ "-1" From 8073b1a615b265ffc0e657db0bd0d43e09143690 Mon Sep 17 00:00:00 2001 From: "REDMOND\\wiboris" Date: Fri, 5 Dec 2025 10:20:59 -0800 Subject: [PATCH 3/5] added test and responded to feedback --- .../BatchApplicationPackageTests.cs | 23 + .../BatchApplicationPackageTests.ps1 | 20 + ...tUploadApplicationPackageActivateOnly.json | 395 ++++++++++++++++++ .../Models/BatchClient.ApplicationPackages.cs | 8 +- 4 files changed, 441 insertions(+), 5 deletions(-) create mode 100644 src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackageActivateOnly.json diff --git a/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.cs b/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.cs index d26e7cfdcb2c..32892b993663 100644 --- a/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.cs +++ b/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.cs @@ -51,6 +51,29 @@ public void TestUploadApplicationPackage() ); } + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestUploadApplicationPackageActivateOnly() + { + string id = "newApplicationPackage"; + + BatchAccountContext context = null; + TestRunner.RunTestScript( + null, + mockContext => + { + context = new ScenarioTestContext(); + ScenarioTestHelpers.CreateApplicationPackage(this, context, id, version, filePath); + }, + () => + { + ScenarioTestHelpers.DeleteApplicationPackage(this, context, id, version); + ScenarioTestHelpers.DeleteApplication(this, context, id); + }, + $"Test-UploadApplicationPackageActivateOnly '{id}' '{version}' '{filePath}'" + ); + } + [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestUpdateApplicationPackage() diff --git a/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.ps1 b/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.ps1 index 387eb84dc936..9cfee9eb000d 100644 --- a/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.ps1 +++ b/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.ps1 @@ -32,6 +32,26 @@ function Test-UploadApplicationPackage Assert-AreEqual $applicationVersion $addAppPack.Name } +<# +.SYNOPSIS +Tests uploading an application package. +#> +function Test-UploadApplicationPackageActivateOnly +{ + param([string] $applicationName, [string] $applicationVersion, [string]$filePath) + + # Setup + $context = New-Object Microsoft.Azure.Commands.Batch.Test.ScenarioTests.ScenarioTestContext + + $addAppPack = New-AzBatchApplicationPackage -ResourceGroupName $context.ResourceGroupName -AccountName $context.AccountName -ApplicationName $applicationName -ApplicationVersion $applicationVersion -format "zip" -ActivateOnly + $subId = $context.Subscription + $resourceGroup = $context.ResourceGroupName + $batchAccountName = $context.AccountName + + Assert-AreEqual "/subscriptions/$subId/resourceGroups/$resourceGroup/providers/Microsoft.Batch/batchAccounts/$batchAccountName/applications/$applicationName/versions/$applicationVersion" $addAppPack.Id + Assert-AreEqual $applicationVersion $addAppPack.Name +} + <# .SYNOPSIS Tests can update an application settings diff --git a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackageActivateOnly.json b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackageActivateOnly.json new file mode 100644 index 000000000000..6c3b21116278 --- /dev/null +++ b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackageActivateOnly.json @@ -0,0 +1,395 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo?api-version=2024-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTRiZDdkZWQtNjhiNC00ZmZhLTgyYTUtMzdhYzcyY2FhMmVjL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24vcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL2RvdG5vdHNka2JhdGNoYWNjb3VudDIvYXBwbGljYXRpb25zL25ld0FwcGxpY2F0aW9uUGFja2FnZS92ZXJzaW9ucy9mb28/YXBpLXZlcnNpb249MjAyNC0wNy0wMQ==", + "RequestMethod": "PUT", + "RequestHeaders": { + "x-ms-client-request-id": [ + "dea8348b-d2f8-431c-b330-8e08c0c92b3c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/8.0.2225.52707", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.26200", + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "2" + ] + }, + "RequestBody": "{}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"0x8DE34242DFA9481\"" + ], + "x-ms-request-id": [ + "e5154aba-aabb-46b1-883b-e115fad9533c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-operation-identifier": [ + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/westus/b407e52a-765c-45d9-9e37-82b6fc5f8d2d" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "799" + ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "03462af8-51eb-4452-9236-4acce9722572" + ], + "x-ms-routing-request-id": [ + "WESTUS:20251205T173152Z:03462af8-51eb-4452-9236-4acce9722572" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: B37EE03B04A648C1A68A1A7EC6684AB8 Ref B: MWH011020807031 Ref C: 2025-12-05T17:31:51Z" + ], + "Date": [ + "Fri, 05 Dec 2025 17:31:52 GMT" + ], + "Content-Length": [ + "615" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Fri, 05 Dec 2025 17:31:52 GMT" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE34242DFA9481\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-8e126b262b224af795a2e5901b37ade0/foo?sv=2025-05-05&se=2025-12-05T21%3A31%3A52Z&sr=b&sp=rw&sig=YG1ra6rF0nRjkFo9K6LDzchhLnWvsJ6608mCktWCRUY%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T21:31:52.8090188Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo/activate?api-version=2024-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTRiZDdkZWQtNjhiNC00ZmZhLTgyYTUtMzdhYzcyY2FhMmVjL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24vcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL2RvdG5vdHNka2JhdGNoYWNjb3VudDIvYXBwbGljYXRpb25zL25ld0FwcGxpY2F0aW9uUGFja2FnZS92ZXJzaW9ucy9mb28vYWN0aXZhdGU/YXBpLXZlcnNpb249MjAyNC0wNy0wMQ==", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept-Language": [ + "en-US" + ], + "x-ms-client-request-id": [ + "852cb3eb-cda2-4263-b86a-2ace6a9e3924" + ], + "User-Agent": [ + "FxVersion/8.0.2225.52707", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.26200", + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "23" + ] + }, + "RequestBody": "{\r\n \"format\": \"zip\"\r\n}", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"0x8DE3424375A2B7B\"" + ], + "x-ms-request-id": [ + "49651b8b-e8b6-4c7b-9eee-ca271e191191" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-operation-identifier": [ + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/westus2/b4252f3d-a15d-4600-9ee2-d29472df34ff" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "799" + ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "f860b54d-4cb4-4746-ba0f-05bb66f95107" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20251205T173209Z:f860b54d-4cb4-4746-ba0f-05bb66f95107" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 653372ED110D4DECA4A57627E73884B9 Ref B: MWH011020807031 Ref C: 2025-12-05T17:32:07Z" + ], + "Date": [ + "Fri, 05 Dec 2025 17:32:08 GMT" + ], + "Content-Length": [ + "681" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Fri, 05 Dec 2025 17:32:08 GMT" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3424375A2B7B\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-8e126b262b224af795a2e5901b37ade0/foo?sv=2025-05-05&se=2025-12-05T21%3A32%3A08Z&sr=b&sp=rw&sig=d9ZPju8NjLg5ANsM8ZoEjztbcy1NzgCzN0E56ATpyho%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T21:32:08.5672415Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T17:32:08.5078253Z\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo?api-version=2024-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTRiZDdkZWQtNjhiNC00ZmZhLTgyYTUtMzdhYzcyY2FhMmVjL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24vcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL2RvdG5vdHNka2JhdGNoYWNjb3VudDIvYXBwbGljYXRpb25zL25ld0FwcGxpY2F0aW9uUGFja2FnZS92ZXJzaW9ucy9mb28/YXBpLXZlcnNpb249MjAyNC0wNy0wMQ==", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept-Language": [ + "en-US" + ], + "x-ms-client-request-id": [ + "852cb3eb-cda2-4263-b86a-2ace6a9e3924" + ], + "User-Agent": [ + "FxVersion/8.0.2225.52707", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.26200", + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" + ] + }, + "RequestBody": "", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "W/\"0x8DE3424375A2B7B\"" + ], + "x-ms-request-id": [ + "4189c700-80ce-42fc-a18b-767037220c1b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-operation-identifier": [ + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/5c739192-a96f-400c-9013-b14f59c2e340" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "1099" + ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ + "16499" + ], + "x-ms-correlation-request-id": [ + "a72583e5-e9ae-4f6c-a098-a57dfe817db1" + ], + "x-ms-routing-request-id": [ + "EASTUS2:20251205T173209Z:a72583e5-e9ae-4f6c-a098-a57dfe817db1" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 3A2F0C2EA364441F9E47256E3900B23C Ref B: MWH011020807031 Ref C: 2025-12-05T17:32:09Z" + ], + "Date": [ + "Fri, 05 Dec 2025 17:32:08 GMT" + ], + "Content-Length": [ + "683" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Last-Modified": [ + "Fri, 05 Dec 2025 17:32:08 GMT" + ] + }, + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3424375A2B7B\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-8e126b262b224af795a2e5901b37ade0/foo?sv=2025-05-05&se=2025-12-05T21%3A32%3A09Z&sr=b&sp=rw&sig=K8qVd1GqcFp5kMN9aDC0BKx27Nh6V%2BICgOzEs9tDHOg%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T21:32:09.4590201Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T17:32:08.5078253Z\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo?api-version=2024-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTRiZDdkZWQtNjhiNC00ZmZhLTgyYTUtMzdhYzcyY2FhMmVjL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24vcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL2RvdG5vdHNka2JhdGNoYWNjb3VudDIvYXBwbGljYXRpb25zL25ld0FwcGxpY2F0aW9uUGFja2FnZS92ZXJzaW9ucy9mb28/YXBpLXZlcnNpb249MjAyNC0wNy0wMQ==", + "RequestMethod": "DELETE", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d2cbcae9-7dfa-4c61-8ffa-af524d5be11f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/8.0.2225.52707", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.26200", + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" + ] + }, + "RequestBody": "", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a62989ef-09f8-4ec0-8f16-6f098ae4ac6d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-operation-identifier": [ + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/b4caffe7-09e3-4815-92b6-615cc387b9dd" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "799" + ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "31cf67eb-255f-4a68-bcf4-a73295be72ce" + ], + "x-ms-routing-request-id": [ + "EASTUS2:20251205T173209Z:31cf67eb-255f-4a68-bcf4-a73295be72ce" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: FC86A94CF0B54F8FB796150E006551B1 Ref B: MWH011020807031 Ref C: 2025-12-05T17:32:09Z" + ], + "Date": [ + "Fri, 05 Dec 2025 17:32:09 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage?api-version=2024-07-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOTRiZDdkZWQtNjhiNC00ZmZhLTgyYTUtMzdhYzcyY2FhMmVjL3Jlc291cmNlR3JvdXBzL2F1dG9tYXRpb24vcHJvdmlkZXJzL01pY3Jvc29mdC5CYXRjaC9iYXRjaEFjY291bnRzL2RvdG5vdHNka2JhdGNoYWNjb3VudDIvYXBwbGljYXRpb25zL25ld0FwcGxpY2F0aW9uUGFja2FnZT9hcGktdmVyc2lvbj0yMDI0LTA3LTAx", + "RequestMethod": "DELETE", + "RequestHeaders": { + "x-ms-client-request-id": [ + "46921148-326d-4066-b4ba-3a8a98068e56" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/8.0.2225.52707", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.26200", + "Microsoft.Azure.Management.Batch.BatchManagementClient/4.0.0" + ] + }, + "RequestBody": "", + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ed077b83-a9e3-49da-be5a-7072fa2e3bc0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-operation-identifier": [ + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/3bbdce32-c0e9-42bb-82b8-fdbb74fb8b35" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "799" + ], + "x-ms-ratelimit-remaining-subscription-global-deletes": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "80a7eb39-560c-4cde-90bf-1694296cdf8c" + ], + "x-ms-routing-request-id": [ + "EASTUS2:20251205T173210Z:80a7eb39-560c-4cde-90bf-1694296cdf8c" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 09966445718A4B31A77126AB177C1275 Ref B: MWH011020807031 Ref C: 2025-12-05T17:32:09Z" + ], + "Date": [ + "Fri, 05 Dec 2025 17:32:09 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "94bd7ded-68b4-4ffa-82a5-37ac72caa2ec", + "AZURE_BATCH_ACCOUNT": "dotnotsdkbatchaccount2", + "AZURE_BATCH_ENDPOINT": "https://dotnotsdkbatchaccount2.eastus2.batch.azure.com", + "AZURE_BATCH_RESOURCE_GROUP": "automation" + } +} \ No newline at end of file diff --git a/src/Batch/Batch/Models/BatchClient.ApplicationPackages.cs b/src/Batch/Batch/Models/BatchClient.ApplicationPackages.cs index b4713b5cc7d4..7739ee094cf7 100644 --- a/src/Batch/Batch/Models/BatchClient.ApplicationPackages.cs +++ b/src/Batch/Batch/Models/BatchClient.ApplicationPackages.cs @@ -120,7 +120,7 @@ public virtual PSApplicationPackage UploadAndActivateApplicationPackage( } // Get the storage URL to upload the application package to by call create/update - var storageUrl = GetStorageUrl(resourceGroupName, accountName, applicationName, version); + var storageUrl = CreateUpdateAppPackage(resourceGroupName, accountName, applicationName, version); UploadFileToApplicationPackage(resourceGroupName, accountName, applicationName, version, filePath, storageUrl, appPackageAlreadyExists); @@ -194,7 +194,6 @@ private void ActivateApplicationPackage(string resourceGroupName, string account private bool AppPackageExists(string resourceGroupName, string accountName, string applicationName, string version) { - try { // Checks to see if the package exists @@ -221,9 +220,8 @@ private bool AppPackageExists(string resourceGroupName, string accountName, stri } - private string GetStorageUrl(string resourceGroupName, string accountName, string applicationName, string version) + private string CreateUpdateAppPackage(string resourceGroupName, string accountName, string applicationName, string version) { - try { var addResponse = BatchManagementClient.ApplicationPackage.Create( @@ -246,7 +244,7 @@ private static PSApplicationPackage ConvertGetApplicationPackageResponseToApplic return new PSApplicationPackage { Format = response.Format, - //StorageUrl = response.StorageUrl, + StorageUrl = response.StorageUrl, StorageUrlExpiry = response.StorageUrlExpiry, State = response.State.Value, Id = response.Id, From f537a77cf24104e8730538340fef942e6479a61b Mon Sep 17 00:00:00 2001 From: "REDMOND\\wiboris" Date: Fri, 5 Dec 2025 11:47:35 -0800 Subject: [PATCH 4/5] update to make test live only --- .../BatchApplicationPackageTests.cs | 4 +- .../TestUploadApplicationPackage.json | 156 +++++++++--------- 2 files changed, 80 insertions(+), 80 deletions(-) diff --git a/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.cs b/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.cs index 32892b993663..df7270c0eed2 100644 --- a/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.cs +++ b/src/Batch/Batch.Test/ScenarioTests/BatchApplicationPackageTests.cs @@ -28,8 +28,8 @@ public BatchApplicationPackageTests(Xunit.Abstractions.ITestOutputHelper output) } - [Fact] - [Trait(Category.AcceptanceType, Category.CheckIn)] + [Fact(Skip = "Successful re-recording, but fails in playback. See issue https://github.com/Azure/azure-powershell/issues/7512")] + [Trait(Category.AcceptanceType, Category.LiveOnly)] public void TestUploadApplicationPackage() { string id = "newApplicationPackage"; diff --git a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json index 782485849a2d..b0da402ea15a 100644 --- a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json +++ b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json @@ -6,7 +6,7 @@ "RequestMethod": "PUT", "RequestHeaders": { "x-ms-client-request-id": [ - "972e68a4-7e37-49ea-a050-044a43599be6" + "5cf83dc6-5227-4014-b028-d2d7acbfb714" ], "Accept-Language": [ "en-US" @@ -33,10 +33,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE33C7B80291BF\"" + "W/\"0x8DE3435E35FC160\"" ], "x-ms-request-id": [ - "6862bfe1-3f89-487b-9220-0e6bb89fae87" + "ace70b8c-f56b-4792-bf31-ea4ad3205638" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -45,7 +45,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/5dfa8144-092f-4eb0-a160-95d44745db01" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/westus2/581d0294-0930-4fcb-b674-62ce0ed3827b" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" @@ -54,22 +54,22 @@ "11999" ], "x-ms-correlation-request-id": [ - "66232b31-5344-4a0b-aed3-2b06e6ec33d1" + "64a5ae4a-241b-4d2a-91d5-4e2da9dcd365" ], "x-ms-routing-request-id": [ - "EASTUS2:20251205T063001Z:66232b31-5344-4a0b-aed3-2b06e6ec33d1" + "WESTUS2:20251205T193838Z:64a5ae4a-241b-4d2a-91d5-4e2da9dcd365" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 9F4558A7B30F4F619B64FA4D40782BCE Ref B: CO6AA3150217047 Ref C: 2025-12-05T06:30:00Z" + "Ref A: FA28D3D684784671B7045190145246C3 Ref B: CO6AA3150220051 Ref C: 2025-12-05T19:38:37Z" ], "Date": [ - "Fri, 05 Dec 2025 06:30:00 GMT" + "Fri, 05 Dec 2025 19:38:38 GMT" ], "Content-Length": [ - "681" + "619" ], "Content-Type": [ "application/json; charset=utf-8" @@ -78,10 +78,10 @@ "-1" ], "Last-Modified": [ - "Fri, 05 Dec 2025 06:30:01 GMT" + "Fri, 05 Dec 2025 19:38:38 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C7B80291BF\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-c131d82c015846f6a98602bc1b037be5/foo?sv=2025-05-05&se=2025-12-05T10%3A30%3A01Z&sr=b&sp=rw&sig=HnHaIh1Rysgw8eVTkXmx7BGcJx8m8L0qXW64iI20QuE%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T10:30:01.1982987Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T06:21:17.6902339Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3435E35FC160\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-bc8601ad99a24cabb29f20bb80df2a34/foo?sv=2025-05-05&se=2025-12-05T23%3A38%3A38Z&sr=b&sp=rw&sig=Kv4QmEFYRFfqIU%2FySHxgfHgHW8gOOV0q9WJRsopjN%2B0%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T23:38:38.5885648Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -93,7 +93,7 @@ "en-US" ], "x-ms-client-request-id": [ - "d208a972-c329-45fb-9a01-c0dde935e514" + "e331bb6c-237f-4837-8356-280d2cbb6f57" ], "User-Agent": [ "FxVersion/8.0.2225.52707", @@ -117,10 +117,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE33C7E21AEA47\"" + "W/\"0x8DE3435E5DEBBC0\"" ], "x-ms-request-id": [ - "9ce65783-d8f9-4c8b-b23a-ee4fc8d53029" + "1d818773-25e1-4b85-a8a7-0be85a141684" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -129,7 +129,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/f156fa19-705e-4369-8f7d-84b51513c114" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/c3ccc3dc-f5a7-4377-9662-399b765607c9" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" @@ -138,22 +138,22 @@ "11999" ], "x-ms-correlation-request-id": [ - "a45f4467-9c9b-42c3-8263-6a81d437c485" + "bcb7ea6d-5fdf-4762-87b2-0daa071d0088" ], "x-ms-routing-request-id": [ - "EASTUS2:20251205T063111Z:a45f4467-9c9b-42c3-8263-6a81d437c485" + "EASTUS2:20251205T193842Z:bcb7ea6d-5fdf-4762-87b2-0daa071d0088" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: D971A22B3B5C406098E3DF38EBE38745 Ref B: CO6AA3150217047 Ref C: 2025-12-05T06:31:11Z" + "Ref A: B4E78506C8C64602A39B71418D176D42 Ref B: CO6AA3150220051 Ref C: 2025-12-05T19:38:42Z" ], "Date": [ - "Fri, 05 Dec 2025 06:31:11 GMT" + "Fri, 05 Dec 2025 19:38:42 GMT" ], "Content-Length": [ - "685" + "621" ], "Content-Type": [ "application/json; charset=utf-8" @@ -162,10 +162,10 @@ "-1" ], "Last-Modified": [ - "Fri, 05 Dec 2025 06:31:11 GMT" + "Fri, 05 Dec 2025 19:38:42 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C7E21AEA47\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-c131d82c015846f6a98602bc1b037be5/foo?sv=2025-05-05&se=2025-12-05T10%3A31%3A11Z&sr=b&sp=rw&sig=eKvoZC043S%2FmVhBPvgJhjc832Ru%2Bsr9AFyLxBdTolCI%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T10:31:11.8191108Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T06:21:17.6902339Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3435E5DEBBC0\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-bc8601ad99a24cabb29f20bb80df2a34/foo?sv=2025-05-05&se=2025-12-05T23%3A38%3A42Z&sr=b&sp=rw&sig=YfOMO9Q%2FGAzlOFr4ENGj3%2B7ToJ02LsWCZFdqbrtiK%2FI%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T23:38:42.7756682Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -177,7 +177,7 @@ "en-US" ], "x-ms-client-request-id": [ - "d208a972-c329-45fb-9a01-c0dde935e514" + "e331bb6c-237f-4837-8356-280d2cbb6f57" ], "User-Agent": [ "FxVersion/8.0.2225.52707", @@ -195,10 +195,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE33C7B80291BF\"" + "W/\"0x8DE3435E35FC160\"" ], "x-ms-request-id": [ - "003e9890-9959-4473-90f8-248f71093cca" + "62ea5f0b-2a5c-461e-9be7-248494adb381" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -207,7 +207,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/14191080-0b33-4f47-981d-94aeb5c480c2" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/58fce0c4-102a-40b0-bfac-ed03c69e93bc" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" @@ -216,22 +216,22 @@ "16499" ], "x-ms-correlation-request-id": [ - "ef6710ee-a5f7-4e1f-b105-8a78212cb406" + "5de1debe-b721-4a15-aa00-93f62835bd8f" ], "x-ms-routing-request-id": [ - "EASTUS2:20251205T063100Z:ef6710ee-a5f7-4e1f-b105-8a78212cb406" + "EASTUS2:20251205T193842Z:5de1debe-b721-4a15-aa00-93f62835bd8f" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: B7F13B328D6F4699B4715E1B04496A23 Ref B: CO6AA3150217047 Ref C: 2025-12-05T06:31:00Z" + "Ref A: D62CA0AB220B4EB59FDEBE581FCA243C Ref B: CO6AA3150220051 Ref C: 2025-12-05T19:38:42Z" ], "Date": [ - "Fri, 05 Dec 2025 06:31:00 GMT" + "Fri, 05 Dec 2025 19:38:41 GMT" ], "Content-Length": [ - "681" + "621" ], "Content-Type": [ "application/json; charset=utf-8" @@ -240,10 +240,10 @@ "-1" ], "Last-Modified": [ - "Fri, 05 Dec 2025 06:30:01 GMT" + "Fri, 05 Dec 2025 19:38:38 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C7B80291BF\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-c131d82c015846f6a98602bc1b037be5/foo?sv=2025-05-05&se=2025-12-05T10%3A31%3A00Z&sr=b&sp=rw&sig=aQO2MJYad0OLZCGJEtXUSpseAXeZBFGndfiHN1DjMg8%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T10:31:00.8557064Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T06:21:17.6902339Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3435E35FC160\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-bc8601ad99a24cabb29f20bb80df2a34/foo?sv=2025-05-05&se=2025-12-05T23%3A38%3A42Z&sr=b&sp=rw&sig=YfOMO9Q%2FGAzlOFr4ENGj3%2B7ToJ02LsWCZFdqbrtiK%2FI%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T23:38:42.3713446Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -255,7 +255,7 @@ "en-US" ], "x-ms-client-request-id": [ - "d208a972-c329-45fb-9a01-c0dde935e514" + "e331bb6c-237f-4837-8356-280d2cbb6f57" ], "User-Agent": [ "FxVersion/8.0.2225.52707", @@ -273,10 +273,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE33C7E6E64851\"" + "W/\"0x8DE3435E850A575\"" ], "x-ms-request-id": [ - "2c18aa52-c930-4960-ab34-adb41accd2bf" + "efe642d6-cea7-4006-8bbc-2622965fa6c8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -285,7 +285,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/b46d3f00-d1a6-4fa4-a554-551646e6e62f" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/84abf5d9-9cec-4848-b79f-2ed8844ec345" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" @@ -294,19 +294,19 @@ "16499" ], "x-ms-correlation-request-id": [ - "7c2e39fa-04ef-4f47-b72b-4223e4f1220f" + "6930b49a-5110-436a-ae88-09051c7bab76" ], "x-ms-routing-request-id": [ - "EASTUS2:20251205T063325Z:7c2e39fa-04ef-4f47-b72b-4223e4f1220f" + "EASTUS2:20251205T193847Z:6930b49a-5110-436a-ae88-09051c7bab76" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 5AD7296E15B04E17AA93D8F20DFC1AC0 Ref B: CO6AA3150218011 Ref C: 2025-12-05T06:33:24Z" + "Ref A: 0CB8A8B7E4DC421C95CE7D32F2C599E8 Ref B: CO6AA3150220051 Ref C: 2025-12-05T19:38:46Z" ], "Date": [ - "Fri, 05 Dec 2025 06:33:24 GMT" + "Fri, 05 Dec 2025 19:38:46 GMT" ], "Content-Length": [ "683" @@ -318,10 +318,10 @@ "-1" ], "Last-Modified": [ - "Fri, 05 Dec 2025 06:31:19 GMT" + "Fri, 05 Dec 2025 19:38:46 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C7E6E64851\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-c131d82c015846f6a98602bc1b037be5/foo?sv=2025-05-05&se=2025-12-05T10%3A33%3A25Z&sr=b&sp=rw&sig=Re79w01T2q5z6h%2F9SoEKJXKfQpqpnefC341wJWcFmaE%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T10:33:25.0420776Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T06:31:19.8307036Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3435E850A575\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-bc8601ad99a24cabb29f20bb80df2a34/foo?sv=2025-05-05&se=2025-12-05T23%3A38%3A47Z&sr=b&sp=rw&sig=KLYT8QV%2FgO1eKwcZoo1Wgrg06WLAmsBPvj2cnrQ4Fzk%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T23:38:47.0717506Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T19:38:46.8634617Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -333,7 +333,7 @@ "en-US" ], "x-ms-client-request-id": [ - "d208a972-c329-45fb-9a01-c0dde935e514" + "e331bb6c-237f-4837-8356-280d2cbb6f57" ], "User-Agent": [ "FxVersion/8.0.2225.52707", @@ -351,10 +351,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE33C5C3F582D1\"" + "W/\"0x8DE3435E35DD711\"" ], "x-ms-request-id": [ - "38376bf5-d2f5-4816-b031-0ae98b0d6db6" + "c35fe665-eac6-451e-bdf2-2491bd7b39fc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -363,7 +363,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/8d2ac1fd-6fb9-4451-9967-2309f4682398" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/c85f2e99-0977-4252-9a63-11293b597efd" ], "x-ms-ratelimit-remaining-subscription-reads": [ "1099" @@ -372,19 +372,19 @@ "16499" ], "x-ms-correlation-request-id": [ - "ccb9e528-2b94-4fcd-87a9-2599ba5e9f81" + "1b3e625b-2655-4a20-826d-6a205322e450" ], "x-ms-routing-request-id": [ - "EASTUS2:20251205T063107Z:ccb9e528-2b94-4fcd-87a9-2599ba5e9f81" + "EASTUS2:20251205T193842Z:1b3e625b-2655-4a20-826d-6a205322e450" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 965ECA2CA4BA49DCB3907BA150CDFA60 Ref B: CO6AA3150217047 Ref C: 2025-12-05T06:31:07Z" + "Ref A: C5FE1E1B5D7449D8AECACE2DA933B9DA Ref B: CO6AA3150220051 Ref C: 2025-12-05T19:38:42Z" ], "Date": [ - "Fri, 05 Dec 2025 06:31:06 GMT" + "Fri, 05 Dec 2025 19:38:42 GMT" ], "Content-Length": [ "335" @@ -396,10 +396,10 @@ "-1" ], "Last-Modified": [ - "Fri, 05 Dec 2025 06:16:02 GMT" + "Fri, 05 Dec 2025 19:38:38 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage\",\r\n \"name\": \"newApplicationPackage\",\r\n \"etag\": \"W/\\\"0x8DE33C5C3F582D1\\\"\",\r\n \"properties\": {\r\n \"allowUpdates\": true\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage\",\r\n \"name\": \"newApplicationPackage\",\r\n \"etag\": \"W/\\\"0x8DE3435E35DD711\\\"\",\r\n \"properties\": {\r\n \"allowUpdates\": true\r\n }\r\n}", "StatusCode": 200 }, { @@ -411,7 +411,7 @@ "en-US" ], "x-ms-client-request-id": [ - "d208a972-c329-45fb-9a01-c0dde935e514" + "e331bb6c-237f-4837-8356-280d2cbb6f57" ], "User-Agent": [ "FxVersion/8.0.2225.52707", @@ -435,10 +435,10 @@ "no-cache" ], "ETag": [ - "W/\"0x8DE33C7E6E64851\"" + "W/\"0x8DE3435E850A575\"" ], "x-ms-request-id": [ - "056d8963-3d55-4da5-942f-804c7c5f8e7f" + "bd484876-afba-4d51-b399-d394f12e0aeb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -447,7 +447,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/613ab08a-b128-431c-84f7-777352a46e83" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/5597a7e4-f312-40bd-827c-cf7a59a87c21" ], "x-ms-ratelimit-remaining-subscription-writes": [ "799" @@ -456,22 +456,22 @@ "11999" ], "x-ms-correlation-request-id": [ - "103136a6-81fe-4089-a238-ec2c566b9d6c" + "465d5b34-459b-4fbb-9716-5bdff181a1fd" ], "x-ms-routing-request-id": [ - "EASTUS2:20251205T063119Z:103136a6-81fe-4089-a238-ec2c566b9d6c" + "EASTUS2:20251205T193846Z:465d5b34-459b-4fbb-9716-5bdff181a1fd" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 682870187EEB48348CDDC7FF597BBEC0 Ref B: CO6AA3150217047 Ref C: 2025-12-05T06:31:19Z" + "Ref A: 62EA97690D134A2EAF49EEB9C6EEE371 Ref B: CO6AA3150220051 Ref C: 2025-12-05T19:38:46Z" ], "Date": [ - "Fri, 05 Dec 2025 06:31:19 GMT" + "Fri, 05 Dec 2025 19:38:46 GMT" ], "Content-Length": [ - "685" + "683" ], "Content-Type": [ "application/json; charset=utf-8" @@ -480,10 +480,10 @@ "-1" ], "Last-Modified": [ - "Fri, 05 Dec 2025 06:31:19 GMT" + "Fri, 05 Dec 2025 19:38:46 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C7E6E64851\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-c131d82c015846f6a98602bc1b037be5/foo?sv=2025-05-05&se=2025-12-05T10%3A31%3A19Z&sr=b&sp=rw&sig=%2FREUKvWfYAptTptjQxlZr3B5wl0gbEceZc0E9pZRF%2FI%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T10:31:19.9003174Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T06:31:19.8307036Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3435E850A575\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-bc8601ad99a24cabb29f20bb80df2a34/foo?sv=2025-05-05&se=2025-12-05T23%3A38%3A46Z&sr=b&sp=rw&sig=a5Xdg3k%2F4abJM7XOuz3k3cTCR63WcThWBcbO1DTIQoE%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T23:38:46.8946589Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T19:38:46.8634617Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -492,7 +492,7 @@ "RequestMethod": "DELETE", "RequestHeaders": { "x-ms-client-request-id": [ - "6d09960e-99fd-4d61-a1fa-62064d6ec2be" + "f93c7288-b0ad-4687-ad31-4b576c62f2a2" ], "Accept-Language": [ "en-US" @@ -513,7 +513,7 @@ "no-cache" ], "x-ms-request-id": [ - "9d3688ab-18a6-4c18-9151-681105326ca0" + "d7289f6e-602b-47f7-ad58-d4d77f6d6efa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -522,7 +522,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/838c0bc1-86c6-4e7b-ae99-1a79671096f3" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/bdfb8fe6-f97f-46d9-8d89-dfafe000e474" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" @@ -531,19 +531,19 @@ "11999" ], "x-ms-correlation-request-id": [ - "b086d688-0be3-4486-8dae-737b7399e2a1" + "13c087f0-c574-4e5f-98da-20d33e660fe6" ], "x-ms-routing-request-id": [ - "EASTUS2:20251205T063325Z:b086d688-0be3-4486-8dae-737b7399e2a1" + "EASTUS2:20251205T193847Z:13c087f0-c574-4e5f-98da-20d33e660fe6" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 72BD34FE438D4EC3B206FA31671B8A4C Ref B: CO6AA3150218011 Ref C: 2025-12-05T06:33:25Z" + "Ref A: B5CAD244E4F24BBA8A78C05858944A27 Ref B: CO6AA3150220051 Ref C: 2025-12-05T19:38:47Z" ], "Date": [ - "Fri, 05 Dec 2025 06:33:24 GMT" + "Fri, 05 Dec 2025 19:38:46 GMT" ], "Expires": [ "-1" @@ -561,7 +561,7 @@ "RequestMethod": "DELETE", "RequestHeaders": { "x-ms-client-request-id": [ - "237179e3-ad9d-40a3-85af-799899d567f1" + "ff40f2ef-5ead-4782-8b7d-6fd5d47916db" ], "Accept-Language": [ "en-US" @@ -582,7 +582,7 @@ "no-cache" ], "x-ms-request-id": [ - "f75d1e92-9611-473a-8d32-c02b0670a3ac" + "df13234c-66c3-465a-8735-58585e1fc3d5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -591,7 +591,7 @@ "nosniff" ], "x-ms-operation-identifier": [ - "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/09e105bf-7de7-4930-b6c5-3defd8489171" + "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=ac839cc2-33ee-4879-a5b5-2895202ccb29/eastus2/a29753b9-1d69-41d0-92d1-d1a4b87b0021" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "799" @@ -600,19 +600,19 @@ "11999" ], "x-ms-correlation-request-id": [ - "fc2008c8-1d8c-4a14-8446-70e47608c429" + "927fa8c1-fbf9-4eae-af1b-c6f045974c4d" ], "x-ms-routing-request-id": [ - "EASTUS2:20251205T063325Z:fc2008c8-1d8c-4a14-8446-70e47608c429" + "EASTUS2:20251205T193847Z:927fa8c1-fbf9-4eae-af1b-c6f045974c4d" ], "X-Cache": [ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 71E8894AF92F4867A63873069B788376 Ref B: CO6AA3150218011 Ref C: 2025-12-05T06:33:25Z" + "Ref A: E530559258FA4615AE6EF61797B2AFCB Ref B: CO6AA3150220051 Ref C: 2025-12-05T19:38:47Z" ], "Date": [ - "Fri, 05 Dec 2025 06:33:24 GMT" + "Fri, 05 Dec 2025 19:38:47 GMT" ], "Expires": [ "-1" From 2cf74077b56554f9988c8ef8b76123a57ebfa4a6 Mon Sep 17 00:00:00 2001 From: "REDMOND\\wiboris" Date: Mon, 8 Dec 2025 10:09:30 -0800 Subject: [PATCH 5/5] updateing recordings --- .../TestCreatePoolWithApplicationPackage.json | 6 +++--- .../TestUpdateApplicationPackage.json | 6 +++--- .../TestUpdatePoolWithApplicationPackage.json | 6 +++--- .../TestUploadApplicationPackage.json | 10 +++++----- .../TestUploadApplicationPackageActivateOnly.json | 6 +++--- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestCreatePoolWithApplicationPackage.json b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestCreatePoolWithApplicationPackage.json index 2d744585a6e5..1cb26bf376cc 100644 --- a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestCreatePoolWithApplicationPackage.json +++ b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestCreatePoolWithApplicationPackage.json @@ -81,7 +81,7 @@ "Fri, 05 Dec 2025 05:55:04 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/createPoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2D62829DD\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-createpoolwithapplicationp-7a6da6dc96f3403a8ecc37e3b52b0030/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A04Z&sr=b&sp=rw&sig=jtVPhdlABr4OqWJf7ip9hAacH7Bxit3uJ8uqqcEWhf4%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:04.2890641Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/createPoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2D62829DD\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:04.2890641Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -165,7 +165,7 @@ "Fri, 05 Dec 2025 05:55:21 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/createPoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E069F604\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-createpoolwithapplicationp-7a6da6dc96f3403a8ecc37e3b52b0030/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A21Z&sr=b&sp=rw&sig=vAhy%2F3MR8cMspk4sXm6Qxn3FTwG0Pv7b3M%2BIa617f64%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:21.5173817Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:21.4717083Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/createPoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E069F604\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:21.5173817Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:21.4717083Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -243,7 +243,7 @@ "Fri, 05 Dec 2025 05:55:21 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/createPoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E069F604\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-createpoolwithapplicationp-7a6da6dc96f3403a8ecc37e3b52b0030/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A21Z&sr=b&sp=rw&sig=vAhy%2F3MR8cMspk4sXm6Qxn3FTwG0Pv7b3M%2BIa617f64%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:21.7023365Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:21.4717083Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/createPoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E069F604\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:21.7023365Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:21.4717083Z\"\r\n }\r\n}", "StatusCode": 200 }, { diff --git a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdateApplicationPackage.json b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdateApplicationPackage.json index c017dc0088bd..08a3b989ff00 100644 --- a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdateApplicationPackage.json +++ b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdateApplicationPackage.json @@ -81,7 +81,7 @@ "Fri, 05 Dec 2025 05:55:25 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E2F64EF4\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-updateapplicationpackage-f6e144f065f54238a3e212baac4280fb/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A25Z&sr=b&sp=rw&sig=vGAcKcP%2B3XYnmQFEU02M8iwIMOunx4FkWdrEUzxtZLg%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:25.7670481Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E2F64EF4\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:25.7670481Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -321,7 +321,7 @@ "Fri, 05 Dec 2025 05:55:27 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E420FC17\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-updateapplicationpackage-f6e144f065f54238a3e212baac4280fb/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A27Z&sr=b&sp=rw&sig=t%2FDvDvMLNt%2B0nlQ3emsmHFCEnSF0Hy0L62u%2BXcS6nMg%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:27.7470058Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:27.704307Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E420FC17\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:27.7470058Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:27.704307Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -399,7 +399,7 @@ "Fri, 05 Dec 2025 05:55:27 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E420FC17\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-updateapplicationpackage-f6e144f065f54238a3e212baac4280fb/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A27Z&sr=b&sp=rw&sig=t%2FDvDvMLNt%2B0nlQ3emsmHFCEnSF0Hy0L62u%2BXcS6nMg%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:27.9003889Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:27.704307Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updateApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E420FC17\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:27.9003889Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:27.704307Z\"\r\n }\r\n}", "StatusCode": 200 }, { diff --git a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdatePoolWithApplicationPackage.json b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdatePoolWithApplicationPackage.json index 22b46a0d5102..0a0b14ece68a 100644 --- a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdatePoolWithApplicationPackage.json +++ b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUpdatePoolWithApplicationPackage.json @@ -81,7 +81,7 @@ "Fri, 05 Dec 2025 05:55:29 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updatePoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E53B40E6\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-updatepoolwithapplicationp-303b3dd9d4654f8ebb17a14bae2e7358/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A29Z&sr=b&sp=rw&sig=3CX9MHRlacBwHTcyTTNBnXer7HrOroRt%2FNFoaGiedkg%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:29.5788922Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updatePoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E53B40E6\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:29.5788922Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -232,7 +232,7 @@ "Fri, 05 Dec 2025 05:55:31 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updatePoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E654C341\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-updatepoolwithapplicationp-303b3dd9d4654f8ebb17a14bae2e7358/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A31Z&sr=b&sp=rw&sig=HDHMMEQOZD7o%2FWHMN58hNEaTJY4rBzKcgfrOSDQ9vy8%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:31.4501849Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:31.3990634Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updatePoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E654C341\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:31.4501849Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:31.3990634Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -310,7 +310,7 @@ "Fri, 05 Dec 2025 05:55:31 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updatePoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E654C341\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-updatepoolwithapplicationp-303b3dd9d4654f8ebb17a14bae2e7358/foo?sv=2025-05-05&se=2025-12-05T09%3A55%3A31Z&sr=b&sp=rw&sig=HDHMMEQOZD7o%2FWHMN58hNEaTJY4rBzKcgfrOSDQ9vy8%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:31.6344349Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:31.3990634Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/updatePoolWithApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE33C2E654C341\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T09:55:31.6344349Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T05:55:31.3990634Z\"\r\n }\r\n}", "StatusCode": 200 }, { diff --git a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json index b0da402ea15a..fbf4f61bbd16 100644 --- a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json +++ b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackage.json @@ -81,7 +81,7 @@ "Fri, 05 Dec 2025 19:38:38 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3435E35FC160\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-bc8601ad99a24cabb29f20bb80df2a34/foo?sv=2025-05-05&se=2025-12-05T23%3A38%3A38Z&sr=b&sp=rw&sig=Kv4QmEFYRFfqIU%2FySHxgfHgHW8gOOV0q9WJRsopjN%2B0%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T23:38:38.5885648Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3435E35FC160\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T23:38:38.5885648Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -165,7 +165,7 @@ "Fri, 05 Dec 2025 19:38:42 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3435E5DEBBC0\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-bc8601ad99a24cabb29f20bb80df2a34/foo?sv=2025-05-05&se=2025-12-05T23%3A38%3A42Z&sr=b&sp=rw&sig=YfOMO9Q%2FGAzlOFr4ENGj3%2B7ToJ02LsWCZFdqbrtiK%2FI%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T23:38:42.7756682Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3435E5DEBBC0\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T23:38:42.7756682Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -243,7 +243,7 @@ "Fri, 05 Dec 2025 19:38:38 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3435E35FC160\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-bc8601ad99a24cabb29f20bb80df2a34/foo?sv=2025-05-05&se=2025-12-05T23%3A38%3A42Z&sr=b&sp=rw&sig=YfOMO9Q%2FGAzlOFr4ENGj3%2B7ToJ02LsWCZFdqbrtiK%2FI%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T23:38:42.3713446Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3435E35FC160\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T23:38:42.3713446Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -321,7 +321,7 @@ "Fri, 05 Dec 2025 19:38:46 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3435E850A575\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-bc8601ad99a24cabb29f20bb80df2a34/foo?sv=2025-05-05&se=2025-12-05T23%3A38%3A47Z&sr=b&sp=rw&sig=KLYT8QV%2FgO1eKwcZoo1Wgrg06WLAmsBPvj2cnrQ4Fzk%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T23:38:47.0717506Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T19:38:46.8634617Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3435E850A575\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T23:38:47.0717506Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T19:38:46.8634617Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -483,7 +483,7 @@ "Fri, 05 Dec 2025 19:38:46 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3435E850A575\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-bc8601ad99a24cabb29f20bb80df2a34/foo?sv=2025-05-05&se=2025-12-05T23%3A38%3A46Z&sr=b&sp=rw&sig=a5Xdg3k%2F4abJM7XOuz3k3cTCR63WcThWBcbO1DTIQoE%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T23:38:46.8946589Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T19:38:46.8634617Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3435E850A575\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T23:38:46.8946589Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T19:38:46.8634617Z\"\r\n }\r\n}", "StatusCode": 200 }, { diff --git a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackageActivateOnly.json b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackageActivateOnly.json index 6c3b21116278..19084fd3bc76 100644 --- a/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackageActivateOnly.json +++ b/src/Batch/Batch.Test/SessionRecords/Microsoft.Azure.Commands.Batch.Test.ScenarioTests.BatchApplicationPackageTests/TestUploadApplicationPackageActivateOnly.json @@ -81,7 +81,7 @@ "Fri, 05 Dec 2025 17:31:52 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE34242DFA9481\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-8e126b262b224af795a2e5901b37ade0/foo?sv=2025-05-05&se=2025-12-05T21%3A31%3A52Z&sr=b&sp=rw&sig=YG1ra6rF0nRjkFo9K6LDzchhLnWvsJ6608mCktWCRUY%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T21:31:52.8090188Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE34242DFA9481\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T21:31:52.8090188Z\",\r\n \"state\": \"Pending\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -165,7 +165,7 @@ "Fri, 05 Dec 2025 17:32:08 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3424375A2B7B\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-8e126b262b224af795a2e5901b37ade0/foo?sv=2025-05-05&se=2025-12-05T21%3A32%3A08Z&sr=b&sp=rw&sig=d9ZPju8NjLg5ANsM8ZoEjztbcy1NzgCzN0E56ATpyho%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T21:32:08.5672415Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T17:32:08.5078253Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3424375A2B7B\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T21:32:08.5672415Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T17:32:08.5078253Z\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -243,7 +243,7 @@ "Fri, 05 Dec 2025 17:32:08 GMT" ] }, - "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3424375A2B7B\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"https://batchstorageps1.blob.core.windows.net/app-newapplicationpackage-8e126b262b224af795a2e5901b37ade0/foo?sv=2025-05-05&se=2025-12-05T21%3A32%3A09Z&sr=b&sp=rw&sig=K8qVd1GqcFp5kMN9aDC0BKx27Nh6V%2BICgOzEs9tDHOg%3D\",\r\n \"storageUrlExpiry\": \"2025-12-05T21:32:09.4590201Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T17:32:08.5078253Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"type\": \"Microsoft.Batch/batchAccounts/applications/versions\",\r\n \"id\": \"/subscriptions/94bd7ded-68b4-4ffa-82a5-37ac72caa2ec/resourceGroups/automation/providers/Microsoft.Batch/batchAccounts/dotnotsdkbatchaccount2/applications/newApplicationPackage/versions/foo\",\r\n \"name\": \"foo\",\r\n \"etag\": \"W/\\\"0x8DE3424375A2B7B\\\"\",\r\n \"properties\": {\r\n \"storageUrl\": \"Sanitized\",\r\n \"storageUrlExpiry\": \"2025-12-05T21:32:09.4590201Z\",\r\n \"state\": \"Active\",\r\n \"format\": \"zip\",\r\n \"lastActivationTime\": \"2025-12-05T17:32:08.5078253Z\"\r\n }\r\n}", "StatusCode": 200 }, {