From fc9d140d6a52a046db2b293c407f71e935de4bb4 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Tue, 5 May 2020 19:17:11 +0000 Subject: [PATCH] Update from master --- .../CHANGELOG.md | 12 - ...{ISKUsOperations.cs => ISkusOperations.cs} | 0 .../Generated/Models/{IpRule.cs => IPRule.cs} | 0 .../{signedResource.cs => SignedResource.cs} | 0 .../SdkInfo_StorageManagementClient.cs | 11 - .../{SKUsOperations.cs => SkusOperations.cs} | 0 ...ensions.cs => SkusOperationsExtensions.cs} | 0 .../Microsoft.Azure.Management.Storage.csproj | 2 +- .../src/Properties/AssemblyInfo.cs | 4 +- .../FileSharesSoftDeleteTest.json | 1418 ----------------- ...geAccountSetGetDeleteManagementPolicy.json | 286 ++-- .../tests/Tests/FileServiceTests.cs | 133 +- .../tests/Tests/StorageAccountTests.cs | 13 +- 13 files changed, 154 insertions(+), 1725 deletions(-) rename sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/{ISKUsOperations.cs => ISkusOperations.cs} (100%) rename sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/{IpRule.cs => IPRule.cs} (100%) rename sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/{signedResource.cs => SignedResource.cs} (100%) rename sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/{SKUsOperations.cs => SkusOperations.cs} (100%) rename sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/{SKUsOperationsExtensions.cs => SkusOperationsExtensions.cs} (100%) delete mode 100644 sdk/storage/Microsoft.Azure.Management.Storage/tests/SessionRecords/Storage.Tests.FileServiceTests/FileSharesSoftDeleteTest.json diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/CHANGELOG.md b/sdk/storage/Microsoft.Azure.Management.Storage/CHANGELOG.md index 3f653ef57aa9..fc34a6469905 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/CHANGELOG.md +++ b/sdk/storage/Microsoft.Azure.Management.Storage/CHANGELOG.md @@ -1,17 +1,5 @@ ## Microsoft.Azure.Management.Storage release notes -### Changes in 16.0.0 - -- Support TagFilter in ManagementPolicy -- Support enable File share soft delete in File service properties, list shares include deleted shares, and restore deleted share -- Support create File share with EnabledProtocols, RootSquash, AccessTier -- Support Update File share with RootSquash, AccessTier -- Support get File share with ShareUsageBytes - -**Breaking changes** - -- In StorageManagementClient.FileShares.Create(), StorageManagementClient.FileShares.Update(), add a madatory parameter with type Microsoft.Azure.Management.Storage.Models.FileShare, to input all share properties, and remove 2 parameters to input share properties: metadata, shareQuota. - ### Changes in 15.1.0 - Support create/update/remove/get/list Object Replication Policy on Storage account diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/ISKUsOperations.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/ISkusOperations.cs similarity index 100% rename from sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/ISKUsOperations.cs rename to sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/ISkusOperations.cs diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/IpRule.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/IPRule.cs similarity index 100% rename from sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/IpRule.cs rename to sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/IPRule.cs diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/signedResource.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/SignedResource.cs similarity index 100% rename from sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/signedResource.cs rename to sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/SignedResource.cs diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs index 994d9bb8a441..f85b5d43c637 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs @@ -35,16 +35,5 @@ public static IEnumerable> ApiInfo_StorageManageme }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/storage/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp.output-folder=C:\\code\\azure-sdk-for-net\\sdk\\storage\\Microsoft.Azure.Management.Storage\\src\\Generated"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "d365bebac567c72ec1ab24bb3b7dbe2ae7caab1d"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SKUsOperations.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SkusOperations.cs similarity index 100% rename from sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SKUsOperations.cs rename to sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SkusOperations.cs diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SKUsOperationsExtensions.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SkusOperationsExtensions.cs similarity index 100% rename from sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SKUsOperationsExtensions.cs rename to sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SkusOperationsExtensions.cs diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Microsoft.Azure.Management.Storage.csproj b/sdk/storage/Microsoft.Azure.Management.Storage/src/Microsoft.Azure.Management.Storage.csproj index aa41a5d7bd58..fe6867c2464e 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Microsoft.Azure.Management.Storage.csproj +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Microsoft.Azure.Management.Storage.csproj @@ -7,7 +7,7 @@ Microsoft.Azure.Management.Storage Microsoft Azure Management Storage Library Microsoft.Azure.Management.Storage - 16.0.0 + 15.1.0 Microsoft Azure Storage management;Storage;Storage management; See https://aka.ms/asdotnetsdkchangelog for release notes. diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Properties/AssemblyInfo.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Properties/AssemblyInfo.cs index 11f5240bc8f9..606975d1cc6f 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Properties/AssemblyInfo.cs +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Properties/AssemblyInfo.cs @@ -7,8 +7,8 @@ [assembly: AssemblyTitle("Microsoft Azure Storage Management Library")] [assembly: AssemblyDescription("Provides Microsoft Azure Storage management functions for managing the Microsoft Azure Storage service.")] -[assembly: AssemblyVersion("16.0.0.0")] -[assembly: AssemblyFileVersion("16.0.0.0")] +[assembly: AssemblyVersion("15.0.0.0")] +[assembly: AssemblyFileVersion("15.1.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/tests/SessionRecords/Storage.Tests.FileServiceTests/FileSharesSoftDeleteTest.json b/sdk/storage/Microsoft.Azure.Management.Storage/tests/SessionRecords/Storage.Tests.FileServiceTests/FileSharesSoftDeleteTest.json deleted file mode 100644 index bf26bf628d4b..000000000000 --- a/sdk/storage/Microsoft.Azure.Management.Storage/tests/SessionRecords/Storage.Tests.FileServiceTests/FileSharesSoftDeleteTest.json +++ /dev/null @@ -1,1418 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourcegroups/res3798?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlZ3JvdXBzL3JlczM3OTg/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "739ca9e7-d621-47b8-8a31-dc7b784597fe" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:15:34 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" - ], - "x-ms-request-id": [ - "653505c5-22ab-4e14-a53e-9fa168a8a1c4" - ], - "x-ms-correlation-request-id": [ - "653505c5-22ab-4e14-a53e-9fa168a8a1c4" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131535Z:653505c5-22ab-4e14-a53e-9fa168a8a1c4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "168" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798\",\r\n \"name\": \"res3798\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczM3OTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG84NTA/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"location\": \"eastus2euap\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e604ca2b-2ae2-4350-b602-ecff449305ed" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "103" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:15:40 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.Storage/locations/eastus2euap/asyncoperations/fb95cc72-6b42-4c02-9a66-537bea886c34?monitor=true&api-version=2019-06-01" - ], - "Retry-After": [ - "17" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "fb95cc72-6b42-4c02-9a66-537bea886c34" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1192" - ], - "x-ms-correlation-request-id": [ - "ff8e4991-e6a3-4056-9af6-0245d7af48b6" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131541Z:ff8e4991-e6a3-4056-9af6-0245d7af48b6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "0" - ], - "Content-Type": [ - "text/plain; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.Storage/locations/eastus2euap/asyncoperations/fb95cc72-6b42-4c02-9a66-537bea886c34?monitor=true&api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvYXN5bmNvcGVyYXRpb25zL2ZiOTVjYzcyLTZiNDItNGMwMi05YTY2LTUzN2JlYTg4NmMzND9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:15:58 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "d63a4cd3-4d33-4a3e-8d55-4b085f134537" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" - ], - "x-ms-correlation-request-id": [ - "2570988d-7ffe-40fa-affb-290d684d5037" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131558Z:2570988d-7ffe-40fa-affb-290d684d5037" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "1188" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850\",\r\n \"name\": \"sto850\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"keyType\": \"Account\",\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-04-22T13:15:40.5591351Z\"\r\n },\r\n \"blob\": {\r\n \"keyType\": \"Account\",\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-04-22T13:15:40.5591351Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-04-22T13:15:40.4966608Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://sto850.dfs.core.windows.net/\",\r\n \"web\": \"https://sto850.z3.web.core.windows.net/\",\r\n \"blob\": \"https://sto850.blob.core.windows.net/\",\r\n \"queue\": \"https://sto850.queue.core.windows.net/\",\r\n \"table\": \"https://sto850.table.core.windows.net/\",\r\n \"file\": \"https://sto850.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus2euap\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczM3OTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG84NTAvZmlsZVNlcnZpY2VzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "a4dc78f6-ed4a-4fe0-b3d8-21454e6c20b3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:15:58 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "fdc292bb-23e0-4771-b9b8-60874307e717" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" - ], - "x-ms-correlation-request-id": [ - "9a71a95c-8692-41c0-932f-a7b9f3c90b70" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131558Z:9a71a95c-8692-41c0-932f-a7b9f3c90b70" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "315" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices\",\r\n \"properties\": {\r\n \"cors\": {\r\n \"corsRules\": []\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczM3OTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG84NTAvZmlsZVNlcnZpY2VzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"shareDeleteRetentionPolicy\": {\r\n \"enabled\": true,\r\n \"days\": 5\r\n }\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "fe0787b8-4e08-419e-a916-224c2ebfbedd" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "113" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:15:59 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "da533baf-41f2-4b26-9453-341517308db1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" - ], - "x-ms-correlation-request-id": [ - "852d4dfc-424b-44e6-b358-c94e48bc3ea7" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131559Z:852d4dfc-424b-44e6-b358-c94e48bc3ea7" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "298" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices\",\r\n \"properties\": {\r\n \"shareDeleteRetentionPolicy\": {\r\n \"enabled\": true,\r\n \"days\": 5\r\n }\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share13832?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczM3OTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG84NTAvZmlsZVNlcnZpY2VzL2RlZmF1bHQvc2hhcmVzL3NoYXJlMTM4MzI/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"enabledProtocols\": \"NFS\",\r\n \"rootSquash\": \"AllSquash\",\r\n \"accessTier\": \"Hot\"\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "4eb1c1a7-1ae2-44f7-a47a-cc20c0b9c445" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "117" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:16:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "ETag": [ - "\"0x8D7E6BF4CDC1DA7\"" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "43e9b053-17e6-4d3d-9aef-d5fc76f86dbd" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" - ], - "x-ms-correlation-request-id": [ - "b863569e-4f2e-455d-b5a7-754ff6cfa372" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131600Z:b863569e-4f2e-455d-b5a7-754ff6cfa372" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "321" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share13832\",\r\n \"name\": \"share13832\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices/shares\",\r\n \"properties\": {\r\n \"enabledProtocols\": \"NFS\",\r\n \"rootSquash\": \"AllSquash\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share29802?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczM3OTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG84NTAvZmlsZVNlcnZpY2VzL2RlZmF1bHQvc2hhcmVzL3NoYXJlMjk4MDI/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"enabledProtocols\": \"SMB\",\r\n \"accessTier\": \"Cool\"\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "f7fb4c5e-1de7-4039-83d2-2341ead5e774" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "86" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:16:00 GMT" - ], - "Pragma": [ - "no-cache" - ], - "ETag": [ - "\"0x8D7E6BF4D29D68E\"" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "404a1947-8865-4102-89d5-d22e42c7275c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" - ], - "x-ms-correlation-request-id": [ - "ed810a55-c4f4-46e3-b8c7-542dba98ef0f" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131600Z:ed810a55-c4f4-46e3-b8c7-542dba98ef0f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "296" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share29802\",\r\n \"name\": \"share29802\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices/shares\",\r\n \"properties\": {\r\n \"enabledProtocols\": \"SMB\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share13832?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczM3OTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG84NTAvZmlsZVNlcnZpY2VzL2RlZmF1bHQvc2hhcmVzL3NoYXJlMTM4MzI/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", - "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"properties\": {\r\n \"rootSquash\": \"RootSquash\",\r\n \"accessTier\": \"TransactionOptimized\"\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "c6164035-1ebe-45e9-b365-9e572f9fc2db" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "103" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:16:01 GMT" - ], - "Pragma": [ - "no-cache" - ], - "ETag": [ - "\"0x8D7E6BF4D7D5CF1\"" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "c66578b3-8f92-4cad-a6ad-0ff139701aa2" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1188" - ], - "x-ms-correlation-request-id": [ - "d7f9be93-8790-44b6-80e8-fdaffc9c1cce" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131601Z:d7f9be93-8790-44b6-80e8-fdaffc9c1cce" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "297" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share13832\",\r\n \"name\": \"share13832\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices/shares\",\r\n \"properties\": {\r\n \"rootSquash\": \"RootSquash\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share13832?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczM3OTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG84NTAvZmlsZVNlcnZpY2VzL2RlZmF1bHQvc2hhcmVzL3NoYXJlMTM4MzI/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9044554e-3fb7-4be8-a3e5-0d6dc788a672" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:16:01 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "f344977c-c8b5-42b8-8c17-1fc530c1d8d8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14997" - ], - "x-ms-correlation-request-id": [ - "1d8d6069-d772-49ea-807b-d2320f89289e" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131601Z:1d8d6069-d772-49ea-807b-d2320f89289e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "0" - ], - "Content-Type": [ - "text/plain; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczM3OTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG84NTAvZmlsZVNlcnZpY2VzL2RlZmF1bHQvc2hhcmVzP2FwaS12ZXJzaW9uPTIwMTktMDYtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "74376423-0448-450c-a15d-5975fa9f2bb1" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:16:01 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "5de53f38-f96a-452a-8b4e-4abd4c25d1f4" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" - ], - "x-ms-correlation-request-id": [ - "cb4381b9-6774-4d29-be80-c04073d1b214" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131601Z:cb4381b9-6774-4d29-be80-c04073d1b214" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "407" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share29802\",\r\n \"name\": \"share29802\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices/shares\",\r\n \"etag\": \"\\\"0x8D7E6BF4D29D68E\\\"\",\r\n \"properties\": {\r\n \"lastModifiedTime\": \"2020-04-22T13:16:00Z\",\r\n \"shareQuota\": 5120,\r\n \"enabledProtocols\": \"SMB\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczM3OTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG84NTAvZmlsZVNlcnZpY2VzL2RlZmF1bHQvc2hhcmVzP2FwaS12ZXJzaW9uPTIwMTktMDYtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "bdb05d4c-3829-48aa-b5f2-c47c99c7b070" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:16:33 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "cb20e0e5-9629-454a-b82f-78375e818f4a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11983" - ], - "x-ms-correlation-request-id": [ - "5c8e1b84-4547-469e-93b0-0d3dfeebe7e0" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131633Z:5c8e1b84-4547-469e-93b0-0d3dfeebe7e0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "803" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share13832\",\r\n \"name\": \"share13832\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices/shares\",\r\n \"etag\": \"\\\"0x8D7E6BF60BA1F2D\\\"\",\r\n \"properties\": {\r\n \"lastModifiedTime\": \"2020-04-22T13:16:33Z\",\r\n \"shareQuota\": 5120,\r\n \"enabledProtocols\": \"SMB\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share29802\",\r\n \"name\": \"share29802\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices/shares\",\r\n \"etag\": \"\\\"0x8D7E6BF4D29D68E\\\"\",\r\n \"properties\": {\r\n \"lastModifiedTime\": \"2020-04-22T13:16:00Z\",\r\n \"shareQuota\": 5120,\r\n \"enabledProtocols\": \"SMB\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares?api-version=2019-06-01&$expand=deleted", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczM3OTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG84NTAvZmlsZVNlcnZpY2VzL2RlZmF1bHQvc2hhcmVzP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEmJGV4cGFuZD1kZWxldGVk", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "40d51005-eb2f-4386-941e-3139eb52b3e5" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:16:02 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "f312cbbb-c440-4bc3-931b-a90ff5fd6096" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11986" - ], - "x-ms-correlation-request-id": [ - "6e3137b4-abb5-4870-a1da-d15839b2ca39" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131602Z:6e3137b4-abb5-4870-a1da-d15839b2ca39" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "937" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share13832_01D618A82A57114C\",\r\n \"name\": \"share13832\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices/shares\",\r\n \"etag\": \"\\\"0x8D7E6BF4D7D5CF1\\\"\",\r\n \"properties\": {\r\n \"version\": \"01D618A82A57114C\",\r\n \"deleted\": true,\r\n \"deletedTime\": \"Wed, 22 Apr 2020 13:16:01 GMT\",\r\n \"remainingRetentionDays\": 5,\r\n \"lastModifiedTime\": \"2020-04-22T13:16:00Z\",\r\n \"shareQuota\": 5120,\r\n \"enabledProtocols\": \"SMB\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share29802\",\r\n \"name\": \"share29802\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices/shares\",\r\n \"etag\": \"\\\"0x8D7E6BF4D29D68E\\\"\",\r\n \"properties\": {\r\n \"lastModifiedTime\": \"2020-04-22T13:16:00Z\",\r\n \"shareQuota\": 5120,\r\n \"enabledProtocols\": \"SMB\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares?api-version=2019-06-01&$expand=deleted", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczM3OTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG84NTAvZmlsZVNlcnZpY2VzL2RlZmF1bHQvc2hhcmVzP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEmJGV4cGFuZD1kZWxldGVk", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "3f9bc954-7c56-4ca4-994d-e23f5e9f9556" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:16:33 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "21abc880-d414-43e7-888b-c9a6c25eeba3" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11982" - ], - "x-ms-correlation-request-id": [ - "bbf45baa-17d1-4893-8e1f-e96d50990930" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131633Z:bbf45baa-17d1-4893-8e1f-e96d50990930" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "803" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share13832\",\r\n \"name\": \"share13832\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices/shares\",\r\n \"etag\": \"\\\"0x8D7E6BF60BA1F2D\\\"\",\r\n \"properties\": {\r\n \"lastModifiedTime\": \"2020-04-22T13:16:33Z\",\r\n \"shareQuota\": 5120,\r\n \"enabledProtocols\": \"SMB\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share29802\",\r\n \"name\": \"share29802\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices/shares\",\r\n \"etag\": \"\\\"0x8D7E6BF4D29D68E\\\"\",\r\n \"properties\": {\r\n \"lastModifiedTime\": \"2020-04-22T13:16:00Z\",\r\n \"shareQuota\": 5120,\r\n \"enabledProtocols\": \"SMB\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share29802?api-version=2019-06-01&$expand=stats", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczM3OTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG84NTAvZmlsZVNlcnZpY2VzL2RlZmF1bHQvc2hhcmVzL3NoYXJlMjk4MDI/YXBpLXZlcnNpb249MjAxOS0wNi0wMSYkZXhwYW5kPXN0YXRz", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "22c00653-499a-4467-8eb4-c093d3574b1e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:16:02 GMT" - ], - "Pragma": [ - "no-cache" - ], - "ETag": [ - "\"0x8D7E6BF4D29D68E\"" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "cc9ef097-f1a4-4efa-964c-6ae506c7eefa" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11985" - ], - "x-ms-correlation-request-id": [ - "1e6ab132-663b-42a8-ac18-ba27108dda0b" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131602Z:1e6ab132-663b-42a8-ac18-ba27108dda0b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "390" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share29802\",\r\n \"name\": \"share29802\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices/shares\",\r\n \"etag\": \"\\\"0x8D7E6BF4D29D68E\\\"\",\r\n \"properties\": {\r\n \"shareUsageBytes\": 0,\r\n \"lastModifiedTime\": \"2020-04-22T13:16:00Z\",\r\n \"shareQuota\": 5120\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share13832?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczM3OTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG84NTAvZmlsZVNlcnZpY2VzL2RlZmF1bHQvc2hhcmVzL3NoYXJlMTM4MzI/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "497f3e85-9296-4c00-a70f-5d97db84e39e" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:16:02 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "ceb499e2-4697-4c5f-b2d4-61e5d73ef067" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11984" - ], - "x-ms-correlation-request-id": [ - "73842d0a-3711-450f-ac6f-230c6e822921" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131602Z:73842d0a-3711-450f-ac6f-230c6e822921" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "165" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ShareNotFound\",\r\n \"message\": \"The specified share does not exist.\\nRequestId:57bd9d58-301a-008b-43a8-1849cd000000\\nTime:2020-04-22T13:16:02.7486341Z\"\r\n }\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850/fileServices/default/shares/share13832/restore?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczM3OTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG84NTAvZmlsZVNlcnZpY2VzL2RlZmF1bHQvc2hhcmVzL3NoYXJlMTM4MzIvcmVzdG9yZT9hcGktdmVyc2lvbj0yMDE5LTA2LTAx", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"deletedShareName\": \"share13832\",\r\n \"deletedShareVersion\": \"01D618A82A57114C\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ce2b6fb6-de07-45a7-9ad5-f22dececac9c" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "86" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:16:33 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "b1028d3e-0c5e-485b-9f6e-8fc4d846c3b8" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "2e7c2c65-2dd8-4e64-9c03-7cf72e172c0b" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131633Z:2e7c2c65-2dd8-4e64-9c03-7cf72e172c0b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "0" - ], - "Content-Type": [ - "text/plain; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res3798/providers/Microsoft.Storage/storageAccounts/sto850?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczM3OTgvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG84NTA/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "c0c433a7-3ca4-4aa5-8006-89bfeb7b13be" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:16:38 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], - "x-ms-request-id": [ - "66e142a9-c324-4ced-a8f3-282f212bc7f7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14996" - ], - "x-ms-correlation-request-id": [ - "f8b2a700-14ef-486f-9269-c57d948968cb" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131638Z:f8b2a700-14ef-486f-9269-c57d948968cb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "0" - ], - "Content-Type": [ - "text/plain; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourcegroups/res3798?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlZ3JvdXBzL3JlczM3OTg/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "fd6e39b6-7eae-46ca-8ba3-802197002f38" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:16:43 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzNzk4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14995" - ], - "x-ms-request-id": [ - "72dcfcee-4abc-4b91-96c5-679eadbcad60" - ], - "x-ms-correlation-request-id": [ - "72dcfcee-4abc-4b91-96c5-679eadbcad60" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131643Z:72dcfcee-4abc-4b91-96c5-679eadbcad60" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzNzk4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek56azRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:16:58 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzNzk4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11981" - ], - "x-ms-request-id": [ - "312a73da-f63a-4f51-9f52-27209f94c1f6" - ], - "x-ms-correlation-request-id": [ - "312a73da-f63a-4f51-9f52-27209f94c1f6" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131659Z:312a73da-f63a-4f51-9f52-27209f94c1f6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzNzk4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek56azRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:17:14 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzNzk4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11980" - ], - "x-ms-request-id": [ - "56c3058c-2e65-4934-88f6-85fca33b7169" - ], - "x-ms-correlation-request-id": [ - "56c3058c-2e65-4934-88f6-85fca33b7169" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131715Z:56c3058c-2e65-4934-88f6-85fca33b7169" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzNzk4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek56azRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:17:29 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11979" - ], - "x-ms-request-id": [ - "a73277bb-4b2d-4c0d-95e2-5f86872bef81" - ], - "x-ms-correlation-request-id": [ - "a73277bb-4b2d-4c0d-95e2-5f86872bef81" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131730Z:a73277bb-4b2d-4c0d-95e2-5f86872bef81" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1SRVMzNzk4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFTUlZNek56azRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.26614.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Wed, 22 Apr 2020 13:17:30 GMT" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11978" - ], - "x-ms-request-id": [ - "7b09310d-89cd-4842-a176-7f6e65c8efd7" - ], - "x-ms-correlation-request-id": [ - "7b09310d-89cd-4842-a176-7f6e65c8efd7" - ], - "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T131731Z:7b09310d-89cd-4842-a176-7f6e65c8efd7" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - } - ], - "Names": { - "CreateResourceGroup": [ - "res3798" - ], - "FileSharesSoftDeleteTest": [ - "sto850", - "share13832", - "share29802" - ] - }, - "Variables": { - "SubscriptionId": "45b60d85-fd72-427a-a708-f994d26e593e" - } -} \ No newline at end of file diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/tests/SessionRecords/StorageAccountTests/StorageAccountSetGetDeleteManagementPolicy.json b/sdk/storage/Microsoft.Azure.Management.Storage/tests/SessionRecords/StorageAccountTests/StorageAccountSetGetDeleteManagementPolicy.json index ad676e4cb639..0c80c4e75b78 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/tests/SessionRecords/StorageAccountTests/StorageAccountSetGetDeleteManagementPolicy.json +++ b/sdk/storage/Microsoft.Azure.Management.Storage/tests/SessionRecords/StorageAccountTests/StorageAccountSetGetDeleteManagementPolicy.json @@ -1,21 +1,21 @@ { "Entries": [ { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourcegroups/res207?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlZ3JvdXBzL3JlczIwNz9hcGktdmVyc2lvbj0yMDE1LTExLTAx", + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourcegroups/res1677?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlZ3JvdXBzL3JlczE2Nzc/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "fccd25df-e318-4701-a892-06e9a4d92378" + "0126cb25-aa44-4bd0-9aba-5dfd76d2c962" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26614.01", + "FxVersion/4.6.27817.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", + "OSVersion/Microsoft.Windows.10.0.18362.", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ], "Content-Type": [ @@ -29,9 +29,6 @@ "Cache-Control": [ "no-cache" ], - "Date": [ - "Wed, 22 Apr 2020 13:01:31 GMT" - ], "Pragma": [ "no-cache" ], @@ -39,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "82d87c0a-899b-4f49-9d80-6e2c7e165bb0" + "0bbe6148-22f2-4818-9500-9b26cc7c20ec" ], "x-ms-correlation-request-id": [ - "82d87c0a-899b-4f49-9d80-6e2c7e165bb0" + "0bbe6148-22f2-4818-9500-9b26cc7c20ec" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T130131Z:82d87c0a-899b-4f49-9d80-6e2c7e165bb0" + "SOUTHEASTASIA:20191012T045244Z:0bbe6148-22f2-4818-9500-9b26cc7c20ec" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -53,8 +50,11 @@ "X-Content-Type-Options": [ "nosniff" ], + "Date": [ + "Sat, 12 Oct 2019 04:52:44 GMT" + ], "Content-Length": [ - "166" + "168" ], "Content-Type": [ "application/json; charset=utf-8" @@ -63,130 +63,130 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res207\",\r\n \"name\": \"res207\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/res1677\",\r\n \"name\": \"res1677\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res207/providers/Microsoft.Storage/storageAccounts/sto8358?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczIwNy9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0bzgzNTg/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/res1677/providers/Microsoft.Storage/storageAccounts/sto5868?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3JlczE2NzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG81ODY4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDE=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GRS\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"location\": \"eastus2euap\"\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GRS\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "f1d3e839-31a1-4d2d-8417-f0c4632b1a98" + "220f3165-35cb-46c3-b7b8-8cd2609f7641" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26614.01", + "FxVersion/4.6.27817.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "103" + "98" ] }, "ResponseHeaders": { "Cache-Control": [ "no-cache" ], - "Date": [ - "Wed, 22 Apr 2020 13:01:36 GMT" - ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.Storage/locations/eastus2euap/asyncoperations/2a60a69b-2a90-4c5d-a0fd-4951b7cc393a?monitor=true&api-version=2019-06-01" + "https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Storage/locations/westus/asyncoperations/9e84747b-000b-4b93-8522-109b7e6fdd24?monitor=true&api-version=2019-06-01" ], "Retry-After": [ "17" ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], "x-ms-request-id": [ - "2a60a69b-2a90-4c5d-a0fd-4951b7cc393a" + "9e84747b-000b-4b93-8522-109b7e6fdd24" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "1a0c2608-15b4-4f11-b113-cac7bb381ce1" + "23dfc869-34a7-4038-b743-6a20b4032859" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T130137Z:1a0c2608-15b4-4f11-b113-cac7bb381ce1" + "SOUTHEASTASIA:20191012T045247Z:23dfc869-34a7-4038-b743-6a20b4032859" ], "X-Content-Type-Options": [ "nosniff" ], - "Content-Length": [ - "0" + "Date": [ + "Sat, 12 Oct 2019 04:52:47 GMT" ], "Content-Type": [ "text/plain; charset=utf-8" ], "Expires": [ "-1" + ], + "Content-Length": [ + "0" ] }, "ResponseBody": "", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.Storage/locations/eastus2euap/asyncoperations/2a60a69b-2a90-4c5d-a0fd-4951b7cc393a?monitor=true&api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvZWFzdHVzMmV1YXAvYXN5bmNvcGVyYXRpb25zLzJhNjBhNjliLTJhOTAtNGM1ZC1hMGZkLTQ5NTFiN2NjMzkzYT9tb25pdG9yPXRydWUmYXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Storage/locations/westus/asyncoperations/9e84747b-000b-4b93-8522-109b7e6fdd24?monitor=true&api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzL2FzeW5jb3BlcmF0aW9ucy85ZTg0NzQ3Yi0wMDBiLTRiOTMtODUyMi0xMDliN2U2ZmRkMjQ/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMTktMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26614.01", + "FxVersion/4.6.27817.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.0.0.0" ] }, "ResponseHeaders": { "Cache-Control": [ "no-cache" ], - "Date": [ - "Wed, 22 Apr 2020 13:01:54 GMT" - ], "Pragma": [ "no-cache" ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], "x-ms-request-id": [ - "ae0801e6-8282-4664-ad61-3fdbbe30635e" + "d0894de1-e31b-4714-b76f-9347455c377b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], "x-ms-correlation-request-id": [ - "5f516c70-5638-4b67-91b3-43609cfe2fb1" + "5426daf3-4ba2-4eb8-9ca3-337059590347" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T130154Z:5f516c70-5638-4b67-91b3-43609cfe2fb1" + "SOUTHEASTASIA:20191012T045304Z:5426daf3-4ba2-4eb8-9ca3-337059590347" ], "X-Content-Type-Options": [ "nosniff" ], + "Date": [ + "Sat, 12 Oct 2019 04:53:04 GMT" + ], "Content-Length": [ - "1263" + "1208" ], "Content-Type": [ "application/json" @@ -195,67 +195,67 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res207/providers/Microsoft.Storage/storageAccounts/sto8358\",\r\n \"name\": \"sto8358\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus2euap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"keyType\": \"Account\",\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-04-22T13:01:36.7964361Z\"\r\n },\r\n \"blob\": {\r\n \"keyType\": \"Account\",\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2020-04-22T13:01:36.7964361Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2020-04-22T13:01:36.7339354Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://sto8358.dfs.core.windows.net/\",\r\n \"web\": \"https://sto8358.z3.web.core.windows.net/\",\r\n \"blob\": \"https://sto8358.blob.core.windows.net/\",\r\n \"queue\": \"https://sto8358.queue.core.windows.net/\",\r\n \"table\": \"https://sto8358.table.core.windows.net/\",\r\n \"file\": \"https://sto8358.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus2euap\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"centraluseuap\",\r\n \"statusOfSecondary\": \"available\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/res1677/providers/Microsoft.Storage/storageAccounts/sto5868\",\r\n \"name\": \"sto5868\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-10-12T04:52:46.9660032Z\"\r\n },\r\n \"blob\": {\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2019-10-12T04:52:46.9660032Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2019-10-12T04:52:46.9191112Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://sto5868.dfs.core.windows.net/\",\r\n \"web\": \"https://sto5868.z22.web.core.windows.net/\",\r\n \"blob\": \"https://sto5868.blob.core.windows.net/\",\r\n \"queue\": \"https://sto5868.queue.core.windows.net/\",\r\n \"table\": \"https://sto5868.table.core.windows.net/\",\r\n \"file\": \"https://sto5868.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"eastus\",\r\n \"statusOfSecondary\": \"available\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res207/providers/Microsoft.Storage/storageAccounts/sto8358/managementPolicies/default?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczIwNy9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0bzgzNTgvbWFuYWdlbWVudFBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/res1677/providers/Microsoft.Storage/storageAccounts/sto5868/managementPolicies/default?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3JlczE2NzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG81ODY4L21hbmFnZW1lbnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDYtMDE=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"policy\": {\r\n \"rules\": [\r\n {\r\n \"enabled\": true,\r\n \"name\": \"olcmtest\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"baseBlob\": {\r\n \"tierToCool\": {\r\n \"daysAfterModificationGreaterThan\": 1000.0\r\n },\r\n \"tierToArchive\": {\r\n \"daysAfterModificationGreaterThan\": 90.0\r\n },\r\n \"delete\": {\r\n \"daysAfterModificationGreaterThan\": 300.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"prefixMatch\": [\r\n \"olcmtestcontainer\",\r\n \"testblob\"\r\n ],\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ],\r\n \"blobIndexMatch\": [\r\n {\r\n \"name\": \"tag1\",\r\n \"op\": \"==\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"tag2\",\r\n \"op\": \"==\",\r\n \"value\": \"value2\"\r\n }\r\n ]\r\n }\r\n },\r\n \"type\": \"Lifecycle\"\r\n },\r\n {\r\n \"enabled\": false,\r\n \"name\": \"olcmtest2\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"baseBlob\": {\r\n \"delete\": {\r\n \"daysAfterModificationGreaterThan\": 1000.0\r\n }\r\n },\r\n \"snapshot\": {\r\n \"delete\": {\r\n \"daysAfterCreationGreaterThan\": 100.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ]\r\n }\r\n },\r\n \"type\": \"Lifecycle\"\r\n },\r\n {\r\n \"name\": \"olcmtest3\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"snapshot\": {\r\n \"delete\": {\r\n \"daysAfterCreationGreaterThan\": 200.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ]\r\n }\r\n },\r\n \"type\": \"Lifecycle\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"policy\": {\r\n \"rules\": [\r\n {\r\n \"enabled\": true,\r\n \"name\": \"olcmtest\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"baseBlob\": {\r\n \"tierToCool\": {\r\n \"daysAfterModificationGreaterThan\": 1000.0\r\n },\r\n \"tierToArchive\": {\r\n \"daysAfterModificationGreaterThan\": 90.0\r\n },\r\n \"delete\": {\r\n \"daysAfterModificationGreaterThan\": 300.0\r\n }\r\n },\r\n \"snapshot\": {\r\n \"delete\": {\r\n \"daysAfterCreationGreaterThan\": 100.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"prefixMatch\": [\r\n \"olcmtestcontainer\",\r\n \"testblob\"\r\n ],\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ]\r\n }\r\n },\r\n \"type\": \"Lifecycle\"\r\n },\r\n {\r\n \"enabled\": false,\r\n \"name\": \"olcmtest2\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"baseBlob\": {\r\n \"delete\": {\r\n \"daysAfterModificationGreaterThan\": 1000.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ]\r\n }\r\n },\r\n \"type\": \"Lifecycle\"\r\n },\r\n {\r\n \"name\": \"olcmtest3\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"snapshot\": {\r\n \"delete\": {\r\n \"daysAfterCreationGreaterThan\": 200.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ]\r\n }\r\n },\r\n \"type\": \"Lifecycle\"\r\n }\r\n ]\r\n }\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "aa0c6b1e-5747-472d-ae1d-15e5bfc67ba1" + "17bfb8d6-479b-4923-9462-de23247591d9" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26614.01", + "FxVersion/4.6.27817.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "2289" + "1953" ] }, "ResponseHeaders": { "Cache-Control": [ "no-cache" ], - "Date": [ - "Wed, 22 Apr 2020 13:01:54 GMT" - ], "Pragma": [ "no-cache" ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], "x-ms-request-id": [ - "636eb97c-a1ef-40ed-9275-9fc82cfefe6c" + "e2f6ecb0-109a-4092-ad79-ee35d28c8c4f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "x-ms-correlation-request-id": [ - "1dfc5a70-f22d-40de-92d0-2293159ff5c5" + "86634e19-ff59-4fc3-9925-3d17e4d4ceb9" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T130155Z:1dfc5a70-f22d-40de-92d0-2293159ff5c5" + "SOUTHEASTASIA:20191012T045305Z:86634e19-ff59-4fc3-9925-3d17e4d4ceb9" ], "X-Content-Type-Options": [ "nosniff" ], + "Date": [ + "Sat, 12 Oct 2019 04:53:05 GMT" + ], "Content-Length": [ - "1222" + "1118" ], "Content-Type": [ "application/json" @@ -264,61 +264,61 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res207/providers/Microsoft.Storage/storageAccounts/sto8358/managementPolicies/default\",\r\n \"name\": \"DefaultManagementPolicy\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/managementPolicies\",\r\n \"properties\": {\r\n \"policy\": {\r\n \"rules\": [\r\n {\r\n \"enabled\": true,\r\n \"name\": \"olcmtest\",\r\n \"type\": \"Lifecycle\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"baseBlob\": {\r\n \"tierToCool\": {\r\n \"daysAfterModificationGreaterThan\": 1000.0\r\n },\r\n \"tierToArchive\": {\r\n \"daysAfterModificationGreaterThan\": 90.0\r\n },\r\n \"delete\": {\r\n \"daysAfterModificationGreaterThan\": 300.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobIndexMatch\": [\r\n {\r\n \"name\": \"tag1\",\r\n \"op\": \"==\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"tag2\",\r\n \"op\": \"==\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ],\r\n \"prefixMatch\": [\r\n \"olcmtestcontainer\",\r\n \"testblob\"\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"enabled\": false,\r\n \"name\": \"olcmtest2\",\r\n \"type\": \"Lifecycle\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"baseBlob\": {\r\n \"delete\": {\r\n \"daysAfterModificationGreaterThan\": 1000.0\r\n }\r\n },\r\n \"snapshot\": {\r\n \"delete\": {\r\n \"daysAfterCreationGreaterThan\": 100.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"enabled\": true,\r\n \"name\": \"olcmtest3\",\r\n \"type\": \"Lifecycle\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"snapshot\": {\r\n \"delete\": {\r\n \"daysAfterCreationGreaterThan\": 200.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"lastModifiedTime\": \"2020-04-22T13:01:55.1677982Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/res1677/providers/Microsoft.Storage/storageAccounts/sto5868/managementPolicies/default\",\r\n \"name\": \"DefaultManagementPolicy\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/managementPolicies\",\r\n \"properties\": {\r\n \"policy\": {\r\n \"rules\": [\r\n {\r\n \"enabled\": true,\r\n \"name\": \"olcmtest\",\r\n \"type\": \"Lifecycle\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"baseBlob\": {\r\n \"tierToCool\": {\r\n \"daysAfterModificationGreaterThan\": 1000.0\r\n },\r\n \"tierToArchive\": {\r\n \"daysAfterModificationGreaterThan\": 90.0\r\n },\r\n \"delete\": {\r\n \"daysAfterModificationGreaterThan\": 300.0\r\n }\r\n },\r\n \"snapshot\": {\r\n \"delete\": {\r\n \"daysAfterCreationGreaterThan\": 100.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ],\r\n \"prefixMatch\": [\r\n \"olcmtestcontainer\",\r\n \"testblob\"\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"enabled\": false,\r\n \"name\": \"olcmtest2\",\r\n \"type\": \"Lifecycle\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"baseBlob\": {\r\n \"delete\": {\r\n \"daysAfterModificationGreaterThan\": 1000.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"enabled\": true,\r\n \"name\": \"olcmtest3\",\r\n \"type\": \"Lifecycle\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"snapshot\": {\r\n \"delete\": {\r\n \"daysAfterCreationGreaterThan\": 200.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"lastModifiedTime\": \"2019-10-12T04:53:05.2478746Z\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res207/providers/Microsoft.Storage/storageAccounts/sto8358/managementPolicies/default?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczIwNy9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0bzgzNTgvbWFuYWdlbWVudFBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/res1677/providers/Microsoft.Storage/storageAccounts/sto5868/managementPolicies/default?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3JlczE2NzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG81ODY4L21hbmFnZW1lbnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5d0389eb-a9c3-4aa9-992c-036565bdec73" + "811dd2eb-fdf6-4b11-9971-6efca4514c90" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26614.01", + "FxVersion/4.6.27817.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.0.0.0" ] }, "ResponseHeaders": { "Cache-Control": [ "no-cache" ], - "Date": [ - "Wed, 22 Apr 2020 13:01:55 GMT" - ], "Pragma": [ "no-cache" ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], "x-ms-request-id": [ - "69ecc414-d2ea-4936-85f4-082d6260f7e0" + "a4f5fc48-1288-4c79-a834-27da2f6c5c1d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], "x-ms-correlation-request-id": [ - "19d00632-4ef1-47ae-af43-d18e8dd2bf31" + "eecfc4e0-b36e-4787-8405-d83b1751031b" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T130155Z:19d00632-4ef1-47ae-af43-d18e8dd2bf31" + "SOUTHEASTASIA:20191012T045306Z:eecfc4e0-b36e-4787-8405-d83b1751031b" ], "X-Content-Type-Options": [ "nosniff" ], + "Date": [ + "Sat, 12 Oct 2019 04:53:05 GMT" + ], "Content-Length": [ - "1222" + "1118" ], "Content-Type": [ "application/json" @@ -327,59 +327,59 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res207/providers/Microsoft.Storage/storageAccounts/sto8358/managementPolicies/default\",\r\n \"name\": \"DefaultManagementPolicy\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/managementPolicies\",\r\n \"properties\": {\r\n \"policy\": {\r\n \"rules\": [\r\n {\r\n \"enabled\": true,\r\n \"name\": \"olcmtest\",\r\n \"type\": \"Lifecycle\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"baseBlob\": {\r\n \"tierToCool\": {\r\n \"daysAfterModificationGreaterThan\": 1000.0\r\n },\r\n \"tierToArchive\": {\r\n \"daysAfterModificationGreaterThan\": 90.0\r\n },\r\n \"delete\": {\r\n \"daysAfterModificationGreaterThan\": 300.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobIndexMatch\": [\r\n {\r\n \"name\": \"tag1\",\r\n \"op\": \"==\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"tag2\",\r\n \"op\": \"==\",\r\n \"value\": \"value2\"\r\n }\r\n ],\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ],\r\n \"prefixMatch\": [\r\n \"olcmtestcontainer\",\r\n \"testblob\"\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"enabled\": false,\r\n \"name\": \"olcmtest2\",\r\n \"type\": \"Lifecycle\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"baseBlob\": {\r\n \"delete\": {\r\n \"daysAfterModificationGreaterThan\": 1000.0\r\n }\r\n },\r\n \"snapshot\": {\r\n \"delete\": {\r\n \"daysAfterCreationGreaterThan\": 100.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"enabled\": true,\r\n \"name\": \"olcmtest3\",\r\n \"type\": \"Lifecycle\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"snapshot\": {\r\n \"delete\": {\r\n \"daysAfterCreationGreaterThan\": 200.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"lastModifiedTime\": \"2020-04-22T13:01:55.1677982Z\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/res1677/providers/Microsoft.Storage/storageAccounts/sto5868/managementPolicies/default\",\r\n \"name\": \"DefaultManagementPolicy\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/managementPolicies\",\r\n \"properties\": {\r\n \"policy\": {\r\n \"rules\": [\r\n {\r\n \"enabled\": true,\r\n \"name\": \"olcmtest\",\r\n \"type\": \"Lifecycle\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"baseBlob\": {\r\n \"tierToCool\": {\r\n \"daysAfterModificationGreaterThan\": 1000.0\r\n },\r\n \"tierToArchive\": {\r\n \"daysAfterModificationGreaterThan\": 90.0\r\n },\r\n \"delete\": {\r\n \"daysAfterModificationGreaterThan\": 300.0\r\n }\r\n },\r\n \"snapshot\": {\r\n \"delete\": {\r\n \"daysAfterCreationGreaterThan\": 100.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ],\r\n \"prefixMatch\": [\r\n \"olcmtestcontainer\",\r\n \"testblob\"\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"enabled\": false,\r\n \"name\": \"olcmtest2\",\r\n \"type\": \"Lifecycle\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"baseBlob\": {\r\n \"delete\": {\r\n \"daysAfterModificationGreaterThan\": 1000.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"enabled\": true,\r\n \"name\": \"olcmtest3\",\r\n \"type\": \"Lifecycle\",\r\n \"definition\": {\r\n \"actions\": {\r\n \"snapshot\": {\r\n \"delete\": {\r\n \"daysAfterCreationGreaterThan\": 200.0\r\n }\r\n }\r\n },\r\n \"filters\": {\r\n \"blobTypes\": [\r\n \"blockBlob\"\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n },\r\n \"lastModifiedTime\": \"2019-10-12T04:53:05.2478746Z\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res207/providers/Microsoft.Storage/storageAccounts/sto8358/managementPolicies/default?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczIwNy9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0bzgzNTgvbWFuYWdlbWVudFBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/res1677/providers/Microsoft.Storage/storageAccounts/sto5868/managementPolicies/default?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3JlczE2NzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG81ODY4L21hbmFnZW1lbnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3669dcc6-c080-4f4a-a915-1de747dbaab3" + "6400452d-7088-4309-b9f9-4b00efefb659" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26614.01", + "FxVersion/4.6.27817.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.0.0.0" ] }, "ResponseHeaders": { "Cache-Control": [ "no-cache" ], - "Date": [ - "Wed, 22 Apr 2020 13:01:56 GMT" - ], "Pragma": [ "no-cache" ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], "x-ms-request-id": [ - "52c42a03-77f7-4ec6-9729-9369899ff1b6" + "6accc16e-a75c-4c27-b4a2-19735ca39039" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], "x-ms-correlation-request-id": [ - "0a7ad9fc-0a1f-4841-8dcd-5d8f3ddae344" + "34a36af8-2051-461c-8d20-4a033289c79d" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T130156Z:0a7ad9fc-0a1f-4841-8dcd-5d8f3ddae344" + "SOUTHEASTASIA:20191012T045307Z:34a36af8-2051-461c-8d20-4a033289c79d" ], "X-Content-Type-Options": [ "nosniff" ], + "Date": [ + "Sat, 12 Oct 2019 04:53:06 GMT" + ], "Content-Length": [ "103" ], @@ -390,122 +390,122 @@ "-1" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ManagementPolicyNotFound\",\r\n \"message\": \"No ManagementPolicy found for account sto8358\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ManagementPolicyNotFound\",\r\n \"message\": \"No ManagementPolicy found for account sto5868\"\r\n }\r\n}", "StatusCode": 404 }, { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res207/providers/Microsoft.Storage/storageAccounts/sto8358/managementPolicies/default?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczIwNy9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0bzgzNTgvbWFuYWdlbWVudFBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/res1677/providers/Microsoft.Storage/storageAccounts/sto5868/managementPolicies/default?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3JlczE2NzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG81ODY4L21hbmFnZW1lbnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDYtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "aec5e69f-754c-4038-b303-0fe057153dc4" + "9421dabb-3eb6-47ea-af55-0db072c63baa" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26614.01", + "FxVersion/4.6.27817.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.0.0.0" ] }, "ResponseHeaders": { "Cache-Control": [ "no-cache" ], - "Date": [ - "Wed, 22 Apr 2020 13:01:55 GMT" - ], "Pragma": [ "no-cache" ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], "x-ms-request-id": [ - "5e457ec0-505a-4aa9-b835-de65ac0bc727" + "0e26bdab-e808-4526-a5be-bd3c913c49e3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], "x-ms-correlation-request-id": [ - "2679ae6f-9100-4d54-8999-cddff28b38d8" + "080c07be-d5d2-45bb-acbd-d683f8c3ef6b" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T130156Z:2679ae6f-9100-4d54-8999-cddff28b38d8" + "SOUTHEASTASIA:20191012T045306Z:080c07be-d5d2-45bb-acbd-d683f8c3ef6b" ], "X-Content-Type-Options": [ "nosniff" ], - "Content-Length": [ - "0" + "Date": [ + "Sat, 12 Oct 2019 04:53:06 GMT" ], "Content-Type": [ "text/plain; charset=utf-8" ], "Expires": [ "-1" + ], + "Content-Length": [ + "0" ] }, "ResponseBody": "", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/res207/providers/Microsoft.Storage/storageAccounts/sto8358/managementPolicies/default?api-version=2019-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3JlczIwNy9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0bzgzNTgvbWFuYWdlbWVudFBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxOS0wNi0wMQ==", + "RequestUri": "/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/res1677/providers/Microsoft.Storage/storageAccounts/sto5868/managementPolicies/default?api-version=2019-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2U0YTc1OTAtNDcyMi00YmNmLWEyYzYtZTQ3M2U5ZjExNzc4L3Jlc291cmNlR3JvdXBzL3JlczE2NzcvcHJvdmlkZXJzL01pY3Jvc29mdC5TdG9yYWdlL3N0b3JhZ2VBY2NvdW50cy9zdG81ODY4L21hbmFnZW1lbnRQb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTktMDYtMDE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3d98daed-1de9-4447-bc32-072ca569834d" + "4c014a58-1aee-4ab8-b85c-17dca34c50f7" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26614.01", + "FxVersion/4.6.27817.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.18363.", - "Microsoft.Azure.Management.Storage.StorageManagementClient/16.0.0.0" + "OSVersion/Microsoft.Windows.10.0.18362.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/14.0.0.0" ] }, "ResponseHeaders": { "Cache-Control": [ "no-cache" ], - "Date": [ - "Wed, 22 Apr 2020 13:01:56 GMT" - ], "Pragma": [ "no-cache" ], - "Server": [ - "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" - ], "x-ms-request-id": [ - "8dfb55e7-bd03-4313-baf9-6217d479fdad" + "6827bb2a-af4e-4a04-86d8-88bcc90c4601" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], "x-ms-correlation-request-id": [ - "6d2c05e0-b324-4f81-b696-43d1cd9a07c7" + "bdc016af-501b-48a7-a6d4-34099bfd3cfb" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20200422T130157Z:6d2c05e0-b324-4f81-b696-43d1cd9a07c7" + "SOUTHEASTASIA:20191012T045307Z:bdc016af-501b-48a7-a6d4-34099bfd3cfb" ], "X-Content-Type-Options": [ "nosniff" ], + "Date": [ + "Sat, 12 Oct 2019 04:53:06 GMT" + ], "Content-Type": [ "text/plain; charset=utf-8" ], @@ -519,13 +519,13 @@ ], "Names": { "CreateResourceGroup": [ - "res207" + "res1677" ], "StorageAccountSetGetDeleteManagementPolicy": [ - "sto8358" + "sto5868" ] }, "Variables": { - "SubscriptionId": "45b60d85-fd72-427a-a708-f994d26e593e" + "SubscriptionId": "ce4a7590-4722-4bcf-a2c6-e473e9f11778" } } \ No newline at end of file diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/tests/Tests/FileServiceTests.cs b/sdk/storage/Microsoft.Azure.Management.Storage/tests/Tests/FileServiceTests.cs index 7f4f191e784e..080323a628f4 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/tests/Tests/FileServiceTests.cs +++ b/sdk/storage/Microsoft.Azure.Management.Storage/tests/Tests/FileServiceTests.cs @@ -55,7 +55,7 @@ public void FileSharesCreateDeleteListTest() try { string shareName = TestUtilities.GenerateName("share"); - FileShare share = storageMgmtClient.FileShares.Create(rgName, accountName, shareName, new FileShare()); + FileShare share = storageMgmtClient.FileShares.Create(rgName, accountName, shareName); Assert.Null(share.Metadata); share = storageMgmtClient.FileShares.Get(rgName, accountName, shareName); @@ -66,8 +66,7 @@ public void FileSharesCreateDeleteListTest() metaData.Add("metadata1", "true"); metaData.Add("metadata2", "value2"); int shareQuota = 500; - FileShare share2 = storageMgmtClient.FileShares.Create(rgName, accountName, shareName2, - new FileShare( metadata: metaData,shareQuota: shareQuota)); + FileShare share2 = storageMgmtClient.FileShares.Create(rgName, accountName, shareName2, metaData, shareQuota); Assert.Equal(2, share2.Metadata.Count); Assert.Equal(metaData, share2.Metadata); Assert.Equal(shareQuota, share2.ShareQuota); @@ -128,15 +127,14 @@ public void FileSharesUpdateGetTest() try { string shareName = TestUtilities.GenerateName("share"); - FileShare share = storageMgmtClient.FileShares.Create(rgName, accountName, shareName, new FileShare()); + FileShare share = storageMgmtClient.FileShares.Create(rgName, accountName, shareName); Assert.Null(share.Metadata); Dictionary metaData = new Dictionary(); metaData.Add("metadata1", "true"); metaData.Add("metadata2", "value2"); int shareQuota = 5200; - var shareSet = storageMgmtClient.FileShares.Update(rgName, accountName, shareName, - new FileShare(metadata: metaData, shareQuota: shareQuota)); + var shareSet = storageMgmtClient.FileShares.Update(rgName, accountName, shareName, metaData, shareQuota); Assert.NotNull(shareSet.Metadata); Assert.Equal(shareQuota, shareSet.ShareQuota); Assert.Equal(metaData, shareSet.Metadata); @@ -249,128 +247,5 @@ public void FileServiceCorsTest() } } } - - // test share soft delete - [Fact] - public void FileSharesSoftDeleteTest() - { - var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; - - using (MockContext context = MockContext.Start(this.GetType().FullName)) - { - var resourcesClient = StorageManagementTestUtilities.GetResourceManagementClient(context, handler); - var storageMgmtClient = StorageManagementTestUtilities.GetStorageManagementClient(context, handler); - - // Create resource group - var rgName = StorageManagementTestUtilities.CreateResourceGroup(resourcesClient); - - // Create storage account - string accountName = TestUtilities.GenerateName("sto"); - var parameters = new StorageAccountCreateParameters - { - Location = "eastus2euap", - Kind = Kind.StorageV2, - Sku = new Sku { Name = SkuName.StandardLRS } - }; - var account = storageMgmtClient.StorageAccounts.Create(rgName, accountName, parameters); - - // implement case - try - { - // Enable share soft delete in service properties - FileServiceProperties properties = storageMgmtClient.FileServices.GetServiceProperties(rgName, accountName); - properties.ShareDeleteRetentionPolicy = new DeleteRetentionPolicy(); - properties.ShareDeleteRetentionPolicy.Enabled = true; - properties.ShareDeleteRetentionPolicy.Days = 5; - properties = storageMgmtClient.FileServices.SetServiceProperties(rgName, accountName, shareDeleteRetentionPolicy: properties.ShareDeleteRetentionPolicy); - Assert.True(properties.ShareDeleteRetentionPolicy.Enabled); - Assert.Equal(5, properties.ShareDeleteRetentionPolicy.Days); - - //Create 2 shares - string shareName1 = TestUtilities.GenerateName("share1"); - string shareName2 = TestUtilities.GenerateName("share2"); - FileShare share1 = storageMgmtClient.FileShares.Create(rgName, accountName, shareName1, - new FileShare( accessTier: ShareAccessTier.Hot, - enabledProtocols: EnabledProtocols.NFS, - rootSquash: RootSquashType.AllSquash)); - Assert.Equal(shareName1, share1.Name); - Assert.Equal(EnabledProtocols.NFS, share1.EnabledProtocols); - Assert.Equal(RootSquashType.AllSquash, share1.RootSquash); - //Assert.Equal(ShareAccessTier.Hot, share1.AccessTier); - FileShare share2 = storageMgmtClient.FileShares.Create(rgName, accountName, shareName2, - new FileShare(accessTier: ShareAccessTier.Cool, - enabledProtocols: EnabledProtocols.SMB)); - Assert.Equal(shareName2, share2.Name); - Assert.Equal(EnabledProtocols.SMB, share2.EnabledProtocols); - - //Update 1 share - share1 = storageMgmtClient.FileShares.Update(rgName, accountName, shareName1, - new FileShare(accessTier: ShareAccessTier.TransactionOptimized, - rootSquash: RootSquashType.RootSquash)); - Assert.Equal(shareName1, share1.Name); - Assert.Equal(RootSquashType.RootSquash, share1.RootSquash); - //Assert.Equal(ShareAccessTier.TransactionOptimized, share1.AccessTier); - - - // Delete 1 share - storageMgmtClient.FileShares.Delete(rgName, accountName, shareName1); - - //List normally - IPage shares = storageMgmtClient.FileShares.List(rgName, accountName); - Assert.Single(shares); - - //List with includeDeleted - string deletedShareVersion = null; - shares = storageMgmtClient.FileShares.List(rgName, accountName, expand: ListSharesExpand.Deleted); - Assert.Equal(2, shares.Count()); - foreach(FileShareItem share in shares) - { - if (share.Name == shareName1) - { - Assert.True(share.Deleted); - Assert.NotNull(share.Version); - deletedShareVersion = share.Version; - } - } - - //Get not deleted share - share2 = storageMgmtClient.FileShares.Get(rgName, accountName, shareName2, expand: GetShareExpand.Stats); - Assert.NotNull(share2.ShareQuota); - Assert.NotNull(share2.ShareUsageBytes); - - //Get Deleted Share - try { - share2 = storageMgmtClient.FileShares.Get(rgName, accountName, shareName1); - Assert.True(false, "Get Share on deleted Share should fail with NotFound."); - } - catch (CloudException ex) - { - Assert.Equal(HttpStatusCode.NotFound, ex.Response.StatusCode); - } - - // restore deleted share - //Don't need sleep when playback, or Unit test will be very slow. Need sleep when record. - if (HttpMockServer.Mode == HttpRecorderMode.Record) - { - System.Threading.Thread.Sleep(30000); - } - storageMgmtClient.FileShares.Restore(rgName, accountName, shareName1, shareName1, deletedShareVersion); - - //List normally - shares = storageMgmtClient.FileShares.List(rgName, accountName); - Assert.Equal(2, shares.Count()); - - //List with includeDeleted - shares = storageMgmtClient.FileShares.List(rgName, accountName, expand: ListSharesExpand.Deleted); - Assert.Equal(2, shares.Count()); - } - finally - { - // clean up - storageMgmtClient.StorageAccounts.Delete(rgName, accountName); - resourcesClient.ResourceGroups.Delete(rgName); - } - } - } } } diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/tests/Tests/StorageAccountTests.cs b/sdk/storage/Microsoft.Azure.Management.Storage/tests/Tests/StorageAccountTests.cs index ee704eb4fa2a..fe35ff75fab6 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/tests/Tests/StorageAccountTests.cs +++ b/sdk/storage/Microsoft.Azure.Management.Storage/tests/Tests/StorageAccountTests.cs @@ -1664,14 +1664,10 @@ public void StorageAccountSetGetDeleteManagementPolicy() { Sku = new Sku { Name = SkuName.StandardGRS }, Kind = Kind.StorageV2, - Location = "eastus2euap" + Location = "westus" }; storageMgmtClient.StorageAccounts.Create(rgname, accountName, parameters); List rules = new List(); - - List tagFileter = new List(); - tagFileter.Add(new TagFilter("tag1", "==", "value1")); - tagFileter.Add(new TagFilter("tag2", "==", "value2")); ManagementPolicyRule rule1 = new ManagementPolicyRule() { Enabled = true, @@ -1680,11 +1676,11 @@ public void StorageAccountSetGetDeleteManagementPolicy() { Actions = new ManagementPolicyAction() { - BaseBlob = new ManagementPolicyBaseBlob(new DateAfterModification(1000), new DateAfterModification(90), new DateAfterModification(300)) + BaseBlob = new ManagementPolicyBaseBlob(new DateAfterModification(1000), new DateAfterModification(90), new DateAfterModification(300)), + Snapshot = new ManagementPolicySnapShot(new DateAfterCreation(100)) }, Filters = new ManagementPolicyFilter(new List() { "blockBlob" }, - new List() { "olcmtestcontainer", "testblob" }, - tagFileter) + new List() { "olcmtestcontainer", "testblob" }), } }; rules.Add(rule1); @@ -1698,7 +1694,6 @@ public void StorageAccountSetGetDeleteManagementPolicy() Actions = new ManagementPolicyAction() { BaseBlob = new ManagementPolicyBaseBlob(delete: new DateAfterModification(1000)), - Snapshot = new ManagementPolicySnapShot(new DateAfterCreation(100)) }, Filters = new ManagementPolicyFilter(blobTypes: new List() { "blockBlob" }), }