diff --git a/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsAliasTests.cs b/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsAliasTests.cs index da2a86b4365f..fbddeafdcb11 100644 --- a/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsAliasTests.cs +++ b/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsAliasTests.cs @@ -85,5 +85,12 @@ public void TestNegativeAdlsAccount() { NewInstance.RunPsTest(_logger, string.Format("Test-NegativeDataLakeStoreAccount -location '{0}'", AdlsTestsBase.ResourceGroupLocation)); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestAdlsEnumerateAndRestoreDeletedItem() + { + NewInstance.RunPsTest(_logger, string.Format("Test-AdlsEnumerateAndRestoreDeletedItem -location '{0}'", AdlsTestsBase.ResourceGroupLocation)); + } } } diff --git a/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsAliasTests.ps1 b/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsAliasTests.ps1 index b8eafb56c879..b2468165224e 100644 --- a/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsAliasTests.ps1 +++ b/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsAliasTests.ps1 @@ -989,4 +989,104 @@ function CreateAndGetVirtualNetwork ($resourceGroupName, $vnetName, $location = $getVnet = Get-AzVirtualNetwork -Name $vnetName -ResourceGroupName $resourceGroupName return $getVnet +} + +<# +.SYNOPSIS +Tests DataLakeStore deleted items operations (Enumerate, Restore). +#> +function Test-AdlsEnumerateAndRestoreDeletedItem +{ + param + ( + $fileToCopy, + $location + ) + + if ([string]::IsNullOrEmpty($location)) + { + $location = Get-Location -providerNamespace "Microsoft.CognitiveServices" -resourceType "accounts" -preferredLocation "West US"; + } + + try + { + # Creating Account + $resourceGroupName = Get-ResourceGroupName + $accountName = Get-DataLakeStoreAccountName + New-AzureRmResourceGroup -Name $resourceGroupName -Location $location + $accountCreated = New-AzureRMDataLakeStoreAccount -ResourceGroupName $resourceGroupName -Name $accountName -Location $location + + Assert-AreEqual $accountName $accountCreated.Name + Assert-AreEqual $location $accountCreated.Location + Assert-AreEqual "Microsoft.DataLakeStore/accounts" $accountCreated.Type + Assert-True {$accountCreated.Id -like "*$resourceGroupName*"} + + # In loop to check if account exists + for ($i = 0; $i -le 60; $i++) + { + [array]$accountGet = Get-AzureRMDataLakeStoreAccount -ResourceGroupName $resourceGroupName -Name $accountName + if ($accountGet[0].ProvisioningState -like "Succeeded") + { + Assert-AreEqual $accountName $accountGet[0].Name + Assert-AreEqual $location $accountGet[0].Location + Assert-AreEqual "Microsoft.DataLakeStore/accounts" $accountGet[0].Type + Assert-True {$accountGet[0].Id -like "*$resourceGroupName*"} + break + } + + Write-Host "account not yet provisioned. current state: $($accountGet[0].ProvisioningState)" + [Microsoft.WindowsAzure.Commands.Utilities.Common.TestMockSupport]::Delay(30000) + Assert-False {$i -eq 60} " Data Lake Store account is not in succeeded state even after 30 min." + } + + # define all the files and folders + $folderToCreate1 = "/adlfolder1" + $folderToCreate2 = "/adlfolder2" + $fileToCreate1 = "/adlfolder1/adlfile1" + $fileToCreate2 = "/adlfolder2/adlfile2" + + # Create and get Empty folder + $result = New-AzureRMDataLakeStoreItem -Account $accountName -path $folderToCreate1 -Folder + Assert-NotNull $result "No value was returned on folder creation" + + $result = New-AzureRMDataLakeStoreItem -Account $accountName -path $folderToCreate2 -Folder + Assert-NotNull $result "No value was returned on folder creation" + + # Create and get Empty File + $result = New-AzureRMDataLakeStoreItem -Account $accountName -path $fileToCreate1 + Assert-NotNull $result "No value was returned on empty file creation" + $result = New-AzureRMDataLakeStoreItem -Account $accountName -path $fileToCreate2 + Assert-NotNull $result "No value was returned on empty file creation" + + # delete a file + Assert-True {Remove-AdlStoreItem -Account $accountName -paths $fileToCreate1 -force -passthru } "Remove File Failed" + Assert-Throws {Get-AdlStoreItem -Account $accountName -path $fileToCreate1} + Assert-True {Remove-AdlStoreItem -Account $accountName -paths $fileToCreate2 -force -passthru } "Remove File Failed" + Assert-Throws {Get-AdlStoreItem -Account $accountName -path $fileToCreate2} + + # search delete folder + $out = Get-AdlStoreDeletedItem -Account $accountName -filter "adlfolder1" -Count 1000 + foreach($item in $out) + { + Assert-True { Restore-AdlStoreDeletedItem -Account $accountName -Path $item.TrashDirPath -Destination $item.OriginalPath -Type "file" -Force -Passthru} + } + + $out = Get-AdlStoreDeletedItem -Account $accountName -filter "adlfolder2" -Count 1000 + foreach($item in $out) + { + Assert-True { Restore-AdlStoreDeletedItem -Account $accountName $item -Force -Passthru} + } + + # Delete Data Lake account + Assert-True {Remove-AzureRMDataLakeStoreAccount -ResourceGroupName $resourceGroupName -Name $accountName -Force -PassThru} "Remove Account failed." + + # Verify that it is gone by trying to get it again + Assert-Throws {Get-AzureRMDataLakeStoreAccount -ResourceGroupName $resourceGroupName -Name $accountName} + } + finally + { + # cleanup the resource group that was used in case it still exists. This is a best effort task, we ignore failures here. + Invoke-HandledCmdlet -Command {Remove-AzureRMDataLakeStoreAccount -ResourceGroupName $resourceGroupName -Name $accountName -Force -ErrorAction SilentlyContinue} -IgnoreFailures + Invoke-HandledCmdlet -Command {Remove-AzureRmResourceGroup -Name $resourceGroupName -Force -ErrorAction SilentlyContinue} -IgnoreFailures + } } \ No newline at end of file diff --git a/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsTests.cs b/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsTests.cs index 607f413f5a51..5b5a63ae39d0 100644 --- a/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsTests.cs +++ b/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsTests.cs @@ -83,5 +83,12 @@ public void TestNegativeAdlsAccount() { NewInstance.RunPsTest(_logger, string.Format("Test-NegativeDataLakeStoreAccount -location '{0}'", AdlsTestsBase.ResourceGroupLocation)); } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestAdlsEnumerateAndRestoreDeletedItem() + { + NewInstance.RunPsTest(_logger, string.Format("Test-EnumerateAndRestoreDataLakeStoreDeletedItem -location '{0}'", AdlsTestsBase.ResourceGroupLocation)); + } } } diff --git a/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsTests.ps1 b/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsTests.ps1 index 2f44be5aefc5..ded2d4eac3c6 100644 --- a/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsTests.ps1 +++ b/src/DataLakeStore/DataLakeStore.Test/ScenarioTests/AdlsTests.ps1 @@ -989,4 +989,104 @@ function CreateAndGetVirtualNetwork ($resourceGroupName, $vnetName, $location = $getVnet = Get-AzVirtualNetwork -Name $vnetName -ResourceGroupName $resourceGroupName return $getVnet +} + +<# +.SYNOPSIS +Tests DataLakeStore deleted items operations (Enumerate, Restore). +#> +function Test-EnumerateAndRestoreDataLakeStoreDeletedItem +{ + param + ( + $fileToCopy, + $location + ) + + if ([string]::IsNullOrEmpty($location)) + { + $location = Get-Location -providerNamespace "Microsoft.CognitiveServices" -resourceType "accounts" -preferredLocation "West US"; + } + + try + { + # Creating Account + $resourceGroupName = Get-ResourceGroupName + $accountName = Get-DataLakeStoreAccountName + New-AzureRmResourceGroup -Name $resourceGroupName -Location $location + $accountCreated = New-AzureRMDataLakeStoreAccount -ResourceGroupName $resourceGroupName -Name $accountName -Location $location + + Assert-AreEqual $accountName $accountCreated.Name + Assert-AreEqual $location $accountCreated.Location + Assert-AreEqual "Microsoft.DataLakeStore/accounts" $accountCreated.Type + Assert-True {$accountCreated.Id -like "*$resourceGroupName*"} + + # In loop to check if account exists + for ($i = 0; $i -le 60; $i++) + { + [array]$accountGet = Get-AzureRMDataLakeStoreAccount -ResourceGroupName $resourceGroupName -Name $accountName + if ($accountGet[0].ProvisioningState -like "Succeeded") + { + Assert-AreEqual $accountName $accountGet[0].Name + Assert-AreEqual $location $accountGet[0].Location + Assert-AreEqual "Microsoft.DataLakeStore/accounts" $accountGet[0].Type + Assert-True {$accountGet[0].Id -like "*$resourceGroupName*"} + break + } + + Write-Host "account not yet provisioned. current state: $($accountGet[0].ProvisioningState)" + [Microsoft.WindowsAzure.Commands.Utilities.Common.TestMockSupport]::Delay(30000) + Assert-False {$i -eq 60} " Data Lake Store account is not in succeeded state even after 30 min." + } + + # define all the files and folders + $folderToCreate1 = "/adlfolder1" + $folderToCreate2 = "/adlfolder2" + $fileToCreate1 = "/adlfolder1/adlfile1" + $fileToCreate2 = "/adlfolder2/adlfile2" + + # Create and get Empty folder + $result = New-AzureRMDataLakeStoreItem -Account $accountName -path $folderToCreate1 -Folder + Assert-NotNull $result "No value was returned on folder creation" + + $result = New-AzureRMDataLakeStoreItem -Account $accountName -path $folderToCreate2 -Folder + Assert-NotNull $result "No value was returned on folder creation" + + # Create and get Empty File + $result = New-AzureRMDataLakeStoreItem -Account $accountName -path $fileToCreate1 + Assert-NotNull $result "No value was returned on empty file creation" + $result = New-AzureRMDataLakeStoreItem -Account $accountName -path $fileToCreate2 + Assert-NotNull $result "No value was returned on empty file creation" + + # delete a file + Assert-True {Remove-AdlStoreItem -Account $accountName -paths $fileToCreate1 -force -passthru } "Remove File Failed" + Assert-Throws {Get-AdlStoreItem -Account $accountName -path $fileToCreate1} + Assert-True {Remove-AdlStoreItem -Account $accountName -paths $fileToCreate2 -force -passthru } "Remove File Failed" + Assert-Throws {Get-AdlStoreItem -Account $accountName -path $fileToCreate2} + + # search delete folder + $out = Get-AzDataLakeStoreDeletedItem -Account $accountName -filter "adlfolder1" -Count 1000 + foreach($item in $out) + { + Assert-True { Restore-AzDataLakeStoreDeletedItem -Account $accountName -Path $item.TrashDirPath -Destination $item.OriginalPath -Type "file" -Force -Passthru} + } + + $out = Get-AzDataLakeStoreDeletedItem -Account $accountName -filter "adlfolder2" -Count 1000 + foreach($item in $out) + { + Assert-True { Restore-AzDataLakeStoreDeletedItem -Account $accountName $item -Force -Passthru} + } + + # Delete Data Lake account + Assert-True {Remove-AzureRMDataLakeStoreAccount -ResourceGroupName $resourceGroupName -Name $accountName -Force -PassThru} "Remove Account failed." + + # Verify that it is gone by trying to get it again + Assert-Throws {Get-AzureRMDataLakeStoreAccount -ResourceGroupName $resourceGroupName -Name $accountName} + } + finally + { + # cleanup the resource group that was used in case it still exists. This is a best effort task, we ignore failures here. + Invoke-HandledCmdlet -Command {Remove-AzureRMDataLakeStoreAccount -ResourceGroupName $resourceGroupName -Name $accountName -Force -ErrorAction SilentlyContinue} -IgnoreFailures + Invoke-HandledCmdlet -Command {Remove-AzureRmResourceGroup -Name $resourceGroupName -Force -ErrorAction SilentlyContinue} -IgnoreFailures + } } \ No newline at end of file diff --git a/src/DataLakeStore/DataLakeStore.Test/SessionRecords/Microsoft.Azure.Commands.DataLakeStore.Test.ScenarioTests.AdlsAliasTests/TestAdlsEnumerateAndRestoreDeletedItem.json b/src/DataLakeStore/DataLakeStore.Test/SessionRecords/Microsoft.Azure.Commands.DataLakeStore.Test.ScenarioTests.AdlsAliasTests/TestAdlsEnumerateAndRestoreDeletedItem.json new file mode 100644 index 000000000000..49a9578b76e6 --- /dev/null +++ b/src/DataLakeStore/DataLakeStore.Test/SessionRecords/Microsoft.Azure.Commands.DataLakeStore.Test.ScenarioTests.AdlsAliasTests/TestAdlsEnumerateAndRestoreDeletedItem.json @@ -0,0 +1,1078 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourcegroups/ps532?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlZ3JvdXBzL3BzNTMyP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d413b895-ccfe-4c88-9bf0-38a52b45546c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.16" + ], + "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": [ + "b6523f39-b62f-4269-ba6d-97ec25b66c07" + ], + "x-ms-correlation-request-id": [ + "b6523f39-b62f-4269-ba6d-97ec25b66c07" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082807Z:b6523f39-b62f-4269-ba6d-97ec25b66c07" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:28:07 GMT" + ], + "Content-Length": [ + "164" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps532\",\r\n \"name\": \"ps532\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps532/providers/Microsoft.DataLakeStore/accounts/ps4230?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNTMyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9wczQyMzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4d5a81c8-970a-4d5a-8756-7df523ae954e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "8b4d375d-456d-4f1f-97d1-37054add33a2" + ], + "x-ms-correlation-request-id": [ + "8b4d375d-456d-4f1f-97d1-37054add33a2" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082808Z:8b4d375d-456d-4f1f-97d1-37054add33a2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:28:08 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "148" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/ps4230' under resource group 'ps532' was not found.\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps532/providers/Microsoft.DataLakeStore/accounts/ps4230?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNTMyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9wczQyMzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "99cf1744-a9c2-4d5f-91fd-1bba7d7ff934" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "8774227c-913f-4f50-aea6-8b27d1d41e72" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082853Z:8774227c-913f-4f50-aea6-8b27d1d41e72" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Wed, 13 Feb 2019 08:28:53 GMT" + ], + "Content-Length": [ + "991" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"dataLakePerformanceTierState\": \"Disabled\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"ps4230.azuredatalakestore.net\",\r\n \"accountId\": \"8a1482fd-515a-461e-8dfb-70186a1ecdbe\",\r\n \"creationTime\": \"2019-02-13T08:28:17.5004995Z\",\r\n \"lastModifiedTime\": \"2019-02-13T08:28:17.5004995Z\"\r\n },\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"a8f4b5bf-3d7c-4f94-ad21-5b81886075e1\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"id\": \"/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps532/providers/Microsoft.DataLakeStore/accounts/ps4230\",\r\n \"name\": \"ps4230\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps532/providers/Microsoft.DataLakeStore/accounts/ps4230?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNTMyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9wczQyMzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "475a87af-8bf4-4d23-b3fc-d4660f1874fa" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4dc3d993-1f59-423c-8ff5-2df921bd336f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "132c21bc-3f28-46e5-a812-fb07d04c8139" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082855Z:132c21bc-3f28-46e5-a812-fb07d04c8139" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Wed, 13 Feb 2019 08:28:55 GMT" + ], + "Content-Length": [ + "991" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"dataLakePerformanceTierState\": \"Disabled\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"ps4230.azuredatalakestore.net\",\r\n \"accountId\": \"8a1482fd-515a-461e-8dfb-70186a1ecdbe\",\r\n \"creationTime\": \"2019-02-13T08:28:17.5004995Z\",\r\n \"lastModifiedTime\": \"2019-02-13T08:28:17.5004995Z\"\r\n },\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"a8f4b5bf-3d7c-4f94-ad21-5b81886075e1\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"id\": \"/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps532/providers/Microsoft.DataLakeStore/accounts/ps4230\",\r\n \"name\": \"ps4230\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps532/providers/Microsoft.DataLakeStore/accounts/ps4230?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNTMyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9wczQyMzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0b71a674-a9a1-4d6c-99de-a77a0757a080" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "92d0455b-383c-49eb-b13e-6f72a451f4a6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "9b2f04fd-514b-41f9-aa00-42d6bc3c3914" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082915Z:9b2f04fd-514b-41f9-aa00-42d6bc3c3914" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Wed, 13 Feb 2019 08:29:15 GMT" + ], + "Content-Length": [ + "991" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"dataLakePerformanceTierState\": \"Disabled\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"ps4230.azuredatalakestore.net\",\r\n \"accountId\": \"8a1482fd-515a-461e-8dfb-70186a1ecdbe\",\r\n \"creationTime\": \"2019-02-13T08:28:17.5004995Z\",\r\n \"lastModifiedTime\": \"2019-02-13T08:28:17.5004995Z\"\r\n },\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"a8f4b5bf-3d7c-4f94-ad21-5b81886075e1\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"id\": \"/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps532/providers/Microsoft.DataLakeStore/accounts/ps4230\",\r\n \"name\": \"ps4230\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps532/providers/Microsoft.DataLakeStore/accounts/ps4230?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNTMyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9wczQyMzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e9733124-d015-4c83-ae9e-772a845128e4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "5f812e46-9d8e-4ce7-8e6f-f6b0b4a07ea6" + ], + "x-ms-correlation-request-id": [ + "5f812e46-9d8e-4ce7-8e6f-f6b0b4a07ea6" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082922Z:5f812e46-9d8e-4ce7-8e6f-f6b0b4a07ea6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:29:21 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "148" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/ps4230' under resource group 'ps532' was not found.\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps532/providers/Microsoft.DataLakeStore/accounts/ps4230?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNTMyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9wczQyMzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "be20b052-66c6-4521-9f63-f3f4dd3ffe89" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "882e4c9e-0d20-4987-93b4-f6d2e53a4bdb" + ], + "x-ms-correlation-request-id": [ + "882e4c9e-0d20-4987-93b4-f6d2e53a4bdb" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082922Z:882e4c9e-0d20-4987-93b4-f6d2e53a4bdb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:29:21 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "148" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/ps4230' under resource group 'ps532' was not found.\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps532/providers/Microsoft.DataLakeStore/accounts/ps4230?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNTMyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9wczQyMzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"properties\": {\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"encryptionState\": \"Enabled\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c20b89d2-4d2b-412e-8192-2174e20945fc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "223" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourcegroups/ps532/providers/Microsoft.DataLakeStore/accounts/ps4230/operationresults/0?api-version=2016-11-01" + ], + "Retry-After": [ + "10" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/8a1482fd-515a-461e-8dfb-70186a1ecdbe0?api-version=2016-11-01&expanded=true" + ], + "x-ms-request-id": [ + "1cbdebbc-0a22-456c-8d37-a6fcb8d2f909" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "e76a20e5-aead-47c5-9a8e-186167abe96a" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082817Z:e76a20e5-aead-47c5-9a8e-186167abe96a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Wed, 13 Feb 2019 08:28:16 GMT" + ], + "Content-Length": [ + "559" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"8a1482fd-515a-461e-8dfb-70186a1ecdbe\"\r\n },\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"tenantId\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"id\": \"/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps532/providers/Microsoft.DataLakeStore/accounts/ps4230\",\r\n \"name\": \"ps4230\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/8a1482fd-515a-461e-8dfb-70186a1ecdbe0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25SZXN1bHRzLzhhMTQ4MmZkLTUxNWEtNDYxZS04ZGZiLTcwMTg2YTFlY2RiZTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e0601e7c-4f2f-4955-b84a-d435e8cb9a5b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "6693826b-e825-4a61-9adf-3062f835acd5" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082828Z:6693826b-e825-4a61-9adf-3062f835acd5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Wed, 13 Feb 2019 08:28:27 GMT" + ], + "Content-Length": [ + "23" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/8a1482fd-515a-461e-8dfb-70186a1ecdbe0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25SZXN1bHRzLzhhMTQ4MmZkLTUxNWEtNDYxZS04ZGZiLTcwMTg2YTFlY2RiZTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c842a7a2-bde2-4c20-9b7f-d32f97a9327d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "a838bccd-a741-4205-b3fa-547bfd7e4b4e" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082840Z:a838bccd-a741-4205-b3fa-547bfd7e4b4e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Wed, 13 Feb 2019 08:28:40 GMT" + ], + "Content-Length": [ + "23" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/8a1482fd-515a-461e-8dfb-70186a1ecdbe0?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25SZXN1bHRzLzhhMTQ4MmZkLTUxNWEtNDYxZS04ZGZiLTcwMTg2YTFlY2RiZTA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9fc6f4f6-200e-4859-ae77-4cda69f51db3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "1b64e210-afda-4e9b-b050-06a65ad010c6" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082852Z:1b64e210-afda-4e9b-b050-06a65ad010c6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Wed, 13 Feb 2019 08:28:51 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps532/providers/Microsoft.DataLakeStore/accounts/ps4230?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNTMyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9hY2NvdW50cy9wczQyMzA/YXBpLXZlcnNpb249MjAxNi0xMS0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ebc8f7b9-fe62-450f-b001-625ba526e6f1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "78ae65e2-1cf4-4542-aafc-3484f3463a33" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "14290bf2-17af-41c9-b1bb-87f7df6ed594" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082921Z:14290bf2-17af-41c9-b1bb-87f7df6ed594" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:29:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourcegroups/ps532?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlZ3JvdXBzL3BzNTMyP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "34edec8b-1d1f-476b-9192-60c9c7014c4e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.16" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUzMi1FQVNUVVMyIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "c262059c-8747-4c23-a33a-1e28d917c96a" + ], + "x-ms-correlation-request-id": [ + "c262059c-8747-4c23-a33a-1e28d917c96a" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082928Z:c262059c-8747-4c23-a33a-1e28d917c96a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:29:27 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUzMi1FQVNUVVMyIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpVek1pMUZRVk5VVlZNeUlpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE15SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.16" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUzMi1FQVNUVVMyIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "f05dfe42-270b-444d-a9cc-88b30b1a7979" + ], + "x-ms-correlation-request-id": [ + "f05dfe42-270b-444d-a9cc-88b30b1a7979" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082944Z:f05dfe42-270b-444d-a9cc-88b30b1a7979" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:29:44 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUzMi1FQVNUVVMyIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpVek1pMUZRVk5VVlZNeUlpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE15SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.16" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUzMi1FQVNUVVMyIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyIn0?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "b44e11dd-82ae-4897-906e-977aa4f6e520" + ], + "x-ms-correlation-request-id": [ + "b44e11dd-82ae-4897-906e-977aa4f6e520" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T083000Z:b44e11dd-82ae-4897-906e-977aa4f6e520" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:29:59 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUzMi1FQVNUVVMyIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpVek1pMUZRVk5VVlZNeUlpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE15SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.16" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "7cacf4ef-83bc-4b99-a862-ceca1bc46b9e" + ], + "x-ms-correlation-request-id": [ + "7cacf4ef-83bc-4b99-a862-ceca1bc46b9e" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T083016Z:7cacf4ef-83bc-4b99-a862-ceca1bc46b9e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:30:15 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzUzMi1FQVNUVVMyIiwiam9iTG9jYXRpb24iOiJlYXN0dXMyIn0?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpVek1pMUZRVk5VVlZNeUlpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE15SW4wP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.16" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "2401cecb-288d-4fb7-ab89-891390a1cff1" + ], + "x-ms-correlation-request-id": [ + "2401cecb-288d-4fb7-ab89-891390a1cff1" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T083017Z:2401cecb-288d-4fb7-ab89-891390a1cff1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:30:16 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-AdlsEnumerateAndRestoreDeletedItem": [ + "ps532", + "ps4230" + ] + }, + "Variables": { + "SubscriptionId": "eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6" + } +} \ No newline at end of file diff --git a/src/DataLakeStore/DataLakeStore.Test/SessionRecords/Microsoft.Azure.Commands.DataLakeStore.Test.ScenarioTests.AdlsTests/TestAdlsEnumerateAndRestoreDeletedItem.json b/src/DataLakeStore/DataLakeStore.Test/SessionRecords/Microsoft.Azure.Commands.DataLakeStore.Test.ScenarioTests.AdlsTests/TestAdlsEnumerateAndRestoreDeletedItem.json new file mode 100644 index 000000000000..866bc23afb18 --- /dev/null +++ b/src/DataLakeStore/DataLakeStore.Test/SessionRecords/Microsoft.Azure.Commands.DataLakeStore.Test.ScenarioTests.AdlsTests/TestAdlsEnumerateAndRestoreDeletedItem.json @@ -0,0 +1,1078 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourcegroups/ps6671?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlZ3JvdXBzL3BzNjY3MT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "86cc7f0e-51f0-40b1-96a1-56ad54186014" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.16" + ], + "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": [ + "711e68d7-1eb6-451e-88a3-a21333d4624d" + ], + "x-ms-correlation-request-id": [ + "711e68d7-1eb6-451e-88a3-a21333d4624d" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082513Z:711e68d7-1eb6-451e-88a3-a21333d4624d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:25:12 GMT" + ], + "Content-Length": [ + "166" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps6671\",\r\n \"name\": \"ps6671\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps6671/providers/Microsoft.DataLakeStore/accounts/ps7492?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNjY3MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvcHM3NDkyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0acf5f30-5349-4c3f-87d2-62d4d198b727" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "0a1fe29b-7aa4-433c-8ac0-356f5519d022" + ], + "x-ms-correlation-request-id": [ + "0a1fe29b-7aa4-433c-8ac0-356f5519d022" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082514Z:0a1fe29b-7aa4-433c-8ac0-356f5519d022" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:25:14 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "149" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/ps7492' under resource group 'ps6671' was not found.\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps6671/providers/Microsoft.DataLakeStore/accounts/ps7492?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNjY3MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvcHM3NDkyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "287a5f4b-1379-45ca-b7c9-4a15aeafb145" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "5a6884c7-0b58-40e7-819b-7935f31ef9e4" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082600Z:5a6884c7-0b58-40e7-819b-7935f31ef9e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Wed, 13 Feb 2019 08:25:59 GMT" + ], + "Content-Length": [ + "992" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"dataLakePerformanceTierState\": \"Disabled\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"ps7492.azuredatalakestore.net\",\r\n \"accountId\": \"51c47e64-95e6-4dc3-9413-a11d5e2c0522\",\r\n \"creationTime\": \"2019-02-13T08:25:23.7741627Z\",\r\n \"lastModifiedTime\": \"2019-02-13T08:25:23.7741627Z\"\r\n },\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"ed836a4f-e561-47d3-8f3e-4144ea7d4165\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"id\": \"/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps6671/providers/Microsoft.DataLakeStore/accounts/ps7492\",\r\n \"name\": \"ps7492\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps6671/providers/Microsoft.DataLakeStore/accounts/ps7492?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNjY3MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvcHM3NDkyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "694fd73d-c3e7-4b35-8565-148e3c5dc030" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "23b229b0-ae4c-4aca-bc46-c54fe5a5fb10" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "47a18a23-7ef1-439e-b323-fc8ce150830f" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082602Z:47a18a23-7ef1-439e-b323-fc8ce150830f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Wed, 13 Feb 2019 08:26:01 GMT" + ], + "Content-Length": [ + "992" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"dataLakePerformanceTierState\": \"Disabled\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"ps7492.azuredatalakestore.net\",\r\n \"accountId\": \"51c47e64-95e6-4dc3-9413-a11d5e2c0522\",\r\n \"creationTime\": \"2019-02-13T08:25:23.7741627Z\",\r\n \"lastModifiedTime\": \"2019-02-13T08:25:23.7741627Z\"\r\n },\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"ed836a4f-e561-47d3-8f3e-4144ea7d4165\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"id\": \"/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps6671/providers/Microsoft.DataLakeStore/accounts/ps7492\",\r\n \"name\": \"ps7492\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps6671/providers/Microsoft.DataLakeStore/accounts/ps7492?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNjY3MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvcHM3NDkyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d6407884-b1d6-4191-93d6-5a6bc91125ea" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "0faf157e-5ade-4273-b6b9-54516b001ff1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "0b73c831-6707-4dd5-9bbd-969263a4637a" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082623Z:0b73c831-6707-4dd5-9bbd-969263a4637a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Wed, 13 Feb 2019 08:26:23 GMT" + ], + "Content-Length": [ + "992" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"firewallState\": \"Disabled\",\r\n \"firewallAllowAzureIps\": \"Disabled\",\r\n \"firewallAllowDataLakeAnalytics\": \"Disabled\",\r\n \"firewallRules\": [],\r\n \"virtualNetworkRules\": [],\r\n \"trustedIdProviderState\": \"Disabled\",\r\n \"trustedIdProviders\": [],\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"currentTier\": \"Consumption\",\r\n \"newTier\": \"Consumption\",\r\n \"dataLakePerformanceTierState\": \"Disabled\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"state\": \"Active\",\r\n \"endpoint\": \"ps7492.azuredatalakestore.net\",\r\n \"accountId\": \"51c47e64-95e6-4dc3-9413-a11d5e2c0522\",\r\n \"creationTime\": \"2019-02-13T08:25:23.7741627Z\",\r\n \"lastModifiedTime\": \"2019-02-13T08:25:23.7741627Z\"\r\n },\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"ed836a4f-e561-47d3-8f3e-4144ea7d4165\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"id\": \"/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps6671/providers/Microsoft.DataLakeStore/accounts/ps7492\",\r\n \"name\": \"ps7492\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps6671/providers/Microsoft.DataLakeStore/accounts/ps7492?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNjY3MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvcHM3NDkyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0b3c3758-1209-4dac-a3f2-7be453cb83e6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "00a460b5-8e21-4c5c-a009-79867dcb51a2" + ], + "x-ms-correlation-request-id": [ + "00a460b5-8e21-4c5c-a009-79867dcb51a2" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082630Z:00a460b5-8e21-4c5c-a009-79867dcb51a2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:26:30 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "149" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/ps7492' under resource group 'ps6671' was not found.\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps6671/providers/Microsoft.DataLakeStore/accounts/ps7492?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNjY3MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvcHM3NDkyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "67332dcf-ca0b-4cce-a43c-793f38c03154" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "ef4fc783-1ecb-4cc3-baea-a858ff08a499" + ], + "x-ms-correlation-request-id": [ + "ef4fc783-1ecb-4cc3-baea-a858ff08a499" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082630Z:ef4fc783-1ecb-4cc3-baea-a858ff08a499" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:26:30 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "149" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DataLakeStore/accounts/ps7492' under resource group 'ps6671' was not found.\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps6671/providers/Microsoft.DataLakeStore/accounts/ps7492?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNjY3MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvcHM3NDkyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"properties\": {\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"encryptionState\": \"Enabled\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a39907fa-3d77-4762-ad9f-e2ce1b686eff" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "223" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourcegroups/ps6671/providers/Microsoft.DataLakeStore/accounts/ps7492/operationresults/0?api-version=2016-11-01" + ], + "Retry-After": [ + "10" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/51c47e64-95e6-4dc3-9413-a11d5e2c05220?api-version=2016-11-01&expanded=true" + ], + "x-ms-request-id": [ + "3d702287-1ac0-4b39-93ce-ee9ffbffef6d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "4b6cdd57-3da1-49ad-887c-f97ed65dbd13" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082524Z:4b6cdd57-3da1-49ad-887c-f97ed65dbd13" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Wed, 13 Feb 2019 08:25:23 GMT" + ], + "Content-Length": [ + "560" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"encryptionState\": \"Enabled\",\r\n \"encryptionConfig\": {\r\n \"type\": \"ServiceManaged\"\r\n },\r\n \"provisioningState\": \"Creating\",\r\n \"state\": null,\r\n \"endpoint\": null,\r\n \"accountId\": \"51c47e64-95e6-4dc3-9413-a11d5e2c0522\"\r\n },\r\n \"location\": \"eastus2\",\r\n \"tags\": {},\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"00000000-0000-0000-0000-000000000000\",\r\n \"tenantId\": \"00000000-0000-0000-0000-000000000000\"\r\n },\r\n \"id\": \"/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps6671/providers/Microsoft.DataLakeStore/accounts/ps7492\",\r\n \"name\": \"ps7492\",\r\n \"type\": \"Microsoft.DataLakeStore/accounts\"\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/51c47e64-95e6-4dc3-9413-a11d5e2c05220?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25SZXN1bHRzLzUxYzQ3ZTY0LTk1ZTYtNGRjMy05NDEzLWExMWQ1ZTJjMDUyMjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "eed70e71-22f3-4dff-811a-079340a77fe2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "0720d2c2-8ec0-4acb-a5c5-aad587e0c165" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082535Z:0720d2c2-8ec0-4acb-a5c5-aad587e0c165" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Wed, 13 Feb 2019 08:25:35 GMT" + ], + "Content-Length": [ + "23" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/51c47e64-95e6-4dc3-9413-a11d5e2c05220?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25SZXN1bHRzLzUxYzQ3ZTY0LTk1ZTYtNGRjMy05NDEzLWExMWQ1ZTJjMDUyMjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "897f3ca5-6bcf-4fcf-a164-1274216897e3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "2a2725f2-9b0a-4598-b3f2-b0e9530478f8" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082547Z:2a2725f2-9b0a-4598-b3f2-b0e9530478f8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Wed, 13 Feb 2019 08:25:47 GMT" + ], + "Content-Length": [ + "23" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"InProgress\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/providers/Microsoft.DataLakeStore/locations/eastus2/operationResults/51c47e64-95e6-4dc3-9413-a11d5e2c05220?api-version=2016-11-01&expanded=true", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUxha2VTdG9yZS9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25SZXN1bHRzLzUxYzQ3ZTY0LTk1ZTYtNGRjMy05NDEzLWExMWQ1ZTJjMDUyMjA/YXBpLXZlcnNpb249MjAxNi0xMS0wMSZleHBhbmRlZD10cnVl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "cc892795-f737-4128-b7d9-45f68a344fd3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "1f6ddf94-f51a-4283-8247-d7e6661f06e3" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082559Z:1f6ddf94-f51a-4283-8247-d7e6661f06e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Date": [ + "Wed, 13 Feb 2019 08:25:58 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourceGroups/ps6671/providers/Microsoft.DataLakeStore/accounts/ps7492?api-version=2016-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlR3JvdXBzL3BzNjY3MS9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFMYWtlU3RvcmUvYWNjb3VudHMvcHM3NDkyP2FwaS12ZXJzaW9uPTIwMTYtMTEtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e772e544-eaba-49f4-b735-e055d7488af7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.DataLake.Store.DataLakeStoreAccountManagementClient/2.4.2.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "0a050b35-62fa-4297-b9d0-e40c649573d7" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-correlation-request-id": [ + "7bce94f1-9f63-4180-928f-344a3bee93d7" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082629Z:7bce94f1-9f63-4180-928f-344a3bee93d7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:26:29 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/resourcegroups/ps6671?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L3Jlc291cmNlZ3JvdXBzL3BzNjY3MT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5c111d0d-f8bb-4465-b1bf-fbb510f88950" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.16" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzY2NzEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "f2f0cd0a-ce1f-488c-a051-60a458bb0373" + ], + "x-ms-correlation-request-id": [ + "f2f0cd0a-ce1f-488c-a051-60a458bb0373" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082636Z:f2f0cd0a-ce1f-488c-a051-60a458bb0373" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:26:36 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzY2NzEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpZMk56RXRSVUZUVkZWVE1pSXNJbXB2WWt4dlkyRjBhVzl1SWpvaVpXRnpkSFZ6TWlKOT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.16" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzY2NzEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "2134b586-5c11-41f9-8141-bec79f1a89b8" + ], + "x-ms-correlation-request-id": [ + "2134b586-5c11-41f9-8141-bec79f1a89b8" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082652Z:2134b586-5c11-41f9-8141-bec79f1a89b8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:26:52 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzY2NzEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpZMk56RXRSVUZUVkZWVE1pSXNJbXB2WWt4dlkyRjBhVzl1SWpvaVpXRnpkSFZ6TWlKOT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.16" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzY2NzEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "779ccc5c-5592-416b-bebe-4d90e830f098" + ], + "x-ms-correlation-request-id": [ + "779ccc5c-5592-416b-bebe-4d90e830f098" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082708Z:779ccc5c-5592-416b-bebe-4d90e830f098" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:27:07 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzY2NzEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpZMk56RXRSVUZUVkZWVE1pSXNJbXB2WWt4dlkyRjBhVzl1SWpvaVpXRnpkSFZ6TWlKOT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.16" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "4b13ae6a-f0b5-4f52-8501-c7402fb4e443" + ], + "x-ms-correlation-request-id": [ + "4b13ae6a-f0b5-4f52-8501-c7402fb4e443" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082724Z:4b13ae6a-f0b5-4f52-8501-c7402fb4e443" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:27:24 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzY2NzEtRUFTVFVTMiIsImpvYkxvY2F0aW9uIjoiZWFzdHVzMiJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZWZmMWQyOTEtZWQ4MC00ZGQ5LWJjYjktYWY3ZWE0ZGMxOWU2L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpZMk56RXRSVUZUVkZWVE1pSXNJbXB2WWt4dlkyRjBhVzl1SWpvaVpXRnpkSFZ6TWlKOT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.16" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "dcd0a560-f7d8-4129-962b-3793be6b839d" + ], + "x-ms-correlation-request-id": [ + "dcd0a560-f7d8-4129-962b-3793be6b839d" + ], + "x-ms-routing-request-id": [ + "SOUTHINDIA:20190213T082724Z:dcd0a560-f7d8-4129-962b-3793be6b839d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 13 Feb 2019 08:27:24 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-EnumerateAndRestoreDataLakeStoreDeletedItem": [ + "ps6671", + "ps7492" + ] + }, + "Variables": { + "SubscriptionId": "eff1d291-ed80-4dd9-bcb9-af7ea4dc19e6" + } +} \ No newline at end of file diff --git a/src/DataLakeStore/DataLakeStore/Az.DataLakeStore.psd1 b/src/DataLakeStore/DataLakeStore/Az.DataLakeStore.psd1 index ef8db69cfb2a..85270dcb7c49 100644 --- a/src/DataLakeStore/DataLakeStore/Az.DataLakeStore.psd1 +++ b/src/DataLakeStore/DataLakeStore/Az.DataLakeStore.psd1 @@ -102,7 +102,9 @@ CmdletsToExport = 'Get-AzDataLakeStoreTrustedIdProvider', 'Set-AzDataLakeStoreItemOwner', 'Set-AzDataLakeStoreItemPermission', 'Test-AzDataLakeStoreAccount', 'Test-AzDataLakeStoreItem', 'Export-AzDataLakeStoreChildItemProperties', - 'Get-AzDataLakeStoreChildItemSummary' + 'Get-AzDataLakeStoreChildItemSummary', + 'Get-AzDataLakeStoreDeletedItem', + 'Restore-AzDataLakeStoreDeletedItem' # Variables to export from this module # VariablesToExport = @() @@ -126,7 +128,8 @@ AliasesToExport = 'Get-AdlStoreTrustedIdProvider', 'Remove-AdlStoreTrustedIdProv 'Set-AdlStore', 'Set-AdlStoreItemAcl', 'Set-AdlStoreItemExpiry', 'Set-AdlStoreItemOwner', 'Set-AdlStoreItemPermission', 'Test-AdlStore', 'Test-AdlStoreItem', 'Get-AdlStoreChildItemSummary', - 'Export-AdlStoreChildItemProperties' + 'Export-AdlStoreChildItemProperties', + 'Get-AdlStoreDeletedItem', 'Restore-AdlStoreDeletedItem' # DSC resources to export from this module # DscResourcesToExport = @() diff --git a/src/DataLakeStore/DataLakeStore/ChangeLog.md b/src/DataLakeStore/DataLakeStore/ChangeLog.md index 61f67a474560..72bcda13077d 100644 --- a/src/DataLakeStore/DataLakeStore/ChangeLog.md +++ b/src/DataLakeStore/DataLakeStore/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Add cmdlets for ADL deleted item enumerate and restore ## Version 1.0.2 * Fix issue with ADLS endpoint when using MSI diff --git a/src/DataLakeStore/DataLakeStore/DataLakeStore.csproj b/src/DataLakeStore/DataLakeStore/DataLakeStore.csproj index b10c07300513..be08b1f5e536 100644 --- a/src/DataLakeStore/DataLakeStore/DataLakeStore.csproj +++ b/src/DataLakeStore/DataLakeStore/DataLakeStore.csproj @@ -1,4 +1,4 @@ - + DataLakeStore @@ -12,7 +12,7 @@ - + diff --git a/src/DataLakeStore/DataLakeStore/DataPlaneCommands/GetAzureRmDataLakeStoreDeletedItem.cs b/src/DataLakeStore/DataLakeStore/DataPlaneCommands/GetAzureRmDataLakeStoreDeletedItem.cs new file mode 100644 index 000000000000..3abf3fda3cff --- /dev/null +++ b/src/DataLakeStore/DataLakeStore/DataPlaneCommands/GetAzureRmDataLakeStoreDeletedItem.cs @@ -0,0 +1,62 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using Microsoft.Azure.Commands.DataLakeStore.Models; +using System.Linq; +using System.Management.Automation; + +namespace Microsoft.Azure.Commands.DataLakeStore +{ + [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DataLakeStoreDeletedItem", DefaultParameterSetName = DefaultParameterSet), OutputType(typeof(DataLakeStoreDeletedItem))] + [Alias("Get-AdlStoreDeletedItem")] + public class GetAzureDataLakeStoreDeletedItem : DataLakeStoreFileSystemCmdletBase + { + private const string DefaultParameterSet = "Default"; + + [Parameter(ValueFromPipelineByPropertyName = true, + Position = 0, + Mandatory = true, + ParameterSetName = DefaultParameterSet, + HelpMessage = "The Data Lake Store account to execute the filesystem operation in")] + [ValidateNotNullOrEmpty] + [Alias("AccountName")] + public string Account { get; set; } + + [Parameter(ValueFromPipelineByPropertyName = true, + Position = 1, + Mandatory = true, + ParameterSetName = DefaultParameterSet, + HelpMessage = "The query string to match during search")] + [ValidateNotNullOrEmpty] + public string Filter { get; set; } + + [Parameter(ValueFromPipelineByPropertyName = true, + Mandatory = false, + ParameterSetName = DefaultParameterSet, + HelpMessage = "Minimum number of entries to search for")] + public int Count { get; set; } = 100; + + [Parameter(Mandatory = false, + ParameterSetName = DefaultParameterSet, + HelpMessage = "Run cmdlet in the background")] + public SwitchParameter AsJob { get; set; } + + public override void ExecuteCmdlet() + { + var toReturn = DataLakeStoreFileSystemClient.EnumerateDeletedItems(Account, Filter, Count, CmdletCancellationToken).Select(entry => new DataLakeStoreDeletedItem(entry)).ToList(); + WriteObject(toReturn); + } + } +} + diff --git a/src/DataLakeStore/DataLakeStore/DataPlaneCommands/RestoreAzureRmDataLakeStoreDeletedItem.cs b/src/DataLakeStore/DataLakeStore/DataPlaneCommands/RestoreAzureRmDataLakeStoreDeletedItem.cs new file mode 100644 index 000000000000..8c1c17912b69 --- /dev/null +++ b/src/DataLakeStore/DataLakeStore/DataPlaneCommands/RestoreAzureRmDataLakeStoreDeletedItem.cs @@ -0,0 +1,124 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using Microsoft.Azure.Commands.DataLakeStore.Models; +using System; +using System.Management.Automation; + +namespace Microsoft.Azure.Commands.DataLakeStore +{ + [Cmdlet("Restore", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DataLakeStoreDeletedItem", + DefaultParameterSetName = DefaultParameterSet, SupportsShouldProcess = true), + OutputType(typeof(DataLakeStoreDeletedItem))] + [Alias("Restore-AdlStoreDeletedItem")] + public class RestoreAzureDataLakeStoreDeletedItem : DataLakeStoreFileSystemCmdletBase + { + #region Parameter Set Names + + private const string DefaultParameterSet = "Default"; + private const string InputObjectParameterSet = "InputObject"; + + #endregion + + [Parameter(ValueFromPipelineByPropertyName = true, + Position = 0, + Mandatory = true, + ParameterSetName = DefaultParameterSet, + HelpMessage = "The Data Lake Store account to execute the filesystem operation in")] + [Parameter(ValueFromPipelineByPropertyName = true, + Position = 0, + Mandatory = true, + ParameterSetName = InputObjectParameterSet, + HelpMessage = "The Data Lake Store account to execute the filesystem operation in")] + [ValidateNotNullOrEmpty] + [Alias("AccountName")] + public string Account { get; set; } + + [Parameter(ValueFromPipelineByPropertyName = true, + Position = 1, + Mandatory = true, + ParameterSetName = DefaultParameterSet, + HelpMessage = "The trash directory path in enumeratedeleteditems response")] + [ValidateNotNullOrEmpty] + public string Path { get; set; } + + [Parameter(ValueFromPipelineByPropertyName = true, + Position = 2, + Mandatory = true, + ParameterSetName = DefaultParameterSet, + HelpMessage = "Path to where the entry should be restored")] + [ValidateNotNullOrEmpty] + public string Destination { get; set; } + + [Parameter(ValueFromPipelineByPropertyName = true, + Position = 3, Mandatory = true, + ParameterSetName = DefaultParameterSet, + HelpMessage = "Type of the entry which is being restored. \"file\" or \"folder\"")] + public string Type { get; set; } + + [Parameter(ValueFromPipeline = true, + Position = 1, + Mandatory = true, + ParameterSetName = InputObjectParameterSet, + HelpMessage = "The deleted item object returned by Get-AzDataLakeStoreDeletedItem")] + public DataLakeStoreDeletedItem DeletedItem { get; set; } + + [Parameter(ValueFromPipelineByPropertyName = true, + ParameterSetName = DefaultParameterSet, + Mandatory = false, + HelpMessage = "Action to take during destination name conflicts - \"overwrite\" or \"copy\"")] + [Parameter(ValueFromPipelineByPropertyName = true, + ParameterSetName = InputObjectParameterSet, + Mandatory = false, + HelpMessage = "Action to take during destination name conflicts - \"overwrite\" or \"copy\"")] + public string RestoreAction { get; set; } + + [Parameter(Mandatory = false, + ParameterSetName = DefaultParameterSet)] + [Parameter(Mandatory = false, + ParameterSetName = InputObjectParameterSet)] + public SwitchParameter PassThru { get; set; } + + [Parameter(Mandatory = false, + ParameterSetName = DefaultParameterSet, + HelpMessage = "Restore the stream or directory")] + [Parameter(Mandatory = false, + ParameterSetName = InputObjectParameterSet, + HelpMessage = "Restore the stream or directory")] + public SwitchParameter Force { get; set; } + + public override void ExecuteCmdlet() + { + if (ParameterSetName == DefaultParameterSet) + { + if (Force.IsPresent || ShouldContinue(string.Format("From - {0}\nTo - {1}\nType - {2}", Path, Destination, Type), "Restore user data ?")) + { + DataLakeStoreFileSystemClient.RestoreDeletedItem(Account, Path, Destination, Type, RestoreAction, CmdletCancellationToken); + } + } + else if(ParameterSetName == InputObjectParameterSet) + { + if (Force.IsPresent || ShouldContinue(string.Format("From - {0}\nTo - {1}\nType - {2}", DeletedItem.TrashDirPath, DeletedItem.OriginalPath, DeletedItem.Type == DataLakeStoreEnums.FileType.FILE ? "file" : "folder"), "Restore user data ?")) + { + DataLakeStoreFileSystemClient.RestoreDeletedItem(Account, DeletedItem.TrashDirPath, DeletedItem.OriginalPath, (DeletedItem.Type == DataLakeStoreEnums.FileType.FILE ? "file" : "folder"), RestoreAction, CmdletCancellationToken); + } + } + + if (PassThru.IsPresent) + { + WriteObject(true); + } + } + } +} diff --git a/src/DataLakeStore/DataLakeStore/DataPlaneModels/DataLakeStoreDeletedItem.cs b/src/DataLakeStore/DataLakeStore/DataPlaneModels/DataLakeStoreDeletedItem.cs new file mode 100644 index 000000000000..1a0ea944e6c5 --- /dev/null +++ b/src/DataLakeStore/DataLakeStore/DataPlaneModels/DataLakeStoreDeletedItem.cs @@ -0,0 +1,49 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using Microsoft.Azure.DataLake.Store; + +namespace Microsoft.Azure.Commands.DataLakeStore.Models +{ + /// + /// Object returned by Get-AzDataLakeStoreDeletedItem + /// + public class DataLakeStoreDeletedItem + { + public string TrashDirPath { get; } + public string OriginalPath { get; } + + /// + /// Gets the type of the path object. Possible values include: 'FILE', 'DIRECTORY' + /// + public DataLakeStoreEnums.FileType? Type { get; } + + public DateTime? CreationTime { get; } + + private long ToUnixTimeStampMs(DateTime dt) + { + // Assumes that datetime is UTC + return (long)(dt - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds; + } + + public DataLakeStoreDeletedItem(TrashEntry entry) + { + TrashDirPath = entry.TrashDirPath; + OriginalPath = entry.OriginalPath; + Type = entry.Type == TrashEntryType.DIRECTORY ? DataLakeStoreEnums.FileType.DIRECTORY : DataLakeStoreEnums.FileType.FILE; + CreationTime = entry.CreationTime; + } + } +} \ No newline at end of file diff --git a/src/DataLakeStore/DataLakeStore/DataPlaneModels/DataLakeStoreFileSystemClient.cs b/src/DataLakeStore/DataLakeStore/DataPlaneModels/DataLakeStoreFileSystemClient.cs index 85ce12e1e780..15da1eb06276 100644 --- a/src/DataLakeStore/DataLakeStore/DataPlaneModels/DataLakeStoreFileSystemClient.cs +++ b/src/DataLakeStore/DataLakeStore/DataPlaneModels/DataLakeStoreFileSystemClient.cs @@ -14,7 +14,15 @@ using Microsoft.Azure.Commands.Common.Authentication.Abstractions; using Microsoft.Azure.Commands.DataLakeStore.Properties; +using Microsoft.Azure.DataLake.Store; +using Microsoft.Azure.DataLake.Store.Acl; +using Microsoft.Azure.DataLake.Store.AclTools; +using Microsoft.Azure.DataLake.Store.FileTransfer; +using Microsoft.Azure.DataLake.Store.MockAdlsFileSystem; using Microsoft.WindowsAzure.Commands.Utilities.Common; +using NLog; +using NLog.Config; +using NLog.Targets; using System; using System.Collections.Generic; using System.IO; @@ -24,14 +32,7 @@ using System.Text; using System.Threading; using System.Threading.Tasks; -using Microsoft.Azure.DataLake.Store; -using Microsoft.Azure.DataLake.Store.Acl; -using Microsoft.Azure.DataLake.Store.AclTools; -using Microsoft.Azure.DataLake.Store.FileTransfer; -using Microsoft.Azure.DataLake.Store.MockAdlsFileSystem; -using NLog; -using NLog.Config; -using NLog.Targets; + namespace Microsoft.Azure.Commands.DataLakeStore.Models { public class DataLakeStoreFileSystemClient @@ -682,7 +683,7 @@ public void BulkCopy(string destinationFolderPath, string accountName, string so // powershell defect protection. If, through some defect in // our progress tracking, the number is outside of 0 - 100, // powershell will crash if it is set to that value. Instead - // just keep the value unchanged in that case. + // just ke ep the value unchanged in that case. if (toSet < 0 || toSet > 100) { progress.PercentComplete = progress.PercentComplete; @@ -764,12 +765,80 @@ public void GetFileProperties(string accountName, string path, bool getAclUsage, { WaitForTask(exportTask, cmdletCancellationToken); } - + } + + #endregion + + #region Deleted item operations + /// + /// Get items in trash matching query string + /// + /// Account name + /// Query to match items in trash + /// Minimum number of entries to search for + /// CancellationToken + public IEnumerable EnumerateDeletedItems(string accountName, string filter, int count, CancellationToken cmdletCancellationToken = default(CancellationToken)) + { + IEnumerable result = null; + Task enumerateTask = null; + bool completed = false; + object syncPrimitive = new object(); + var progressTracker = new Progress(); + progressTracker.ProgressChanged += (s, e) => + { + // TODO: Update job progress here + lock (syncPrimitive) + { + if (e.NumFound >= count || String.IsNullOrEmpty(e.NextListAfter)) + { + completed = true; + } + + Monitor.Pulse(syncPrimitive); + } + }; + + enumerateTask = Task.Run(() => + { + result = AdlsClientFactory.GetAdlsClient(accountName, _context).EnumerateDeletedItems(filter, "", count, progressTracker, cmdletCancellationToken); + }, cmdletCancellationToken); + + // Keep printing (?) the updates returned by successive calls by the SDK to the backend, until the whole query completes + while(true) + { + lock (syncPrimitive) + { + Monitor.Wait(syncPrimitive); + if(completed) + { + break; + } + } + } + + WaitForTask(enumerateTask, cmdletCancellationToken); + + return result; + } + + /// + /// Restore a stream or directory from trash to user space. This is a synchronous operation. + /// Not threadsafe when Restore is called for same path from different threads. + /// + /// The trash directory path in enumeratedeleteditems response + /// Path to where the entry should be restored + /// Type of the entry which is being restored. "file" or "folder" + /// Action to take during destination name conflicts - "overwrite" or "copy" + /// CancellationToken + public void RestoreDeletedItem(string accountName, string path, string destination, string type, string restoreAction, CancellationToken cmdletCancellationToken = default(CancellationToken)) + { + AdlsClientFactory.GetAdlsClient(accountName, _context).RestoreDeletedItems(path, destination, type, restoreAction, cmdletCancellationToken); } #endregion + #region private helpers /// /// Tracks the task and shows the task progress or debug nessages after a regular interval in the PowerShell console. diff --git a/src/DataLakeStore/DataLakeStore/help/Get-AzDataLakeStoreDeletedItem.md b/src/DataLakeStore/DataLakeStore/help/Get-AzDataLakeStoreDeletedItem.md new file mode 100644 index 000000000000..2b51e334f55f --- /dev/null +++ b/src/DataLakeStore/DataLakeStore/help/Get-AzDataLakeStoreDeletedItem.md @@ -0,0 +1,139 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.DataLakeStore.dll-Help.xml +Module Name: Az.DataLakeStore +ms.assetid: BF0A5D64-AC93-48F5-AED2-C21CC8829053 +online version: https://docs.microsoft.com/en-us/powershell/module/az.datalakestore/get-azdatalakestoredeleteditem +schema: 2.0.0 +--- + +# Get-AzDataLakeStoreDeletedItem + +## SYNOPSIS +Searches for deleted entries in trash which match the filter. + +## SYNTAX + +``` +Get-AzDataLakeStoreDeletedItem [-Account] [-Filter] [-Count ] [-AsJob] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +The **Get-AzDataLakeStoreDeletedItem** cmdlet searches the deleted files or folders in Data Lake Store which match the given filter. +It displays the following attributes of the deleted items - OriginalPath, TrashDirPath, Type, CreationTime. +This could be a long running operation as it may have to search through millions of files in trash and could be run as a job. + +## EXAMPLES + +### Example: Get details of a file from the Data Lake Store +``` +PS> Get-AzDataLakeStoreDeletedItem -Account ml1ptrashtest -Filter test0/file_123 + +TrashDirPath OriginalPath Type CreationTime +------------ ------------ ---- ------------ +adl://ml1ptrashtest.azuredatalake.com/$temp/trash/131940576000000000/me1sch201110222/deleted_0a7b9a4a-7dc0-4ddb-aa6c-6d55dca8e770 adl://ml1ptrashtest.azuredatalake.com/test0/file_1230 FILE 2/8/2019 8:12:18 AM +adl://ml1ptrashtest.azuredatalake.com/$temp/trash/131940576000000000/me1sch201110222/deleted_17327024-4718-4950-bde3-beaea76c9aa7 adl://ml1ptrashtest.azuredatalake.com/test0/file_1232 FILE 2/8/2019 8:12:18 AM +adl://ml1ptrashtest.azuredatalake.com/$temp/trash/131940576000000000/me1sch201110222/deleted_2371fbef-a2ac-4db9-b780-9f305ebc8750 adl://ml1ptrashtest.azuredatalake.com/test0/file_1237 FILE 2/8/2019 8:12:18 AM +adl://ml1ptrashtest.azuredatalake.com/$temp/trash/131940576000000000/me1sch201110222/deleted_3f1af771-834f-4ec8-a03a-b41c5e0cc58b adl://ml1ptrashtest.azuredatalake.com/test0/file_123 FILE 2/8/2019 8:12:04 AM +adl://ml1ptrashtest.azuredatalake.com/$temp/trash/131940576000000000/me1sch201110222/deleted_4d1017de-610b-437c-9cf8-049d81e18bbd adl://ml1ptrashtest.azuredatalake.com/test0/file_1239 FILE 2/8/2019 8:12:18 AM +adl://ml1ptrashtest.azuredatalake.com/$temp/trash/131940576000000000/me1sch201110222/deleted_7a2d905e-9dcb-464a-9b82-782dfa845613 adl://ml1ptrashtest.azuredatalake.com/test0/file_1234 FILE 2/8/2019 8:12:18 AM +adl://ml1ptrashtest.azuredatalake.com/$temp/trash/131940576000000000/me1sch201110222/deleted_9e6b91d9-3568-4cdd-934c-1f40868fefe2 adl://ml1ptrashtest.azuredatalake.com/test0/file_1231 FILE 2/8/2019 8:12:18 AM +adl://ml1ptrashtest.azuredatalake.com/$temp/trash/131940576000000000/me1sch201110222/deleted_acd6b81f-e534-47ff-a296-95b379d64286 adl://ml1ptrashtest.azuredatalake.com/test0/file_1238 FILE 2/8/2019 8:12:18 AM +adl://ml1ptrashtest.azuredatalake.com/$temp/trash/131940576000000000/me1sch201110222/deleted_bde2cd57-1220-44ce-bfbc-024ca30c0aaf adl://ml1ptrashtest.azuredatalake.com/test0/file_1236 FILE 2/8/2019 8:12:18 AM +adl://ml1ptrashtest.azuredatalake.com/$temp/trash/131940576000000000/me1sch201110222/deleted_c15c0329-d670-4ae7-9101-0c9342b188c6 adl://ml1ptrashtest.azuredatalake.com/test0/file_1235 FILE 2/8/2019 8:12:19 AM +adl://ml1ptrashtest.azuredatalake.com/$temp/trash/131940576000000000/me1sch201110222/deleted_fca49a14-0fd8-4d56-a482-edeae3f93846 adl://ml1ptrashtest.azuredatalake.com/test0/file_1233 FILE 2/8/2019 8:12:18 AM +``` + +## PARAMETERS + +### -Account +Specifies the name of the Data Lake Store account. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: AccountName + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -AsJob +Run cmdlet in the background. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Count +Specifies the number of results the user wants to find. The query runs until it finds Count results or it searches through entire trash, whichever happens first. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: 1 +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Filter +Specifies the search query. A more specific value gives more relevant results. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### System.String + +## OUTPUTS + +### System.Collections.Generic.List + +## NOTES + +## RELATED LINKS + +[Restore-AzDataLakeStoreDeletedItem](./Restore-AzDataLakeStoreDeletedItem.md) \ No newline at end of file diff --git a/src/DataLakeStore/DataLakeStore/help/Restore-AzDataLakeStoreDeletedItem.md b/src/DataLakeStore/DataLakeStore/help/Restore-AzDataLakeStoreDeletedItem.md new file mode 100644 index 000000000000..7212da3da19b --- /dev/null +++ b/src/DataLakeStore/DataLakeStore/help/Restore-AzDataLakeStoreDeletedItem.md @@ -0,0 +1,205 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.DataLakeStore.dll-Help.xml +Module Name: Az.DataLakeStore +ms.assetid: D231E9A0-DC1E-411B-A87A-56A8C767F6C5 +online version: https://docs.microsoft.com/en-us/powershell/module/az.datalakestore/restore-azdatalakestoredeleteditem +schema: 2.0.0 +--- + +# Restore-AzDataLakeStoreDeletedItem + +## SYNOPSIS +Restore a deleted file or folder in Azure Data Lake. + +## SYNTAX + +### Default (Default) +``` +Restore-AzDataLakeStoreDeletedItem [-Account] [-Path] [-Destination] + [-Type] [-RestoreAction ] [-PassThru] [-Force] [-DefaultProfile ] + [] +``` + +### InputObject +``` +Restore-AzDataLakeStoreDeletedItem [-Account] [-DeletedItem] + [-RestoreAction ] [-PassThru] [-Force] [-DefaultProfile ] + [] +``` + +## DESCRIPTION +The **Restore-AzDataLakeStoreDeletedItem** cmdlet restores a deleted file or folder in Data Lake Store. Requires the path of deleted item in trash retunred by Get-AzDataLakeStoreDeletedItem. + +## EXAMPLES + +### Example 1: Restore a file from the Data Lake Store using -force option +``` +PS > Restore-AzDataLakeStoreDeletedItem -Account ml1ptrashtest -Path adl://ml1ptrashtest.azuredatalake.com/`$temp/trash/131940576000000000/me1sch201110222/deleted_0a7b9a4a-7dc0-4ddb-aa6c-6d55dca8e770 +-Destination adl://ml1ptrashtest.azuredatalake.com/test0/file_1230 -Type "file" -Force +PS > + +### Example 2: Restore a file from Data Lake Store using user confirmation + +PS > restore-azdatalakestoredeleteditem -account ml1ptrashtest -path adl://ml1ptrashtest.azuredatalake.com/`$temp/trash/131943168000000000/me1sch201112020/deleted_6b03f36a-912c-429d-9e4f-6969b465d069 -destination adl://ml1ptrashtest.azuredatalake.com/test4/file_1115 -type file + +Restore user data ? +From - adl://ml1ptrashtest.azuredatalake.com/$temp/trash/131943168000000000/me1sch201112020/deleted_6b03f36a-912c-429d-9e4f-6969b465d069 +To - adl://ml1ptrashtest.azuredatalake.com/test4/file_1115 +Type - file +[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y +PS > +``` + +## PARAMETERS + +### -Account +Specifies the name of the Data Lake Store account. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: AccountName + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DeletedItem +The deleted item object. + +```yaml +Type: Microsoft.Azure.Commands.DataLakeStore.Models.DataLakeStoreDeletedItem +Parameter Sets: InputObject +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Destination +The destination path to where the deleted file or folder should be restored. + +```yaml +Type: System.String +Parameter Sets: Default +Aliases: + +Required: True +Position: 2 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -Force +Forces the command to run without asking for user confirmation. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Return boolean true on success. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Path +The path of the deleted deleted file or folder in trash. + +```yaml +Type: System.String +Parameter Sets: Default +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -RestoreAction +Action to take on destination name conflicts - "copy" or "overwrite" + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -Type +The type of entry being restored - "file" or "folder" + +```yaml +Type: System.String +Parameter Sets: Default +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### System.String + +## OUTPUTS + +### None + +## NOTES + +## RELATED LINKS + +[Get-AzDataLakeStoreDeletedItem](./Get-AzDataLakeStoreDeletedItem.md) \ No newline at end of file