From 40a966c4ff451cf1663235171060b24e947f62db Mon Sep 17 00:00:00 2001 From: Wei Wei Date: Thu, 27 May 2021 16:24:30 +0800 Subject: [PATCH 1/3] [Storage] Support NFS --- .../ScenarioTests/StorageFileTests.cs | 7 + .../ScenarioTests/StorageFileTests.ps1 | 54 + .../TestAzureStorageShareNFS.json | 1086 +++++++++++++++++ src/Storage/Storage.Management/ChangeLog.md | 3 + .../File/NewAzureStorageShare.cs | 25 +- .../File/UpdateAzureStorageShare.cs | 11 +- .../Storage.Management/Models/PSShare.cs | 14 +- .../Storage.Management.format.ps1xml | 4 +- .../help/Get-AzRmStorageShare.md | 26 +- .../help/New-AzRmStorageShare.md | 60 +- .../help/Update-AzRmStorageShare.md | 56 +- 11 files changed, 1308 insertions(+), 38 deletions(-) create mode 100644 src/Storage/Storage.Management.Test/SessionRecords/Microsoft.Azure.Commands.Management.Storage.Test.ScenarioTests.StorageFileTests/TestAzureStorageShareNFS.json diff --git a/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.cs b/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.cs index 4f6b607eceed..97e86e592555 100644 --- a/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.cs +++ b/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.cs @@ -57,6 +57,13 @@ public void TestShareSoftDeletee() public void TestShareSnapshot() { TestController.NewInstance.RunPsTest(_logger, "Test-ShareSnapshot"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestAzureStorageShareNFS() + { + TestController.NewInstance.RunPsTest(_logger, "Test-AzureStorageShareNFS"); } } } diff --git a/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.ps1 b/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.ps1 index 44764e835756..21ce91d70335 100644 --- a/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.ps1 +++ b/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.ps1 @@ -358,4 +358,58 @@ function Test-ShareSnapshot } } +<# +.SYNOPSIS +Test Azure storage share with NFS +.DESCRIPTION +Smoke[Broken]Test +#> +function Test-AzureStorageShareNFS +{ + # Setup + $rgname = Get-StorageManagementTestResourceName; + + try + { + # Test + $stoname = 'sto' + $rgname; + $stotype = 'Premium_LRS'; + $kind = 'FileStorage' + + $loc = Get-ProviderLocation ResourceManagement; + New-AzResourceGroup -Name $rgname -Location $loc; + + New-AzStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype -Kind $kind; + $sto = Get-AzStorageAccount -ResourceGroupName $rgname -Name $stoname; + Assert-AreEqual $stoname $sto.StorageAccountName; + Assert-AreEqual $stotype $sto.Sku.Name; + Assert-AreEqual $kind $sto.Kind; + + + $shareName = "share"+ $rgname + $sto | New-AzRmStorageShare -Name $shareName -EnabledProtocol NFS -RootSquash RootSquash + $share = $sto | Get-AzRmStorageShare -Name $shareName + Assert-AreEqual $rgname $share.ResourceGroupName + Assert-AreEqual $stoname $share.StorageAccountName + Assert-AreEqual $shareName $share.Name + Assert-AreEqual "NFS" $share.EnabledProtocols + Assert-AreEqual "RootSquash" $share.RootSquash + + Update-AzRmStorageShare -ResourceGroupName $rgname -StorageAccountName $stoname -Name $shareName -RootSquash NoRootSquash + $share = $sto | Get-AzRmStorageShare -Name $shareName + Assert-AreEqual $rgname $share.ResourceGroupName + Assert-AreEqual $stoname $share.StorageAccountName + Assert-AreEqual $shareName $share.Name + Assert-AreEqual "NFS" $share.EnabledProtocols + Assert-AreEqual "NoRootSquash" $share.RootSquash + + Retry-IfException { Remove-AzStorageAccount -Force -ResourceGroupName $rgname -Name $stoname; } + } + finally + { + # Cleanup + Clean-ResourceGroup $rgname + } +} + diff --git a/src/Storage/Storage.Management.Test/SessionRecords/Microsoft.Azure.Commands.Management.Storage.Test.ScenarioTests.StorageFileTests/TestAzureStorageShareNFS.json b/src/Storage/Storage.Management.Test/SessionRecords/Microsoft.Azure.Commands.Management.Storage.Test.ScenarioTests.StorageFileTests/TestAzureStorageShareNFS.json new file mode 100644 index 000000000000..d260e42dd3e9 --- /dev/null +++ b/src/Storage/Storage.Management.Test/SessionRecords/Microsoft.Azure.Commands.Management.Storage.Test.ScenarioTests.StorageFileTests/TestAzureStorageShareNFS.json @@ -0,0 +1,1086 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.Storage?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "741885e3-8f00-4c4e-9035-f568a3584ca9" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "65f5adae-cfec-4f35-8604-bd75d1828aff" + ], + "x-ms-correlation-request-id": [ + "65f5adae-cfec-4f35-8604-bd75d1828aff" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084556Z:65f5adae-cfec-4f35-8604-bd75d1828aff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:45:56 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "16234" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.Storage\",\r\n \"namespace\": \"Microsoft.Storage\",\r\n \"authorizations\": [\r\n {\r\n \"applicationId\": \"a6aa9161-5291-40bb-8c5c-923b567bee3b\",\r\n \"roleDefinitionId\": \"070ab87f-0efc-4423-b18b-756f3bdb0236\"\r\n },\r\n {\r\n \"applicationId\": \"e406a681-f3d4-42a8-90b6-c2b029497af1\"\r\n }\r\n ],\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"deletedAccounts\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 (Stage)\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deletedAccounts\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 (Stage)\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 (Stage)\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\",\r\n \"2019-04-01\",\r\n \"2018-11-01\",\r\n \"2018-07-01\",\r\n \"2018-03-01-preview\",\r\n \"2018-02-01\",\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ],\r\n \"zoneMappings\": [\r\n {\r\n \"location\": \"East US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Central US\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US 2 EUAP\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Central US EUAP\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\"\r\n ]\r\n },\r\n {\r\n \"location\": \"France Central\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"North Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"UK South\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Japan East\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Australia East\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"South Africa North\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"South Central US\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Canada Central\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Germany West Central\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Brazil South\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Central India\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"Korea Central\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"West US 3\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"Norway East\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"East Asia\",\r\n \"zones\": []\r\n }\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity\"\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 (Stage)\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\",\r\n \"2019-04-01\",\r\n \"2018-11-01\",\r\n \"2018-07-01\",\r\n \"2018-03-01-preview\",\r\n \"2018-02-01\",\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/asyncoperations\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 (Stage)\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\",\r\n \"2019-04-01\",\r\n \"2018-11-01\",\r\n \"2018-07-01\",\r\n \"2018-03-01-preview\",\r\n \"2018-02-01\",\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listAccountSas\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 (Stage)\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\",\r\n \"2019-04-01\",\r\n \"2018-11-01\",\r\n \"2018-07-01\",\r\n \"2018-03-01-preview\",\r\n \"2018-02-01\",\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/listServiceSas\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 (Stage)\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\",\r\n \"2019-04-01\",\r\n \"2018-11-01\",\r\n \"2018-07-01\",\r\n \"2018-03-01-preview\",\r\n \"2018-02-01\",\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/blobServices\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 (Stage)\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\",\r\n \"2019-04-01\",\r\n \"2018-11-01\",\r\n \"2018-07-01\",\r\n \"2018-03-01-preview\",\r\n \"2018-02-01\",\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/tableServices\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 (Stage)\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\",\r\n \"2019-04-01\",\r\n \"2018-11-01\",\r\n \"2018-07-01\",\r\n \"2018-03-01-preview\",\r\n \"2018-02-01\",\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/queueServices\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 (Stage)\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\",\r\n \"2019-04-01\",\r\n \"2018-11-01\",\r\n \"2018-07-01\",\r\n \"2018-03-01-preview\",\r\n \"2018-02-01\",\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/fileServices\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 (Stage)\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\",\r\n \"2019-04-01\",\r\n \"2018-11-01\",\r\n \"2018-07-01\",\r\n \"2018-03-01-preview\",\r\n \"2018-02-01\",\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\",\r\n \"2019-04-01\",\r\n \"2018-11-01\",\r\n \"2018-07-01\",\r\n \"2018-03-01-preview\",\r\n \"2018-02-01\",\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\",\r\n \"2016-01-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/usages\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 (Stage)\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\",\r\n \"2019-04-01\",\r\n \"2018-11-01\",\r\n \"2018-07-01\",\r\n \"2018-03-01-preview\",\r\n \"2018-02-01\",\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/deleteVirtualNetworkOrSubnets\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 (Stage)\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\",\r\n \"2019-04-01\",\r\n \"2018-11-01\",\r\n \"2018-07-01\",\r\n \"2018-03-01-preview\",\r\n \"2018-02-01\",\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"usages\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\",\r\n \"2019-04-01\",\r\n \"2018-11-01\",\r\n \"2018-07-01\",\r\n \"2018-03-01-preview\",\r\n \"2018-02-01\",\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 (Stage)\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\",\r\n \"2019-04-01\",\r\n \"2018-11-01\",\r\n \"2018-07-01\",\r\n \"2018-03-01-preview\",\r\n \"2018-02-01\",\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\",\r\n \"2016-05-01\",\r\n \"2016-01-01\",\r\n \"2015-06-15\",\r\n \"2015-05-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/checkNameAvailability\",\r\n \"locations\": [\r\n \"East US\",\r\n \"East US 2\",\r\n \"West US\",\r\n \"West Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"North Europe\",\r\n \"Brazil South\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 (Stage)\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2021-04-01\",\r\n \"2021-02-01\",\r\n \"2021-01-01\",\r\n \"2020-08-01-preview\",\r\n \"2019-06-01\",\r\n \"2019-04-01\",\r\n \"2018-11-01\",\r\n \"2018-07-01\",\r\n \"2018-02-01\",\r\n \"2017-10-01\",\r\n \"2017-06-01\",\r\n \"2016-12-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/services\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West US\",\r\n \"East US 2 (Stage)\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2014-04-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"storageAccounts/services/metricDefinitions\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West US\",\r\n \"East US 2 (Stage)\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"East Asia\",\r\n \"Southeast Asia\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"East US 2\",\r\n \"Central US\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Brazil South\",\r\n \"South India\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada East\",\r\n \"Canada Central\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"West US 3\",\r\n \"Jio India West\",\r\n \"East US 2 EUAP\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2014-04-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourcegroups/pstestrg3851?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlZ3JvdXBzL3BzdGVzdHJnMzg1MT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cfb01c32-ccc2-4087-abc5-6a46801198d4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "9cfdded0-c015-44c6-84b3-33ad5bd0cd2c" + ], + "x-ms-correlation-request-id": [ + "9cfdded0-c015-44c6-84b3-33ad5bd0cd2c" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084558Z:9cfdded0-c015-44c6-84b3-33ad5bd0cd2c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:45:58 GMT" + ], + "Content-Length": [ + "177" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851\",\r\n \"name\": \"pstestrg3851\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.Storage/checkNameAvailability?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"stopstestrg3851\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "340be519-7fdd-4639-b764-ca828b84d5b0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/22.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "81" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1a8dd9fe-44ce-4a2b-ab65-e2d26578131d" + ], + "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": [ + "23db11a1-9a02-40bb-95fc-8bcebbe0de53" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084600Z:23db11a1-9a02-40bb-95fc-8bcebbe0de53" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:45:59 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": true\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851/providers/Microsoft.Storage/storageAccounts/stopstestrg3851?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnMzg1MS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnMzg1MT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\"\r\n },\r\n \"kind\": \"FileStorage\",\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "340be519-7fdd-4639-b764-ca828b84d5b0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/22.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "100" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.Storage/locations/westus/asyncoperations/3bea70fc-b816-4dd0-b4c6-0fac1d0e7f1c?monitor=true&api-version=2021-04-01" + ], + "Retry-After": [ + "17" + ], + "x-ms-request-id": [ + "3bea70fc-b816-4dd0-b4c6-0fac1d0e7f1c" + ], + "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": [ + "3b4d8acb-1fc8-426c-8e05-e979b3daec80" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084607Z:3b4d8acb-1fc8-426c-8e05-e979b3daec80" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:46:07 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/westus/asyncoperations/3bea70fc-b816-4dd0-b4c6-0fac1d0e7f1c?monitor=true&api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvd2VzdHVzL2FzeW5jb3BlcmF0aW9ucy8zYmVhNzBmYy1iODE2LTRkZDAtYjRjNi0wZmFjMWQwZTdmMWM/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMjEtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "340be519-7fdd-4639-b764-ca828b84d5b0" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/22.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2fcdfd1c-19de-40de-956b-d0e38f76dc3d" + ], + "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": [ + "5a81328d-684d-486f-b0db-94ac6990cd4e" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084624Z:5a81328d-684d-486f-b0db-94ac6990cd4e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:46:24 GMT" + ], + "Content-Length": [ + "1082" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"kind\": \"FileStorage\",\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851/providers/Microsoft.Storage/storageAccounts/stopstestrg3851\",\r\n \"name\": \"stopstestrg3851\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"keyCreationTime\": {\r\n \"key1\": \"2021-05-27T08:46:05.3474965Z\",\r\n \"key2\": \"2021-05-27T08:46:05.3474965Z\"\r\n },\r\n \"privateEndpointConnections\": [],\r\n \"largeFileSharesState\": \"Enabled\",\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\": \"2021-05-27T08:46:05.3474965Z\"\r\n },\r\n \"blob\": {\r\n \"keyType\": \"Account\",\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2021-05-27T08:46:05.3474965Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2021-05-27T08:46:05.2381313Z\",\r\n \"primaryEndpoints\": {\r\n \"file\": \"https://stopstestrg3851.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851/providers/Microsoft.Storage/storageAccounts/stopstestrg3851?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnMzg1MS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnMzg1MT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "340be519-7fdd-4639-b764-ca828b84d5b0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/22.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "128bd8e6-a386-496d-bc17-423b33e68497" + ], + "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": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "a11d4b5a-ba9a-4826-aa57-e6f6f3a5f324" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084625Z:a11d4b5a-ba9a-4826-aa57-e6f6f3a5f324" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:46:24 GMT" + ], + "Content-Length": [ + "1082" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"kind\": \"FileStorage\",\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851/providers/Microsoft.Storage/storageAccounts/stopstestrg3851\",\r\n \"name\": \"stopstestrg3851\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"keyCreationTime\": {\r\n \"key1\": \"2021-05-27T08:46:05.3474965Z\",\r\n \"key2\": \"2021-05-27T08:46:05.3474965Z\"\r\n },\r\n \"privateEndpointConnections\": [],\r\n \"largeFileSharesState\": \"Enabled\",\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\": \"2021-05-27T08:46:05.3474965Z\"\r\n },\r\n \"blob\": {\r\n \"keyType\": \"Account\",\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2021-05-27T08:46:05.3474965Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2021-05-27T08:46:05.2381313Z\",\r\n \"primaryEndpoints\": {\r\n \"file\": \"https://stopstestrg3851.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851/providers/Microsoft.Storage/storageAccounts/stopstestrg3851?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnMzg1MS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnMzg1MT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "709bc984-6c67-47ae-9225-75adee8b7b6a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/22.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "413e8768-2322-4d03-944f-b6352ebf61ca" + ], + "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": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "d4fc1067-fec0-412b-89ce-45f522c24535" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084625Z:d4fc1067-fec0-412b-89ce-45f522c24535" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:46:25 GMT" + ], + "Content-Length": [ + "1082" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"kind\": \"FileStorage\",\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851/providers/Microsoft.Storage/storageAccounts/stopstestrg3851\",\r\n \"name\": \"stopstestrg3851\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"keyCreationTime\": {\r\n \"key1\": \"2021-05-27T08:46:05.3474965Z\",\r\n \"key2\": \"2021-05-27T08:46:05.3474965Z\"\r\n },\r\n \"privateEndpointConnections\": [],\r\n \"largeFileSharesState\": \"Enabled\",\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\": \"2021-05-27T08:46:05.3474965Z\"\r\n },\r\n \"blob\": {\r\n \"keyType\": \"Account\",\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2021-05-27T08:46:05.3474965Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2021-05-27T08:46:05.2381313Z\",\r\n \"primaryEndpoints\": {\r\n \"file\": \"https://stopstestrg3851.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"westus\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851/providers/Microsoft.Storage/storageAccounts/stopstestrg3851/fileServices/default/shares/sharepstestrg3851?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnMzg1MS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnMzg1MS9maWxlU2VydmljZXMvZGVmYXVsdC9zaGFyZXMvc2hhcmVwc3Rlc3RyZzM4NTE/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"enabledProtocols\": \"NFS\",\r\n \"rootSquash\": \"RootSquash\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8d8d8ac3-af76-41b9-9181-1bc073603948" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/22.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "92" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"0x8D920EBE9C72E0A\"" + ], + "x-ms-request-id": [ + "b41356bd-4f8d-44ba-afce-d7568bfa660d" + ], + "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": [ + "dd6a45ad-e51f-49be-b18a-54e358abb1b8" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084626Z:dd6a45ad-e51f-49be-b18a-54e358abb1b8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:46:25 GMT" + ], + "Content-Length": [ + "350" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851/providers/Microsoft.Storage/storageAccounts/stopstestrg3851/fileServices/default/shares/sharepstestrg3851\",\r\n \"name\": \"sharepstestrg3851\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices/shares\",\r\n \"properties\": {\r\n \"enabledProtocols\": \"NFS\",\r\n \"rootSquash\": \"RootSquash\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851/providers/Microsoft.Storage/storageAccounts/stopstestrg3851/fileServices/default/shares/sharepstestrg3851?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnMzg1MS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnMzg1MS9maWxlU2VydmljZXMvZGVmYXVsdC9zaGFyZXMvc2hhcmVwc3Rlc3RyZzM4NTE/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "16feeebf-a37b-42c9-822f-ed93d1633fe4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/22.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"0x8D920EBE9C72E0A\"" + ], + "x-ms-request-id": [ + "a36f6bb6-83bb-4e92-9ad8-0f33363a825a" + ], + "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": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "e727c713-89c8-4af7-8f2e-233c7a1cb3d2" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084626Z:e727c713-89c8-4af7-8f2e-233c7a1cb3d2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:46:26 GMT" + ], + "Content-Length": [ + "544" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851/providers/Microsoft.Storage/storageAccounts/stopstestrg3851/fileServices/default/shares/sharepstestrg3851\",\r\n \"name\": \"sharepstestrg3851\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices/shares\",\r\n \"etag\": \"\\\"0x8D920EBE9C72E0A\\\"\",\r\n \"properties\": {\r\n \"leaseStatus\": \"unlocked\",\r\n \"leaseState\": \"available\",\r\n \"signedIdentifiers\": [],\r\n \"accessTier\": \"Premium\",\r\n \"lastModifiedTime\": \"2021-05-27T08:46:26Z\",\r\n \"shareQuota\": 100,\r\n \"enabledProtocols\": \"NFS\",\r\n \"rootSquash\": \"RootSquash\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851/providers/Microsoft.Storage/storageAccounts/stopstestrg3851/fileServices/default/shares/sharepstestrg3851?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnMzg1MS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnMzg1MS9maWxlU2VydmljZXMvZGVmYXVsdC9zaGFyZXMvc2hhcmVwc3Rlc3RyZzM4NTE/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ce034b82-2e67-4939-b706-5c83641ecdf3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/22.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"0x8D920EBEA524945\"" + ], + "x-ms-request-id": [ + "dbdc90fb-918d-4af6-8f1a-73a348079b6f" + ], + "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": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "00035a8f-635b-4db9-8a16-de1a8d5ed8f5" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084627Z:00035a8f-635b-4db9-8a16-de1a8d5ed8f5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:46:27 GMT" + ], + "Content-Length": [ + "546" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851/providers/Microsoft.Storage/storageAccounts/stopstestrg3851/fileServices/default/shares/sharepstestrg3851\",\r\n \"name\": \"sharepstestrg3851\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices/shares\",\r\n \"etag\": \"\\\"0x8D920EBEA524945\\\"\",\r\n \"properties\": {\r\n \"leaseStatus\": \"unlocked\",\r\n \"leaseState\": \"available\",\r\n \"signedIdentifiers\": [],\r\n \"accessTier\": \"Premium\",\r\n \"lastModifiedTime\": \"2021-05-27T08:46:27Z\",\r\n \"shareQuota\": 100,\r\n \"enabledProtocols\": \"NFS\",\r\n \"rootSquash\": \"NoRootSquash\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851/providers/Microsoft.Storage/storageAccounts/stopstestrg3851/fileServices/default/shares/sharepstestrg3851?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnMzg1MS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnMzg1MS9maWxlU2VydmljZXMvZGVmYXVsdC9zaGFyZXMvc2hhcmVwc3Rlc3RyZzM4NTE/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"properties\": {\r\n \"rootSquash\": \"NoRootSquash\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0c55e3bd-ad4e-4c16-acb9-04cbaa87f236" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/22.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "62" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"0x8D920EBEA524945\"" + ], + "x-ms-request-id": [ + "09b89357-52e8-4b46-9f1f-059956515c95" + ], + "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": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "974f19f0-003a-42b7-bd2b-632df944d27d" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084627Z:974f19f0-003a-42b7-bd2b-632df944d27d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:46:26 GMT" + ], + "Content-Length": [ + "327" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851/providers/Microsoft.Storage/storageAccounts/stopstestrg3851/fileServices/default/shares/sharepstestrg3851\",\r\n \"name\": \"sharepstestrg3851\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices/shares\",\r\n \"properties\": {\r\n \"rootSquash\": \"NoRootSquash\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg3851/providers/Microsoft.Storage/storageAccounts/stopstestrg3851?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnMzg1MS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnMzg1MT9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9b826058-c095-4a0b-a598-a821b35a4917" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/22.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f5050bfc-4038-498d-bed1-9939a636911d" + ], + "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": [ + "e5401539-df59-4655-8e1e-40d9997a038f" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084632Z:e5401539-df59-4655-8e1e-40d9997a038f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:46:32 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourcegroups/pstestrg3851?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlZ3JvdXBzL3BzdGVzdHJnMzg1MT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "60764bca-5a35-45ea-a939-87b94f895fd0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzM4NTEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "3ae50be4-6ef2-468e-8acb-770cfe581ec2" + ], + "x-ms-correlation-request-id": [ + "3ae50be4-6ef2-468e-8acb-770cfe581ec2" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084635Z:3ae50be4-6ef2-468e-8acb-770cfe581ec2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:46:34 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzM4NTEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSek00TlRFdFYwVlRWRlZUSWl3aWFtOWlURzlqWVhScGIyNGlPaUozWlhOMGRYTWlmUT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzM4NTEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "bae06499-e3ac-401a-b9d2-e966a87c1655" + ], + "x-ms-correlation-request-id": [ + "bae06499-e3ac-401a-b9d2-e966a87c1655" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084650Z:bae06499-e3ac-401a-b9d2-e966a87c1655" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:46:49 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzM4NTEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSek00TlRFdFYwVlRWRlZUSWl3aWFtOWlURzlqWVhScGIyNGlPaUozWlhOMGRYTWlmUT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzM4NTEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "271a7d9e-6967-4613-a32d-d73edbd787bb" + ], + "x-ms-correlation-request-id": [ + "271a7d9e-6967-4613-a32d-d73edbd787bb" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084706Z:271a7d9e-6967-4613-a32d-d73edbd787bb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:47:05 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzM4NTEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSek00TlRFdFYwVlRWRlZUSWl3aWFtOWlURzlqWVhScGIyNGlPaUozWlhOMGRYTWlmUT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "f794e673-2ad3-4a29-b0b2-1814bd2d5ff5" + ], + "x-ms-correlation-request-id": [ + "f794e673-2ad3-4a29-b0b2-1814bd2d5ff5" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084721Z:f794e673-2ad3-4a29-b0b2-1814bd2d5ff5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:47:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzM4NTEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSek00TlRFdFYwVlRWRlZUSWl3aWFtOWlURzlqWVhScGIyNGlPaUozWlhOMGRYTWlmUT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.34" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "0d10c007-6f9c-405a-bf67-bc697a1c2d95" + ], + "x-ms-correlation-request-id": [ + "0d10c007-6f9c-405a-bf67-bc697a1c2d95" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210527T084721Z:0d10c007-6f9c-405a-bf67-bc697a1c2d95" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 27 May 2021 08:47:21 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-AzureStorageShareNFS": [ + "pstestrg3851" + ] + }, + "Variables": { + "SubscriptionId": "45b60d85-fd72-427a-a708-f994d26e593e" + } +} \ No newline at end of file diff --git a/src/Storage/Storage.Management/ChangeLog.md b/src/Storage/Storage.Management/ChangeLog.md index 133cdb9aeb34..4e4287327636 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -18,6 +18,9 @@ - Additional information about change #1 --> ## Upcoming Release +* Support create file share with NFS/SMB enabledEnabledProtocol and RootSquash, and update share with RootSquash + - `New-AzRmStorageShare` + - `Update-AzRmStorageShare` ## Version 3.7.0 * Supported file share snapshot diff --git a/src/Storage/Storage.Management/File/NewAzureStorageShare.cs b/src/Storage/Storage.Management/File/NewAzureStorageShare.cs index 3019b727add3..6d9fb10829a7 100644 --- a/src/Storage/Storage.Management/File/NewAzureStorageShare.cs +++ b/src/Storage/Storage.Management/File/NewAzureStorageShare.cs @@ -112,11 +112,32 @@ public string AccessTier [Parameter(Mandatory = false, HelpMessage = "Create a snapshot of existing share with same name.")] public SwitchParameter Snapshot { get; set; } + + [Parameter(Mandatory = false, + HelpMessage = "Sets protocols for file shares. It cannot be changed after file share creation. Possible values include: 'SMB', 'NFS'")] + [ValidateSet(EnabledProtocols.NFS, + EnabledProtocols.SMB, + IgnoreCase = true)] + public string EnabledProtocol { get; set; } + + [Parameter(Mandatory = false, + HelpMessage = "Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash'")] + [ValidateSet(RootSquashType.NoRootSquash, + RootSquashType.RootSquash, + RootSquashType.AllSquash, + IgnoreCase = true)] + public string RootSquash { get; set; } public override void ExecuteCmdlet() { base.ExecuteCmdlet(); + if (!string.IsNullOrWhiteSpace(this.RootSquash) + && ! EnabledProtocols.NFS.Equals(this.EnabledProtocol, StringComparison.OrdinalIgnoreCase)) + { + throw new ArgumentException("RootSquash should not be specified when EnabledProtocols is not NFS.", "RootSquash"); + } + if (ShouldProcess(this.Name, "Create share")) { switch (ParameterSetName) @@ -145,8 +166,10 @@ public override void ExecuteCmdlet() new FileShare( metadata: MetadataDictionary, shareQuota: shareQuota, + enabledProtocols: this.EnabledProtocol, + rootSquash: this.RootSquash, accessTier: accessTier), - expand: expand); + expand: expand); WriteObject(new PSShare(share)); } diff --git a/src/Storage/Storage.Management/File/UpdateAzureStorageShare.cs b/src/Storage/Storage.Management/File/UpdateAzureStorageShare.cs index 4c0b83b94556..2a8cac5f6f68 100644 --- a/src/Storage/Storage.Management/File/UpdateAzureStorageShare.cs +++ b/src/Storage/Storage.Management/File/UpdateAzureStorageShare.cs @@ -118,7 +118,7 @@ public int QuotaGiB [AllowEmptyCollection] [ValidateNotNull] public Hashtable Metadata { get; set; } - + [Parameter( Mandatory = false, HelpMessage = "Access tier for specific share. StorageV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.")] @@ -141,6 +141,14 @@ public string AccessTier } private string accessTier = null; + [Parameter(Mandatory = false, + HelpMessage = "Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash'")] + [ValidateSet(RootSquashType.NoRootSquash, + RootSquashType.RootSquash, + RootSquashType.AllSquash, + IgnoreCase = true)] + public string RootSquash { get; set; } + public override void ExecuteCmdlet() { base.ExecuteCmdlet(); @@ -177,6 +185,7 @@ public override void ExecuteCmdlet() new FileShare( metadata: MetadataDictionary, shareQuota: shareQuota, + rootSquash: this.RootSquash, accessTier: accessTier)); WriteObject(new PSShare(Share)); diff --git a/src/Storage/Storage.Management/Models/PSShare.cs b/src/Storage/Storage.Management/Models/PSShare.cs index 7a86069fec1e..d010435d900a 100644 --- a/src/Storage/Storage.Management/Models/PSShare.cs +++ b/src/Storage/Storage.Management/Models/PSShare.cs @@ -39,6 +39,8 @@ public PSShare(StorageModels.FileShare share) this.Etag = share.Etag; this.LastModifiedTime = share.LastModifiedTime; this.QuotaGiB = share.ShareQuota; + this.EnabledProtocols = share.EnabledProtocols; + this.RootSquash = share.RootSquash; this.Version = share.Version; this.Deleted = share.Deleted; this.DeletedTime = share.DeletedTime; @@ -63,6 +65,8 @@ public PSShare(FileShareItem share) this.Etag = share.Etag; this.LastModifiedTime = share.LastModifiedTime; this.QuotaGiB = share.ShareQuota; + this.EnabledProtocols = share.EnabledProtocols; + this.RootSquash = share.RootSquash; this.Version = share.Version; this.Deleted = share.Deleted; this.DeletedTime = share.DeletedTime; @@ -76,28 +80,26 @@ public PSShare(FileShareItem share) this.SnapshotTime = share.SnapshotTime; } - [Ps1Xml(Label = "ResourceGroupName", Target = ViewControl.List, Position = 0)] + [Ps1Xml(Label = "ResourceGroupName", Target = ViewControl.Table, Position = 0)] public string ResourceGroupName { get; set; } - [Ps1Xml(Label = "StorageAccountName", Target = ViewControl.List, Position = 1)] + [Ps1Xml(Label = "StorageAccountName", Target = ViewControl.Table, Position = 1)] public string StorageAccountName { get; set; } public string Id { get; set; } - [Ps1Xml(Label = "Name", Target = ViewControl.List, Position = 2)] + [Ps1Xml(Label = "Name", Target = ViewControl.Table, Position = 2)] public string Name { get; set; } public string Type { get; set; } - [Ps1Xml(Label = "Etag", Target = ViewControl.List, Position = 3)] public string Etag { get; set; } - [Ps1Xml(Label = "QuotaGiB", Target = ViewControl.List, Position = 4)] + [Ps1Xml(Label = "QuotaGiB", Target = ViewControl.Table, Position = 3)] public int? QuotaGiB { get; set; } public IDictionary Metadata { get; set; } - [Ps1Xml(Label = "LastModifiedTime", Target = ViewControl.List, ScriptBlock = "$_.LastModifiedTime.ToString(\"u\")", Position = 5)] public DateTime? LastModifiedTime { get; set; } [Ps1Xml(Label = "Version", Target = ViewControl.List, Position = 7)] diff --git a/src/Storage/Storage.Management/Storage.Management.format.ps1xml b/src/Storage/Storage.Management/Storage.Management.format.ps1xml index 8d2141b22847..d7e29a31a8fe 100644 --- a/src/Storage/Storage.Management/Storage.Management.format.ps1xml +++ b/src/Storage/Storage.Management/Storage.Management.format.ps1xml @@ -410,7 +410,7 @@ Left - + Left @@ -446,7 +446,7 @@ Left - EnabledProtocol + EnabledProtocols Left diff --git a/src/Storage/Storage.Management/help/Get-AzRmStorageShare.md b/src/Storage/Storage.Management/help/Get-AzRmStorageShare.md index ed2e4c77ea05..257822cc45a7 100644 --- a/src/Storage/Storage.Management/help/Get-AzRmStorageShare.md +++ b/src/Storage/Storage.Management/help/Get-AzRmStorageShare.md @@ -53,8 +53,8 @@ PS C:\>Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccount ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount -Name QuotaGiB EnabledProtocol AccessTier Deleted Version ShareUsageBytes ----- -------- --------------- ---------- ------- ------- --------------- +Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes +---- -------- ---------------- ---------- ------- ------- --------------- myshare 5120 ``` @@ -66,8 +66,8 @@ PS C:\>Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccount ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount -Name QuotaGiB EnabledProtocol AccessTier Deleted Version ShareUsageBytes ----- -------- --------------- ---------- ------- ------- --------------- +Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes +---- -------- ---------------- ---------- ------- ------- --------------- share1 5120 TransactionOptimized share2 5120 TransactionOptimized ``` @@ -80,8 +80,8 @@ Get-AzStorageAccount -ResourceGroupName "myresourcegroup" -StorageAccountName "m ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount -Name QuotaGiB EnabledProtocol AccessTier Deleted Version ShareUsageBytes ----- -------- --------------- ---------- ------- ------- --------------- +Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes +---- -------- ---------------- ---------- ------- ------- --------------- myshare 5120 ``` @@ -93,8 +93,8 @@ PS C:\>Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccount ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount -Name QuotaGiB EnabledProtocol AccessTier Deleted Version ShareUsageBytes ----- -------- --------------- ---------- ------- ------- --------------- +Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes +---- -------- ---------------- ---------- ------- ------- --------------- myshare 5120 2097152 ``` @@ -106,8 +106,8 @@ PS C:\> Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccoun ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount -Name QuotaGiB EnabledProtocol AccessTier Deleted Version ShareUsageBytes snapshotTime ----- -------- --------------- ---------- ------- ------- --------------- ------------ +Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes snapshotTime +---- -------- ---------------- ---------- ------- ------- --------------- ------------ testshare1 5120 TransactionOptimized 2021-05-10T08:04:08Z testshare1 5120 TransactionOptimized share1 100 TransactionOptimized True 01D61FD1FC5498B6 @@ -121,9 +121,9 @@ PS C:\> Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccoun ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount -Name QuotaGiB EnabledProtocol AccessTier Deleted Version ShareUsageBytes snapshotTime ----- -------- --------------- ---------- ------- ------- --------------- ------------ -testshare1 5120 TransactionOptimized 2021-05-10T08:04:08Z +Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes snapshotTime +---- -------- ---------------- ---------- ------- ------- --------------- ------------ +testshare1 5120 TransactionOptimized 2021-05-10T08:04:08Z ``` This command gets a single file share snapshot with share name and snapshot time. diff --git a/src/Storage/Storage.Management/help/New-AzRmStorageShare.md b/src/Storage/Storage.Management/help/New-AzRmStorageShare.md index 0285fdd55f4a..f8b9fadbcb66 100644 --- a/src/Storage/Storage.Management/help/New-AzRmStorageShare.md +++ b/src/Storage/Storage.Management/help/New-AzRmStorageShare.md @@ -15,15 +15,15 @@ Creates a Storage file share. ### AccountName (Default) ``` New-AzRmStorageShare [-ResourceGroupName] [-StorageAccountName] -Name - [-QuotaGiB ] [-Metadata ] [-AccessTier ] [-Snapshot] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-QuotaGiB ] [-Metadata ] [-AccessTier ] [-Snapshot] [-EnabledProtocol ] + [-RootSquash ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` New-AzRmStorageShare -StorageAccount -Name [-QuotaGiB ] - [-Metadata ] [-AccessTier ] [-Snapshot] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-Metadata ] [-AccessTier ] [-Snapshot] [-EnabledProtocol ] [-RootSquash ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -70,7 +70,7 @@ myshare Hot This command creates a Storage file share with accesstier as Hot. -### Example 3: Create a Storage file share snapshot of an existing share +### Example 4: Create a Storage file share snapshot of an existing share ``` PS C:\>$shareSnapshot = New-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -Snapshot @@ -83,6 +83,24 @@ myshare 20 This command creates a Storage file share snapshot of an existing base file share. +### Example 5: Create a Storage file share with EnabledProtocol proeprty as NFS, and RootSquash property as NoRootSquash +``` +PS C:\>$share = New-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -EnabledProtocol NFS -RootSquash NoRootSquash + +PS C:\> $share + + ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount + +Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes +---- -------- ---------------- ---------- ------- ------- --------------- +myshare NFS + +PS C:\> $share.RootSquash +NoRootSquash +``` + +This command creates a Storage file share with EnabledProtocol proeprty as NFS, and RootSquash proeprty as NoRootSquash. + ## PARAMETERS ### -AccessTier @@ -116,6 +134,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -EnabledProtocol +Sets protocols for file shares. It cannot be changed after file share creation. Possible values include: 'SMB', 'NFS' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: +Accepted values: NFS, SMB + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Metadata Share Metadata @@ -176,6 +210,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RootSquash +Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: +Accepted values: NoRootSquash, RootSquash, AllSquash + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Snapshot Create a snapshot of existing share with same name. diff --git a/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md b/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md index 0ebfaccfadda..6a65577b15c2 100644 --- a/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md +++ b/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md @@ -15,27 +15,29 @@ Modifies a Storage file share. ### AccountName (Default) ``` Update-AzRmStorageShare [-ResourceGroupName] [-StorageAccountName] -Name - [-QuotaGiB ] [-Metadata ] [-AccessTier ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-QuotaGiB ] [-Metadata ] [-AccessTier ] [-RootSquash ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Update-AzRmStorageShare -Name -StorageAccount [-QuotaGiB ] - [-Metadata ] [-AccessTier ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-Metadata ] [-AccessTier ] [-RootSquash ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### ShareResourceId ``` Update-AzRmStorageShare [-ResourceId] [-QuotaGiB ] [-Metadata ] - [-AccessTier ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-AccessTier ] [-RootSquash ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ### ShareObject ``` Update-AzRmStorageShare -InputObject [-QuotaGiB ] [-Metadata ] - [-AccessTier ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-AccessTier ] [-RootSquash ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -51,8 +53,8 @@ PS C:\>$share ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount -Name QuotaGiB EnabledProtocol AccessTier Deleted Version ShareUsageBytes ----- -------- --------------- ---------- ------- ------- --------------- +Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes +---- -------- ---------------- ---------- ------- ------- --------------- myshare 200 PS C:\>$share.Metadata @@ -79,8 +81,8 @@ PS C:\>Get-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccount ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount -Name QuotaGiB EnabledProtocol AccessTier Deleted Version ShareUsageBytes ----- -------- --------------- ---------- ------- ------- --------------- +Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes +---- -------- ---------------- ---------- ------- ------- --------------- share1 5000 share2 5000 ``` @@ -100,6 +102,24 @@ myshare Cool This command modifies a Storage file share with accesstier as Cool. +### Example 5: Modifies rootsquash for a file shares in a Storage account +``` +PS C:\>$share = Update-AzRmStorageShare -ResourceGroupName "myresourcegroup" -StorageAccountName "mystorageaccount" -Name "myshare" -RootSquash NoRootSquash + +PS C:\>$share + + ResourceGroupName: myresourcegroup, StorageAccountName: mystorageaccount + +Name QuotaGiB EnabledProtocols AccessTier Deleted Version ShareUsageBytes +---- -------- ---------------- ---------- ------- ------- --------------- +myshare + +PS C:\> $share.RootSquash +NoRootSquash +``` + +This command modifies share RootSquash property to NoRootSquash. RootSquash property is only avaialbe on share with EnabledProtocol as NFS. + ## PARAMETERS ### -AccessTier @@ -223,6 +243,22 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -RootSquash +Sets reduction of the access rights for the remote superuser. Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash' + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: +Accepted values: NoRootSquash, RootSquash, AllSquash + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -StorageAccount Storage account object From 10d24f7adda6d6aa5d7f78699f02095500639807 Mon Sep 17 00:00:00 2001 From: Wei Wei Date: Thu, 27 May 2021 17:17:46 +0800 Subject: [PATCH 2/3] [Storage] Support EnableSmbMultichannel --- .../ScenarioTests/StorageFileTests.cs | 7 + .../ScenarioTests/StorageFileTests.ps1 | 45 + .../TestFileServiceProperties.json | 1335 +++++++++++++++++ src/Storage/Storage.Management/ChangeLog.md | 2 + .../UpdateAzAzStorageFileServiceProperty.cs | 30 +- .../Models/PSFileServiceProperties.cs | 33 +- .../Storage.Management.format.ps1xml | 4 + .../Update-AzStorageFileServiceProperty.md | 37 +- 8 files changed, 1486 insertions(+), 7 deletions(-) create mode 100644 src/Storage/Storage.Management.Test/SessionRecords/Microsoft.Azure.Commands.Management.Storage.Test.ScenarioTests.StorageFileTests/TestFileServiceProperties.json diff --git a/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.cs b/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.cs index 97e86e592555..3ec4a81bff94 100644 --- a/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.cs +++ b/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.cs @@ -59,6 +59,13 @@ public void TestShareSnapshot() TestController.NewInstance.RunPsTest(_logger, "Test-ShareSnapshot"); } + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestFileServiceProperties() + { + TestController.NewInstance.RunPsTest(_logger, "Test-FileServiceProperties"); + } + [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAzureStorageShareNFS() diff --git a/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.ps1 b/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.ps1 index 21ce91d70335..f8a0fa02cc10 100644 --- a/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.ps1 +++ b/src/Storage/Storage.Management.Test/ScenarioTests/StorageFileTests.ps1 @@ -358,6 +358,51 @@ function Test-ShareSnapshot } } +<# +.SYNOPSIS +Test Storage File Service Properties +.DESCRIPTION +SmokeTest +#> +function Test-FileServiceProperties +{ + # Setup + $rgname = Get-StorageManagementTestResourceName; + + try + { + # Test + $stoname = 'sto' + $rgname; + $stotype = 'Premium_LRS'; + $loc = Get-ProviderLocation_Canary2 ResourceManagement; + $kind = 'FileStorage' + + Write-Verbose "RGName: $rgname | Loc: $loc" + New-AzResourceGroup -Name $rgname -Location $loc; + + # $loc = Get-ProviderLocation_Canary ResourceManagement; + New-AzStorageAccount -ResourceGroupName $rgname -Name $stoname -Location $loc -Type $stotype -Kind $kind + $stos = Get-AzStorageAccount -ResourceGroupName $rgname; + + # Enable MC, and set smb setting + Update-AzStorageFileServiceProperty -ResourceGroupName $rgname -StorageAccountName $stoname -EnableSmbMultichannel $true + $servicePropertie = Get-AzStorageFileServiceProperty -ResourceGroupName $rgname -StorageAccountName $stoname + Assert-AreEqual $true $servicePropertie.ProtocolSettings.Smb.Multichannel.Enabled + + # Disable MC, update smb setting + Update-AzStorageFileServiceProperty -ResourceGroupName $rgname -StorageAccountName $stoname -EnableSmbMultichannel $false + $servicePropertie = Get-AzStorageFileServiceProperty -ResourceGroupName $rgname -StorageAccountName $stoname + Assert-AreEqual $false $servicePropertie.ProtocolSettings.Smb.Multichannel.Enabled + + Remove-AzStorageAccount -Force -ResourceGroupName $rgname -Name $stoname; + } + finally + { + # Cleanup + Clean-ResourceGroup $rgname + } +} + <# .SYNOPSIS Test Azure storage share with NFS diff --git a/src/Storage/Storage.Management.Test/SessionRecords/Microsoft.Azure.Commands.Management.Storage.Test.ScenarioTests.StorageFileTests/TestFileServiceProperties.json b/src/Storage/Storage.Management.Test/SessionRecords/Microsoft.Azure.Commands.Management.Storage.Test.ScenarioTests.StorageFileTests/TestFileServiceProperties.json new file mode 100644 index 000000000000..553e0cfb1ff7 --- /dev/null +++ b/src/Storage/Storage.Management.Test/SessionRecords/Microsoft.Azure.Commands.Management.Storage.Test.ScenarioTests.StorageFileTests/TestFileServiceProperties.json @@ -0,0 +1,1335 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourcegroups/pstestrg7602?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlZ3JvdXBzL3BzdGVzdHJnNzYwMj9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"centraluseuap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "462e6523-e9c0-4fbb-b13a-8d293ae556b1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.31" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "2e56ce79-327b-43c3-adfe-aeab8e5f383e" + ], + "x-ms-correlation-request-id": [ + "2e56ce79-327b-43c3-adfe-aeab8e5f383e" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094846Z:2e56ce79-327b-43c3-adfe-aeab8e5f383e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:48:45 GMT" + ], + "Content-Length": [ + "184" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602\",\r\n \"name\": \"pstestrg7602\",\r\n \"location\": \"centraluseuap\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.Storage/checkNameAvailability?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAyMS0wNC0wMQ==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"stopstestrg7602\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f198da7b-89ad-40c3-9c65-bdcfbedcc850" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "81" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "fac8e20c-0625-4f96-80c3-6a958421d204" + ], + "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": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "35e56361-54a3-429b-9d33-ce86f68758e4" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094847Z:35e56361-54a3-429b-9d33-ce86f68758e4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:48:47 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": true\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNzYwMi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNzYwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\"\r\n },\r\n \"kind\": \"FileStorage\",\r\n \"location\": \"centraluseuap\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f198da7b-89ad-40c3-9c65-bdcfbedcc850" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "106" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.Storage/locations/centraluseuap/asyncoperations/b3ab2b4d-890e-43bf-a6c6-b376cc0a9049?monitor=true&api-version=2021-04-01" + ], + "Retry-After": [ + "17" + ], + "x-ms-request-id": [ + "b3ab2b4d-890e-43bf-a6c6-b376cc0a9049" + ], + "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": [ + "1190" + ], + "x-ms-correlation-request-id": [ + "7c1e1df6-01c7-41e0-a604-7cd59358fe6b" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094855Z:7c1e1df6-01c7-41e0-a604-7cd59358fe6b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:48:55 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/centraluseuap/asyncoperations/b3ab2b4d-890e-43bf-a6c6-b376cc0a9049?monitor=true&api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvY2VudHJhbHVzZXVhcC9hc3luY29wZXJhdGlvbnMvYjNhYjJiNGQtODkwZS00M2JmLWE2YzYtYjM3NmNjMGE5MDQ5P21vbml0b3I9dHJ1ZSZhcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f198da7b-89ad-40c3-9c65-bdcfbedcc850" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "211ad8b7-e35f-45ef-a18a-a87088893ec1" + ], + "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": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "1b85d0b4-e8f4-494d-9333-326406a42d3b" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094912Z:1b85d0b4-e8f4-494d-9333-326406a42d3b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:49:12 GMT" + ], + "Content-Length": [ + "1000" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"kind\": \"FileStorage\",\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602\",\r\n \"name\": \"stopstestrg7602\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"largeFileSharesState\": \"Enabled\",\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\": \"2021-02-19T09:48:54.7451984Z\"\r\n },\r\n \"blob\": {\r\n \"keyType\": \"Account\",\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2021-02-19T09:48:54.7451984Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2021-02-19T09:48:54.6852513Z\",\r\n \"primaryEndpoints\": {\r\n \"file\": \"https://stopstestrg7602.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"centraluseuap\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNzYwMi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNzYwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f198da7b-89ad-40c3-9c65-bdcfbedcc850" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "0cac5503-54bf-4ea9-9507-f29a8176795c" + ], + "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": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "0a501c6d-c5ca-4d43-9fe5-a3e0b370becf" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094913Z:0a501c6d-c5ca-4d43-9fe5-a3e0b370becf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:49:12 GMT" + ], + "Content-Length": [ + "1000" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"kind\": \"FileStorage\",\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602\",\r\n \"name\": \"stopstestrg7602\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"largeFileSharesState\": \"Enabled\",\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\": \"2021-02-19T09:48:54.7451984Z\"\r\n },\r\n \"blob\": {\r\n \"keyType\": \"Account\",\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2021-02-19T09:48:54.7451984Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2021-02-19T09:48:54.6852513Z\",\r\n \"primaryEndpoints\": {\r\n \"file\": \"https://stopstestrg7602.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"centraluseuap\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNzYwMi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzP2FwaS12ZXJzaW9uPTIwMjEtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9710d130-6999-497e-b72a-8b49fe4b83fc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "130528e6-5d41-4f37-87a3-7ef70f9e5da0" + ], + "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": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "5f4f0cff-6b9a-4c78-b6af-572553876860" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094913Z:5f4f0cff-6b9a-4c78-b6af-572553876860" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:49:12 GMT" + ], + "Content-Length": [ + "1012" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"kind\": \"FileStorage\",\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602\",\r\n \"name\": \"stopstestrg7602\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"largeFileSharesState\": \"Enabled\",\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\": \"2021-02-19T09:48:54.7451984Z\"\r\n },\r\n \"blob\": {\r\n \"keyType\": \"Account\",\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2021-02-19T09:48:54.7451984Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2021-02-19T09:48:54.6852513Z\",\r\n \"primaryEndpoints\": {\r\n \"file\": \"https://stopstestrg7602.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"centraluseuap\",\r\n \"statusOfPrimary\": \"available\"\r\n }\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNzYwMi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNzYwMi9maWxlU2VydmljZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"protocolSettings\": {\r\n \"smb\": {\r\n \"multichannel\": {\r\n \"enabled\": true\r\n },\r\n \"versions\": \"SMB2.1;SMB3.0;SMB3.1.1\",\r\n \"authenticationMethods\": \"Kerberos;NTLMv2\",\r\n \"kerberosTicketEncryption\": \"RC4-HMAC;AES-256\",\r\n \"channelEncryption\": \"AES-128-CCM;AES-128-GCM;AES-256-GCM\"\r\n }\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5ea3d596-e2ad-455c-9842-64823cac1f62" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "378" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "05b4d9e5-63bd-4dd8-8271-2b72bfaeda73" + ], + "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": [ + "1188" + ], + "x-ms-correlation-request-id": [ + "00e79c2f-3b3a-4cbe-88dc-446791050053" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094916Z:00e79c2f-3b3a-4cbe-88dc-446791050053" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:49:16 GMT" + ], + "Content-Length": [ + "500" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices\",\r\n \"properties\": {\r\n \"protocolSettings\": {\r\n \"smb\": {\r\n \"multichannel\": {\r\n \"enabled\": true\r\n },\r\n \"versions\": \"SMB2.1;SMB3.0;SMB3.1.1\",\r\n \"authenticationMethods\": \"Kerberos;NTLMv2\",\r\n \"kerberosTicketEncryption\": \"RC4-HMAC;AES-256\",\r\n \"channelEncryption\": \"AES-128-CCM;AES-128-GCM;AES-256-GCM\"\r\n }\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNzYwMi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNzYwMi9maWxlU2VydmljZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"protocolSettings\": {\r\n \"smb\": {\r\n \"multichannel\": {\r\n \"enabled\": false\r\n },\r\n \"versions\": \"SMB3.1.1\",\r\n \"authenticationMethods\": \"Kerberos\",\r\n \"kerberosTicketEncryption\": \"AES-256\",\r\n \"channelEncryption\": \"AES-128-CCM\"\r\n }\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e811e374-97d0-4724-bd7a-bcd45021cd09" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "325" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "80571efd-f9e5-40f6-bfc3-b29d1f19507c" + ], + "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": [ + "1187" + ], + "x-ms-correlation-request-id": [ + "9201b683-c4ea-4faf-915f-0bdc558c27d2" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094918Z:9201b683-c4ea-4faf-915f-0bdc558c27d2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:49:17 GMT" + ], + "Content-Length": [ + "447" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices\",\r\n \"properties\": {\r\n \"protocolSettings\": {\r\n \"smb\": {\r\n \"multichannel\": {\r\n \"enabled\": false\r\n },\r\n \"versions\": \"SMB3.1.1\",\r\n \"authenticationMethods\": \"Kerberos\",\r\n \"kerberosTicketEncryption\": \"AES-256\",\r\n \"channelEncryption\": \"AES-128-CCM\"\r\n }\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNzYwMi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNzYwMi9maWxlU2VydmljZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"protocolSettings\": {\r\n \"smb\": {\r\n \"versions\": \"\",\r\n \"authenticationMethods\": \"\",\r\n \"kerberosTicketEncryption\": \"\",\r\n \"channelEncryption\": \"\"\r\n }\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e9ae5c44-9acc-423d-bde0-dc3488175a87" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "224" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "5d2336c4-894e-4028-bde3-80ddd0ccd13d" + ], + "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": [ + "1186" + ], + "x-ms-correlation-request-id": [ + "8965738a-ee92-4882-94ee-bc349dea3673" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094919Z:8965738a-ee92-4882-94ee-bc349dea3673" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:49:18 GMT" + ], + "Content-Length": [ + "380" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices\",\r\n \"properties\": {\r\n \"protocolSettings\": {\r\n \"smb\": {\r\n \"versions\": \"\",\r\n \"authenticationMethods\": \"\",\r\n \"kerberosTicketEncryption\": \"\",\r\n \"channelEncryption\": \"\"\r\n }\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNzYwMi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNzYwMi9maWxlU2VydmljZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5ea3d596-e2ad-455c-9842-64823cac1f62" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "69ea6af4-408e-41aa-b19a-ce246fef30e0" + ], + "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": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "0c572467-5d1d-4918-adbc-b557820fc369" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094917Z:0c572467-5d1d-4918-adbc-b557820fc369" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:49:16 GMT" + ], + "Content-Length": [ + "625" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices\",\r\n \"properties\": {\r\n \"protocolSettings\": {\r\n \"smb\": {\r\n \"multichannel\": {\r\n \"enabled\": true\r\n },\r\n \"versions\": \"SMB2.1;SMB3.0;SMB3.1.1\",\r\n \"authenticationMethods\": \"Kerberos;NTLMv2\",\r\n \"kerberosTicketEncryption\": \"RC4-HMAC;AES-256\",\r\n \"channelEncryption\": \"AES-128-CCM;AES-128-GCM;AES-256-GCM\"\r\n }\r\n },\r\n \"cors\": {\r\n \"corsRules\": []\r\n },\r\n \"shareDeleteRetentionPolicy\": {\r\n \"enabled\": true,\r\n \"days\": 7\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNzYwMi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNzYwMi9maWxlU2VydmljZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9b7df0fb-fa1f-406a-8a7c-2e872f71bfcd" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "cd64f2a9-b24f-4628-b8dc-f555d18a7397" + ], + "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": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "386e3adf-03f8-44d6-81ab-be6faabfda2a" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094917Z:386e3adf-03f8-44d6-81ab-be6faabfda2a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:49:16 GMT" + ], + "Content-Length": [ + "625" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices\",\r\n \"properties\": {\r\n \"protocolSettings\": {\r\n \"smb\": {\r\n \"multichannel\": {\r\n \"enabled\": true\r\n },\r\n \"versions\": \"SMB2.1;SMB3.0;SMB3.1.1\",\r\n \"authenticationMethods\": \"Kerberos;NTLMv2\",\r\n \"kerberosTicketEncryption\": \"RC4-HMAC;AES-256\",\r\n \"channelEncryption\": \"AES-128-CCM;AES-128-GCM;AES-256-GCM\"\r\n }\r\n },\r\n \"cors\": {\r\n \"corsRules\": []\r\n },\r\n \"shareDeleteRetentionPolicy\": {\r\n \"enabled\": true,\r\n \"days\": 7\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNzYwMi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNzYwMi9maWxlU2VydmljZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e811e374-97d0-4724-bd7a-bcd45021cd09" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "96459275-27e4-4de5-8293-0d60f7dd7208" + ], + "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": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "16f2e36f-fc38-4d01-80be-caabfc56e391" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094918Z:16f2e36f-fc38-4d01-80be-caabfc56e391" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:49:17 GMT" + ], + "Content-Length": [ + "572" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices\",\r\n \"properties\": {\r\n \"protocolSettings\": {\r\n \"smb\": {\r\n \"multichannel\": {\r\n \"enabled\": false\r\n },\r\n \"versions\": \"SMB3.1.1\",\r\n \"authenticationMethods\": \"Kerberos\",\r\n \"kerberosTicketEncryption\": \"AES-256\",\r\n \"channelEncryption\": \"AES-128-CCM\"\r\n }\r\n },\r\n \"cors\": {\r\n \"corsRules\": []\r\n },\r\n \"shareDeleteRetentionPolicy\": {\r\n \"enabled\": true,\r\n \"days\": 7\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNzYwMi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNzYwMi9maWxlU2VydmljZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9c698871-538c-47e9-81f0-2d9647e05b6d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "413f7ddb-9bd3-480a-b3fb-0d4b8cf9f61b" + ], + "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": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "8cd14767-1384-481c-8842-c9967a7779cf" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094918Z:8cd14767-1384-481c-8842-c9967a7779cf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:49:18 GMT" + ], + "Content-Length": [ + "572" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices\",\r\n \"properties\": {\r\n \"protocolSettings\": {\r\n \"smb\": {\r\n \"multichannel\": {\r\n \"enabled\": false\r\n },\r\n \"versions\": \"SMB3.1.1\",\r\n \"authenticationMethods\": \"Kerberos\",\r\n \"kerberosTicketEncryption\": \"AES-256\",\r\n \"channelEncryption\": \"AES-128-CCM\"\r\n }\r\n },\r\n \"cors\": {\r\n \"corsRules\": []\r\n },\r\n \"shareDeleteRetentionPolicy\": {\r\n \"enabled\": true,\r\n \"days\": 7\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNzYwMi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNzYwMi9maWxlU2VydmljZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e9ae5c44-9acc-423d-bde0-dc3488175a87" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "48c43d5f-3437-4bad-8ace-449748ebbdf1" + ], + "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": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "f4a7ea69-ea57-402a-92c0-d02d0f3b6d89" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094920Z:f4a7ea69-ea57-402a-92c0-d02d0f3b6d89" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:49:19 GMT" + ], + "Content-Length": [ + "444" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices\",\r\n \"properties\": {\r\n \"protocolSettings\": {\r\n \"smb\": {\r\n \"multichannel\": {\r\n \"enabled\": false\r\n }\r\n }\r\n },\r\n \"cors\": {\r\n \"corsRules\": []\r\n },\r\n \"shareDeleteRetentionPolicy\": {\r\n \"enabled\": true,\r\n \"days\": 7\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNzYwMi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNzYwMi9maWxlU2VydmljZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "164e9aed-e077-4f28-a2cb-11631080d95d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "fd60526a-e9aa-442f-99d4-2e5fa16821e8" + ], + "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": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "1b567b6c-f4d3-449d-b2f8-adfda0c43891" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094920Z:1b567b6c-f4d3-449d-b2f8-adfda0c43891" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:49:19 GMT" + ], + "Content-Length": [ + "444" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"id\": \"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602/fileServices/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Storage/storageAccounts/fileServices\",\r\n \"properties\": {\r\n \"protocolSettings\": {\r\n \"smb\": {\r\n \"multichannel\": {\r\n \"enabled\": false\r\n }\r\n }\r\n },\r\n \"cors\": {\r\n \"corsRules\": []\r\n },\r\n \"shareDeleteRetentionPolicy\": {\r\n \"enabled\": true,\r\n \"days\": 7\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/pstestrg7602/providers/Microsoft.Storage/storageAccounts/stopstestrg7602?api-version=2021-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlR3JvdXBzL3BzdGVzdHJnNzYwMi9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3BzdGVzdHJnNzYwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0052186e-18a2-461e-b865-0eb695f82a19" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "af52d7c5-06b2-40e0-b02f-5402ec41a713" + ], + "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": [ + "8e0eb425-07dd-4a41-a428-5daf4c0dff48" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094930Z:8e0eb425-07dd-4a41-a428-5daf4c0dff48" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:49:29 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourcegroups/pstestrg7602?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL3Jlc291cmNlZ3JvdXBzL3BzdGVzdHJnNzYwMj9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25224da1-fed4-442c-9ee6-08d41c465bd8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.31" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzc2MDItQ0VOVFJBTFVTRVVBUCIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzZXVhcCJ9?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-request-id": [ + "6dfa7b25-9b0e-46ac-8598-2ecbb2e55949" + ], + "x-ms-correlation-request-id": [ + "6dfa7b25-9b0e-46ac-8598-2ecbb2e55949" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094934Z:6dfa7b25-9b0e-46ac-8598-2ecbb2e55949" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:49:33 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzc2MDItQ0VOVFJBTFVTRVVBUCIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzZXVhcCJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSemMyTURJdFEwVk9WRkpCVEZWVFJWVkJVQ0lzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpaWFZoY0NKOT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.31" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzc2MDItQ0VOVFJBTFVTRVVBUCIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzZXVhcCJ9?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-request-id": [ + "6b0cd5e9-b90e-4747-ad85-e7c13f88fd8e" + ], + "x-ms-correlation-request-id": [ + "6b0cd5e9-b90e-4747-ad85-e7c13f88fd8e" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T094949Z:6b0cd5e9-b90e-4747-ad85-e7c13f88fd8e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:49:49 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzc2MDItQ0VOVFJBTFVTRVVBUCIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzZXVhcCJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSemMyTURJdFEwVk9WRkpCVEZWVFJWVkJVQ0lzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpaWFZoY0NKOT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.31" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzc2MDItQ0VOVFJBTFVTRVVBUCIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzZXVhcCJ9?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-request-id": [ + "242a2c99-3eb3-4f88-a877-ebab8021f68b" + ], + "x-ms-correlation-request-id": [ + "242a2c99-3eb3-4f88-a877-ebab8021f68b" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T095005Z:242a2c99-3eb3-4f88-a877-ebab8021f68b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:50:05 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzc2MDItQ0VOVFJBTFVTRVVBUCIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzZXVhcCJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSemMyTURJdFEwVk9WRkpCVEZWVFJWVkJVQ0lzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpaWFZoY0NKOT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.31" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-request-id": [ + "d210b485-c24d-41a8-9aa1-a559298251d2" + ], + "x-ms-correlation-request-id": [ + "d210b485-c24d-41a8-9aa1-a559298251d2" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T095020Z:d210b485-c24d-41a8-9aa1-a559298251d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:50:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QU1RFU1RSRzc2MDItQ0VOVFJBTFVTRVVBUCIsImpvYkxvY2F0aW9uIjoiY2VudHJhbHVzZXVhcCJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNDViNjBkODUtZmQ3Mi00MjdhLWE3MDgtZjk5NGQyNmU1OTNlL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVTFSRlUxUlNSemMyTURJdFEwVk9WRkpCVEZWVFJWVkJVQ0lzSW1wdllreHZZMkYwYVc5dUlqb2lZMlZ1ZEhKaGJIVnpaWFZoY0NKOT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29719.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.31" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-request-id": [ + "652e8d5c-1272-4606-a89f-965081335ea0" + ], + "x-ms-correlation-request-id": [ + "652e8d5c-1272-4606-a89f-965081335ea0" + ], + "x-ms-routing-request-id": [ + "SOUTHEASTASIA:20210219T095021Z:652e8d5c-1272-4606-a89f-965081335ea0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 19 Feb 2021 09:50:21 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-FileServiceProperties": [ + "pstestrg7602" + ] + }, + "Variables": { + "SubscriptionId": "45b60d85-fd72-427a-a708-f994d26e593e" + } +} \ No newline at end of file diff --git a/src/Storage/Storage.Management/ChangeLog.md b/src/Storage/Storage.Management/ChangeLog.md index 4e4287327636..f25c62e38a4a 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -21,6 +21,8 @@ * Support create file share with NFS/SMB enabledEnabledProtocol and RootSquash, and update share with RootSquash - `New-AzRmStorageShare` - `Update-AzRmStorageShare` +* Supported enable Smb Multichannel on File service + - `Update-AzStorageFileServiceProperty` ## Version 3.7.0 * Supported file share snapshot diff --git a/src/Storage/Storage.Management/File/UpdateAzAzStorageFileServiceProperty.cs b/src/Storage/Storage.Management/File/UpdateAzAzStorageFileServiceProperty.cs index b8c75f1e7455..b60cfea3553d 100644 --- a/src/Storage/Storage.Management/File/UpdateAzAzStorageFileServiceProperty.cs +++ b/src/Storage/Storage.Management/File/UpdateAzAzStorageFileServiceProperty.cs @@ -109,7 +109,24 @@ public int ShareRetentionDays shareRetentionDays = value; } } - private int? shareRetentionDays = null; + private int? shareRetentionDays = null; + + [Parameter( + Mandatory = false, + HelpMessage = "Enable Multichannel by set to $true, disable Multichannel by set to $false. Applies to Premium FileStorage only.")] + [ValidateNotNullOrEmpty] + public bool EnableSmbMultichannel + { + get + { + return enableSmbMultichannel is null ? false : enableSmbMultichannel.Value; + } + set + { + enableSmbMultichannel = value; + } + } + private bool? enableSmbMultichannel = null; public override void ExecuteCmdlet() { @@ -160,8 +177,17 @@ public override void ExecuteCmdlet() } } + ProtocolSettings protocolSettings = null; + if (this.enableSmbMultichannel != null) + { + protocolSettings = new ProtocolSettings(); + protocolSettings.Smb = new SmbSetting(); + protocolSettings.Smb.Multichannel = new Multichannel(); + protocolSettings.Smb.Multichannel.Enabled = this.enableSmbMultichannel; + } + FileServiceProperties serviceProperties = this.StorageClient.FileServices.SetServiceProperties(this.ResourceGroupName, this.StorageAccountName, - new FileServiceProperties(shareDeleteRetentionPolicy: deleteRetentionPolicy)); + new FileServiceProperties(shareDeleteRetentionPolicy: deleteRetentionPolicy, protocolSettings: protocolSettings)); // Get all File service properties from server for output serviceProperties = this.StorageClient.FileServices.GetServiceProperties(this.ResourceGroupName, this.StorageAccountName); diff --git a/src/Storage/Storage.Management/Models/PSFileServiceProperties.cs b/src/Storage/Storage.Management/Models/PSFileServiceProperties.cs index d99adf7f58da..c6583a0b274e 100644 --- a/src/Storage/Storage.Management/Models/PSFileServiceProperties.cs +++ b/src/Storage/Storage.Management/Models/PSFileServiceProperties.cs @@ -36,6 +36,7 @@ public class PSFileServiceProperties [Ps1Xml(Label = "DeleteRetentionPolicy.Days", Target = ViewControl.Table, ScriptBlock = "$_.DeleteRetentionPolicy.Days", Position = 3)] public PSDeleteRetentionPolicy ShareDeleteRetentionPolicy { get; set; } public PSCorsRules Cors { get; set; } + public PSProtocolSettings ProtocolSettings { get; set; } public PSFileServiceProperties() { } @@ -49,8 +50,9 @@ public PSFileServiceProperties(FileServiceProperties policy) this.Type = policy.Type; this.Cors = policy.Cors is null ? null : new PSCorsRules(policy.Cors); this.ShareDeleteRetentionPolicy = policy.ShareDeleteRetentionPolicy is null ? null : new PSDeleteRetentionPolicy(policy.ShareDeleteRetentionPolicy); + this.ProtocolSettings = policy.ProtocolSettings is null ? null : new PSProtocolSettings(policy.ProtocolSettings); } - public FileServiceProperties ParseBlobServiceProperties() + public FileServiceProperties ParseFileServiceProperties() { return new FileServiceProperties { @@ -59,5 +61,34 @@ public FileServiceProperties ParseBlobServiceProperties() }; } } + public class PSProtocolSettings + { + public PSSmbSetting Smb { get; set; } + + public PSProtocolSettings(ProtocolSettings protocolSettings) + { + this.Smb = protocolSettings.Smb is null ? null : new PSSmbSetting(protocolSettings.Smb); + } + } + + public class PSSmbSetting + { + public PSMultichannel Multichannel { get; set; } + + public PSSmbSetting(SmbSetting smbSetting) + { + this.Multichannel = smbSetting.Multichannel is null ? null : new PSMultichannel(smbSetting.Multichannel); + } + } + + public class PSMultichannel + { + public bool? Enabled { get; set; } + + public PSMultichannel(Multichannel multichannel) + { + this.Enabled = multichannel.Enabled; + } + } } diff --git a/src/Storage/Storage.Management/Storage.Management.format.ps1xml b/src/Storage/Storage.Management/Storage.Management.format.ps1xml index d7e29a31a8fe..5a63f06ad852 100644 --- a/src/Storage/Storage.Management/Storage.Management.format.ps1xml +++ b/src/Storage/Storage.Management/Storage.Management.format.ps1xml @@ -326,6 +326,10 @@ $_.ShareDeleteRetentionPolicy.Days + + + $_.ProtocolSettings.Smb.Multichannel.Enabled + diff --git a/src/Storage/Storage.Management/help/Update-AzStorageFileServiceProperty.md b/src/Storage/Storage.Management/help/Update-AzStorageFileServiceProperty.md index a6027a21b59d..07e8ef565915 100644 --- a/src/Storage/Storage.Management/help/Update-AzStorageFileServiceProperty.md +++ b/src/Storage/Storage.Management/help/Update-AzStorageFileServiceProperty.md @@ -15,22 +15,22 @@ Modifies the service properties for the Azure Storage File service. ### AccountName (Default) ``` Update-AzStorageFileServiceProperty [-ResourceGroupName] [-StorageAccountName] - [-EnableShareDeleteRetentionPolicy ] [-ShareRetentionDays ] + [-EnableShareDeleteRetentionPolicy ] [-ShareRetentionDays ] [-EnableSmbMultichannel ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Update-AzStorageFileServiceProperty -StorageAccount - [-EnableShareDeleteRetentionPolicy ] [-ShareRetentionDays ] + [-EnableShareDeleteRetentionPolicy ] [-ShareRetentionDays ] [-EnableSmbMultichannel ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ### FileServicePropertiesResourceId ``` Update-AzStorageFileServiceProperty [-ResourceId] [-EnableShareDeleteRetentionPolicy ] - [-ShareRetentionDays ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-ShareRetentionDays ] [-EnableSmbMultichannel ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -46,10 +46,24 @@ StorageAccountName : mystorageaccount ResourceGroupName : myresourcegroup ShareDeleteRetentionPolicy.Enabled : True ShareDeleteRetentionPolicy.Days : 5 +ProtocolSettings.Smb.Multichannel.Enabled : False ``` This command enables File share softdelete delete with retention days as 5 +### Example 2: Enable Smb Multichannel +```powershell +PS C:\> Update-AzStorageFileServiceProperty -ResourceGroupName "myresourcegroup" -AccountName "mystorageaccount" -EnableSmbMultichannel $true + +StorageAccountName : mystorageaccount +ResourceGroupName : myresourcegroup +ShareDeleteRetentionPolicy.Enabled : True +ShareDeleteRetentionPolicy.Days : 5 +ProtocolSettings.Smb.Multichannel.Enabled : True +``` + +This command enables Smb Multichannel, only supported on Premium FileStorage account. + ## PARAMETERS ### -DefaultProfile @@ -82,6 +96,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -EnableSmbMultichannel +Enable Multichannel by set to $true, disable Multichannel by set to $false. Applies to Premium FileStorage only. + +```yaml +Type: System.Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource Group Name. From bdaae0e050dc12e85af9f11d954b4b11b9644b5c Mon Sep 17 00:00:00 2001 From: Wei Wei Date: Fri, 28 May 2021 12:23:11 +0800 Subject: [PATCH 3/3] fix PR review comments --- src/Storage/Storage.Management/ChangeLog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Storage/Storage.Management/ChangeLog.md b/src/Storage/Storage.Management/ChangeLog.md index f25c62e38a4a..d6d363376904 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -18,7 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release -* Support create file share with NFS/SMB enabledEnabledProtocol and RootSquash, and update share with RootSquash +* Supported create file share with NFS/SMB enabledEnabledProtocol and RootSquash, and update share with RootSquash - `New-AzRmStorageShare` - `Update-AzRmStorageShare` * Supported enable Smb Multichannel on File service