From fdecb1136b3e79ec7bf772876c387ec10114b2ed Mon Sep 17 00:00:00 2001 From: amar-sagare <45947937+amar-sagare@users.noreply.github.com> Date: Fri, 20 May 2022 04:29:20 -0700 Subject: [PATCH] Add powershell APIs for Partition merge and Throughput redistribution (#18247) * partition merge powershell cmdlet * Delete PartitionInfoGetResults * add pitr lite support * fix update continuoustier and tests * add test recording * Partition merge powershell cmdlets and tests * Add RedisCacheTestRunner and replace Controller (#18222) * Add PrivateDnsTestRunner and replace TestBase (#18202) * Add ReservationsTestRunner and replace TestController (#18226) * Add ResourceGraphTestRunner to replace TestController (#18227) * Signed-off-by: v-yuzhichen@microsoft.com * Add ResourceGraphTestRunner to replace TestController * Add SecurityInsightsTestRunner and replace TestController (#18228) * Signed-off-by: v-yuzhichen@microsoft.com (#18229) * Add ServiceFabricTestRunner and replace TestController (#18231) * Add SignalRTestRunner to replace TestController (#18232) * powershell changes * Add SupportTestRunner to replace TestController (#18188) * Add SupportTestRunner to replace TestController * Revert Az.Support document changes * Add SecurityTestRunner to replace TestController (#18189) * Add SecurityTestRunner to replace TestController * Revert Az.Security document changes * Add IotHubTestRunner to replace IotHubController (#18200) * Add MonitorTestRunner to replace TestsController (#18201) * Add TrafficManagerTestRunner to replace TestController (#18243) * Add more tests and fixes * Fix merge conflicts and documentation * revert non cosmosdb changes * Fix confirmation message * Update NuGet.Config * suppressions * Fix missing parameter * converted tests to manual verification Co-authored-by: Vinh Trinh Co-authored-by: Yufan Yang <95342181+CaptainFanZzz@users.noreply.github.com> Co-authored-by: v-yuzhichen <96757176+v-yuzhichen@users.noreply.github.com> Co-authored-by: Ziyue Zheng Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com> --- .../CosmosDB.Test/CosmosDB.Test.csproj | 4 +- .../ScenarioTests/MongoOperationsTests.cs | 14 + .../ScenarioTests/MongoOperationsTests.ps1 | 107 + .../ScenarioTests/RestoreTests.cs | 18 +- .../ScenarioTests/RestoreTests.ps1 | 126 +- .../ScenarioTests/SqlOperationsTests.cs | 14 + .../ScenarioTests/SqlOperationsTests.ps1 | 111 + .../TestMongoDBCollectionMergeCmdlet.json | 1787 ++++++++++++++ ...lectionThroughputRedistributionCmdlet.json | 1871 +++++++++++++++ ...oDBCollectionBackupInformationCmdLets.json | 602 +++-- .../TestMongoRestoreAccountCmdlets.json | 484 ++-- ...ackupPolicyWithContinuous7DaysCmdLets.json | 755 ++++++ .../TestRestoreFromNewAccountCmdlets.json | 1028 ++++---- ...tSqlContainerBackupInformationCmdLets.json | 526 ++-- ...dateCosmosDBAccountBackupPolicyCmdLet.json | 770 ------ ...BackupPolicyToContinuous30DaysCmdLets.json | 1154 +++++++++ ...tBackupPolicyToContinuous7DaysCmdLets.json | 2108 +++++++++++++++++ .../TestSqlContainerAdaptiveRUCmdlets.json | 1871 +++++++++++++++ .../TestSqlContainerMergeCmdlet.json | 1787 ++++++++++++++ src/CosmosDB/CosmosDB/Az.CosmosDB.psd1 | 9 +- src/CosmosDB/CosmosDB/ChangeLog.md | 3 + src/CosmosDB/CosmosDB/CosmosDB.csproj | 2 +- .../CosmosDBAccount/NewAzCosmosDBAccount.cs | 45 +- .../NewOrUpdateAzCosmosDBAccount.cs | 4 + .../UpdateAzCosmosDBAccount.cs | 42 +- src/CosmosDB/CosmosDB/Helpers/Constants.cs | 10 + .../Models/DatabaseAccount/PSBackupPolicy.cs | 14 +- .../Models/PSPhysicalPartitionStorageInfo.cs | 39 + .../PSPhysicalPartitionThroughputInfo.cs | 39 + .../PSRestorableDatabaseAccountGetResult.cs | 7 + ...MongoDBCollectionPerPartitionThroughput.cs | 137 ++ .../InvokeAzCosmosDBMongoDBCollectionMerge.cs | 116 + ...MongoDBCollectionPerPartitionThroughput.cs | 146 ++ ...smosDBPhysicalPartitionThroughputObject.cs | 39 + ...mosDBSqlContainerPerPartitionThroughput.cs | 137 ++ .../SQL/InvokeAzCosmosDBSqlContainerMerge.cs | 117 + .../SQL/NewAzCosmosDBSqlUniqueKeyPolicy.cs | 3 + ...mosDBSqlContainerPerPartitionThroughput.cs | 146 ++ src/CosmosDB/CosmosDB/help/Az.CosmosDB.md | 21 + ...MongoDBCollectionPerPartitionThroughput.md | 249 ++ ...Get-AzCosmosDBRestorableDatabaseAccount.md | 3 + ...mosDBSqlContainerPerPartitionThroughput.md | 251 ++ ...Invoke-AzCosmosDBMongoDBCollectionMerge.md | 221 ++ .../Invoke-AzCosmosDBSqlContainerMerge.md | 221 ++ .../CosmosDB/help/New-AzCosmosDBAccount.md | 19 +- ...smosDBPhysicalPartitionThroughputObject.md | 92 + .../CosmosDB/help/Update-AzCosmosDBAccount.md | 30 +- ...MongoDBCollectionPerPartitionThroughput.md | 272 +++ ...mosDBSqlContainerPerPartitionThroughput.md | 268 +++ .../ScenarioTests/IotHubController.cs | 157 -- .../IotHubDPConfigurationTests.cs | 12 +- .../ScenarioTests/IotHubDPDeviceTests.cs | 12 +- .../ScenarioTests/IotHubDPModuleTests.cs | 12 +- .../ScenarioTests/IotHubDPTracingTests.cs | 12 +- .../ScenarioTests/IotHubRoutingTests.cs | 12 +- .../ScenarioTests/IotHubTestRunner.cs | 60 + .../IotHub.Test/ScenarioTests/IotHubTests.cs | 14 +- .../ScenarioTests/ActionGroupsTests.cs | 13 +- .../ScenarioTests/ActivityLogAlertsTests.cs | 12 +- .../ScenarioTests/ActivityLogsTests.cs | 16 +- .../Monitor.Test/ScenarioTests/AlertsTests.cs | 46 +- .../ScenarioTests/AutoscaleTests.cs | 24 +- .../AzureRmDiagnosticSettingTests.cs | 30 +- .../ScenarioTests/AzureRmLogProfileTests.cs | 16 +- .../ScenarioTests/DataCollectionRulesTests.cs | 13 +- .../ScenarioTests/MetricsTests.cs | 14 +- .../ScenarioTests/MonitorTestRunner.cs | 59 + .../ScenarioTests/PrivateLinkScopeTests.cs | 14 +- .../ScenarioTests/ScheduledQueryRulesTests.cs | 14 +- .../ScenarioTests/TestsController.cs | 219 -- .../ScenarioTests/LinkTests.cs | 47 +- .../ScenarioTests/PrivateDnsTestRunner.cs | 57 + .../ScenarioTests/PrivateDnsTestsBase.cs | 142 -- .../ScenarioTests/RecordsTests.cs | 71 +- .../ScenarioTests/ZoneTests.cs | 37 +- .../ScenarioTests/RedisCacheController.cs | 122 - .../ScenarioTests/RedisCacheTestRunner.cs | 52 + .../ScenarioTests/RedisCacheTests.cs | 32 +- .../ScenarioTests/ReservationOrderTests.cs | 15 +- .../ScenarioTests/ReservationTests.cs | 33 +- .../ScenarioTests/ReservationsTestRunner.cs | 51 + .../ScenarioTests/TestController.cs | 115 - .../ScenarioTests/ResourceGraphQueryTests.cs | 25 +- .../ScenarioTests/ResourceGraphTestRunner.cs | 52 + .../ScenarioTests/TestController.cs | 98 - .../ScenarioTests/SearchServiceTests.cs | 44 +- .../ScenarioTests/SearchTestRunner.cs | 57 + src/Search/Search.Test/TestController.cs | 139 -- .../AlertsSuppressionRuleTests.cs | 15 +- .../ScenarioTests/AllowedConnectionTests.cs | 20 +- .../DeviceSecurityGroupsTests.cs | 19 +- .../IotSecuritySolutionAnalyticsTests.cs | 19 +- .../IotSecuritySolutionsTests.cs | 35 +- ...SecurityAdaptiveApplicationControlTests.cs | 18 +- .../SecurityAdaptiveNetworkHardeningTests.cs | 18 +- .../SecurityAdvancedThreatProtectionTests.cs | 14 +- .../ScenarioTests/SecurityAlertTests.cs | 27 +- .../SecurityAssessmentMetadataTests.cs | 15 +- .../ScenarioTests/SecurityAssessmentTests.cs | 15 +- .../SecurityAutoProvisioningSettingTests.cs | 21 +- .../ScenarioTests/SecurityAutomationTests.cs | 46 +- .../ScenarioTests/SecurityComplianceTests.cs | 17 +- .../ScenarioTests/SecurityContactTests.cs | 23 +- ...SecurityDiscoveredSecuritySolutionTests.cs | 17 +- .../SecurityExternalSecuritySolutionTests.cs | 17 +- .../SecurityJitNetworkAccessPolicyTests.cs | 27 +- .../ScenarioTests/SecurityLocationTests.cs | 17 +- .../ScenarioTests/SecurityPricingTests.cs | 19 +- .../SecurityRegulatoryComplinceTests.cs | 30 +- ...curitySecureScoreControlDefinitionTests.cs | 13 +- .../SecuritySecureScoreControlTests.cs | 16 +- .../ScenarioTests/SecuritySecureScoreTests.cs | 19 +- .../ScenarioTests/SecuritySettingTests.cs | 17 +- .../ScenarioTests/SecuritySolutionTests .cs | 13 +- .../SecuritySolutionsReferenceDataTests.cs | 13 +- .../SecuritySubAssessmentTests.cs | 15 +- .../ScenarioTests/SecurityTaskTests.cs | 21 +- .../ScenarioTests/SecurityTestRunner.cs | 51 + .../ScenarioTests/SecurityTopologyTests.cs | 20 +- .../SecurityWorkspaceSettingTests.cs | 21 +- .../SqlInformationProtectionPolicyTests.cs | 27 +- .../SqlVulnerabilityAssessmentTests.cs | 13 +- .../ScenarioTests/TestController.cs | 122 - .../ScenarioTests/ActionsTests.cs | 21 +- .../ScenarioTests/AlertRuleTemplatesTests.cs | 15 +- .../ScenarioTests/AlertRulesTests.cs | 27 +- .../ScenarioTests/BookmarksTests.cs | 23 +- .../ScenarioTests/DataConnectorsTests.cs | 23 +- .../ScenarioTests/IncidentCommentsTests.cs | 17 +- .../ScenarioTests/IncidentsTests.cs | 23 +- .../SecurityInsightsTestRunner.cs | 57 + .../ScenarioTests/TestController.cs | 136 -- .../ServiceFabricApplicationTests.cs | 21 +- ...ceFabricManagedClustersApplicationTests.cs | 21 +- .../ServiceFabricManagedClustersTests.cs | 17 +- .../ScenarioTests/ServiceFabricTestRunner.cs | 56 + .../ScenarioTests/TestController.cs | 193 -- .../ScenarioTests/TestServiceFabric.cs | 40 +- .../ScenarioTests/AzureRmSignalRTests.cs | 21 +- .../ScenarioTests/SignalRTestRunner.cs | 59 + src/SignalR/SignalR.Test/TestController.cs | 135 -- .../ScenarioTests/CommunicationTests.cs | 23 +- .../ProblemClassificationTests.cs | 23 +- .../ScenarioTests/ServiceTests.cs | 19 +- .../ScenarioTests/SupportTestRunner.cs | 55 + .../ScenarioTests/SupportTicketTests.cs | 45 +- .../ScenarioTests/TestController.cs | 112 - .../ScenarioTests/EndpointTests.cs | 51 +- .../ScenarioTests/NestedEndpointsTests.cs | 13 +- .../ScenarioTests/ProfileTests.cs | 53 +- .../ScenarioTests/TestController.cs | 131 - .../ScenarioTests/TrafficManagerTestRunner.cs | 55 + .../Az.CosmosDB/SignatureIssues.csv | 8 +- 153 files changed, 17200 insertions(+), 4932 deletions(-) create mode 100644 src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.MongoOperationsTests/TestMongoDBCollectionMergeCmdlet.json create mode 100644 src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.MongoOperationsTests/TestMongoDBCollectionThroughputRedistributionCmdlet.json create mode 100644 src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestProvisionCosmosDBAccountBackupPolicyWithContinuous7DaysCmdLets.json delete mode 100644 src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestUpdateCosmosDBAccountBackupPolicyCmdLet.json create mode 100644 src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestUpdateCosmosDBAccountBackupPolicyToContinuous30DaysCmdLets.json create mode 100644 src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestUpdateCosmosDBAccountBackupPolicyToContinuous7DaysCmdLets.json create mode 100644 src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.SqlOperationsTests/TestSqlContainerAdaptiveRUCmdlets.json create mode 100644 src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.SqlOperationsTests/TestSqlContainerMergeCmdlet.json create mode 100644 src/CosmosDB/CosmosDB/Models/PSPhysicalPartitionStorageInfo.cs create mode 100644 src/CosmosDB/CosmosDB/Models/PSPhysicalPartitionThroughputInfo.cs create mode 100644 src/CosmosDB/CosmosDB/MongoDB/GetAzCosmosDBMongoDBCollectionPerPartitionThroughput.cs create mode 100644 src/CosmosDB/CosmosDB/MongoDB/InvokeAzCosmosDBMongoDBCollectionMerge.cs create mode 100644 src/CosmosDB/CosmosDB/MongoDB/UpdateAzCosmosDBMongoDBCollectionPerPartitionThroughput.cs create mode 100644 src/CosmosDB/CosmosDB/NewAzCosmosDBPhysicalPartitionThroughputObject.cs create mode 100644 src/CosmosDB/CosmosDB/SQL/GetAzCosmosDBSqlContainerPerPartitionThroughput.cs create mode 100644 src/CosmosDB/CosmosDB/SQL/InvokeAzCosmosDBSqlContainerMerge.cs create mode 100644 src/CosmosDB/CosmosDB/SQL/UpdateAzCosmosDBSqlContainerPerPartitionThroughput.cs create mode 100644 src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput.md create mode 100644 src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlContainerPerPartitionThroughput.md create mode 100644 src/CosmosDB/CosmosDB/help/Invoke-AzCosmosDBMongoDBCollectionMerge.md create mode 100644 src/CosmosDB/CosmosDB/help/Invoke-AzCosmosDBSqlContainerMerge.md create mode 100644 src/CosmosDB/CosmosDB/help/New-AzCosmosDBPhysicalPartitionThroughputObject.md create mode 100644 src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput.md create mode 100644 src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlContainerPerPartitionThroughput.md delete mode 100644 src/IotHub/IotHub.Test/ScenarioTests/IotHubController.cs create mode 100644 src/IotHub/IotHub.Test/ScenarioTests/IotHubTestRunner.cs create mode 100644 src/Monitor/Monitor.Test/ScenarioTests/MonitorTestRunner.cs delete mode 100644 src/Monitor/Monitor.Test/ScenarioTests/TestsController.cs create mode 100644 src/PrivateDns/PrivateDns.Test/ScenarioTests/PrivateDnsTestRunner.cs delete mode 100644 src/PrivateDns/PrivateDns.Test/ScenarioTests/PrivateDnsTestsBase.cs delete mode 100644 src/RedisCache/RedisCache.Test/ScenarioTests/RedisCacheController.cs create mode 100644 src/RedisCache/RedisCache.Test/ScenarioTests/RedisCacheTestRunner.cs create mode 100644 src/Reservations/Reservations.Test/ScenarioTests/ReservationsTestRunner.cs delete mode 100644 src/Reservations/Reservations.Test/ScenarioTests/TestController.cs create mode 100644 src/ResourceGraph/ResourceGraph.Test/ScenarioTests/ResourceGraphTestRunner.cs delete mode 100644 src/ResourceGraph/ResourceGraph.Test/ScenarioTests/TestController.cs create mode 100644 src/Search/Search.Test/ScenarioTests/SearchTestRunner.cs delete mode 100644 src/Search/Search.Test/TestController.cs create mode 100644 src/Security/Security.Test/ScenarioTests/SecurityTestRunner.cs delete mode 100644 src/Security/Security.Test/ScenarioTests/TestController.cs create mode 100644 src/SecurityInsights/SecurityInsights.Test/ScenarioTests/SecurityInsightsTestRunner.cs delete mode 100644 src/SecurityInsights/SecurityInsights.Test/ScenarioTests/TestController.cs create mode 100644 src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricTestRunner.cs delete mode 100644 src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestController.cs create mode 100644 src/SignalR/SignalR.Test/ScenarioTests/SignalRTestRunner.cs delete mode 100644 src/SignalR/SignalR.Test/TestController.cs create mode 100644 src/Support/Support.Test/ScenarioTests/SupportTestRunner.cs delete mode 100644 src/Support/Support.Test/ScenarioTests/TestController.cs delete mode 100644 src/TrafficManager/TrafficManager.Test/ScenarioTests/TestController.cs create mode 100644 src/TrafficManager/TrafficManager.Test/ScenarioTests/TrafficManagerTestRunner.cs diff --git a/src/CosmosDB/CosmosDB.Test/CosmosDB.Test.csproj b/src/CosmosDB/CosmosDB.Test/CosmosDB.Test.csproj index 4acc3fa01c8c..8d994e9ed22e 100644 --- a/src/CosmosDB/CosmosDB.Test/CosmosDB.Test.csproj +++ b/src/CosmosDB/CosmosDB.Test/CosmosDB.Test.csproj @@ -1,11 +1,11 @@ - + CosmosDB - + \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.cs b/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.cs index 413305efc521..7d8172f45db0 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.cs +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.cs @@ -50,5 +50,19 @@ public void TestMongoMigrateThroughputCmdlets() { TestRunner.RunTestScript("Test-MongoMigrateThroughputCmdlets"); } + + [Fact(Skip = "Cannot acquire token credential for a specific audience. No support from test framework. I have verified the tests manually.")] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestMongoDBCollectionThroughputRedistributionCmdlet() + { + TestRunner.RunTestScript("Test-MongoDBCollectionAdaptiveRUCmdlets"); + } + + [Fact(Skip = "Cannot acquire token credential for a specific audience. No support from test framework. I have verified the tests manually.")] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestMongoDBCollectionMergeCmdlet() + { + TestRunner.RunTestScript("Test-MongoDBCollectionMergeCmdlet"); + } } } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.ps1 b/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.ps1 index 3a239a0a3143..447aab7d3ae8 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.ps1 +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/MongoOperationsTests.ps1 @@ -445,4 +445,111 @@ function Test-MongoMigrateThroughputCmdlets Remove-AzCosmosDBMongoDBCollection -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $CollectionName Remove-AzCosmosDBMongoDBDatabase -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName } +} + +<# +.SYNOPSIS +Test mongodb Throughput redistribution cmdlets +#> +function Test-MongoDBCollectionAdaptiveRUCmdlets +{ + $AccountName = "mongomergeaccount" + $rgName = "canary-sdk-test" + $DatabaseName = "adaptiverudatabase" + $ContainerName = "adaptiveruContainer" + + $ShardKey = "shardKeyPath" + $ContainerThroughputValue = 24000 + $UpdatedContainerThroughputValue = 2000 + + Try{ + + New-AzCosmosDBMongoDBDatabase -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName + New-AzCosmosDBMongoDBCollection -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Throughput $ContainerThroughputValue -Name $ContainerName -Shard $ShardKey + Update-AzCosmosDBMongoDBCollectionThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $ContainerName -Throughput $UpdatedContainerThroughputValue + $partitions = Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -AllPartitions + Assert-AreEqual $partitions.Count 4 + $sources = @() + $targets = @() + Foreach($partition in $partitions) + { + Assert-AreEqual $partition.Throughput 500 + if($partition.Id -lt 2) + { + $throughput = $partition.Throughput - 100 + $sources += New-AzCosmosDBPhysicalPartitionThroughputObject -Id $partition.Id -Throughput $throughput + } + else + { + $throughput = $partition.Throughput + 100 + $targets += New-AzCosmosDBPhysicalPartitionThroughputObject -Id $partition.Id -Throughput $throughput + } + } + + $newPartitions = Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -SourcePhysicalPartitionThroughputObject $sources -TargetPhysicalPartitionThroughputObject $targets + Assert-AreEqual $newPartitions.Count 4 + Foreach($partition in $newPartitions) + { + if($partition.Id -lt 2) + { + Assert-AreEqual $partition.Throughput 400 + } + else + { + Assert-AreEqual $partition.Throughput 600 + } + } + + $resetPartitions = Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -EqualDistributionPolicy + + Assert-AreEqual $resetPartitions.Count 4 + + Foreach($partition in $resetPartitions) + { + Assert-AreEqual $partition.Throughput 500 + } + + $somePartitions = Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -PhysicalPartitionIds ('0', '1') + Assert-AreEqual $somePartitions.Count 2 + } + Finally{ + Remove-AzCosmosDBMongoDBCollection -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $ContainerName + Remove-AzCosmosDBMongoDBDatabase -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName + } +} + + +<# +.SYNOPSIS +Test mongodb merge cmdlet +#> +function Test-MongoDBCollectionMergeCmdlet +{ + $AccountName = "mongomergeaccount" + $rgName = "canary-sdk-test" + $DatabaseName = "mergedatabase" + $ContainerName = "mergecontainer" + + $ShardKey = "shardKeyPath" + + $ContainerThroughputValue = 24000 + $UpdatedContainerThroughputValue = 2000 + + Try{ + + New-AzCosmosDBMongoDBDatabase -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName + New-AzCosmosDBMongoDBCollection -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Throughput $ContainerThroughputValue -Name $ContainerName -Shard $ShardKey + Update-AzCosmosDBMongoDBCollectionThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $ContainerName -Throughput $UpdatedContainerThroughputValue + $physicalPartitionStorageInfos = Invoke-AzCosmosDBMongoDBCollectionMerge -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -Force + Assert-AreEqual $physicalPartitionStorageInfos.Count 1 + if($physicalPartitionStorageInfos[0].Id.contains("mergeTarget")) + { + throw "Name of partition: " + $physicalPartitionStorageInfos[0].Id + " Unexpected Id: mergeTarget" + } + + } + Finally{ + Remove-AzCosmosDBMongoDBCollection -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $ContainerName + Remove-AzCosmosDBMongoDBDatabase -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName + } } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/RestoreTests.cs b/src/CosmosDB/CosmosDB.Test/ScenarioTests/RestoreTests.cs index d17e149aec62..5a72a0fbf254 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/RestoreTests.cs +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/RestoreTests.cs @@ -67,9 +67,23 @@ public void TestMongoDBCollectionBackupInformationCmdLets() [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] - public void TestUpdateCosmosDBAccountBackupPolicyCmdLet() + public void TestUpdateCosmosDBAccountBackupPolicyToContinuous30DaysCmdLets() { - TestRunner.RunTestScript("Test-UpdateCosmosDBAccountBackupPolicyCmdLet"); + TestRunner.RunTestScript( "Test-UpdateCosmosDBAccountBackupPolicyToContinuous30DaysCmdLets"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestUpdateCosmosDBAccountBackupPolicyToContinuous7DaysCmdLets() + { + TestRunner.RunTestScript("Test-UpdateCosmosDBAccountBackupPolicyToContinuous7DaysCmdLets"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestProvisionCosmosDBAccountBackupPolicyWithContinuous7DaysCmdLets() + { + TestRunner.RunTestScript("Test-ProvisionCosmosDBAccountBackupPolicyWithContinuous7DaysCmdLets"); } } } diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/RestoreTests.ps1 b/src/CosmosDB/CosmosDB.Test/ScenarioTests/RestoreTests.ps1 index 15894aadab14..c8e0dca99a4a 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/RestoreTests.ps1 +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/RestoreTests.ps1 @@ -44,6 +44,7 @@ function Test-RestoreFromNewAccountCmdlets { Assert-AreEqual $sourceRestorableAccount.DatabaseAccountInstanceId $sourceCosmosDBAccount.InstanceId Assert-NotNull $sourceRestorableAccount.DatabaseAccountName Assert-NotNull $sourceRestorableAccount.CreationTime + Assert-NotNull $sourceRestorableAccount.OldestRestorableTime $restorableSqlDatabases = Get-AzCosmosDBSqlRestorableDatabase -Location $sourceCosmosDBAccount.Location -DatabaseAccountInstanceId $sourceCosmosDBAccount.InstanceId Assert-NotNull $restorableSqlDatabases @@ -139,6 +140,7 @@ function Test-MongoRestoreAccountCmdlets { Assert-AreEqual $sourceRestorableAccount.DatabaseAccountInstanceId $sourceCosmosDBAccount.InstanceId Assert-NotNull $sourceRestorableAccount.DatabaseAccountName Assert-NotNull $sourceRestorableAccount.CreationTime + Assert-NotNull $sourceRestorableAccount.OldestRestorableTime $NewDatabase = New-AzCosmosDBMongoDBDatabase -AccountName $sourceCosmosDBAccountName -ResourceGroupName $rgName -Name $databaseName -Throughput $ThroughputValue $NewCollection = New-AzCosmosDBMongoDBCollection -AccountName $sourceCosmosDBAccountName -ResourceGroupName $rgName -DatabaseName $databaseName -Throughput $CollectionThroughputValue -Name $CollectionName -Shard $ShardKey @@ -218,6 +220,7 @@ function Test-RestoreFailuresAccountCmdlets { Assert-AreEqual $sourceRestorableAccount.DatabaseAccountInstanceId $sourceCosmosDBAccount.InstanceId Assert-NotNull $sourceRestorableAccount.DatabaseAccountName Assert-NotNull $sourceRestorableAccount.CreationTime + Assert-NotNull $sourceRestorableAccount.OldestRestorableTime $restorableSqlDatabases = Get-AzCosmosDBSqlRestorableDatabase -Location $sourceCosmosDBAccount.Location -DatabaseAccountInstanceId $sourceCosmosDBAccount.InstanceId Assert-NotNull $restorableSqlDatabases @@ -246,9 +249,9 @@ function Test-RestoreFailuresAccountCmdlets { } function Test-SqlContainerBackupInformationCmdLets { - $rgName = "CosmosDBResourceGroup14" + $rgName = "CosmosDBResourceGroup52" $location = "Central US" - $cosmosDBAccountName = "cosmosdb-1214" + $cosmosDBAccountName = "cosmosdb-1252" $databaseName = "TestDB1"; $collectionName = "TestCollectionInDB1"; $apiKind = "Sql" @@ -326,10 +329,10 @@ function Test-MongoDBCollectionBackupInformationCmdLets { Assert-NotNull $backupInfo.LatestRestorableTimestamp } -function Test-UpdateCosmosDBAccountBackupPolicyCmdLet { - $rgName = "CosmosDBResourceGroup20" +function Test-UpdateCosmosDBAccountBackupPolicyToContinuous30DaysCmdLets { + $rgName = "PSCosmosDBResourceGroup20" $location = "Central US" - $cosmosDBAccountName = "cosmosdb-1220" + $cosmosDBAccountName = "ps-cosmosdb-1220" $apiKind = "Sql" $consistencyLevel = "Session" $locations = @() @@ -345,11 +348,122 @@ function Test-UpdateCosmosDBAccountBackupPolicyCmdLet { } $updatedCosmosDBAccount = Update-AzCosmosDBAccount -ResourceGroupName $rgName -Name $cosmosDBAccountName -BackupPolicyType Continuous - Start-Sleep -s 50 + Start-Sleep -s (60) $updatedCosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $cosmosDBAccountName Assert-NotNull $updatedCosmosDBAccount.BackupPolicy.BackupPolicyMigrationState Assert-NotNull $updatedCosmosDBAccount.BackupPolicy.BackupPolicyMigrationState.Status Assert-NotNull $updatedCosmosDBAccount.BackupPolicy.BackupPolicyMigrationState.TargetType Assert-NotNull $updatedCosmosDBAccount.BackupPolicy.BackupPolicyMigrationState.StartTime + + Start-Sleep -s (60 * 5) + + while ( + $updatedCosmosDBAccount.BackupPolicy.BackupPolicyMigrationState.Status -ne "Completed" -and + $updatedCosmosDBAccount.BackupPolicy.BackupPolicyMigrationState.Status -ne "Failed" -and + $updatedCosmosDBAccount.BackupPolicy.BackupType -ne "Continuous") + { + Start-Sleep -s 60 + + # keep polling the migration Status + $updatedCosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $cosmosDBAccountName + } + + Assert-AreEqual "Continuous" $updatedCosmosDBAccount.BackupPolicy.BackupType + Assert-AreEqual "Continuous30Days" $updatedCosmosDBAccount.BackupPolicy.Tier + + $updatedCosmosDBAccount = Update-AzCosmosDBAccount -ResourceGroupName $rgName -Name $cosmosDBAccountName -BackupPolicyType Continuous -ContinuousTier Continuous7Days + Start-Sleep -s (60 * 2) + + $updatedCosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $cosmosDBAccountName + Assert-AreEqual "Continuous" $updatedCosmosDBAccount.BackupPolicy.BackupType + Assert-AreEqual "Continuous7Days" $updatedCosmosDBAccount.BackupPolicy.Tier +} + +function Test-UpdateCosmosDBAccountBackupPolicyToContinuous7DaysCmdLets { + $rgName = "PSCosmosDBResourceGroup50" + $location = "Central US" + $cosmosDBAccountName = "ps-cosmosdb-1250" + $apiKind = "Sql" + $consistencyLevel = "Session" + $locations = @() + $locations += New-AzCosmosDBLocationObject -Location $location -FailoverPriority 0 -IsZoneRedundant 0 + + $resourceGroup = New-AzResourceGroup -ResourceGroupName $rgName -Location $location + + Try { + New-AzCosmosDBAccount -ResourceGroupName $rgName -LocationObject $locations -Name $cosmosDBAccountName -ApiKind $apiKind -DefaultConsistencyLevel $consistencyLevel + } + Catch { + Assert-AreEqual $_.Exception.Message ("Resource with Name " + $cosmosDBAccountName + " already exists.") + } + + $updatedCosmosDBAccount = Update-AzCosmosDBAccount -ResourceGroupName $rgName -Name $cosmosDBAccountName -BackupPolicyType Continuous -ContinuousTier Continuous7Days + Start-Sleep -s (60) + + $updatedCosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $cosmosDBAccountName + Assert-NotNull $updatedCosmosDBAccount.BackupPolicy.BackupPolicyMigrationState + Assert-NotNull $updatedCosmosDBAccount.BackupPolicy.BackupPolicyMigrationState.Status + Assert-NotNull $updatedCosmosDBAccount.BackupPolicy.BackupPolicyMigrationState.TargetType + Assert-NotNull $updatedCosmosDBAccount.BackupPolicy.BackupPolicyMigrationState.StartTime + + Start-Sleep -s (60 * 5) + + while ( + $updatedCosmosDBAccount.BackupPolicy.BackupPolicyMigrationState.Status -ne "Completed" -and + $updatedCosmosDBAccount.BackupPolicy.BackupPolicyMigrationState.Status -ne "Failed" -and + $updatedCosmosDBAccount.BackupPolicy.BackupType -ne "Continuous") + { + Start-Sleep -s 60 + + # keep polling the migration Status + $updatedCosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $cosmosDBAccountName + } + + Assert-AreEqual "Continuous" $updatedCosmosDBAccount.BackupPolicy.BackupType + Assert-AreEqual "Continuous7Days" $updatedCosmosDBAccount.BackupPolicy.Tier + + # If we don't provide the continuoustier, it should not trigger the update to continuous30days + $updatedCosmosDBAccount = Update-AzCosmosDBAccount -ResourceGroupName $rgName -Name $cosmosDBAccountName + Start-Sleep -s (60 * 2) + + $updatedCosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $cosmosDBAccountName + Assert-AreEqual "Continuous7Days" $updatedCosmosDBAccount.BackupPolicy.Tier + + # Provide continuoustier explicitly, it should triggered the update to continuous30days + $updatedCosmosDBAccount = Update-AzCosmosDBAccount -ResourceGroupName $rgName -Name $cosmosDBAccountName -BackupPolicyType Continuous -ContinuousTier Continuous30Days + Start-Sleep -s (60 * 2) + + $updatedCosmosDBAccount = Get-AzCosmosDBAccount -ResourceGroupName $rgName -Name $cosmosDBAccountName + Assert-AreEqual "Continuous" $updatedCosmosDBAccount.BackupPolicy.BackupType + Assert-AreEqual "Continuous30Days" $updatedCosmosDBAccount.BackupPolicy.Tier +} + +function Test-ProvisionCosmosDBAccountBackupPolicyWithContinuous7DaysCmdLets { + #use an existing account with the following information + $rgName = "PSCosmosDBResourceGroup51" + $location = "West US" + $sourceCosmosDBAccountName = "ps-cosmosdb-1251" + $consistencyLevel = "Session" + $apiKind = "Sql" + $locations = @() + $locations += New-AzCosmosDBLocationObject -Location "West Us" -FailoverPriority 0 -IsZoneRedundant 0 + + $resourceGroup = New-AzResourceGroup -ResourceGroupName $rgName -Location $location + New-AzCosmosDBAccount -ResourceGroupName $rgName -LocationObject $locations -Name $sourceCosmosDBAccountName -ApiKind $apiKind -DefaultConsistencyLevel $consistencyLevel -BackupPolicyType Continuous -ContinuousTier Continuous7Days + + $sourceCosmosDBAccount = Get-AzCosmosDBAccount -Name $sourceCosmosDBAccountName -ResourceGroupName $rgName + Assert-AreEqual "Continuous" $sourceCosmosDBAccount.BackupPolicy.BackupType + Assert-AreEqual "Continuous7Days" $sourceCosmosDBAccount.BackupPolicy.Tier + + $sourceRestorableAccount = Get-AzCosmosDBRestorableDatabaseAccount -Location $sourceCosmosDBAccount.Location -DatabaseAccountInstanceId $sourceCosmosDBAccount.InstanceId + Assert-NotNull $sourceRestorableAccount.Id + Assert-NotNull $sourceRestorableAccount.Location + Assert-NotNull $sourceRestorableAccount.DatabaseAccountInstanceId + Assert-NotNull $sourceRestorableAccount.RestorableLocations + Assert-AreEqual $sourceRestorableAccount.RestorableLocations.Count 1 + Assert-AreEqual $sourceRestorableAccount.DatabaseAccountInstanceId $sourceCosmosDBAccount.InstanceId + Assert-NotNull $sourceRestorableAccount.DatabaseAccountName + Assert-NotNull $sourceRestorableAccount.CreationTime + Assert-NotNull $sourceRestorableAccount.OldestRestorableTime } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.cs b/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.cs index 47ce23fd567a..e7d1c9fd490b 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.cs +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.cs @@ -71,5 +71,19 @@ public void TestClientEncryptionKeyCmdletsUsingInputObject() { TestRunner.RunTestScript("Test-ClientEncryptionKeyCmdletsUsingInputObject"); } + + [Fact(Skip = "Cannot acquire token credential for a specific audience. No support from test framework. I have verified the tests manually.")] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestSqlContainerMergeCmdlet() + { + TestRunner.RunTestScript("Test-SqlContainerMergeCmdlet"); + } + + [Fact(Skip = "Cannot acquire token credential for a specific audience. No support from test framework. I have verified the tests manually.")] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestSqlContainerAdaptiveRUCmdlets() + { + TestRunner.RunTestScript("Test-SqlContainerAdaptiveRUCmdlets"); + } } } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.ps1 b/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.ps1 index 824bd6e2d3fe..89a6e72a3c0e 100644 --- a/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.ps1 +++ b/src/CosmosDB/CosmosDB.Test/ScenarioTests/SqlOperationsTests.ps1 @@ -1144,4 +1144,115 @@ function Test-ClientEncryptionKeyCmdletsUsingInputObject Remove-AzKeyVault -VaultName $vaultName -ResourceGroupName $rgName -Location $location -Force Remove-AzKeyVault -VaultName $vaultName -InRemovedState -Force -Location $location } +} + + +<# +.SYNOPSIS +Test SQL Throughput redistribution cmdlets +#> +function Test-SqlContainerAdaptiveRUCmdlets +{ + $AccountName = "mergetest" + $rgName = "canary-sdk-test" + $DatabaseName = "adaptiverudatabase" + $ContainerName = "adaptiveruContainer" + + $PartitionKeyPathValue = "/foo/bar" + $PartitionKeyKindValue = "Hash" + + $ContainerThroughputValue = 24000 + $UpdatedContainerThroughputValue = 2000 + + Try{ + + New-AzCosmosDBSqlDatabase -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName + New-AzCosmosDBSqlContainer -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Throughput $ContainerThroughputValue -Name $ContainerName -PartitionKeyPath $PartitionKeyPathValue -PartitionKeyKind $PartitionKeyKindValue + Update-AzCosmosDBSqlContainerThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $ContainerName -Throughput $UpdatedContainerThroughputValue + $partitions = Get-AzCosmosDBSqlContainerPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -AllPartitions + Assert-AreEqual $partitions.Count 4 + $sources = @() + $targets = @() + Foreach($partition in $partitions) + { + Assert-AreEqual $partition.Throughput 500 + if($partition.Id -lt 2) + { + $throughput = $partition.Throughput - 100 + $sources += New-AzCosmosDBPhysicalPartitionThroughputObject -Id $partition.Id -Throughput $throughput + } + else + { + $throughput = $partition.Throughput + 100 + $targets += New-AzCosmosDBPhysicalPartitionThroughputObject -Id $partition.Id -Throughput $throughput + } + } + + $newPartitions = Update-AzCosmosDBSqlContainerPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -SourcePhysicalPartitionThroughputObject $sources -TargetPhysicalPartitionThroughputObject $targets + Assert-AreEqual $newPartitions.Count 4 + Foreach($partition in $newPartitions) + { + if($partition.Id -lt 2) + { + Assert-AreEqual $partition.Throughput 400 + } + else + { + Assert-AreEqual $partition.Throughput 600 + } + } + + $resetPartitions = Update-AzCosmosDBSqlContainerPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -EqualDistributionPolicy + + Assert-AreEqual $resetPartitions.Count 4 + + Foreach($partition in $resetPartitions) + { + Assert-AreEqual $partition.Throughput 500 + } + + $somePartitions = Get-AzCosmosDBSqlContainerPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -PhysicalPartitionIds ('0', '1') + Assert-AreEqual $somePartitions.Count 2 + } + Finally{ + Remove-AzCosmosDBSqlContainer -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $ContainerName + Remove-AzCosmosDBSqlDatabase -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName + } +} + + +<# +.SYNOPSIS +Test sql merge cmdlet +#> +function Test-SqlContainerMergeCmdlet +{ + $AccountName = "mergetest" + $rgName = "canary-sdk-test" + $DatabaseName = "mergedatabase" + $ContainerName = "mergecontainer" + + $PartitionKeyPathValue = "/foo/bar" + $PartitionKeyKindValue = "Hash" + + $ContainerThroughputValue = 24000 + $UpdatedContainerThroughputValue = 2000 + + Try{ + + New-AzCosmosDBSqlDatabase -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName + New-AzCosmosDBSqlContainer -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Throughput $ContainerThroughputValue -Name $ContainerName -PartitionKeyPath $PartitionKeyPathValue -PartitionKeyKind $PartitionKeyKindValue + Update-AzCosmosDBSqlContainerThroughput -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $ContainerName -Throughput $UpdatedContainerThroughputValue + $physicalPartitionStorageInfos = Invoke-AzCosmosDBSqlContainerMerge -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -Force + Assert-AreEqual $physicalPartitionStorageInfos.Count 1 + if($physicalPartitionStorageInfos[0].Id.contains("mergeTarget")) + { + throw "Name of partition: " + $physicalPartitionStorageInfos[0].Id + " Unexpected Id: mergeTarget" + } + + } + Finally{ + Remove-AzCosmosDBSqlContainer -AccountName $AccountName -ResourceGroupName $rgName -DatabaseName $DatabaseName -Name $ContainerName + Remove-AzCosmosDBSqlDatabase -AccountName $AccountName -ResourceGroupName $rgName -Name $DatabaseName + } } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.MongoOperationsTests/TestMongoDBCollectionMergeCmdlet.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.MongoOperationsTests/TestMongoDBCollectionMergeCmdlet.json new file mode 100644 index 000000000000..d068d4529cd0 --- /dev/null +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.MongoOperationsTests/TestMongoDBCollectionMergeCmdlet.json @@ -0,0 +1,1787 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL21vbmdvZGJtZXJnZT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ea01123c-fc11-4302-8b98-c63dc246a555" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "89c75966-9811-46fc-919e-24a8582591ef" + ], + "x-ms-correlation-request-id": [ + "89c75966-9811-46fc-919e-24a8582591ef" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190221Z:89c75966-9811-46fc-919e-24a8582591ef" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:02:20 GMT" + ], + "Content-Length": [ + "165" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"the database mongodbmerge doesn't exist.\\r\\nActivityId: ea01123c-fc11-4302-8b98-c63dc246a555, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL21vbmdvZGJtZXJnZT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ea01123c-fc11-4302-8b98-c63dc246a555" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "479ae5a2-6bc8-42ee-98b3-c48e3663e612" + ], + "x-ms-correlation-request-id": [ + "479ae5a2-6bc8-42ee-98b3-c48e3663e612" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190254Z:479ae5a2-6bc8-42ee-98b3-c48e3663e612" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:02:54 GMT" + ], + "Content-Length": [ + "321" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"mongodbmerge\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"mongodbmerge\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL21vbmdvZGJtZXJnZT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"mongodbmerge\"\r\n },\r\n \"options\": {}\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ea01123c-fc11-4302-8b98-c63dc246a555" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "102" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge/operationResults/d0b214e5-9588-4427-aace-941a3575bced?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/d0b214e5-9588-4427-aace-941a3575bced?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "d0b214e5-9588-4427-aace-941a3575bced" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "1c505776-da87-4b3f-9758-4d2f65553a1c" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190223Z:1c505776-da87-4b3f-9758-4d2f65553a1c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:02:22 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/d0b214e5-9588-4427-aace-941a3575bced?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvYXVzdHJhbGlhY2VudHJhbDIvb3BlcmF0aW9uc1N0YXR1cy9kMGIyMTRlNS05NTg4LTQ0MjctYWFjZS05NDFhMzU3NWJjZWQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ea01123c-fc11-4302-8b98-c63dc246a555" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "004cf4cb-b4c6-442b-85e2-be93c676c055" + ], + "x-ms-correlation-request-id": [ + "004cf4cb-b4c6-442b-85e2-be93c676c055" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190253Z:004cf4cb-b4c6-442b-85e2-be93c676c055" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:02:53 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge/collections/mongodbcollection?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL21vbmdvZGJtZXJnZS9jb2xsZWN0aW9ucy9tb25nb2RiY29sbGVjdGlvbj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f07c3150-faff-4fc4-aa3b-8d25d8a06ac7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "81f99654-78e3-4ef1-b846-819ed4232b9b" + ], + "x-ms-correlation-request-id": [ + "81f99654-78e3-4ef1-b846-819ed4232b9b" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190254Z:81f99654-78e3-4ef1-b846-819ed4232b9b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:02:54 GMT" + ], + "Content-Length": [ + "189" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"The collection 'mongodbmerge'.'mongodbcollection' doesn't exist.\\r\\nActivityId: f07c3150-faff-4fc4-aa3b-8d25d8a06ac7, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge/collections/mongodbcollection?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL21vbmdvZGJtZXJnZS9jb2xsZWN0aW9ucy9tb25nb2RiY29sbGVjdGlvbj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f07c3150-faff-4fc4-aa3b-8d25d8a06ac7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "e410a1aa-dfaa-490b-81de-75961dcfd5c9" + ], + "x-ms-correlation-request-id": [ + "e410a1aa-dfaa-490b-81de-75961dcfd5c9" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190326Z:e410a1aa-dfaa-490b-81de-75961dcfd5c9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:03:25 GMT" + ], + "Content-Length": [ + "445" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge/collections/mongodbcollection\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections\",\r\n \"name\": \"mongodbcollection\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"mongodbcollection\",\r\n \"shardKey\": {\r\n \"shardKeyPath\": \"Hash\"\r\n },\r\n \"indexes\": [\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"_id\"\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge/collections/mongodbcollection?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL21vbmdvZGJtZXJnZS9jb2xsZWN0aW9ucy9tb25nb2RiY29sbGVjdGlvbj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"mongodbcollection\",\r\n \"shardKey\": {\r\n \"shardKeyPath\": \"Hash\"\r\n }\r\n },\r\n \"options\": {\r\n \"throughput\": 20000\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f07c3150-faff-4fc4-aa3b-8d25d8a06ac7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "203" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge/collections/mongodbcollection/operationResults/8f62092b-8918-461e-afda-daded182ebdd?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/8f62092b-8918-461e-afda-daded182ebdd?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "8f62092b-8918-461e-afda-daded182ebdd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "014ecbd9-dc0b-444e-9731-d432e4d0a873" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190255Z:014ecbd9-dc0b-444e-9731-d432e4d0a873" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:02:55 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/8f62092b-8918-461e-afda-daded182ebdd?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvYXVzdHJhbGlhY2VudHJhbDIvb3BlcmF0aW9uc1N0YXR1cy84ZjYyMDkyYi04OTE4LTQ2MWUtYWZkYS1kYWRlZDE4MmViZGQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f07c3150-faff-4fc4-aa3b-8d25d8a06ac7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "d815a84c-0b06-4b3d-930a-ff42fc89df0b" + ], + "x-ms-correlation-request-id": [ + "d815a84c-0b06-4b3d-930a-ff42fc89df0b" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190325Z:d815a84c-0b06-4b3d-930a-ff42fc89df0b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:03:25 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge/collections/mongodbcollection/throughputSettings/default?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL21vbmdvZGJtZXJnZS9jb2xsZWN0aW9ucy9tb25nb2RiY29sbGVjdGlvbi90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 2000\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "10cb3092-8132-487e-93e8-46bfbe5898b6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge/collections/mongodbcollection/throughputSettings/default/operationResults/6bdb6eb0-abc0-43c7-ba77-287ff441d829?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/6bdb6eb0-abc0-43c7-ba77-287ff441d829?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "6bdb6eb0-abc0-43c7-ba77-287ff441d829" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "b0450deb-fbc7-466c-a020-f12fca406daa" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190326Z:b0450deb-fbc7-466c-a020-f12fca406daa" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:03:26 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/6bdb6eb0-abc0-43c7-ba77-287ff441d829?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvYXVzdHJhbGlhY2VudHJhbDIvb3BlcmF0aW9uc1N0YXR1cy82YmRiNmViMC1hYmMwLTQzYzctYmE3Ny0yODdmZjQ0MWQ4Mjk/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "10cb3092-8132-487e-93e8-46bfbe5898b6" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "277e9357-0f8d-47c6-ba06-973e62bc98b2" + ], + "x-ms-correlation-request-id": [ + "277e9357-0f8d-47c6-ba06-973e62bc98b2" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190357Z:277e9357-0f8d-47c6-ba06-973e62bc98b2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:03:56 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge/collections/mongodbcollection/throughputSettings/default?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL21vbmdvZGJtZXJnZS9jb2xsZWN0aW9ucy9tb25nb2RiY29sbGVjdGlvbi90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "10cb3092-8132-487e-93e8-46bfbe5898b6" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "32fc0183-9817-46a6-b8d5-4b60138d40cb" + ], + "x-ms-correlation-request-id": [ + "32fc0183-9817-46a6-b8d5-4b60138d40cb" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190357Z:32fc0183-9817-46a6-b8d5-4b60138d40cb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:03:57 GMT" + ], + "Content-Length": [ + "425" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge/collections/mongodbcollection/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings\",\r\n \"name\": \"18qt\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 2000,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9zcWxEYXRhYmFzZXMvbW9uZ29kYm1lcmdlL2NvbnRhaW5lcnMvbW9uZ29kYmNvbGxlY3Rpb24vcGFydGl0aW9uTWVyZ2U/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"IsDryRun\": false\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef21c32b-8b01-4b13-beee-609e8b1c2eef" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "25" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "94a96609-47d4-4113-a0e0-4f1725d4dfec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "0f556a4d-594f-4e68-9f00-d7ca258cdab4" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190358Z:0f556a4d-594f-4e68-9f00-d7ca258cdab4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:03:58 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9zcWxEYXRhYmFzZXMvbW9uZ29kYm1lcmdlL2NvbnRhaW5lcnMvbW9uZ29kYmNvbGxlY3Rpb24vcGFydGl0aW9uTWVyZ2Uvb3BlcmF0aW9uUmVzdWx0cy85NGE5NjYwOS00N2Q0LTQxMTMtYTBlMC00ZjE3MjVkNGRmZWM/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef21c32b-8b01-4b13-beee-609e8b1c2eef" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "94a96609-47d4-4113-a0e0-4f1725d4dfec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "31ec61e4-7d7b-4c1d-b5f0-b97fe5bc3147" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190428Z:31ec61e4-7d7b-4c1d-b5f0-b97fe5bc3147" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:04:28 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9zcWxEYXRhYmFzZXMvbW9uZ29kYm1lcmdlL2NvbnRhaW5lcnMvbW9uZ29kYmNvbGxlY3Rpb24vcGFydGl0aW9uTWVyZ2Uvb3BlcmF0aW9uUmVzdWx0cy85NGE5NjYwOS00N2Q0LTQxMTMtYTBlMC00ZjE3MjVkNGRmZWM/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef21c32b-8b01-4b13-beee-609e8b1c2eef" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "94a96609-47d4-4113-a0e0-4f1725d4dfec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "008786bf-6636-4bef-819c-97da46cc22a5" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190459Z:008786bf-6636-4bef-819c-97da46cc22a5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:04:59 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9zcWxEYXRhYmFzZXMvbW9uZ29kYm1lcmdlL2NvbnRhaW5lcnMvbW9uZ29kYmNvbGxlY3Rpb24vcGFydGl0aW9uTWVyZ2Uvb3BlcmF0aW9uUmVzdWx0cy85NGE5NjYwOS00N2Q0LTQxMTMtYTBlMC00ZjE3MjVkNGRmZWM/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef21c32b-8b01-4b13-beee-609e8b1c2eef" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "94a96609-47d4-4113-a0e0-4f1725d4dfec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "0f54e21c-c5bf-4059-9928-0e957cb1bdec" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190529Z:0f54e21c-c5bf-4059-9928-0e957cb1bdec" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:05:29 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9zcWxEYXRhYmFzZXMvbW9uZ29kYm1lcmdlL2NvbnRhaW5lcnMvbW9uZ29kYmNvbGxlY3Rpb24vcGFydGl0aW9uTWVyZ2Uvb3BlcmF0aW9uUmVzdWx0cy85NGE5NjYwOS00N2Q0LTQxMTMtYTBlMC00ZjE3MjVkNGRmZWM/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef21c32b-8b01-4b13-beee-609e8b1c2eef" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "94a96609-47d4-4113-a0e0-4f1725d4dfec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "cebb67d3-d021-47e9-b677-34fd9a4e3891" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190559Z:cebb67d3-d021-47e9-b677-34fd9a4e3891" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:05:59 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9zcWxEYXRhYmFzZXMvbW9uZ29kYm1lcmdlL2NvbnRhaW5lcnMvbW9uZ29kYmNvbGxlY3Rpb24vcGFydGl0aW9uTWVyZ2Uvb3BlcmF0aW9uUmVzdWx0cy85NGE5NjYwOS00N2Q0LTQxMTMtYTBlMC00ZjE3MjVkNGRmZWM/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef21c32b-8b01-4b13-beee-609e8b1c2eef" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "94a96609-47d4-4113-a0e0-4f1725d4dfec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "2c720b1c-844c-488f-95af-e3d57ae44f2b" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190630Z:2c720b1c-844c-488f-95af-e3d57ae44f2b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:06:30 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9zcWxEYXRhYmFzZXMvbW9uZ29kYm1lcmdlL2NvbnRhaW5lcnMvbW9uZ29kYmNvbGxlY3Rpb24vcGFydGl0aW9uTWVyZ2Uvb3BlcmF0aW9uUmVzdWx0cy85NGE5NjYwOS00N2Q0LTQxMTMtYTBlMC00ZjE3MjVkNGRmZWM/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef21c32b-8b01-4b13-beee-609e8b1c2eef" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "94a96609-47d4-4113-a0e0-4f1725d4dfec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "ed6fdaaa-17a4-4499-8e1f-01114ce0c630" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190700Z:ed6fdaaa-17a4-4499-8e1f-01114ce0c630" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:07:00 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9zcWxEYXRhYmFzZXMvbW9uZ29kYm1lcmdlL2NvbnRhaW5lcnMvbW9uZ29kYmNvbGxlY3Rpb24vcGFydGl0aW9uTWVyZ2Uvb3BlcmF0aW9uUmVzdWx0cy85NGE5NjYwOS00N2Q0LTQxMTMtYTBlMC00ZjE3MjVkNGRmZWM/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef21c32b-8b01-4b13-beee-609e8b1c2eef" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "94a96609-47d4-4113-a0e0-4f1725d4dfec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "10246bb1-262d-4cbb-b05c-bc186e4b556a" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190730Z:10246bb1-262d-4cbb-b05c-bc186e4b556a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:07:30 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9zcWxEYXRhYmFzZXMvbW9uZ29kYm1lcmdlL2NvbnRhaW5lcnMvbW9uZ29kYmNvbGxlY3Rpb24vcGFydGl0aW9uTWVyZ2Uvb3BlcmF0aW9uUmVzdWx0cy85NGE5NjYwOS00N2Q0LTQxMTMtYTBlMC00ZjE3MjVkNGRmZWM/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef21c32b-8b01-4b13-beee-609e8b1c2eef" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "94a96609-47d4-4113-a0e0-4f1725d4dfec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "57d071bf-ba9e-4bfa-a879-5d170fa94919" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190800Z:57d071bf-ba9e-4bfa-a879-5d170fa94919" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:08:00 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9zcWxEYXRhYmFzZXMvbW9uZ29kYm1lcmdlL2NvbnRhaW5lcnMvbW9uZ29kYmNvbGxlY3Rpb24vcGFydGl0aW9uTWVyZ2Uvb3BlcmF0aW9uUmVzdWx0cy85NGE5NjYwOS00N2Q0LTQxMTMtYTBlMC00ZjE3MjVkNGRmZWM/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef21c32b-8b01-4b13-beee-609e8b1c2eef" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "c689484a-ff7e-4196-87cd-2566e4fc874c" + ], + "x-ms-correlation-request-id": [ + "c689484a-ff7e-4196-87cd-2566e4fc874c" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190831Z:c689484a-ff7e-4196-87cd-2566e4fc874c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:08:31 GMT" + ], + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"physicalPartitionStorageInfoCollection\": [\r\n {\r\n \"storageInKB\": 0.0,\r\n \"id\": \"4\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/sqlDatabases/mongodbmerge/containers/mongodbcollection/partitionMerge/operationResults/94a96609-47d4-4113-a0e0-4f1725d4dfec?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9zcWxEYXRhYmFzZXMvbW9uZ29kYm1lcmdlL2NvbnRhaW5lcnMvbW9uZ29kYmNvbGxlY3Rpb24vcGFydGl0aW9uTWVyZ2Uvb3BlcmF0aW9uUmVzdWx0cy85NGE5NjYwOS00N2Q0LTQxMTMtYTBlMC00ZjE3MjVkNGRmZWM/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ef21c32b-8b01-4b13-beee-609e8b1c2eef" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "346285cd-6e0d-4e19-a94e-0f11f58d809f" + ], + "x-ms-correlation-request-id": [ + "346285cd-6e0d-4e19-a94e-0f11f58d809f" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190832Z:346285cd-6e0d-4e19-a94e-0f11f58d809f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:08:31 GMT" + ], + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"physicalPartitionStorageInfoCollection\": [\r\n {\r\n \"storageInKB\": 0.0,\r\n \"id\": \"4\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge/collections/mongodbcollection?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL21vbmdvZGJtZXJnZS9jb2xsZWN0aW9ucy9tb25nb2RiY29sbGVjdGlvbj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e2032530-7a98-4dce-a6e0-de980fbf3e8a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge/collections/mongodbcollection/operationResults/8ce0a671-06a6-400c-875c-48e0fb6edbe4?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/8ce0a671-06a6-400c-875c-48e0fb6edbe4?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "8ce0a671-06a6-400c-875c-48e0fb6edbe4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "59fc881d-bb1b-45b9-adf2-2d61e1fde709" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190832Z:59fc881d-bb1b-45b9-adf2-2d61e1fde709" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:08:31 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/8ce0a671-06a6-400c-875c-48e0fb6edbe4?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvYXVzdHJhbGlhY2VudHJhbDIvb3BlcmF0aW9uc1N0YXR1cy84Y2UwYTY3MS0wNmE2LTQwMGMtODc1Yy00OGUwZmI2ZWRiZTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e2032530-7a98-4dce-a6e0-de980fbf3e8a" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "35700593-182c-44b7-9107-48a6f4715d07" + ], + "x-ms-correlation-request-id": [ + "35700593-182c-44b7-9107-48a6f4715d07" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190903Z:35700593-182c-44b7-9107-48a6f4715d07" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:09:03 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge/collections/mongodbcollection/operationResults/8ce0a671-06a6-400c-875c-48e0fb6edbe4?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL21vbmdvZGJtZXJnZS9jb2xsZWN0aW9ucy9tb25nb2RiY29sbGVjdGlvbi9vcGVyYXRpb25SZXN1bHRzLzhjZTBhNjcxLTA2YTYtNDAwYy04NzVjLTQ4ZTBmYjZlZGJlND9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e2032530-7a98-4dce-a6e0-de980fbf3e8a" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-request-id": [ + "ec88eacf-3297-44fe-8fed-48b0d1d59fc5" + ], + "x-ms-correlation-request-id": [ + "ec88eacf-3297-44fe-8fed-48b0d1d59fc5" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190903Z:ec88eacf-3297-44fe-8fed-48b0d1d59fc5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:09:03 GMT" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL21vbmdvZGJtZXJnZT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6feaec3f-6b15-4d85-b6ee-293705f7f6d8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge/operationResults/6130152f-89f0-4bb6-9515-a1417a53e758?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/6130152f-89f0-4bb6-9515-a1417a53e758?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "6130152f-89f0-4bb6-9515-a1417a53e758" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "74c4fcb5-b605-4cc7-bcbf-f5562a507bbd" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190905Z:74c4fcb5-b605-4cc7-bcbf-f5562a507bbd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:09:05 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/6130152f-89f0-4bb6-9515-a1417a53e758?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvYXVzdHJhbGlhY2VudHJhbDIvb3BlcmF0aW9uc1N0YXR1cy82MTMwMTUyZi04OWYwLTRiYjYtOTUxNS1hMTQxN2E1M2U3NTg/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6feaec3f-6b15-4d85-b6ee-293705f7f6d8" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "6909a9d0-cdbb-4539-9551-fb4aa0adbdcc" + ], + "x-ms-correlation-request-id": [ + "6909a9d0-cdbb-4539-9551-fb4aa0adbdcc" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190936Z:6909a9d0-cdbb-4539-9551-fb4aa0adbdcc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:09:36 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/mongodbmerge/operationResults/6130152f-89f0-4bb6-9515-a1417a53e758?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL21vbmdvZGJtZXJnZS9vcGVyYXRpb25SZXN1bHRzLzYxMzAxNTJmLTg5ZjAtNGJiNi05NTE1LWExNDE3YTUzZTc1OD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6feaec3f-6b15-4d85-b6ee-293705f7f6d8" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "645bcda1-b651-4e94-b5a0-34368ad3e852" + ], + "x-ms-correlation-request-id": [ + "645bcda1-b651-4e94-b5a0-34368ad3e852" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220518T190936Z:645bcda1-b651-4e94-b5a0-34368ad3e852" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 18 May 2022 19:09:36 GMT" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "12053b8f-cab5-4f5c-9c1a-870580142abd" + } +} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.MongoOperationsTests/TestMongoDBCollectionThroughputRedistributionCmdlet.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.MongoOperationsTests/TestMongoDBCollectionThroughputRedistributionCmdlet.json new file mode 100644 index 000000000000..8e3a5470b490 --- /dev/null +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.MongoOperationsTests/TestMongoDBCollectionThroughputRedistributionCmdlet.json @@ -0,0 +1,1871 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9c7dfa06-4788-4aeb-bdf9-376da7a802fd" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "9940b12c-bdd0-48fd-8f12-d7e0ef2c6863" + ], + "x-ms-correlation-request-id": [ + "9940b12c-bdd0-48fd-8f12-d7e0ef2c6863" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T095937Z:9940b12c-bdd0-48fd-8f12-d7e0ef2c6863" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:59:36 GMT" + ], + "Content-Length": [ + "171" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"the database adaptiverudatabase doesn't exist.\\r\\nActivityId: 9c7dfa06-4788-4aeb-bdf9-376da7a802fd, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9c7dfa06-4788-4aeb-bdf9-376da7a802fd" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-request-id": [ + "48d55895-aac5-49fc-9f3c-066b00ab5a7f" + ], + "x-ms-correlation-request-id": [ + "48d55895-aac5-49fc-9f3c-066b00ab5a7f" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100009Z:48d55895-aac5-49fc-9f3c-066b00ab5a7f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:00:09 GMT" + ], + "Content-Length": [ + "339" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"adaptiverudatabase\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"adaptiverudatabase\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"adaptiverudatabase\"\r\n },\r\n \"options\": {}\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9c7dfa06-4788-4aeb-bdf9-376da7a802fd" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "108" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/operationResults/cac30bba-05ce-4b32-931f-66866e6dfe3a?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/cac30bba-05ce-4b32-931f-66866e6dfe3a?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "cac30bba-05ce-4b32-931f-66866e6dfe3a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "b8025e3c-ad49-4745-9626-797f4f39c5bd" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T095939Z:b8025e3c-ad49-4745-9626-797f4f39c5bd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:59:38 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/cac30bba-05ce-4b32-931f-66866e6dfe3a?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvYXVzdHJhbGlhY2VudHJhbDIvb3BlcmF0aW9uc1N0YXR1cy9jYWMzMGJiYS0wNWNlLTRiMzItOTMxZi02Njg2NmU2ZGZlM2E/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9c7dfa06-4788-4aeb-bdf9-376da7a802fd" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-request-id": [ + "bb3a6b6f-28bd-4bc5-8388-5ecca1f7f096" + ], + "x-ms-correlation-request-id": [ + "bb3a6b6f-28bd-4bc5-8388-5ecca1f7f096" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100009Z:bb3a6b6f-28bd-4bc5-8388-5ecca1f7f096" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:00:09 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb2xsZWN0aW9ucy9hZGFwdGl2ZXJ1Q29udGFpbmVyP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "707ccb01-a584-43c6-b625-dc6cb4b13b04" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-request-id": [ + "771baaee-ee52-419b-9e91-f56ce8463fdc" + ], + "x-ms-correlation-request-id": [ + "771baaee-ee52-419b-9e91-f56ce8463fdc" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100010Z:771baaee-ee52-419b-9e91-f56ce8463fdc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:00:09 GMT" + ], + "Content-Length": [ + "197" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"The collection 'adaptiverudatabase'.'adaptiveruContainer' doesn't exist.\\r\\nActivityId: 707ccb01-a584-43c6-b625-dc6cb4b13b04, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb2xsZWN0aW9ucy9hZGFwdGl2ZXJ1Q29udGFpbmVyP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "707ccb01-a584-43c6-b625-dc6cb4b13b04" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-request-id": [ + "f63d4138-e384-4110-896d-9762be6ec32a" + ], + "x-ms-correlation-request-id": [ + "f63d4138-e384-4110-896d-9762be6ec32a" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100041Z:f63d4138-e384-4110-896d-9762be6ec32a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:00:41 GMT" + ], + "Content-Length": [ + "457" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections\",\r\n \"name\": \"adaptiveruContainer\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"adaptiveruContainer\",\r\n \"shardKey\": {\r\n \"shardKeyPath\": \"Hash\"\r\n },\r\n \"indexes\": [\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"_id\"\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb2xsZWN0aW9ucy9hZGFwdGl2ZXJ1Q29udGFpbmVyP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"adaptiveruContainer\",\r\n \"shardKey\": {\r\n \"shardKeyPath\": \"Hash\"\r\n }\r\n },\r\n \"options\": {\r\n \"throughput\": 24000\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "707ccb01-a584-43c6-b625-dc6cb4b13b04" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "205" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/operationResults/6b20de55-378c-44c7-9418-f3bc57993e27?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/6b20de55-378c-44c7-9418-f3bc57993e27?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "6b20de55-378c-44c7-9418-f3bc57993e27" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "d10609f5-d063-49da-a334-f94baccc1eec" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100011Z:d10609f5-d063-49da-a334-f94baccc1eec" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:00:10 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/6b20de55-378c-44c7-9418-f3bc57993e27?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvYXVzdHJhbGlhY2VudHJhbDIvb3BlcmF0aW9uc1N0YXR1cy82YjIwZGU1NS0zNzhjLTQ0YzctOTQxOC1mM2JjNTc5OTNlMjc/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "707ccb01-a584-43c6-b625-dc6cb4b13b04" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-request-id": [ + "7792d5a8-ae1b-40ca-9aa0-b8bcf0e7a5dd" + ], + "x-ms-correlation-request-id": [ + "7792d5a8-ae1b-40ca-9aa0-b8bcf0e7a5dd" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100041Z:7792d5a8-ae1b-40ca-9aa0-b8bcf0e7a5dd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:00:40 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb2xsZWN0aW9ucy9hZGFwdGl2ZXJ1Q29udGFpbmVyL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 2000\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c27cd01b-00d0-4eda-a728-9d789a394a9b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/operationResults/985bf83e-1071-48c1-a631-bf5550ab4ce0?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/985bf83e-1071-48c1-a631-bf5550ab4ce0?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "985bf83e-1071-48c1-a631-bf5550ab4ce0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "138c7e0c-5e5b-41f4-99ad-e93acce19476" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100042Z:138c7e0c-5e5b-41f4-99ad-e93acce19476" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:00:41 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/985bf83e-1071-48c1-a631-bf5550ab4ce0?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvYXVzdHJhbGlhY2VudHJhbDIvb3BlcmF0aW9uc1N0YXR1cy85ODViZjgzZS0xMDcxLTQ4YzEtYTYzMS1iZjU1NTBhYjRjZTA/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c27cd01b-00d0-4eda-a728-9d789a394a9b" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-request-id": [ + "68265367-69a6-472e-a3bf-ff3b1b0d4bec" + ], + "x-ms-correlation-request-id": [ + "68265367-69a6-472e-a3bf-ff3b1b0d4bec" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100112Z:68265367-69a6-472e-a3bf-ff3b1b0d4bec" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:01:12 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb2xsZWN0aW9ucy9hZGFwdGl2ZXJ1Q29udGFpbmVyL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c27cd01b-00d0-4eda-a728-9d789a394a9b" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-request-id": [ + "115f4b22-c44d-48ce-80e5-3ca4a0ab772e" + ], + "x-ms-correlation-request-id": [ + "115f4b22-c44d-48ce-80e5-3ca4a0ab772e" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100113Z:115f4b22-c44d-48ce-80e5-3ca4a0ab772e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:01:13 GMT" + ], + "Content-Length": [ + "433" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings\",\r\n \"name\": \"AONr\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 2000,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb2xsZWN0aW9ucy9hZGFwdGl2ZXJ1Q29udGFpbmVyL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0L3JldHJpZXZlVGhyb3VnaHB1dERpc3RyaWJ1dGlvbj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"physicalPartitionIds\": [\r\n {\r\n \"id\": \"-1\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b719960f-5cf1-49a7-bc49-ab1120a53e35" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "140" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution/operationResults/baa9ca9c-2e7c-4e1e-87a3-af8206405565?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/baa9ca9c-2e7c-4e1e-87a3-af8206405565?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "baa9ca9c-2e7c-4e1e-87a3-af8206405565" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "cd838c1c-c096-48e7-90df-4cd553cd104d" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100114Z:cd838c1c-c096-48e7-90df-4cd553cd104d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:01:14 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb2xsZWN0aW9ucy9hZGFwdGl2ZXJ1Q29udGFpbmVyL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0L3JldHJpZXZlVGhyb3VnaHB1dERpc3RyaWJ1dGlvbj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"physicalPartitionIds\": [\r\n {\r\n \"id\": \"0\"\r\n },\r\n {\r\n \"id\": \"1\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0ebaf18f-8b34-4268-85fd-d2b9dd1b7ca4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution/operationResults/c51d3a5e-6eaa-45a2-97e3-8f3486726960?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/c51d3a5e-6eaa-45a2-97e3-8f3486726960?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "c51d3a5e-6eaa-45a2-97e3-8f3486726960" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "f5e0ccf9-e02d-4eb9-a92c-15ced8a81bdf" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100248Z:f5e0ccf9-e02d-4eb9-a92c-15ced8a81bdf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:02:47 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/baa9ca9c-2e7c-4e1e-87a3-af8206405565?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvYXVzdHJhbGlhY2VudHJhbDIvb3BlcmF0aW9uc1N0YXR1cy9iYWE5Y2E5Yy0yZTdjLTRlMWUtODdhMy1hZjgyMDY0MDU1NjU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b719960f-5cf1-49a7-bc49-ab1120a53e35" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-request-id": [ + "228088e9-ce9d-456d-9a64-29bf8e487def" + ], + "x-ms-correlation-request-id": [ + "228088e9-ce9d-456d-9a64-29bf8e487def" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100144Z:228088e9-ce9d-456d-9a64-29bf8e487def" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:01:44 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution/operationResults/baa9ca9c-2e7c-4e1e-87a3-af8206405565?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb2xsZWN0aW9ucy9hZGFwdGl2ZXJ1Q29udGFpbmVyL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0L3JldHJpZXZlVGhyb3VnaHB1dERpc3RyaWJ1dGlvbi9vcGVyYXRpb25SZXN1bHRzL2JhYTljYTljLTJlN2MtNGUxZS04N2EzLWFmODIwNjQwNTU2NT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b719960f-5cf1-49a7-bc49-ab1120a53e35" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-request-id": [ + "9e4c5c17-dda9-413a-8bf8-6a156586689d" + ], + "x-ms-correlation-request-id": [ + "9e4c5c17-dda9-413a-8bf8-6a156586689d" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100144Z:9e4c5c17-dda9-413a-8bf8-6a156586689d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:01:44 GMT" + ], + "Content-Length": [ + "607" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/retrieveThroughputDistribution\",\r\n \"name\": \"AONr\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"physicalPartitionThroughputInfo\": [\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"3\"\r\n },\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"1\"\r\n },\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"2\"\r\n },\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"0\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/redistributeThroughput?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb2xsZWN0aW9ucy9hZGFwdGl2ZXJ1Q29udGFpbmVyL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0L3JlZGlzdHJpYnV0ZVRocm91Z2hwdXQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughputPolicy\": \"Custom\",\r\n \"targetPhysicalPartitionThroughputInfo\": [\r\n {\r\n \"id\": \"3\",\r\n \"throughput\": 600.0\r\n },\r\n {\r\n \"id\": \"2\",\r\n \"throughput\": 600.0\r\n }\r\n ],\r\n \"sourcePhysicalPartitionThroughputInfo\": [\r\n {\r\n \"id\": \"1\",\r\n \"throughput\": 400.0\r\n },\r\n {\r\n \"id\": \"0\",\r\n \"throughput\": 400.0\r\n }\r\n ]\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f74b0a88-2603-40a3-aa98-302ddd71d0d7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "512" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/redistributeThroughput/operationResults/d9c8dc99-9ddc-4d27-a446-b6ee79569870?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/d9c8dc99-9ddc-4d27-a446-b6ee79569870?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "d9c8dc99-9ddc-4d27-a446-b6ee79569870" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "a04ff420-a4a8-4036-87f6-5bc9abc21cf3" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100145Z:a04ff420-a4a8-4036-87f6-5bc9abc21cf3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:01:45 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/redistributeThroughput?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb2xsZWN0aW9ucy9hZGFwdGl2ZXJ1Q29udGFpbmVyL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0L3JlZGlzdHJpYnV0ZVRocm91Z2hwdXQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughputPolicy\": \"Equal\",\r\n \"targetPhysicalPartitionThroughputInfo\": [],\r\n \"sourcePhysicalPartitionThroughputInfo\": []\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e57529f0-9e78-4514-afc3-bf6b073005e1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "193" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/redistributeThroughput/operationResults/f1539966-83ef-45ff-8ab5-8713d1db4d5b?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/f1539966-83ef-45ff-8ab5-8713d1db4d5b?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "f1539966-83ef-45ff-8ab5-8713d1db4d5b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "d6889ecf-7d3b-481f-a39f-2764a6ffede8" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100217Z:d6889ecf-7d3b-481f-a39f-2764a6ffede8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:02:16 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/d9c8dc99-9ddc-4d27-a446-b6ee79569870?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvYXVzdHJhbGlhY2VudHJhbDIvb3BlcmF0aW9uc1N0YXR1cy9kOWM4ZGM5OS05ZGRjLTRkMjctYTQ0Ni1iNmVlNzk1Njk4NzA/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f74b0a88-2603-40a3-aa98-302ddd71d0d7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "x-ms-request-id": [ + "36a758ff-8187-47ca-9a1f-86eac253b8ff" + ], + "x-ms-correlation-request-id": [ + "36a758ff-8187-47ca-9a1f-86eac253b8ff" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100216Z:36a758ff-8187-47ca-9a1f-86eac253b8ff" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:02:15 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/redistributeThroughput/operationResults/d9c8dc99-9ddc-4d27-a446-b6ee79569870?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb2xsZWN0aW9ucy9hZGFwdGl2ZXJ1Q29udGFpbmVyL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0L3JlZGlzdHJpYnV0ZVRocm91Z2hwdXQvb3BlcmF0aW9uUmVzdWx0cy9kOWM4ZGM5OS05ZGRjLTRkMjctYTQ0Ni1iNmVlNzk1Njk4NzA/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f74b0a88-2603-40a3-aa98-302ddd71d0d7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-request-id": [ + "1da13b93-4191-4582-80e8-2a74032f012a" + ], + "x-ms-correlation-request-id": [ + "1da13b93-4191-4582-80e8-2a74032f012a" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100216Z:1da13b93-4191-4582-80e8-2a74032f012a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:02:15 GMT" + ], + "Content-Length": [ + "591" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/redistributeThroughput\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/redistributeThroughput\",\r\n \"name\": \"AONr\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"physicalPartitionThroughputInfo\": [\r\n {\r\n \"throughput\": 600.0,\r\n \"id\": \"3\"\r\n },\r\n {\r\n \"throughput\": 400.0,\r\n \"id\": \"1\"\r\n },\r\n {\r\n \"throughput\": 600.0,\r\n \"id\": \"2\"\r\n },\r\n {\r\n \"throughput\": 400.0,\r\n \"id\": \"0\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/f1539966-83ef-45ff-8ab5-8713d1db4d5b?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvYXVzdHJhbGlhY2VudHJhbDIvb3BlcmF0aW9uc1N0YXR1cy9mMTUzOTk2Ni04M2VmLTQ1ZmYtOGFiNS04NzEzZDFkYjRkNWI/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e57529f0-9e78-4514-afc3-bf6b073005e1" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-request-id": [ + "9ea89e3c-3dda-4ec9-b604-72a4b164820b" + ], + "x-ms-correlation-request-id": [ + "9ea89e3c-3dda-4ec9-b604-72a4b164820b" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100247Z:9ea89e3c-3dda-4ec9-b604-72a4b164820b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:02:46 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/redistributeThroughput/operationResults/f1539966-83ef-45ff-8ab5-8713d1db4d5b?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb2xsZWN0aW9ucy9hZGFwdGl2ZXJ1Q29udGFpbmVyL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0L3JlZGlzdHJpYnV0ZVRocm91Z2hwdXQvb3BlcmF0aW9uUmVzdWx0cy9mMTUzOTk2Ni04M2VmLTQ1ZmYtOGFiNS04NzEzZDFkYjRkNWI/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e57529f0-9e78-4514-afc3-bf6b073005e1" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-request-id": [ + "2eefb121-9437-4437-b7cb-a48ef26dcfcf" + ], + "x-ms-correlation-request-id": [ + "2eefb121-9437-4437-b7cb-a48ef26dcfcf" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100247Z:2eefb121-9437-4437-b7cb-a48ef26dcfcf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:02:47 GMT" + ], + "Content-Length": [ + "591" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/redistributeThroughput\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/redistributeThroughput\",\r\n \"name\": \"AONr\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"physicalPartitionThroughputInfo\": [\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"3\"\r\n },\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"1\"\r\n },\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"2\"\r\n },\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"0\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/c51d3a5e-6eaa-45a2-97e3-8f3486726960?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvYXVzdHJhbGlhY2VudHJhbDIvb3BlcmF0aW9uc1N0YXR1cy9jNTFkM2E1ZS02ZWFhLTQ1YTItOTdlMy04ZjM0ODY3MjY5NjA/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0ebaf18f-8b34-4268-85fd-d2b9dd1b7ca4" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-request-id": [ + "57475f70-9f69-4ea4-9a5a-39652cc8af48" + ], + "x-ms-correlation-request-id": [ + "57475f70-9f69-4ea4-9a5a-39652cc8af48" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100318Z:57475f70-9f69-4ea4-9a5a-39652cc8af48" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:03:17 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution/operationResults/c51d3a5e-6eaa-45a2-97e3-8f3486726960?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb2xsZWN0aW9ucy9hZGFwdGl2ZXJ1Q29udGFpbmVyL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0L3JldHJpZXZlVGhyb3VnaHB1dERpc3RyaWJ1dGlvbi9vcGVyYXRpb25SZXN1bHRzL2M1MWQzYTVlLTZlYWEtNDVhMi05N2UzLThmMzQ4NjcyNjk2MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0ebaf18f-8b34-4268-85fd-d2b9dd1b7ca4" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-request-id": [ + "0ca623b8-f5d7-46f5-8895-932967d85446" + ], + "x-ms-correlation-request-id": [ + "0ca623b8-f5d7-46f5-8895-932967d85446" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100319Z:0ca623b8-f5d7-46f5-8895-932967d85446" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:03:18 GMT" + ], + "Content-Length": [ + "547" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/retrieveThroughputDistribution\",\r\n \"name\": \"AONr\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"physicalPartitionThroughputInfo\": [\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"1\"\r\n },\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"0\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb2xsZWN0aW9ucy9hZGFwdGl2ZXJ1Q29udGFpbmVyP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1bd64d5f-6ca3-47ba-a819-5e1dd11028a6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/operationResults/66b116b9-76b1-4366-ba9d-fa3db2799ad7?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/66b116b9-76b1-4366-ba9d-fa3db2799ad7?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "66b116b9-76b1-4366-ba9d-fa3db2799ad7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "7b77d805-aa07-4a02-b9f1-0e1a36ede37a" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100319Z:7b77d805-aa07-4a02-b9f1-0e1a36ede37a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:03:18 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/66b116b9-76b1-4366-ba9d-fa3db2799ad7?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvYXVzdHJhbGlhY2VudHJhbDIvb3BlcmF0aW9uc1N0YXR1cy82NmIxMTZiOS03NmIxLTQzNjYtYmE5ZC1mYTNkYjI3OTlhZDc/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1bd64d5f-6ca3-47ba-a819-5e1dd11028a6" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "x-ms-request-id": [ + "1a9f69ba-6f75-4c9c-9b45-73fea553834d" + ], + "x-ms-correlation-request-id": [ + "1a9f69ba-6f75-4c9c-9b45-73fea553834d" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100350Z:1a9f69ba-6f75-4c9c-9b45-73fea553834d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:03:49 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/collections/adaptiveruContainer/operationResults/66b116b9-76b1-4366-ba9d-fa3db2799ad7?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb2xsZWN0aW9ucy9hZGFwdGl2ZXJ1Q29udGFpbmVyL29wZXJhdGlvblJlc3VsdHMvNjZiMTE2YjktNzZiMS00MzY2LWJhOWQtZmEzZGIyNzk5YWQ3P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1bd64d5f-6ca3-47ba-a819-5e1dd11028a6" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-request-id": [ + "2190a6c5-942b-445d-9b0d-8af03686726a" + ], + "x-ms-correlation-request-id": [ + "2190a6c5-942b-445d-9b0d-8af03686726a" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T100350Z:2190a6c5-942b-445d-9b0d-8af03686726a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:03:50 GMT" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4bdd8ce8-d26e-493e-9b9f-c5ce678f72c2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/operationResults/8069b034-6b8b-4102-8042-8678c6840e0e?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/8069b034-6b8b-4102-8042-8678c6840e0e?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "8069b034-6b8b-4102-8042-8678c6840e0e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "7d8ee143-6679-4cdf-9a4a-c793e2631b8a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20220519T100352Z:7d8ee143-6679-4cdf-9a4a-c793e2631b8a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:03:51 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/australiacentral2/operationsStatus/8069b034-6b8b-4102-8042-8678c6840e0e?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvYXVzdHJhbGlhY2VudHJhbDIvb3BlcmF0aW9uc1N0YXR1cy84MDY5YjAzNC02YjhiLTQxMDItODA0Mi04Njc4YzY4NDBlMGU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4bdd8ce8-d26e-493e-9b9f-c5ce678f72c2" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "1370e386-8406-406a-b8bf-19bae0e51fc3" + ], + "x-ms-correlation-request-id": [ + "1370e386-8406-406a-b8bf-19bae0e51fc3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20220519T100422Z:1370e386-8406-406a-b8bf-19bae0e51fc3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:04:22 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mongomergeaccount/mongodbDatabases/adaptiverudatabase/operationResults/8069b034-6b8b-4102-8042-8678c6840e0e?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tb25nb21lcmdlYWNjb3VudC9tb25nb2RiRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9vcGVyYXRpb25SZXN1bHRzLzgwNjliMDM0LTZiOGItNDEwMi04MDQyLTg2NzhjNjg0MGUwZT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4bdd8ce8-d26e-493e-9b9f-c5ce678f72c2" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "35bf99fc-cf03-4ded-85d3-948c69949394" + ], + "x-ms-correlation-request-id": [ + "35bf99fc-cf03-4ded-85d3-948c69949394" + ], + "x-ms-routing-request-id": [ + "WESTUS:20220519T100422Z:35bf99fc-cf03-4ded-85d3-948c69949394" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 10:04:22 GMT" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "12053b8f-cab5-4f5c-9c1a-870580142abd" + } +} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestMongoDBCollectionBackupInformationCmdLets.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestMongoDBCollectionBackupInformationCmdLets.json index 157f2632a1a5..fb0c59f5ebde 100644 --- a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestMongoDBCollectionBackupInformationCmdLets.json +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestMongoDBCollectionBackupInformationCmdLets.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourcegroups/CosmosDBResourceGroup15?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourcegroups/CosmosDBResourceGroup15?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "61cc5103-0f5a-4b55-9d64-8ce2bb13f405" + "85ffec80-c589-4cd7-954f-b4a05f7adb94" ], "Accept-Language": [ "en-US" @@ -15,7 +15,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.57" ], "Content-Type": [ @@ -36,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "23ee799a-5977-4857-9fcf-ab15a3a42be4" + "0e37d9f2-cd81-4300-b9d1-d5c82818194c" ], "x-ms-correlation-request-id": [ - "23ee799a-5977-4857-9fcf-ab15a3a42be4" + "0e37d9f2-cd81-4300-b9d1-d5c82818194c" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114849Z:23ee799a-5977-4857-9fcf-ab15a3a42be4" + "WESTUS2:20220517T042707Z:0e37d9f2-cd81-4300-b9d1-d5c82818194c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,7 +51,7 @@ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:48:49 GMT" + "Tue, 17 May 2022 04:27:06 GMT" ], "Content-Length": [ "202" @@ -63,17 +63,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15\",\r\n \"name\": \"CosmosDBResourceGroup15\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15\",\r\n \"name\": \"CosmosDBResourceGroup15\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "49949320-d905-4d18-b75b-6a6a33f3638c" + "7b0a0bc4-a9da-4326-89bc-1fc7797d7653" ], "Accept-Language": [ "en-US" @@ -81,7 +81,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -96,13 +96,13 @@ "gateway" ], "x-ms-request-id": [ - "c2935f5d-fbb0-4015-b8a7-62f5101d2941" + "b7d81841-bbd7-4c1f-aa96-c5c0ac3ac84a" ], "x-ms-correlation-request-id": [ - "c2935f5d-fbb0-4015-b8a7-62f5101d2941" + "b7d81841-bbd7-4c1f-aa96-c5c0ac3ac84a" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114849Z:c2935f5d-fbb0-4015-b8a7-62f5101d2941" + "WESTUS2:20220517T042707Z:b7d81841-bbd7-4c1f-aa96-c5c0ac3ac84a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -111,7 +111,7 @@ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:48:48 GMT" + "Tue, 17 May 2022 04:27:06 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -127,18 +127,18 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "49949320-d905-4d18-b75b-6a6a33f3638c" + "7b0a0bc4-a9da-4326-89bc-1fc7797d7653" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -159,41 +159,41 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11989" ], "x-ms-request-id": [ - "1cab63e1-0ae3-4404-aca2-9f6f1202f6fc" + "4b64d905-9655-4c39-ba2b-8aca1847756c" ], "x-ms-correlation-request-id": [ - "1cab63e1-0ae3-4404-aca2-9f6f1202f6fc" + "4b64d905-9655-4c39-ba2b-8aca1847756c" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115234Z:1cab63e1-0ae3-4404-aca2-9f6f1202f6fc" + "WESTUS2:20220517T043145Z:4b64d905-9655-4c39-ba2b-8aca1847756c" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:52:34 GMT" + "Tue, 17 May 2022 04:31:45 GMT" ], "Content-Length": [ - "2471" + "2386" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215\",\r\n \"name\": \"cosmosdb-1215\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T11:52:14.8269758Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://cosmosdb-1215.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"cbb0e546-c7e0-4221-9934-ccfeed0c3385\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215\",\r\n \"name\": \"cosmosdb-1215\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:31:00.1738736Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://cosmosdb-1215.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"0db656dc-7ef3-4501-8b8f-3a07776c2927\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "05d01773-bd69-489a-92e3-0b00d7fc7e47" + "3791067a-6896-4f8c-a192-c0d85dcf1913" ], "Accept-Language": [ "en-US" @@ -201,7 +201,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -222,41 +222,41 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" + "11982" ], "x-ms-request-id": [ - "767f9f11-bba4-498f-a555-60b4ba4bf188" + "a1406ed0-8e23-4a30-9bd2-6e23f022da7d" ], "x-ms-correlation-request-id": [ - "767f9f11-bba4-498f-a555-60b4ba4bf188" + "a1406ed0-8e23-4a30-9bd2-6e23f022da7d" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115356Z:767f9f11-bba4-498f-a555-60b4ba4bf188" + "WESTUS2:20220517T043249Z:a1406ed0-8e23-4a30-9bd2-6e23f022da7d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:53:56 GMT" + "Tue, 17 May 2022 04:32:49 GMT" ], "Content-Length": [ - "2471" + "2386" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215\",\r\n \"name\": \"cosmosdb-1215\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T11:52:14.8269758Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://cosmosdb-1215.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"cbb0e546-c7e0-4221-9934-ccfeed0c3385\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215\",\r\n \"name\": \"cosmosdb-1215\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:31:00.1738736Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://cosmosdb-1215.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"0db656dc-7ef3-4501-8b8f-3a07776c2927\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1215-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"kind\": \"MongoDB\",\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": false,\r\n \"virtualNetworkRules\": [],\r\n \"enableMultipleWriteLocations\": false,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"Central US\",\r\n \"tags\": {}\r\n}", + "RequestBody": "{\r\n \"kind\": \"MongoDB\",\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": false,\r\n \"virtualNetworkRules\": [],\r\n \"enableMultipleWriteLocations\": false,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {}\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"Central US\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "49949320-d905-4d18-b75b-6a6a33f3638c" + "7b0a0bc4-a9da-4326-89bc-1fc7797d7653" ], "Accept-Language": [ "en-US" @@ -264,14 +264,14 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "678" + "717" ] }, "ResponseHeaders": { @@ -282,13 +282,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/operationResults/c0842573-65ee-4983-985f-c9bfc3d786b7?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/operationResults/3e0a94d4-df6a-4505-9765-dc29f530de98?api-version=2022-02-15-preview" ], "x-ms-request-id": [ - "c0842573-65ee-4983-985f-c9bfc3d786b7" + "3e0a94d4-df6a-4505-9765-dc29f530de98" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/c0842573-65ee-4983-985f-c9bfc3d786b7?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/3e0a94d4-df6a-4505-9765-dc29f530de98?api-version=2022-02-15-preview" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -303,40 +303,40 @@ "1199" ], "x-ms-correlation-request-id": [ - "c65a9a2e-fbe6-41df-afcf-69979a2e33df" + "caf625d4-65f7-44c2-b04c-b434479f502f" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114902Z:c65a9a2e-fbe6-41df-afcf-69979a2e33df" + "WESTUS2:20220517T042714Z:caf625d4-65f7-44c2-b04c-b434479f502f" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:49:01 GMT" + "Tue, 17 May 2022 04:27:14 GMT" ], "Content-Length": [ - "2054" + "1969" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215\",\r\n \"name\": \"cosmosdb-1215\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T11:48:58.4832987Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"cbb0e546-c7e0-4221-9934-ccfeed0c3385\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215\",\r\n \"name\": \"cosmosdb-1215\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:27:12.4897626Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"0db656dc-7ef3-4501-8b8f-3a07776c2927\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1215-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/c0842573-65ee-4983-985f-c9bfc3d786b7?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvYzA4NDI1NzMtNjVlZS00OTgzLTk4NWYtYzliZmMzZDc4NmI3P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/3e0a94d4-df6a-4505-9765-dc29f530de98?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvM2UwYTk0ZDQtZGY2YS00NTA1LTk3NjUtZGMyOWY1MzBkZTk4P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "49949320-d905-4d18-b75b-6a6a33f3638c" + "7b0a0bc4-a9da-4326-89bc-1fc7797d7653" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -357,22 +357,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" + "11998" ], "x-ms-request-id": [ - "1d2c655d-93c3-4899-b617-ce113f1080e9" + "bc8cd2ac-d27b-4425-ab54-6c5878b50fef" ], "x-ms-correlation-request-id": [ - "1d2c655d-93c3-4899-b617-ce113f1080e9" + "bc8cd2ac-d27b-4425-ab54-6c5878b50fef" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114932Z:1d2c655d-93c3-4899-b617-ce113f1080e9" + "WESTUS2:20220517T042744Z:bc8cd2ac-d27b-4425-ab54-6c5878b50fef" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:49:32 GMT" + "Tue, 17 May 2022 04:27:44 GMT" ], "Content-Length": [ "21" @@ -385,18 +385,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/c0842573-65ee-4983-985f-c9bfc3d786b7?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvYzA4NDI1NzMtNjVlZS00OTgzLTk4NWYtYzliZmMzZDc4NmI3P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/3e0a94d4-df6a-4505-9765-dc29f530de98?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvM2UwYTk0ZDQtZGY2YS00NTA1LTk3NjUtZGMyOWY1MzBkZTk4P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "49949320-d905-4d18-b75b-6a6a33f3638c" + "7b0a0bc4-a9da-4326-89bc-1fc7797d7653" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -420,19 +420,19 @@ "11997" ], "x-ms-request-id": [ - "551076ff-8d11-48ea-a765-0d01ed7e29d6" + "b51bf735-5388-4619-8cbc-843b79361c10" ], "x-ms-correlation-request-id": [ - "551076ff-8d11-48ea-a765-0d01ed7e29d6" + "b51bf735-5388-4619-8cbc-843b79361c10" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115002Z:551076ff-8d11-48ea-a765-0d01ed7e29d6" + "WESTUS2:20220517T042814Z:b51bf735-5388-4619-8cbc-843b79361c10" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:50:02 GMT" + "Tue, 17 May 2022 04:28:14 GMT" ], "Content-Length": [ "21" @@ -445,18 +445,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/c0842573-65ee-4983-985f-c9bfc3d786b7?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvYzA4NDI1NzMtNjVlZS00OTgzLTk4NWYtYzliZmMzZDc4NmI3P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/3e0a94d4-df6a-4505-9765-dc29f530de98?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvM2UwYTk0ZDQtZGY2YS00NTA1LTk3NjUtZGMyOWY1MzBkZTk4P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "49949320-d905-4d18-b75b-6a6a33f3638c" + "7b0a0bc4-a9da-4326-89bc-1fc7797d7653" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -480,19 +480,19 @@ "11996" ], "x-ms-request-id": [ - "2d7e034c-94d6-4192-8f4a-315644a90922" + "b2bfbe60-ff5e-4273-b9b6-4951fbbe95c6" ], "x-ms-correlation-request-id": [ - "2d7e034c-94d6-4192-8f4a-315644a90922" + "b2bfbe60-ff5e-4273-b9b6-4951fbbe95c6" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115032Z:2d7e034c-94d6-4192-8f4a-315644a90922" + "WESTUS2:20220517T042844Z:b2bfbe60-ff5e-4273-b9b6-4951fbbe95c6" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:50:32 GMT" + "Tue, 17 May 2022 04:28:44 GMT" ], "Content-Length": [ "21" @@ -505,18 +505,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/c0842573-65ee-4983-985f-c9bfc3d786b7?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvYzA4NDI1NzMtNjVlZS00OTgzLTk4NWYtYzliZmMzZDc4NmI3P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/3e0a94d4-df6a-4505-9765-dc29f530de98?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvM2UwYTk0ZDQtZGY2YS00NTA1LTk3NjUtZGMyOWY1MzBkZTk4P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "49949320-d905-4d18-b75b-6a6a33f3638c" + "7b0a0bc4-a9da-4326-89bc-1fc7797d7653" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -540,19 +540,19 @@ "11995" ], "x-ms-request-id": [ - "4bead6ca-6308-46e7-a413-7a25a18d7474" + "e7b6b2b0-8bc2-4e5c-b0c8-cb5a70ae9c33" ], "x-ms-correlation-request-id": [ - "4bead6ca-6308-46e7-a413-7a25a18d7474" + "e7b6b2b0-8bc2-4e5c-b0c8-cb5a70ae9c33" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115103Z:4bead6ca-6308-46e7-a413-7a25a18d7474" + "WESTUS2:20220517T042915Z:e7b6b2b0-8bc2-4e5c-b0c8-cb5a70ae9c33" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:51:03 GMT" + "Tue, 17 May 2022 04:29:14 GMT" ], "Content-Length": [ "21" @@ -565,18 +565,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/c0842573-65ee-4983-985f-c9bfc3d786b7?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvYzA4NDI1NzMtNjVlZS00OTgzLTk4NWYtYzliZmMzZDc4NmI3P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/3e0a94d4-df6a-4505-9765-dc29f530de98?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvM2UwYTk0ZDQtZGY2YS00NTA1LTk3NjUtZGMyOWY1MzBkZTk4P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "49949320-d905-4d18-b75b-6a6a33f3638c" + "7b0a0bc4-a9da-4326-89bc-1fc7797d7653" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -600,19 +600,19 @@ "11994" ], "x-ms-request-id": [ - "2f2ca71c-aded-467b-ae86-4bff0fb58c5b" + "7536fe49-1ae3-464b-9c65-6b85ce5f89f4" ], "x-ms-correlation-request-id": [ - "2f2ca71c-aded-467b-ae86-4bff0fb58c5b" + "7536fe49-1ae3-464b-9c65-6b85ce5f89f4" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115133Z:2f2ca71c-aded-467b-ae86-4bff0fb58c5b" + "WESTUS2:20220517T042945Z:7536fe49-1ae3-464b-9c65-6b85ce5f89f4" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:51:32 GMT" + "Tue, 17 May 2022 04:29:44 GMT" ], "Content-Length": [ "21" @@ -625,18 +625,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/c0842573-65ee-4983-985f-c9bfc3d786b7?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvYzA4NDI1NzMtNjVlZS00OTgzLTk4NWYtYzliZmMzZDc4NmI3P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/3e0a94d4-df6a-4505-9765-dc29f530de98?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvM2UwYTk0ZDQtZGY2YS00NTA1LTk3NjUtZGMyOWY1MzBkZTk4P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "49949320-d905-4d18-b75b-6a6a33f3638c" + "7b0a0bc4-a9da-4326-89bc-1fc7797d7653" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -660,19 +660,19 @@ "11993" ], "x-ms-request-id": [ - "67269fb1-2050-4453-93f3-f1ee69df6fdf" + "5518f2b8-e06a-4918-937b-9d35b001d9fd" ], "x-ms-correlation-request-id": [ - "67269fb1-2050-4453-93f3-f1ee69df6fdf" + "5518f2b8-e06a-4918-937b-9d35b001d9fd" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115203Z:67269fb1-2050-4453-93f3-f1ee69df6fdf" + "WESTUS2:20220517T043015Z:5518f2b8-e06a-4918-937b-9d35b001d9fd" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:52:02 GMT" + "Tue, 17 May 2022 04:30:15 GMT" ], "Content-Length": [ "21" @@ -685,18 +685,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/c0842573-65ee-4983-985f-c9bfc3d786b7?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvYzA4NDI1NzMtNjVlZS00OTgzLTk4NWYtYzliZmMzZDc4NmI3P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/3e0a94d4-df6a-4505-9765-dc29f530de98?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvM2UwYTk0ZDQtZGY2YS00NTA1LTk3NjUtZGMyOWY1MzBkZTk4P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "49949320-d905-4d18-b75b-6a6a33f3638c" + "7b0a0bc4-a9da-4326-89bc-1fc7797d7653" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -720,19 +720,139 @@ "11992" ], "x-ms-request-id": [ - "4946a3c1-320d-4a5a-b494-885094b5b0e7" + "40c9a3f7-d3fa-4c57-a112-643adc7ebbe4" ], "x-ms-correlation-request-id": [ - "4946a3c1-320d-4a5a-b494-885094b5b0e7" + "40c9a3f7-d3fa-4c57-a112-643adc7ebbe4" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115234Z:4946a3c1-320d-4a5a-b494-885094b5b0e7" + "WESTUS2:20220517T043045Z:40c9a3f7-d3fa-4c57-a112-643adc7ebbe4" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:52:33 GMT" + "Tue, 17 May 2022 04:30:45 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/3e0a94d4-df6a-4505-9765-dc29f530de98?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvM2UwYTk0ZDQtZGY2YS00NTA1LTk3NjUtZGMyOWY1MzBkZTk4P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7b0a0bc4-a9da-4326-89bc-1fc7797d7653" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "5e5b0a70-613c-42c7-adb8-50264e5e49cf" + ], + "x-ms-correlation-request-id": [ + "5e5b0a70-613c-42c7-adb8-50264e5e49cf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T043115Z:5e5b0a70-613c-42c7-adb8-50264e5e49cf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:31:15 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/3e0a94d4-df6a-4505-9765-dc29f530de98?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvM2UwYTk0ZDQtZGY2YS00NTA1LTk3NjUtZGMyOWY1MzBkZTk4P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7b0a0bc4-a9da-4326-89bc-1fc7797d7653" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "d40fc9de-0a98-49da-ba17-fb1d7534f52c" + ], + "x-ms-correlation-request-id": [ + "d40fc9de-0a98-49da-ba17-fb1d7534f52c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T043145Z:d40fc9de-0a98-49da-ba17-fb1d7534f52c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:31:44 GMT" ], "Content-Length": [ "22" @@ -745,13 +865,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2da1f3f8-2afe-48c8-993e-e048b87a6642" + "4a3f7963-f19a-4458-8008-953a350221bd" ], "Accept-Language": [ "en-US" @@ -759,7 +879,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -780,22 +900,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11988" ], "x-ms-request-id": [ - "3515906d-acc5-482d-923f-ae2feac60ef4" + "90966890-45b9-47ba-bd07-a38f21af504e" ], "x-ms-correlation-request-id": [ - "3515906d-acc5-482d-923f-ae2feac60ef4" + "90966890-45b9-47ba-bd07-a38f21af504e" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115240Z:3515906d-acc5-482d-923f-ae2feac60ef4" + "WESTUS2:20220517T043146Z:90966890-45b9-47ba-bd07-a38f21af504e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:52:39 GMT" + "Tue, 17 May 2022 04:31:46 GMT" ], "Content-Length": [ "160" @@ -804,22 +924,22 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"the database TestDB1 doesn't exist.\\r\\nActivityId: 2da1f3f8-2afe-48c8-993e-e048b87a6642, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"the database TestDB1 doesn't exist.\\r\\nActivityId: 4a3f7963-f19a-4458-8008-953a350221bd, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", "StatusCode": 404 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2da1f3f8-2afe-48c8-993e-e048b87a6642" + "4a3f7963-f19a-4458-8008-953a350221bd" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -840,22 +960,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11986" ], "x-ms-request-id": [ - "f67062a8-cbae-43b0-beb8-bebe06a91902" + "5683a020-6216-4de1-840d-b9c6fa179edc" ], "x-ms-correlation-request-id": [ - "f67062a8-cbae-43b0-beb8-bebe06a91902" + "5683a020-6216-4de1-840d-b9c6fa179edc" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115314Z:f67062a8-cbae-43b0-beb8-bebe06a91902" + "WESTUS2:20220517T043217Z:5683a020-6216-4de1-840d-b9c6fa179edc" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:53:14 GMT" + "Tue, 17 May 2022 04:32:17 GMT" ], "Content-Length": [ "310" @@ -864,17 +984,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"TestDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"TestDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\"\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "05d01773-bd69-489a-92e3-0b00d7fc7e47" + "3791067a-6896-4f8c-a192-c0d85dcf1913" ], "Accept-Language": [ "en-US" @@ -882,7 +1002,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -903,22 +1023,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" + "11981" ], "x-ms-request-id": [ - "9f1b366d-099f-482f-b328-1c140799bd2e" + "daad71c1-2ecf-4681-8ab0-57092beac632" ], "x-ms-correlation-request-id": [ - "9f1b366d-099f-482f-b328-1c140799bd2e" + "daad71c1-2ecf-4681-8ab0-57092beac632" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115357Z:9f1b366d-099f-482f-b328-1c140799bd2e" + "WESTUS2:20220517T043250Z:daad71c1-2ecf-4681-8ab0-57092beac632" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:53:57 GMT" + "Tue, 17 May 2022 04:32:49 GMT" ], "Content-Length": [ "310" @@ -927,17 +1047,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"TestDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"TestDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\"\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\"\r\n },\r\n \"options\": {}\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "2da1f3f8-2afe-48c8-993e-e048b87a6642" + "4a3f7963-f19a-4458-8008-953a350221bd" ], "Accept-Language": [ "en-US" @@ -945,7 +1065,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ], "Content-Type": [ @@ -963,13 +1083,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/operationResults/91847747-2993-4ff6-b408-9e7b38d539c2?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/operationResults/142fe23a-69be-4899-8260-12c2e1fdfb6c?api-version=2022-02-15-preview" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/91847747-2993-4ff6-b408-9e7b38d539c2?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/142fe23a-69be-4899-8260-12c2e1fdfb6c?api-version=2022-02-15-preview" ], "x-ms-request-id": [ - "91847747-2993-4ff6-b408-9e7b38d539c2" + "142fe23a-69be-4899-8260-12c2e1fdfb6c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -981,19 +1101,19 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1198" ], "x-ms-correlation-request-id": [ - "ff87a8b9-1aa5-4663-aa29-217424d65ba3" + "4118fed9-64b6-4950-b6ae-32c019dd5b22" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115243Z:ff87a8b9-1aa5-4663-aa29-217424d65ba3" + "WESTUS2:20220517T043147Z:4118fed9-64b6-4950-b6ae-32c019dd5b22" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:52:42 GMT" + "Tue, 17 May 2022 04:31:46 GMT" ], "Content-Length": [ "21" @@ -1006,18 +1126,18 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/91847747-2993-4ff6-b408-9e7b38d539c2?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvOTE4NDc3NDctMjk5My00ZmY2LWI0MDgtOWU3YjM4ZDUzOWMyP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/142fe23a-69be-4899-8260-12c2e1fdfb6c?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvMTQyZmUyM2EtNjliZS00ODk5LTgyNjAtMTJjMmUxZmRmYjZjP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2da1f3f8-2afe-48c8-993e-e048b87a6642" + "4a3f7963-f19a-4458-8008-953a350221bd" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1038,22 +1158,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11987" ], "x-ms-request-id": [ - "65d84618-fb22-4ba0-aa7f-772b9768bbe5" + "ef828678-a265-4391-a752-0b66ed722d2e" ], "x-ms-correlation-request-id": [ - "65d84618-fb22-4ba0-aa7f-772b9768bbe5" + "ef828678-a265-4391-a752-0b66ed722d2e" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115313Z:65d84618-fb22-4ba0-aa7f-772b9768bbe5" + "WESTUS2:20220517T043217Z:ef828678-a265-4391-a752-0b66ed722d2e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:53:13 GMT" + "Tue, 17 May 2022 04:32:16 GMT" ], "Content-Length": [ "22" @@ -1066,13 +1186,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxL2NvbGxlY3Rpb25zL1Rlc3RDb2xsZWN0aW9uSW5EQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxL2NvbGxlY3Rpb25zL1Rlc3RDb2xsZWN0aW9uSW5EQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2cf915ff-64a6-460b-9528-3ab6c4347c25" + "0dc25d90-0e85-4bdc-b89a-3243f267d6d3" ], "Accept-Language": [ "en-US" @@ -1080,7 +1200,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1101,22 +1221,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11985" ], "x-ms-request-id": [ - "ec4d53e2-1633-42c7-9253-fe7e95204fb8" + "4c817e22-39fb-4cf9-b7b7-6df77b5bd387" ], "x-ms-correlation-request-id": [ - "ec4d53e2-1633-42c7-9253-fe7e95204fb8" + "4c817e22-39fb-4cf9-b7b7-6df77b5bd387" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115320Z:ec4d53e2-1633-42c7-9253-fe7e95204fb8" + "WESTUS2:20220517T043218Z:4c817e22-39fb-4cf9-b7b7-6df77b5bd387" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:53:20 GMT" + "Tue, 17 May 2022 04:32:17 GMT" ], "Content-Length": [ "186" @@ -1125,22 +1245,22 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"The collection 'TestDB1'.'TestCollectionInDB1' doesn't exist.\\r\\nActivityId: 2cf915ff-64a6-460b-9528-3ab6c4347c25, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"The collection 'TestDB1'.'TestCollectionInDB1' doesn't exist.\\r\\nActivityId: 0dc25d90-0e85-4bdc-b89a-3243f267d6d3, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", "StatusCode": 404 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxL2NvbGxlY3Rpb25zL1Rlc3RDb2xsZWN0aW9uSW5EQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxL2NvbGxlY3Rpb25zL1Rlc3RDb2xsZWN0aW9uSW5EQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2cf915ff-64a6-460b-9528-3ab6c4347c25" + "0dc25d90-0e85-4bdc-b89a-3243f267d6d3" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1161,22 +1281,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11983" ], "x-ms-request-id": [ - "de85b3a8-d567-4943-ba07-fbcf74539fbb" + "e445eed0-3939-4bd1-9df9-c1b87bc85a73" ], "x-ms-correlation-request-id": [ - "de85b3a8-d567-4943-ba07-fbcf74539fbb" + "e445eed0-3939-4bd1-9df9-c1b87bc85a73" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115354Z:de85b3a8-d567-4943-ba07-fbcf74539fbb" + "WESTUS2:20220517T043249Z:e445eed0-3939-4bd1-9df9-c1b87bc85a73" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:53:54 GMT" + "Tue, 17 May 2022 04:32:48 GMT" ], "Content-Length": [ "451" @@ -1185,17 +1305,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections\",\r\n \"name\": \"TestCollectionInDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestCollectionInDB1\",\r\n \"shardKey\": {\r\n \"partitionkey1\": \"Hash\"\r\n },\r\n \"indexes\": [\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"_id\"\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections\",\r\n \"name\": \"TestCollectionInDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestCollectionInDB1\",\r\n \"shardKey\": {\r\n \"partitionkey1\": \"Hash\"\r\n },\r\n \"indexes\": [\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"_id\"\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxL2NvbGxlY3Rpb25zL1Rlc3RDb2xsZWN0aW9uSW5EQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxL2NvbGxlY3Rpb25zL1Rlc3RDb2xsZWN0aW9uSW5EQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "05d01773-bd69-489a-92e3-0b00d7fc7e47" + "3791067a-6896-4f8c-a192-c0d85dcf1913" ], "Accept-Language": [ "en-US" @@ -1203,7 +1323,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1224,22 +1344,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" + "11980" ], "x-ms-request-id": [ - "1285bdf3-e07f-42e5-b3a3-88841758be93" + "7a387fe1-29e9-4d76-9c62-24b59cd156d2" ], "x-ms-correlation-request-id": [ - "1285bdf3-e07f-42e5-b3a3-88841758be93" + "7a387fe1-29e9-4d76-9c62-24b59cd156d2" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115358Z:1285bdf3-e07f-42e5-b3a3-88841758be93" + "WESTUS2:20220517T043251Z:7a387fe1-29e9-4d76-9c62-24b59cd156d2" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:53:58 GMT" + "Tue, 17 May 2022 04:32:50 GMT" ], "Content-Length": [ "451" @@ -1248,17 +1368,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections\",\r\n \"name\": \"TestCollectionInDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestCollectionInDB1\",\r\n \"shardKey\": {\r\n \"partitionkey1\": \"Hash\"\r\n },\r\n \"indexes\": [\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"_id\"\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections\",\r\n \"name\": \"TestCollectionInDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestCollectionInDB1\",\r\n \"shardKey\": {\r\n \"partitionkey1\": \"Hash\"\r\n },\r\n \"indexes\": [\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"_id\"\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxL2NvbGxlY3Rpb25zL1Rlc3RDb2xsZWN0aW9uSW5EQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxL2NvbGxlY3Rpb25zL1Rlc3RDb2xsZWN0aW9uSW5EQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestCollectionInDB1\",\r\n \"shardKey\": {\r\n \"partitionkey1\": \"Hash\"\r\n }\r\n },\r\n \"options\": {\r\n \"throughput\": 10000\r\n }\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "2cf915ff-64a6-460b-9528-3ab6c4347c25" + "0dc25d90-0e85-4bdc-b89a-3243f267d6d3" ], "Accept-Language": [ "en-US" @@ -1266,7 +1386,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ], "Content-Type": [ @@ -1284,13 +1404,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1/operationResults/094ac7d4-ee92-453e-817b-a9828e79329e?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1/operationResults/93e897d7-ed17-47c7-98c0-2438569b8838?api-version=2022-02-15-preview" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/094ac7d4-ee92-453e-817b-a9828e79329e?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/93e897d7-ed17-47c7-98c0-2438569b8838?api-version=2022-02-15-preview" ], "x-ms-request-id": [ - "094ac7d4-ee92-453e-817b-a9828e79329e" + "93e897d7-ed17-47c7-98c0-2438569b8838" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1305,16 +1425,16 @@ "1197" ], "x-ms-correlation-request-id": [ - "6556d216-c094-45de-8c16-43136128ef86" + "d7346e1c-b5ed-4436-b196-6131756d150d" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115322Z:6556d216-c094-45de-8c16-43136128ef86" + "WESTUS2:20220517T043219Z:d7346e1c-b5ed-4436-b196-6131756d150d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:53:22 GMT" + "Tue, 17 May 2022 04:32:18 GMT" ], "Content-Length": [ "21" @@ -1327,18 +1447,18 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/094ac7d4-ee92-453e-817b-a9828e79329e?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvMDk0YWM3ZDQtZWU5Mi00NTNlLTgxN2ItYTk4MjhlNzkzMjllP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/93e897d7-ed17-47c7-98c0-2438569b8838?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvOTNlODk3ZDctZWQxNy00N2M3LTk4YzAtMjQzODU2OWI4ODM4P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2cf915ff-64a6-460b-9528-3ab6c4347c25" + "0dc25d90-0e85-4bdc-b89a-3243f267d6d3" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1359,22 +1479,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11984" ], "x-ms-request-id": [ - "0a78af12-509e-41d8-be9d-acfcda0266dc" + "7b8f0e12-ba56-458a-adac-7ae0429dc94d" ], "x-ms-correlation-request-id": [ - "0a78af12-509e-41d8-be9d-acfcda0266dc" + "7b8f0e12-ba56-458a-adac-7ae0429dc94d" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115353Z:0a78af12-509e-41d8-be9d-acfcda0266dc" + "WESTUS2:20220517T043249Z:7b8f0e12-ba56-458a-adac-7ae0429dc94d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:53:53 GMT" + "Tue, 17 May 2022 04:32:48 GMT" ], "Content-Length": [ "22" @@ -1387,13 +1507,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1/retrieveContinuousBackupInformation?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxL2NvbGxlY3Rpb25zL1Rlc3RDb2xsZWN0aW9uSW5EQjEvcmV0cmlldmVDb250aW51b3VzQmFja3VwSW5mb3JtYXRpb24/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1/retrieveContinuousBackupInformation?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxL2NvbGxlY3Rpb25zL1Rlc3RDb2xsZWN0aW9uSW5EQjEvcmV0cmlldmVDb250aW51b3VzQmFja3VwSW5mb3JtYXRpb24/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "POST", "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "05d01773-bd69-489a-92e3-0b00d7fc7e47" + "3791067a-6896-4f8c-a192-c0d85dcf1913" ], "Accept-Language": [ "en-US" @@ -1401,7 +1521,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ], "Content-Type": [ @@ -1419,10 +1539,10 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1/retrieveContinuousBackupInformation/operationResults/e8097108-83d4-44ee-8efb-a222532ff275?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1/retrieveContinuousBackupInformation/operationResults/087583d1-567c-4a21-b5d1-fe11bca759d1?api-version=2022-02-15-preview" ], "x-ms-request-id": [ - "e8097108-83d4-44ee-8efb-a222532ff275" + "087583d1-567c-4a21-b5d1-fe11bca759d1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1437,16 +1557,16 @@ "1199" ], "x-ms-correlation-request-id": [ - "f77bef42-961d-474b-9584-90ec9708fb9a" + "73833053-67e0-4b99-bd16-2e8fedcc1539" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115359Z:f77bef42-961d-474b-9584-90ec9708fb9a" + "WESTUS2:20220517T043251Z:73833053-67e0-4b99-bd16-2e8fedcc1539" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:53:59 GMT" + "Tue, 17 May 2022 04:32:50 GMT" ], "Content-Length": [ "21" @@ -1459,18 +1579,18 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1/retrieveContinuousBackupInformation/operationResults/e8097108-83d4-44ee-8efb-a222532ff275?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxL2NvbGxlY3Rpb25zL1Rlc3RDb2xsZWN0aW9uSW5EQjEvcmV0cmlldmVDb250aW51b3VzQmFja3VwSW5mb3JtYXRpb24vb3BlcmF0aW9uUmVzdWx0cy9lODA5NzEwOC04M2Q0LTQ0ZWUtOGVmYi1hMjIyNTMyZmYyNzU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1/retrieveContinuousBackupInformation/operationResults/087583d1-567c-4a21-b5d1-fe11bca759d1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxL2NvbGxlY3Rpb25zL1Rlc3RDb2xsZWN0aW9uSW5EQjEvcmV0cmlldmVDb250aW51b3VzQmFja3VwSW5mb3JtYXRpb24vb3BlcmF0aW9uUmVzdWx0cy8wODc1ODNkMS01NjdjLTRhMjEtYjVkMS1mZTExYmNhNzU5ZDE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "05d01773-bd69-489a-92e3-0b00d7fc7e47" + "3791067a-6896-4f8c-a192-c0d85dcf1913" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1491,46 +1611,46 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" + "11979" ], "x-ms-request-id": [ - "dd7ca253-7363-466c-a32a-842c4ded0624" + "715b58d5-24c8-4e25-b987-59dd76595de7" ], "x-ms-correlation-request-id": [ - "dd7ca253-7363-466c-a32a-842c4ded0624" + "715b58d5-24c8-4e25-b987-59dd76595de7" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115430Z:dd7ca253-7363-466c-a32a-842c4ded0624" + "WESTUS2:20220517T043321Z:715b58d5-24c8-4e25-b987-59dd76595de7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:54:29 GMT" + "Tue, 17 May 2022 04:33:21 GMT" ], "Content-Length": [ - "85" + "84" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"continuousBackupInformation\": {\r\n \"latestRestorableTimestamp\": \"5/12/2022 11:54:05 AM\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"continuousBackupInformation\": {\r\n \"latestRestorableTimestamp\": \"5/17/2022 4:32:56 AM\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1/retrieveContinuousBackupInformation/operationResults/e8097108-83d4-44ee-8efb-a222532ff275?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxL2NvbGxlY3Rpb25zL1Rlc3RDb2xsZWN0aW9uSW5EQjEvcmV0cmlldmVDb250aW51b3VzQmFja3VwSW5mb3JtYXRpb24vb3BlcmF0aW9uUmVzdWx0cy9lODA5NzEwOC04M2Q0LTQ0ZWUtOGVmYi1hMjIyNTMyZmYyNzU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup15/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1215/mongodbDatabases/TestDB1/collections/TestCollectionInDB1/retrieveContinuousBackupInformation/operationResults/087583d1-567c-4a21-b5d1-fe11bca759d1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE1L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTUvbW9uZ29kYkRhdGFiYXNlcy9UZXN0REIxL2NvbGxlY3Rpb25zL1Rlc3RDb2xsZWN0aW9uSW5EQjEvcmV0cmlldmVDb250aW51b3VzQmFja3VwSW5mb3JtYXRpb24vb3BlcmF0aW9uUmVzdWx0cy8wODc1ODNkMS01NjdjLTRhMjEtYjVkMS1mZTExYmNhNzU5ZDE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "05d01773-bd69-489a-92e3-0b00d7fc7e47" + "3791067a-6896-4f8c-a192-c0d85dcf1913" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1551,36 +1671,36 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" + "11978" ], "x-ms-request-id": [ - "11f6e5a4-6b51-4171-aec7-78bd1c0eef4c" + "f831c865-a42b-43b3-ba93-ca46e84a1c13" ], "x-ms-correlation-request-id": [ - "11f6e5a4-6b51-4171-aec7-78bd1c0eef4c" + "f831c865-a42b-43b3-ba93-ca46e84a1c13" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115430Z:11f6e5a4-6b51-4171-aec7-78bd1c0eef4c" + "WESTUS2:20220517T043322Z:f831c865-a42b-43b3-ba93-ca46e84a1c13" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:54:30 GMT" + "Tue, 17 May 2022 04:33:21 GMT" ], "Content-Length": [ - "85" + "84" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"continuousBackupInformation\": {\r\n \"latestRestorableTimestamp\": \"5/12/2022 11:54:05 AM\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"continuousBackupInformation\": {\r\n \"latestRestorableTimestamp\": \"5/17/2022 4:32:56 AM\"\r\n }\r\n}", "StatusCode": 200 } ], "Names": {}, "Variables": { - "SubscriptionId": "12053b8f-cab5-4f5c-9c1a-870580142abd" + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" } } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestMongoRestoreAccountCmdlets.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestMongoRestoreAccountCmdlets.json index 8501a091297d..e72f83271700 100644 --- a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestMongoRestoreAccountCmdlets.json +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestMongoRestoreAccountCmdlets.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourcegroups/CosmosDBResourceGroup74?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourcegroups/CosmosDBResourceGroup74?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"East US\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "a0b64ca0-4d62-492f-9d4f-bdde6b8a4504" + "265f1250-121e-4182-b049-f0e1eb4af616" ], "Accept-Language": [ "en-US" @@ -15,7 +15,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.57" ], "Content-Type": [ @@ -36,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "c86a9a1d-91ad-4284-b25b-dd42ea9a4e56" + "4e16b5d1-8086-4d5c-8247-c2949aef9dd5" ], "x-ms-correlation-request-id": [ - "c86a9a1d-91ad-4284-b25b-dd42ea9a4e56" + "4e16b5d1-8086-4d5c-8247-c2949aef9dd5" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121317Z:c86a9a1d-91ad-4284-b25b-dd42ea9a4e56" + "WESTUS2:20220517T045125Z:4e16b5d1-8086-4d5c-8247-c2949aef9dd5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,7 +51,7 @@ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:13:17 GMT" + "Tue, 17 May 2022 04:51:25 GMT" ], "Content-Length": [ "199" @@ -63,17 +63,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74\",\r\n \"name\": \"CosmosDBResourceGroup74\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74\",\r\n \"name\": \"CosmosDBResourceGroup74\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3ND9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3ND9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bddd9ed2-f351-400d-88a2-8ef914c6472e" + "54f744f8-70a9-47d6-9652-be8bb29b62f3" ], "Accept-Language": [ "en-US" @@ -81,7 +81,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -96,13 +96,13 @@ "gateway" ], "x-ms-request-id": [ - "c9f2ed9e-33ea-47e0-a8fb-24095f1d946c" + "5210dc99-c4ec-49f2-ba75-3a1d92eced43" ], "x-ms-correlation-request-id": [ - "c9f2ed9e-33ea-47e0-a8fb-24095f1d946c" + "5210dc99-c4ec-49f2-ba75-3a1d92eced43" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121318Z:c9f2ed9e-33ea-47e0-a8fb-24095f1d946c" + "WESTUS2:20220517T045126Z:5210dc99-c4ec-49f2-ba75-3a1d92eced43" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -111,7 +111,7 @@ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:13:18 GMT" + "Tue, 17 May 2022 04:51:25 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -127,18 +127,18 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3ND9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3ND9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bddd9ed2-f351-400d-88a2-8ef914c6472e" + "54f744f8-70a9-47d6-9652-be8bb29b62f3" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -159,41 +159,41 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11991" ], "x-ms-request-id": [ - "5b6c4696-e8e4-41b7-892d-64ffca01c5b1" + "a2562366-36b4-4e07-9806-a6f19227d76d" ], "x-ms-correlation-request-id": [ - "5b6c4696-e8e4-41b7-892d-64ffca01c5b1" + "a2562366-36b4-4e07-9806-a6f19227d76d" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121631Z:5b6c4696-e8e4-41b7-892d-64ffca01c5b1" + "WESTUS2:20220517T045503Z:a2562366-36b4-4e07-9806-a6f19227d76d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:16:30 GMT" + "Tue, 17 May 2022 04:55:02 GMT" ], "Content-Length": [ - "2523" + "2438" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274\",\r\n \"name\": \"mongo-continuous-1274\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T12:16:14.9732741Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://mongo-continuous-1274.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"9b311a13-8f51-4339-a8ad-52d80d508d90\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274\",\r\n \"name\": \"mongo-continuous-1274\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:54:11.7642789Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://mongo-continuous-1274.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"c43bfcd9-e215-48d6-a632-3c864e1b03c8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3ND9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3ND9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a517c68f-7f7d-4b1a-bd34-1a34500fca12" + "e08cd3d7-9e9d-48bf-9d21-5f466282be71" ], "Accept-Language": [ "en-US" @@ -201,7 +201,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -222,41 +222,41 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" + "11990" ], "x-ms-request-id": [ - "cad4a210-4b21-4e8d-a8fb-7da360fc75c7" + "fb528c60-041d-4804-b1c1-ef145386c655" ], "x-ms-correlation-request-id": [ - "cad4a210-4b21-4e8d-a8fb-7da360fc75c7" + "fb528c60-041d-4804-b1c1-ef145386c655" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121633Z:cad4a210-4b21-4e8d-a8fb-7da360fc75c7" + "WESTUS2:20220517T045503Z:fb528c60-041d-4804-b1c1-ef145386c655" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:16:33 GMT" + "Tue, 17 May 2022 04:55:02 GMT" ], "Content-Length": [ - "2523" + "2438" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274\",\r\n \"name\": \"mongo-continuous-1274\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T12:16:14.9732741Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://mongo-continuous-1274.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"9b311a13-8f51-4339-a8ad-52d80d508d90\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274\",\r\n \"name\": \"mongo-continuous-1274\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:54:11.7642789Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://mongo-continuous-1274.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"c43bfcd9-e215-48d6-a632-3c864e1b03c8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1274-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3ND9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3ND9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"kind\": \"MongoDB\",\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"East Us\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": false,\r\n \"virtualNetworkRules\": [],\r\n \"enableMultipleWriteLocations\": false,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"East Us\",\r\n \"tags\": {}\r\n}", + "RequestBody": "{\r\n \"kind\": \"MongoDB\",\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"East Us\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": false,\r\n \"virtualNetworkRules\": [],\r\n \"enableMultipleWriteLocations\": false,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {}\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"East Us\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "bddd9ed2-f351-400d-88a2-8ef914c6472e" + "54f744f8-70a9-47d6-9652-be8bb29b62f3" ], "Accept-Language": [ "en-US" @@ -264,14 +264,14 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "672" + "711" ] }, "ResponseHeaders": { @@ -282,13 +282,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/operationResults/4886b6aa-2a5b-44cd-87fd-2eb6ddb3cf11?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/operationResults/9efc0328-204e-47f5-b0d6-26819f518e2c?api-version=2022-02-15-preview" ], "x-ms-request-id": [ - "4886b6aa-2a5b-44cd-87fd-2eb6ddb3cf11" + "9efc0328-204e-47f5-b0d6-26819f518e2c" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/4886b6aa-2a5b-44cd-87fd-2eb6ddb3cf11?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/9efc0328-204e-47f5-b0d6-26819f518e2c?api-version=2022-02-15-preview" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -303,40 +303,40 @@ "1199" ], "x-ms-correlation-request-id": [ - "0c4f8db6-1912-4ca0-a762-7d913ac3ce6f" + "1b92f78f-d084-4b89-9705-0de97b356ad7" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121329Z:0c4f8db6-1912-4ca0-a762-7d913ac3ce6f" + "WESTUS2:20220517T045131Z:1b92f78f-d084-4b89-9705-0de97b356ad7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:13:28 GMT" + "Tue, 17 May 2022 04:51:31 GMT" ], "Content-Length": [ - "2075" + "1989" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274\",\r\n \"name\": \"mongo-continuous-1274\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T12:13:26.3199575Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"9b311a13-8f51-4339-a8ad-52d80d508d90\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274\",\r\n \"name\": \"mongo-continuous-1274\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:51:29.974707Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"c43bfcd9-e215-48d6-a632-3c864e1b03c8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-continuous-1274-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/4886b6aa-2a5b-44cd-87fd-2eb6ddb3cf11?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDg4NmI2YWEtMmE1Yi00NGNkLTg3ZmQtMmViNmRkYjNjZjExP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/9efc0328-204e-47f5-b0d6-26819f518e2c?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvOWVmYzAzMjgtMjA0ZS00N2Y1LWIwZDYtMjY4MTlmNTE4ZTJjP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bddd9ed2-f351-400d-88a2-8ef914c6472e" + "54f744f8-70a9-47d6-9652-be8bb29b62f3" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -360,19 +360,19 @@ "11998" ], "x-ms-request-id": [ - "7c4a35f1-dabc-4dba-81ab-ae2a412b3e24" + "1b9d5efd-81ca-43f8-84c9-8d877666c0c5" ], "x-ms-correlation-request-id": [ - "7c4a35f1-dabc-4dba-81ab-ae2a412b3e24" + "1b9d5efd-81ca-43f8-84c9-8d877666c0c5" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121359Z:7c4a35f1-dabc-4dba-81ab-ae2a412b3e24" + "WESTUS2:20220517T045202Z:1b9d5efd-81ca-43f8-84c9-8d877666c0c5" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:13:59 GMT" + "Tue, 17 May 2022 04:52:01 GMT" ], "Content-Length": [ "21" @@ -385,18 +385,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/4886b6aa-2a5b-44cd-87fd-2eb6ddb3cf11?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDg4NmI2YWEtMmE1Yi00NGNkLTg3ZmQtMmViNmRkYjNjZjExP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/9efc0328-204e-47f5-b0d6-26819f518e2c?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvOWVmYzAzMjgtMjA0ZS00N2Y1LWIwZDYtMjY4MTlmNTE4ZTJjP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bddd9ed2-f351-400d-88a2-8ef914c6472e" + "54f744f8-70a9-47d6-9652-be8bb29b62f3" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -420,19 +420,19 @@ "11997" ], "x-ms-request-id": [ - "cfda2455-c121-4b34-a3a6-afcb51f4078e" + "c955d91a-ccd6-4124-b218-4b0025def90e" ], "x-ms-correlation-request-id": [ - "cfda2455-c121-4b34-a3a6-afcb51f4078e" + "c955d91a-ccd6-4124-b218-4b0025def90e" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121429Z:cfda2455-c121-4b34-a3a6-afcb51f4078e" + "WESTUS2:20220517T045232Z:c955d91a-ccd6-4124-b218-4b0025def90e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:14:29 GMT" + "Tue, 17 May 2022 04:52:32 GMT" ], "Content-Length": [ "21" @@ -445,18 +445,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/4886b6aa-2a5b-44cd-87fd-2eb6ddb3cf11?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDg4NmI2YWEtMmE1Yi00NGNkLTg3ZmQtMmViNmRkYjNjZjExP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/9efc0328-204e-47f5-b0d6-26819f518e2c?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvOWVmYzAzMjgtMjA0ZS00N2Y1LWIwZDYtMjY4MTlmNTE4ZTJjP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bddd9ed2-f351-400d-88a2-8ef914c6472e" + "54f744f8-70a9-47d6-9652-be8bb29b62f3" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -480,19 +480,19 @@ "11996" ], "x-ms-request-id": [ - "c9e2c14c-ccb3-4824-a311-aa1dfc8f7f21" + "85ba8f3a-daa1-433c-8880-2c61b6c781d1" ], "x-ms-correlation-request-id": [ - "c9e2c14c-ccb3-4824-a311-aa1dfc8f7f21" + "85ba8f3a-daa1-433c-8880-2c61b6c781d1" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121500Z:c9e2c14c-ccb3-4824-a311-aa1dfc8f7f21" + "WESTUS2:20220517T045302Z:85ba8f3a-daa1-433c-8880-2c61b6c781d1" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:14:59 GMT" + "Tue, 17 May 2022 04:53:01 GMT" ], "Content-Length": [ "21" @@ -505,18 +505,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/4886b6aa-2a5b-44cd-87fd-2eb6ddb3cf11?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDg4NmI2YWEtMmE1Yi00NGNkLTg3ZmQtMmViNmRkYjNjZjExP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/9efc0328-204e-47f5-b0d6-26819f518e2c?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvOWVmYzAzMjgtMjA0ZS00N2Y1LWIwZDYtMjY4MTlmNTE4ZTJjP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bddd9ed2-f351-400d-88a2-8ef914c6472e" + "54f744f8-70a9-47d6-9652-be8bb29b62f3" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -540,19 +540,19 @@ "11995" ], "x-ms-request-id": [ - "97bd355f-842b-42da-b78a-1ff691fb02c6" + "9c4b7e92-0fa8-4cb5-b2ef-f3f2c229a479" ], "x-ms-correlation-request-id": [ - "97bd355f-842b-42da-b78a-1ff691fb02c6" + "9c4b7e92-0fa8-4cb5-b2ef-f3f2c229a479" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121530Z:97bd355f-842b-42da-b78a-1ff691fb02c6" + "WESTUS2:20220517T045332Z:9c4b7e92-0fa8-4cb5-b2ef-f3f2c229a479" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:15:29 GMT" + "Tue, 17 May 2022 04:53:31 GMT" ], "Content-Length": [ "21" @@ -565,18 +565,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/4886b6aa-2a5b-44cd-87fd-2eb6ddb3cf11?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDg4NmI2YWEtMmE1Yi00NGNkLTg3ZmQtMmViNmRkYjNjZjExP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/9efc0328-204e-47f5-b0d6-26819f518e2c?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvOWVmYzAzMjgtMjA0ZS00N2Y1LWIwZDYtMjY4MTlmNTE4ZTJjP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bddd9ed2-f351-400d-88a2-8ef914c6472e" + "54f744f8-70a9-47d6-9652-be8bb29b62f3" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -600,19 +600,19 @@ "11994" ], "x-ms-request-id": [ - "c9fdafb1-54c2-44bd-b417-1a87b8e17a50" + "593fe575-1ddf-4581-9b62-c6bb98239e03" ], "x-ms-correlation-request-id": [ - "c9fdafb1-54c2-44bd-b417-1a87b8e17a50" + "593fe575-1ddf-4581-9b62-c6bb98239e03" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121600Z:c9fdafb1-54c2-44bd-b417-1a87b8e17a50" + "WESTUS2:20220517T045402Z:593fe575-1ddf-4581-9b62-c6bb98239e03" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:16:00 GMT" + "Tue, 17 May 2022 04:54:01 GMT" ], "Content-Length": [ "21" @@ -625,18 +625,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/4886b6aa-2a5b-44cd-87fd-2eb6ddb3cf11?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDg4NmI2YWEtMmE1Yi00NGNkLTg3ZmQtMmViNmRkYjNjZjExP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/9efc0328-204e-47f5-b0d6-26819f518e2c?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvOWVmYzAzMjgtMjA0ZS00N2Y1LWIwZDYtMjY4MTlmNTE4ZTJjP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bddd9ed2-f351-400d-88a2-8ef914c6472e" + "54f744f8-70a9-47d6-9652-be8bb29b62f3" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -660,19 +660,79 @@ "11993" ], "x-ms-request-id": [ - "dc0dc20d-0146-44d4-8bfc-908384b7c105" + "2f9d4c62-f589-468c-a2e2-7f01575ac186" + ], + "x-ms-correlation-request-id": [ + "2f9d4c62-f589-468c-a2e2-7f01575ac186" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T045432Z:2f9d4c62-f589-468c-a2e2-7f01575ac186" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:54:32 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/9efc0328-204e-47f5-b0d6-26819f518e2c?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvOWVmYzAzMjgtMjA0ZS00N2Y1LWIwZDYtMjY4MTlmNTE4ZTJjP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "54f744f8-70a9-47d6-9652-be8bb29b62f3" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "2ec9f826-4fe6-4447-8448-be8e756bde04" ], "x-ms-correlation-request-id": [ - "dc0dc20d-0146-44d4-8bfc-908384b7c105" + "2ec9f826-4fe6-4447-8448-be8e756bde04" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121631Z:dc0dc20d-0146-44d4-8bfc-908384b7c105" + "WESTUS2:20220517T045503Z:2ec9f826-4fe6-4447-8448-be8e756bde04" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:16:30 GMT" + "Tue, 17 May 2022 04:55:02 GMT" ], "Content-Length": [ "22" @@ -685,13 +745,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/East%20US/restorableDatabaseAccounts/9b311a13-8f51-4339-a8ad-52d80d508d90?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvRWFzdCUyMFVTL3Jlc3RvcmFibGVEYXRhYmFzZUFjY291bnRzLzliMzExYTEzLThmNTEtNDMzOS1hOGFkLTUyZDgwZDUwOGQ5MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/East%20US/restorableDatabaseAccounts/c43bfcd9-e215-48d6-a632-3c864e1b03c8?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvRWFzdCUyMFVTL3Jlc3RvcmFibGVEYXRhYmFzZUFjY291bnRzL2M0M2JmY2Q5LWUyMTUtNDhkNi1hNjMyLTNjODY0ZTFiMDNjOD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "dd17681d-96b5-4f30-8422-96134a54ecd9" + "2918ffd6-8b5d-43e3-b9e2-d27d2b488b08" ], "Accept-Language": [ "en-US" @@ -699,7 +759,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -720,22 +780,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" + "11989" ], "x-ms-request-id": [ - "fe95af86-1849-4ad8-9cdc-694ff8fb1f9b" + "1c3880c5-ea4b-4c49-a10d-8b6ddc92feb3" ], "x-ms-correlation-request-id": [ - "fe95af86-1849-4ad8-9cdc-694ff8fb1f9b" + "1c3880c5-ea4b-4c49-a10d-8b6ddc92feb3" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121634Z:fe95af86-1849-4ad8-9cdc-694ff8fb1f9b" + "WESTUS2:20220517T045503Z:1c3880c5-ea4b-4c49-a10d-8b6ddc92feb3" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:16:34 GMT" + "Tue, 17 May 2022 04:55:02 GMT" ], "Content-Length": [ "627" @@ -744,17 +804,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"name\": \"9b311a13-8f51-4339-a8ad-52d80d508d90\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/restorableDatabaseAccounts/9b311a13-8f51-4339-a8ad-52d80d508d90\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-continuous-1274\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2022-05-12T12:16:15Z\",\r\n \"oldestRestorableTime\": \"2022-05-12T12:16:15Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US\",\r\n \"regionalDatabaseAccountInstanceId\": \"e8ca5b91-7e2f-43f8-8062-786e18188de0\",\r\n \"creationTime\": \"2022-05-12T12:16:16Z\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"c43bfcd9-e215-48d6-a632-3c864e1b03c8\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus/restorableDatabaseAccounts/c43bfcd9-e215-48d6-a632-3c864e1b03c8\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-continuous-1274\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2022-05-17T04:54:12Z\",\r\n \"oldestRestorableTime\": \"2022-05-17T04:54:12Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US\",\r\n \"regionalDatabaseAccountInstanceId\": \"654e7e66-03cc-485a-b6ce-619eafd6dd87\",\r\n \"creationTime\": \"2022-05-17T04:54:13Z\"\r\n }\r\n ]\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3NC9tb25nb2RiRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3NC9tb25nb2RiRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d5880f90-f22b-42ce-968d-a29d5f0a151e" + "5cae7a56-a6ad-40d1-b699-510d1852562d" ], "Accept-Language": [ "en-US" @@ -762,7 +822,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -783,22 +843,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" + "11988" ], "x-ms-request-id": [ - "d81bd20a-266f-4098-99d5-23cbc01ce277" + "88abb73b-18cb-4e9c-af1b-83eb9e0b1144" ], "x-ms-correlation-request-id": [ - "d81bd20a-266f-4098-99d5-23cbc01ce277" + "88abb73b-18cb-4e9c-af1b-83eb9e0b1144" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121637Z:d81bd20a-266f-4098-99d5-23cbc01ce277" + "WESTUS2:20220517T045504Z:88abb73b-18cb-4e9c-af1b-83eb9e0b1144" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:16:36 GMT" + "Tue, 17 May 2022 04:55:03 GMT" ], "Content-Length": [ "160" @@ -807,22 +867,22 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"the database TestDB1 doesn't exist.\\r\\nActivityId: d5880f90-f22b-42ce-968d-a29d5f0a151e, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"the database TestDB1 doesn't exist.\\r\\nActivityId: 5cae7a56-a6ad-40d1-b699-510d1852562d, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", "StatusCode": 404 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3NC9tb25nb2RiRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3NC9tb25nb2RiRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d5880f90-f22b-42ce-968d-a29d5f0a151e" + "5cae7a56-a6ad-40d1-b699-510d1852562d" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -843,22 +903,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" + "11986" ], "x-ms-request-id": [ - "665de234-2422-433d-8c08-e1db68f7087d" + "86abf02e-8a47-49cf-b54f-9691c27672b5" ], "x-ms-correlation-request-id": [ - "665de234-2422-433d-8c08-e1db68f7087d" + "86abf02e-8a47-49cf-b54f-9691c27672b5" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121710Z:665de234-2422-433d-8c08-e1db68f7087d" + "WESTUS2:20220517T045535Z:86abf02e-8a47-49cf-b54f-9691c27672b5" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:17:10 GMT" + "Tue, 17 May 2022 04:55:35 GMT" ], "Content-Length": [ "318" @@ -867,17 +927,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"TestDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"TestDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\"\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3NC9tb25nb2RiRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3NC9tb25nb2RiRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\"\r\n },\r\n \"options\": {\r\n \"throughput\": 1200\r\n }\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "d5880f90-f22b-42ce-968d-a29d5f0a151e" + "5cae7a56-a6ad-40d1-b699-510d1852562d" ], "Accept-Language": [ "en-US" @@ -885,7 +945,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ], "Content-Type": [ @@ -903,13 +963,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1/operationResults/09b794c6-acd4-4e13-b97b-34510bf3d377?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1/operationResults/20ce7fc2-7aba-4b1f-aa58-c5b19e8621fa?api-version=2022-02-15-preview" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/09b794c6-acd4-4e13-b97b-34510bf3d377?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/20ce7fc2-7aba-4b1f-aa58-c5b19e8621fa?api-version=2022-02-15-preview" ], "x-ms-request-id": [ - "09b794c6-acd4-4e13-b97b-34510bf3d377" + "20ce7fc2-7aba-4b1f-aa58-c5b19e8621fa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -921,19 +981,19 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1198" ], "x-ms-correlation-request-id": [ - "49f677c2-2ae9-4e94-a8f0-96365a9fb0a4" + "6587f633-ac49-4b73-a69a-56a896365ae8" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121638Z:49f677c2-2ae9-4e94-a8f0-96365a9fb0a4" + "WESTUS2:20220517T045505Z:6587f633-ac49-4b73-a69a-56a896365ae8" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:16:38 GMT" + "Tue, 17 May 2022 04:55:04 GMT" ], "Content-Length": [ "21" @@ -946,18 +1006,18 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/09b794c6-acd4-4e13-b97b-34510bf3d377?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvMDliNzk0YzYtYWNkNC00ZTEzLWI5N2ItMzQ1MTBiZjNkMzc3P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/20ce7fc2-7aba-4b1f-aa58-c5b19e8621fa?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvMjBjZTdmYzItN2FiYS00YjFmLWFhNTgtYzViMTllODYyMWZhP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d5880f90-f22b-42ce-968d-a29d5f0a151e" + "5cae7a56-a6ad-40d1-b699-510d1852562d" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -978,22 +1038,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" + "11987" ], "x-ms-request-id": [ - "95d123bc-8cc7-450c-b1fd-cb14fdc3aa71" + "e11adc18-e8b0-4b0e-8955-29dceb8bf774" ], "x-ms-correlation-request-id": [ - "95d123bc-8cc7-450c-b1fd-cb14fdc3aa71" + "e11adc18-e8b0-4b0e-8955-29dceb8bf774" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121709Z:95d123bc-8cc7-450c-b1fd-cb14fdc3aa71" + "WESTUS2:20220517T045535Z:e11adc18-e8b0-4b0e-8955-29dceb8bf774" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:17:08 GMT" + "Tue, 17 May 2022 04:55:34 GMT" ], "Content-Length": [ "22" @@ -1006,13 +1066,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1/collections/collectionName?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3NC9tb25nb2RiRGF0YWJhc2VzL1Rlc3REQjEvY29sbGVjdGlvbnMvY29sbGVjdGlvbk5hbWU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1/collections/collectionName?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3NC9tb25nb2RiRGF0YWJhc2VzL1Rlc3REQjEvY29sbGVjdGlvbnMvY29sbGVjdGlvbk5hbWU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "539e1a6c-f769-48f7-8f15-8f555344a5c5" + "1a8e1eb0-47ba-4473-84a1-bd1c711f7718" ], "Accept-Language": [ "en-US" @@ -1020,7 +1080,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1041,22 +1101,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" + "11985" ], "x-ms-request-id": [ - "1d2dcdc8-e816-4a14-9739-d039b204c1ae" + "4488f4c9-b360-4636-a707-8e4cb0cb8694" ], "x-ms-correlation-request-id": [ - "1d2dcdc8-e816-4a14-9739-d039b204c1ae" + "4488f4c9-b360-4636-a707-8e4cb0cb8694" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121713Z:1d2dcdc8-e816-4a14-9739-d039b204c1ae" + "WESTUS2:20220517T045536Z:4488f4c9-b360-4636-a707-8e4cb0cb8694" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:17:12 GMT" + "Tue, 17 May 2022 04:55:35 GMT" ], "Content-Length": [ "181" @@ -1065,22 +1125,22 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"The collection 'TestDB1'.'collectionName' doesn't exist.\\r\\nActivityId: 539e1a6c-f769-48f7-8f15-8f555344a5c5, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"The collection 'TestDB1'.'collectionName' doesn't exist.\\r\\nActivityId: 1a8e1eb0-47ba-4473-84a1-bd1c711f7718, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", "StatusCode": 404 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1/collections/collectionName?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3NC9tb25nb2RiRGF0YWJhc2VzL1Rlc3REQjEvY29sbGVjdGlvbnMvY29sbGVjdGlvbk5hbWU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1/collections/collectionName?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3NC9tb25nb2RiRGF0YWJhc2VzL1Rlc3REQjEvY29sbGVjdGlvbnMvY29sbGVjdGlvbk5hbWU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "539e1a6c-f769-48f7-8f15-8f555344a5c5" + "1a8e1eb0-47ba-4473-84a1-bd1c711f7718" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1101,22 +1161,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" + "11983" ], "x-ms-request-id": [ - "2423c3ae-4d8e-4acf-b534-5d5cc4dedc43" + "c8c330df-aed8-4112-88a2-559e767e726f" ], "x-ms-correlation-request-id": [ - "2423c3ae-4d8e-4acf-b534-5d5cc4dedc43" + "c8c330df-aed8-4112-88a2-559e767e726f" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121746Z:2423c3ae-4d8e-4acf-b534-5d5cc4dedc43" + "WESTUS2:20220517T045607Z:c8c330df-aed8-4112-88a2-559e767e726f" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:17:46 GMT" + "Tue, 17 May 2022 04:56:06 GMT" ], "Content-Length": [ "443" @@ -1125,17 +1185,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1/collections/collectionName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections\",\r\n \"name\": \"collectionName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"collectionName\",\r\n \"shardKey\": {\r\n \"shardKeyPath\": \"Hash\"\r\n },\r\n \"indexes\": [\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"_id\"\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1/collections/collectionName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections\",\r\n \"name\": \"collectionName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"collectionName\",\r\n \"shardKey\": {\r\n \"shardKeyPath\": \"Hash\"\r\n },\r\n \"indexes\": [\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"_id\"\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1/collections/collectionName?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3NC9tb25nb2RiRGF0YWJhc2VzL1Rlc3REQjEvY29sbGVjdGlvbnMvY29sbGVjdGlvbk5hbWU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1/collections/collectionName?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDc0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL21vbmdvLWNvbnRpbnVvdXMtMTI3NC9tb25nb2RiRGF0YWJhc2VzL1Rlc3REQjEvY29sbGVjdGlvbnMvY29sbGVjdGlvbk5hbWU/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"collectionName\",\r\n \"shardKey\": {\r\n \"shardKeyPath\": \"Hash\"\r\n }\r\n },\r\n \"options\": {\r\n \"throughput\": 800\r\n }\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "539e1a6c-f769-48f7-8f15-8f555344a5c5" + "1a8e1eb0-47ba-4473-84a1-bd1c711f7718" ], "Accept-Language": [ "en-US" @@ -1143,7 +1203,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ], "Content-Type": [ @@ -1161,13 +1221,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1/collections/collectionName/operationResults/16a6a0ed-a822-41e7-8214-426ca79df6ed?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup74/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1274/mongodbDatabases/TestDB1/collections/collectionName/operationResults/8e48b442-b8ab-4163-9feb-b0c395bd0bc2?api-version=2022-02-15-preview" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/16a6a0ed-a822-41e7-8214-426ca79df6ed?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/8e48b442-b8ab-4163-9feb-b0c395bd0bc2?api-version=2022-02-15-preview" ], "x-ms-request-id": [ - "16a6a0ed-a822-41e7-8214-426ca79df6ed" + "8e48b442-b8ab-4163-9feb-b0c395bd0bc2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1179,19 +1239,19 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1197" ], "x-ms-correlation-request-id": [ - "6baceaae-6c88-4603-b1b4-1e2f716dc28b" + "7354c7d0-0076-497f-87ee-1b2bc0cab5a6" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121715Z:6baceaae-6c88-4603-b1b4-1e2f716dc28b" + "WESTUS2:20220517T045537Z:7354c7d0-0076-497f-87ee-1b2bc0cab5a6" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:17:15 GMT" + "Tue, 17 May 2022 04:55:36 GMT" ], "Content-Length": [ "21" @@ -1204,18 +1264,18 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/16a6a0ed-a822-41e7-8214-426ca79df6ed?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvMTZhNmEwZWQtYTgyMi00MWU3LTgyMTQtNDI2Y2E3OWRmNmVkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus/operationsStatus/8e48b442-b8ab-4163-9feb-b0c395bd0bc2?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzL29wZXJhdGlvbnNTdGF0dXMvOGU0OGI0NDItYjhhYi00MTYzLTlmZWItYjBjMzk1YmQwYmMyP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "539e1a6c-f769-48f7-8f15-8f555344a5c5" + "1a8e1eb0-47ba-4473-84a1-bd1c711f7718" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1236,22 +1296,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" + "11984" ], "x-ms-request-id": [ - "4a61f82c-5d1d-487e-9bc5-e6278342a625" + "29d3038e-b563-428d-a75e-944f89b84352" ], "x-ms-correlation-request-id": [ - "4a61f82c-5d1d-487e-9bc5-e6278342a625" + "29d3038e-b563-428d-a75e-944f89b84352" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121745Z:4a61f82c-5d1d-487e-9bc5-e6278342a625" + "WESTUS2:20220517T045607Z:29d3038e-b563-428d-a75e-944f89b84352" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:17:44 GMT" + "Tue, 17 May 2022 04:56:06 GMT" ], "Content-Length": [ "22" @@ -1264,13 +1324,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/East%20US/restorableDatabaseAccounts/9b311a13-8f51-4339-a8ad-52d80d508d90/restorableMongodbDatabases?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvRWFzdCUyMFVTL3Jlc3RvcmFibGVEYXRhYmFzZUFjY291bnRzLzliMzExYTEzLThmNTEtNDMzOS1hOGFkLTUyZDgwZDUwOGQ5MC9yZXN0b3JhYmxlTW9uZ29kYkRhdGFiYXNlcz9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/East%20US/restorableDatabaseAccounts/c43bfcd9-e215-48d6-a632-3c864e1b03c8/restorableMongodbDatabases?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvRWFzdCUyMFVTL3Jlc3RvcmFibGVEYXRhYmFzZUFjY291bnRzL2M0M2JmY2Q5LWUyMTUtNDhkNi1hNjMyLTNjODY0ZTFiMDNjOC9yZXN0b3JhYmxlTW9uZ29kYkRhdGFiYXNlcz9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0b8ef094-8bb4-40a2-9d3a-100cd3bda32d" + "d3595d3b-2615-46c3-ac7a-314185e1c345" ], "Accept-Language": [ "en-US" @@ -1278,7 +1338,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1299,22 +1359,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" + "11982" ], "x-ms-request-id": [ - "e4765675-259c-41d1-b837-21e1e5b52a22" + "3771de73-45d7-4c82-a227-6640b3bf064d" ], "x-ms-correlation-request-id": [ - "e4765675-259c-41d1-b837-21e1e5b52a22" + "3771de73-45d7-4c82-a227-6640b3bf064d" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121747Z:e4765675-259c-41d1-b837-21e1e5b52a22" + "WESTUS2:20220517T045608Z:3771de73-45d7-4c82-a227-6640b3bf064d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:17:47 GMT" + "Tue, 17 May 2022 04:56:07 GMT" ], "Content-Length": [ "555" @@ -1323,17 +1383,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/East%20US/restorableDatabaseAccounts/9b311a13-8f51-4339-a8ad-52d80d508d90/restorableMongodbDatabases/f2b55cf8-dcaa-4c03-8631-b06e726a27c6\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases\",\r\n \"name\": \"f2b55cf8-dcaa-4c03-8631-b06e726a27c6\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"+a3M9QAAAA==\",\r\n \"eventTimestamp\": \"2022-05-12T12:16:44Z\",\r\n \"ownerId\": \"TestDB1\",\r\n \"ownerResourceId\": \"0rYqAA==\",\r\n \"operationType\": \"Create\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/East%20US/restorableDatabaseAccounts/c43bfcd9-e215-48d6-a632-3c864e1b03c8/restorableMongodbDatabases/8e1b819d-f3f1-4c93-99c1-6265ca30d84b\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases\",\r\n \"name\": \"8e1b819d-f3f1-4c93-99c1-6265ca30d84b\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"fnBuqgAAAA==\",\r\n \"eventTimestamp\": \"2022-05-17T04:55:09Z\",\r\n \"ownerId\": \"TestDB1\",\r\n \"ownerResourceId\": \"5xsxAA==\",\r\n \"operationType\": \"Create\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/East%20US/restorableDatabaseAccounts/9b311a13-8f51-4339-a8ad-52d80d508d90/restorableMongodbCollections?api-version=2022-02-15-preview&restorableMongodbDatabaseRid=0rYqAA%3D%3D", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvRWFzdCUyMFVTL3Jlc3RvcmFibGVEYXRhYmFzZUFjY291bnRzLzliMzExYTEzLThmNTEtNDMzOS1hOGFkLTUyZDgwZDUwOGQ5MC9yZXN0b3JhYmxlTW9uZ29kYkNvbGxlY3Rpb25zP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldyZyZXN0b3JhYmxlTW9uZ29kYkRhdGFiYXNlUmlkPTByWXFBQSUzRCUzRA==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/East%20US/restorableDatabaseAccounts/c43bfcd9-e215-48d6-a632-3c864e1b03c8/restorableMongodbCollections?api-version=2022-02-15-preview&restorableMongodbDatabaseRid=5xsxAA%3D%3D", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvRWFzdCUyMFVTL3Jlc3RvcmFibGVEYXRhYmFzZUFjY291bnRzL2M0M2JmY2Q5LWUyMTUtNDhkNi1hNjMyLTNjODY0ZTFiMDNjOC9yZXN0b3JhYmxlTW9uZ29kYkNvbGxlY3Rpb25zP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldyZyZXN0b3JhYmxlTW9uZ29kYkRhdGFiYXNlUmlkPTV4c3hBQSUzRCUzRA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6083ac1d-e042-4f61-a05a-3907d0be5496" + "740134f0-fafb-42bb-97cc-c3d46f7e9fec" ], "Accept-Language": [ "en-US" @@ -1341,7 +1401,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1362,22 +1422,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" + "11981" ], "x-ms-request-id": [ - "e3ddea8e-5f64-482c-b468-b33a05179967" + "b3f841e7-0f82-4fbf-affc-3fe2d91586e1" ], "x-ms-correlation-request-id": [ - "e3ddea8e-5f64-482c-b468-b33a05179967" + "b3f841e7-0f82-4fbf-affc-3fe2d91586e1" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121749Z:e3ddea8e-5f64-482c-b468-b33a05179967" + "WESTUS2:20220517T045608Z:b3f841e7-0f82-4fbf-affc-3fe2d91586e1" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:17:48 GMT" + "Tue, 17 May 2022 04:56:07 GMT" ], "Content-Length": [ "570" @@ -1386,12 +1446,12 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/East%20US/restorableDatabaseAccounts/9b311a13-8f51-4339-a8ad-52d80d508d90/restorableMongodbCollections/53574883-a727-4b27-9999-5e72cdfac818\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbCollections\",\r\n \"name\": \"53574883-a727-4b27-9999-5e72cdfac818\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"7Dn7awAAAA==\",\r\n \"eventTimestamp\": \"2022-05-12T12:17:20Z\",\r\n \"ownerId\": \"collectionName\",\r\n \"ownerResourceId\": \"0rYqAPaCakI=\",\r\n \"operationType\": \"Create\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/East%20US/restorableDatabaseAccounts/c43bfcd9-e215-48d6-a632-3c864e1b03c8/restorableMongodbCollections/619082dc-e88f-44ff-8114-32eaa2d3e7a6\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbCollections\",\r\n \"name\": \"619082dc-e88f-44ff-8114-32eaa2d3e7a6\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"Ka6bDwAAAA==\",\r\n \"eventTimestamp\": \"2022-05-17T04:55:41Z\",\r\n \"ownerId\": \"collectionName\",\r\n \"ownerResourceId\": \"5xsxAMXeUW4=\",\r\n \"operationType\": \"Create\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 } ], "Names": {}, "Variables": { - "SubscriptionId": "12053b8f-cab5-4f5c-9c1a-870580142abd" + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" } } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestProvisionCosmosDBAccountBackupPolicyWithContinuous7DaysCmdLets.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestProvisionCosmosDBAccountBackupPolicyWithContinuous7DaysCmdLets.json new file mode 100644 index 000000000000..f712b80795da --- /dev/null +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestProvisionCosmosDBAccountBackupPolicyWithContinuous7DaysCmdLets.json @@ -0,0 +1,755 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourcegroups/PSCosmosDBResourceGroup51?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlZ3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "451cd45c-fc52-47de-8c27-9502e1f9988d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.57" + ], + "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": [ + "edb3c0b4-d38d-46fe-9932-41ca7e053575" + ], + "x-ms-correlation-request-id": [ + "edb3c0b4-d38d-46fe-9932-41ca7e053575" + ], + "x-ms-routing-request-id": [ + "WESTUS:20220516T213852Z:edb3c0b4-d38d-46fe-9932-41ca7e053575" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 16 May 2022 21:38:52 GMT" + ], + "Content-Length": [ + "203" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup51\",\r\n \"name\": \"PSCosmosDBResourceGroup51\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup51/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1251?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cbad6b6f-d540-4237-8c8e-57033a4f4281" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "1afd9e24-357d-4e43-ba4a-cf479359c759" + ], + "x-ms-correlation-request-id": [ + "1afd9e24-357d-4e43-ba4a-cf479359c759" + ], + "x-ms-routing-request-id": [ + "WESTUS:20220516T213852Z:1afd9e24-357d-4e43-ba4a-cf479359c759" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 16 May 2022 21:38:52 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "251" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1251' under resource group 'PSCosmosDBResourceGroup51' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup51/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1251?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cbad6b6f-d540-4237-8c8e-57033a4f4281" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "421bf630-ea30-48af-8e4d-57ee473ee028" + ], + "x-ms-correlation-request-id": [ + "421bf630-ea30-48af-8e4d-57ee473ee028" + ], + "x-ms-routing-request-id": [ + "WESTUS:20220516T214159Z:421bf630-ea30-48af-8e4d-57ee473ee028" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 16 May 2022 21:41:59 GMT" + ], + "Content-Length": [ + "2230" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup51/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1251\",\r\n \"name\": \"ps-cosmosdb-1251\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-16T21:41:06.3387854Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1251.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"afd06089-6a1d-4ebd-b469-471a56149264\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1251-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1251-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1251-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1251-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1251-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1251-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1251-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous7Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup51/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1251?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f44569d1-9b10-4ce0-8e05-815426a20783" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "2bd14b71-c7ea-49ea-9829-0300286403c0" + ], + "x-ms-correlation-request-id": [ + "2bd14b71-c7ea-49ea-9829-0300286403c0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20220516T214159Z:2bd14b71-c7ea-49ea-9829-0300286403c0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 16 May 2022 21:41:59 GMT" + ], + "Content-Length": [ + "2230" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup51/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1251\",\r\n \"name\": \"ps-cosmosdb-1251\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-16T21:41:06.3387854Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1251.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"afd06089-6a1d-4ebd-b469-471a56149264\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1251-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1251-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1251-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1251-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1251-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1251-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1251-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous7Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup51/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1251?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTEvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"West Us\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": false,\r\n \"virtualNetworkRules\": [],\r\n \"enableMultipleWriteLocations\": false,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous7Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"West Us\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cbad6b6f-d540-4237-8c8e-57033a4f4281" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "732" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup51/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1251/operationResults/f5c85bc8-b70f-47c5-8ab3-e530a30e12d6?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "f5c85bc8-b70f-47c5-8ab3-e530a30e12d6" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f5c85bc8-b70f-47c5-8ab3-e530a30e12d6?api-version=2022-02-15-preview" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "7aff5031-68a2-409c-8c68-93334df4c588" + ], + "x-ms-routing-request-id": [ + "WESTUS:20220516T213858Z:7aff5031-68a2-409c-8c68-93334df4c588" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 16 May 2022 21:38:58 GMT" + ], + "Content-Length": [ + "1903" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup51/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1251\",\r\n \"name\": \"ps-cosmosdb-1251\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-16T21:38:56.7102521Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"afd06089-6a1d-4ebd-b469-471a56149264\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1251-westus\",\r\n \"locationName\": \"West US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1251-westus\",\r\n \"locationName\": \"West US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1251-westus\",\r\n \"locationName\": \"West US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1251-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous7Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f5c85bc8-b70f-47c5-8ab3-e530a30e12d6?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZjVjODViYzgtYjcwZi00N2M1LThhYjMtZTUzMGEzMGUxMmQ2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cbad6b6f-d540-4237-8c8e-57033a4f4281" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "31862220-69c0-440e-b5d1-e24b7511eb70" + ], + "x-ms-correlation-request-id": [ + "31862220-69c0-440e-b5d1-e24b7511eb70" + ], + "x-ms-routing-request-id": [ + "WESTUS:20220516T213929Z:31862220-69c0-440e-b5d1-e24b7511eb70" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 16 May 2022 21:39:28 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f5c85bc8-b70f-47c5-8ab3-e530a30e12d6?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZjVjODViYzgtYjcwZi00N2M1LThhYjMtZTUzMGEzMGUxMmQ2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cbad6b6f-d540-4237-8c8e-57033a4f4281" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "e4f6c74e-31c6-405d-8e6e-8f609994aef6" + ], + "x-ms-correlation-request-id": [ + "e4f6c74e-31c6-405d-8e6e-8f609994aef6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20220516T213959Z:e4f6c74e-31c6-405d-8e6e-8f609994aef6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 16 May 2022 21:39:58 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f5c85bc8-b70f-47c5-8ab3-e530a30e12d6?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZjVjODViYzgtYjcwZi00N2M1LThhYjMtZTUzMGEzMGUxMmQ2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cbad6b6f-d540-4237-8c8e-57033a4f4281" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "b0894bbe-31aa-4679-91c9-260234d494b9" + ], + "x-ms-correlation-request-id": [ + "b0894bbe-31aa-4679-91c9-260234d494b9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20220516T214029Z:b0894bbe-31aa-4679-91c9-260234d494b9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 16 May 2022 21:40:29 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f5c85bc8-b70f-47c5-8ab3-e530a30e12d6?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZjVjODViYzgtYjcwZi00N2M1LThhYjMtZTUzMGEzMGUxMmQ2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cbad6b6f-d540-4237-8c8e-57033a4f4281" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "340e64f4-61f6-4054-a081-aa87130d1caf" + ], + "x-ms-correlation-request-id": [ + "340e64f4-61f6-4054-a081-aa87130d1caf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20220516T214059Z:340e64f4-61f6-4054-a081-aa87130d1caf" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 16 May 2022 21:40:58 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f5c85bc8-b70f-47c5-8ab3-e530a30e12d6?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZjVjODViYzgtYjcwZi00N2M1LThhYjMtZTUzMGEzMGUxMmQ2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cbad6b6f-d540-4237-8c8e-57033a4f4281" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "4dddf32b-ccb3-4440-969c-1f521f2012c9" + ], + "x-ms-correlation-request-id": [ + "4dddf32b-ccb3-4440-969c-1f521f2012c9" + ], + "x-ms-routing-request-id": [ + "WESTUS:20220516T214129Z:4dddf32b-ccb3-4440-969c-1f521f2012c9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 16 May 2022 21:41:28 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f5c85bc8-b70f-47c5-8ab3-e530a30e12d6?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZjVjODViYzgtYjcwZi00N2M1LThhYjMtZTUzMGEzMGUxMmQ2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cbad6b6f-d540-4237-8c8e-57033a4f4281" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "c491519e-735e-4bb9-ace0-3478e1f0c3e6" + ], + "x-ms-correlation-request-id": [ + "c491519e-735e-4bb9-ace0-3478e1f0c3e6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20220516T214159Z:c491519e-735e-4bb9-ace0-3478e1f0c3e6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 16 May 2022 21:41:59 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/West%20US/restorableDatabaseAccounts/afd06089-6a1d-4ebd-b469-471a56149264?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvV2VzdCUyMFVTL3Jlc3RvcmFibGVEYXRhYmFzZUFjY291bnRzL2FmZDA2MDg5LTZhMWQtNGViZC1iNDY5LTQ3MWE1NjE0OTI2ND9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "81234e97-cb65-496f-ad2b-5d8ba091d07e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "ddeb2374-5b4f-45f7-a366-6736fbb4438b" + ], + "x-ms-correlation-request-id": [ + "ddeb2374-5b4f-45f7-a366-6736fbb4438b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20220516T214159Z:ddeb2374-5b4f-45f7-a366-6736fbb4438b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 16 May 2022 21:41:59 GMT" + ], + "Content-Length": [ + "618" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"name\": \"afd06089-6a1d-4ebd-b469-471a56149264\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/afd06089-6a1d-4ebd-b469-471a56149264\",\r\n \"properties\": {\r\n \"accountName\": \"ps-cosmosdb-1251\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2022-05-16T21:41:07Z\",\r\n \"oldestRestorableTime\": \"2022-05-16T21:41:07Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US\",\r\n \"regionalDatabaseAccountInstanceId\": \"b5570540-7545-4ca0-b675-bfe1062a7c58\",\r\n \"creationTime\": \"2022-05-16T21:41:08Z\"\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" + } +} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestRestoreFromNewAccountCmdlets.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestRestoreFromNewAccountCmdlets.json index cecc0b7c15aa..26fd53dbc001 100644 --- a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestRestoreFromNewAccountCmdlets.json +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestRestoreFromNewAccountCmdlets.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourcegroups/CosmosDBResourceGroup13?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourcegroups/CosmosDBResourceGroup13?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "0755f4fa-fd8c-476d-a57f-4824239838d6" + "4aaeb87a-c6d2-4e44-bbc4-0a815903c477" ], "Accept-Language": [ "en-US" @@ -15,7 +15,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.57" ], "Content-Type": [ @@ -33,16 +33,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1199" ], "x-ms-request-id": [ - "cf57efb1-4f06-4b5b-96be-45db1c640e54" + "85c4d5f6-b7d0-4710-bb58-1f9e72eba92f" ], "x-ms-correlation-request-id": [ - "cf57efb1-4f06-4b5b-96be-45db1c640e54" + "85c4d5f6-b7d0-4710-bb58-1f9e72eba92f" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115445Z:cf57efb1-4f06-4b5b-96be-45db1c640e54" + "WESTUS2:20220517T043328Z:85c4d5f6-b7d0-4710-bb58-1f9e72eba92f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,7 +51,7 @@ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:54:44 GMT" + "Tue, 17 May 2022 04:33:27 GMT" ], "Content-Length": [ "199" @@ -63,17 +63,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13\",\r\n \"name\": \"CosmosDBResourceGroup13\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13\",\r\n \"name\": \"CosmosDBResourceGroup13\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3388d203-0a08-4466-bf44-faafebdbac86" + "e49f7840-25d6-4044-b298-b96785b86458" ], "Accept-Language": [ "en-US" @@ -81,7 +81,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -96,13 +96,13 @@ "gateway" ], "x-ms-request-id": [ - "dba2ca14-eb5d-4844-aa92-54eac3db5edd" + "29fc9048-72cb-40cd-ad55-9a7101888db4" ], "x-ms-correlation-request-id": [ - "dba2ca14-eb5d-4844-aa92-54eac3db5edd" + "29fc9048-72cb-40cd-ad55-9a7101888db4" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115449Z:dba2ca14-eb5d-4844-aa92-54eac3db5edd" + "WESTUS2:20220517T043328Z:29fc9048-72cb-40cd-ad55-9a7101888db4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -111,7 +111,7 @@ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:54:49 GMT" + "Tue, 17 May 2022 04:33:27 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -127,18 +127,18 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3388d203-0a08-4466-bf44-faafebdbac86" + "e49f7840-25d6-4044-b298-b96785b86458" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -159,41 +159,41 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" + "11993" ], "x-ms-request-id": [ - "5bbbb26a-6427-4594-a14d-dd617fe9fd35" + "97546c3a-27be-4d5a-aa3a-0a6fdade923a" ], "x-ms-correlation-request-id": [ - "5bbbb26a-6427-4594-a14d-dd617fe9fd35" + "97546c3a-27be-4d5a-aa3a-0a6fdade923a" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115709Z:5bbbb26a-6427-4594-a14d-dd617fe9fd35" + "WESTUS2:20220517T043605Z:97546c3a-27be-4d5a-aa3a-0a6fdade923a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:57:09 GMT" + "Tue, 17 May 2022 04:36:04 GMT" ], "Content-Length": [ - "2284" + "2199" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214\",\r\n \"name\": \"cosmosdb-1214\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T11:56:57.5258126Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"8110cd92-ac4e-46a3-a255-9c29b8c18cec\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214\",\r\n \"name\": \"cosmosdb-1214\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:35:25.2058296Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"e3abbbcf-6830-403b-b442-9beb27a494f9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d6705553-2eba-4424-b309-0928b6071ff3" + "ff0406b2-df8b-424c-80d5-65279d514a49" ], "Accept-Language": [ "en-US" @@ -201,7 +201,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -222,41 +222,41 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" + "11986" ], "x-ms-request-id": [ - "e7cc4944-b510-4426-8471-496dbd8bd511" + "0df88f4d-5726-44af-80d7-b01ed7414d4b" ], "x-ms-correlation-request-id": [ - "e7cc4944-b510-4426-8471-496dbd8bd511" + "0df88f4d-5726-44af-80d7-b01ed7414d4b" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115829Z:e7cc4944-b510-4426-8471-496dbd8bd511" + "WESTUS2:20220517T043707Z:0df88f4d-5726-44af-80d7-b01ed7414d4b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:58:28 GMT" + "Tue, 17 May 2022 04:37:07 GMT" ], "Content-Length": [ - "2284" + "2199" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214\",\r\n \"name\": \"cosmosdb-1214\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T11:56:57.5258126Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"8110cd92-ac4e-46a3-a255-9c29b8c18cec\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214\",\r\n \"name\": \"cosmosdb-1214\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:35:25.2058296Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"e3abbbcf-6830-403b-b442-9beb27a494f9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"West Us\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": false,\r\n \"virtualNetworkRules\": [],\r\n \"enableMultipleWriteLocations\": false,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"West Us\",\r\n \"tags\": {}\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"West Us\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": false,\r\n \"virtualNetworkRules\": [],\r\n \"enableMultipleWriteLocations\": false,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {}\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"West Us\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "3388d203-0a08-4466-bf44-faafebdbac86" + "e49f7840-25d6-4044-b298-b96785b86458" ], "Accept-Language": [ "en-US" @@ -264,14 +264,14 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "650" + "689" ] }, "ResponseHeaders": { @@ -282,13 +282,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/operationResults/ed3066f2-bd68-4db0-8d7b-edb873d2860b?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/operationResults/f73d65df-f588-4efc-8174-76848014323c?api-version=2022-02-15-preview" ], "x-ms-request-id": [ - "ed3066f2-bd68-4db0-8d7b-edb873d2860b" + "f73d65df-f588-4efc-8174-76848014323c" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ed3066f2-bd68-4db0-8d7b-edb873d2860b?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f73d65df-f588-4efc-8174-76848014323c?api-version=2022-02-15-preview" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -303,40 +303,40 @@ "1199" ], "x-ms-correlation-request-id": [ - "a59ff256-7b96-431c-af37-6dbad6e64613" + "bd281175-3592-4cea-98a9-a1e4f5dcd9cd" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115505Z:a59ff256-7b96-431c-af37-6dbad6e64613" + "WESTUS2:20220517T043334Z:bd281175-3592-4cea-98a9-a1e4f5dcd9cd" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:55:05 GMT" + "Tue, 17 May 2022 04:33:33 GMT" ], "Content-Length": [ - "1969" + "1884" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214\",\r\n \"name\": \"cosmosdb-1214\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T11:55:01.7861509Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"8110cd92-ac4e-46a3-a255-9c29b8c18cec\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214\",\r\n \"name\": \"cosmosdb-1214\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:33:32.2239843Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"e3abbbcf-6830-403b-b442-9beb27a494f9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ed3066f2-bd68-4db0-8d7b-edb873d2860b?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZWQzMDY2ZjItYmQ2OC00ZGIwLThkN2ItZWRiODczZDI4NjBiP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f73d65df-f588-4efc-8174-76848014323c?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZjczZDY1ZGYtZjU4OC00ZWZjLTgxNzQtNzY4NDgwMTQzMjNjP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3388d203-0a08-4466-bf44-faafebdbac86" + "e49f7840-25d6-4044-b298-b96785b86458" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -360,19 +360,19 @@ "11998" ], "x-ms-request-id": [ - "29511d96-ce6a-49cf-9753-f83c788b64c9" + "19a3b7ac-961c-4809-95eb-790227b8ec1d" ], "x-ms-correlation-request-id": [ - "29511d96-ce6a-49cf-9753-f83c788b64c9" + "19a3b7ac-961c-4809-95eb-790227b8ec1d" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115536Z:29511d96-ce6a-49cf-9753-f83c788b64c9" + "WESTUS2:20220517T043404Z:19a3b7ac-961c-4809-95eb-790227b8ec1d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:55:36 GMT" + "Tue, 17 May 2022 04:34:04 GMT" ], "Content-Length": [ "21" @@ -385,18 +385,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ed3066f2-bd68-4db0-8d7b-edb873d2860b?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZWQzMDY2ZjItYmQ2OC00ZGIwLThkN2ItZWRiODczZDI4NjBiP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f73d65df-f588-4efc-8174-76848014323c?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZjczZDY1ZGYtZjU4OC00ZWZjLTgxNzQtNzY4NDgwMTQzMjNjP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3388d203-0a08-4466-bf44-faafebdbac86" + "e49f7840-25d6-4044-b298-b96785b86458" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -420,19 +420,19 @@ "11997" ], "x-ms-request-id": [ - "35aac5d2-6e45-409e-98a7-e036e7ed1997" + "64871aa6-3d7d-4ccd-87a3-8459c4f09d6b" ], "x-ms-correlation-request-id": [ - "35aac5d2-6e45-409e-98a7-e036e7ed1997" + "64871aa6-3d7d-4ccd-87a3-8459c4f09d6b" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115607Z:35aac5d2-6e45-409e-98a7-e036e7ed1997" + "WESTUS2:20220517T043434Z:64871aa6-3d7d-4ccd-87a3-8459c4f09d6b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:56:06 GMT" + "Tue, 17 May 2022 04:34:34 GMT" ], "Content-Length": [ "21" @@ -445,18 +445,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ed3066f2-bd68-4db0-8d7b-edb873d2860b?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZWQzMDY2ZjItYmQ2OC00ZGIwLThkN2ItZWRiODczZDI4NjBiP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f73d65df-f588-4efc-8174-76848014323c?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZjczZDY1ZGYtZjU4OC00ZWZjLTgxNzQtNzY4NDgwMTQzMjNjP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3388d203-0a08-4466-bf44-faafebdbac86" + "e49f7840-25d6-4044-b298-b96785b86458" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -480,19 +480,19 @@ "11996" ], "x-ms-request-id": [ - "586ed5c8-add8-4ffc-a916-8e633dc9d211" + "9d045403-9a73-44d3-b8b1-c5386dc43113" ], "x-ms-correlation-request-id": [ - "586ed5c8-add8-4ffc-a916-8e633dc9d211" + "9d045403-9a73-44d3-b8b1-c5386dc43113" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115638Z:586ed5c8-add8-4ffc-a916-8e633dc9d211" + "WESTUS2:20220517T043505Z:9d045403-9a73-44d3-b8b1-c5386dc43113" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:56:38 GMT" + "Tue, 17 May 2022 04:35:04 GMT" ], "Content-Length": [ "21" @@ -505,18 +505,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/ed3066f2-bd68-4db0-8d7b-edb873d2860b?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZWQzMDY2ZjItYmQ2OC00ZGIwLThkN2ItZWRiODczZDI4NjBiP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f73d65df-f588-4efc-8174-76848014323c?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZjczZDY1ZGYtZjU4OC00ZWZjLTgxNzQtNzY4NDgwMTQzMjNjP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3388d203-0a08-4466-bf44-faafebdbac86" + "e49f7840-25d6-4044-b298-b96785b86458" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -540,19 +540,79 @@ "11995" ], "x-ms-request-id": [ - "bf39af81-1975-4317-859d-4ba534449b57" + "00435b08-4fc9-4d07-9906-a8fb6df364c1" ], "x-ms-correlation-request-id": [ - "bf39af81-1975-4317-859d-4ba534449b57" + "00435b08-4fc9-4d07-9906-a8fb6df364c1" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115708Z:bf39af81-1975-4317-859d-4ba534449b57" + "WESTUS2:20220517T043535Z:00435b08-4fc9-4d07-9906-a8fb6df364c1" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:57:07 GMT" + "Tue, 17 May 2022 04:35:34 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/f73d65df-f588-4efc-8174-76848014323c?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZjczZDY1ZGYtZjU4OC00ZWZjLTgxNzQtNzY4NDgwMTQzMjNjP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e49f7840-25d6-4044-b298-b96785b86458" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "8d823760-09b0-416b-832e-b845a3e787a9" + ], + "x-ms-correlation-request-id": [ + "8d823760-09b0-416b-832e-b845a3e787a9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T043605Z:8d823760-09b0-416b-832e-b845a3e787a9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:36:04 GMT" ], "Content-Length": [ "22" @@ -565,13 +625,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "437a7564-a992-4baa-8a81-0476afe0ec7d" + "fcc9cacb-cf8b-46d4-896f-b2d3ccc98c8c" ], "Accept-Language": [ "en-US" @@ -579,7 +639,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -600,46 +660,46 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11992" ], "x-ms-request-id": [ - "fa5aaddb-5b34-4e5e-84ba-66b461feb988" + "0a02c99a-d73a-47df-a3a0-3f369340b376" ], "x-ms-correlation-request-id": [ - "fa5aaddb-5b34-4e5e-84ba-66b461feb988" + "0a02c99a-d73a-47df-a3a0-3f369340b376" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115713Z:fa5aaddb-5b34-4e5e-84ba-66b461feb988" + "WESTUS2:20220517T043605Z:0a02c99a-d73a-47df-a3a0-3f369340b376" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:57:13 GMT" + "Tue, 17 May 2022 04:36:05 GMT" ], "Content-Length": [ - "6291" + "6290" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Message: {\\\"code\\\":\\\"NotFound\\\",\\\"message\\\":\\\"Message: {\\\\\\\"Errors\\\\\\\":[\\\\\\\"Resource Not Found. Learn more: https:\\\\\\\\/\\\\\\\\/aka.ms\\\\\\\\/cosmosdb-tsg-not-found\\\\\\\"]}\\\\r\\\\nActivityId: 437a7564-a992-4baa-8a81-0476afe0ec7d, Request URI: /apps/9f01fc1f-8f71-4132-a229-7f0e3f7a56df/services/54653f61-ae69-49c4-a9d2-3be9d77b97b6/partitions/e43ae5af-9e31-4e6f-80e5-6410db6edea2/replicas/132963105192978800s, RequestStats: \\\\r\\\\nRequestStartTime: 2022-05-12T11:57:13.2144385Z, RequestEndTime: 2022-05-12T11:57:13.2244256Z, Number of regions attempted:1\\\\r\\\\n{\\\\\\\"systemHistory\\\\\\\":[{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T11:56:14.7942157Z\\\\\\\",\\\\\\\"cpu\\\\\\\":6.123,\\\\\\\"memory\\\\\\\":121250688.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0155,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":24,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T11:56:24.8042569Z\\\\\\\",\\\\\\\"cpu\\\\\\\":6.734,\\\\\\\"memory\\\\\\\":121151460.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0172,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":24,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T11:56:34.8242997Z\\\\\\\",\\\\\\\"cpu\\\\\\\":6.734,\\\\\\\"memory\\\\\\\":121030244.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0167,\\\\\\\"availableThreads\\\\\\\":32761,\\\\\\\"minThreads\\\\\\\":24,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T11:56:44.8343530Z\\\\\\\",\\\\\\\"cpu\\\\\\\":8.164,\\\\\\\"memory\\\\\\\":120774656.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0196,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":24,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T11:56:54.8443471Z\\\\\\\",\\\\\\\"cpu\\\\\\\":6.257,\\\\\\\"memory\\\\\\\":120625488.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.014,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":24,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T11:57:04.8543597Z\\\\\\\",\\\\\\\"cpu\\\\\\\":9.646,\\\\\\\"memory\\\\\\\":120438488.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0244,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":24,\\\\\\\"maxThreads\\\\\\\":32767}}]}\\\\r\\\\nRequestStart: 2022-05-12T11:57:13.2144385Z; ResponseTime: 2022-05-12T11:57:13.2244256Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.37:11000/apps/9f01fc1f-8f71-4132-a229-7f0e3f7a56df/services/54653f61-ae69-49c4-a9d2-3be9d77b97b6/partitions/e43ae5af-9e31-4e6f-80e5-6410db6edea2/replicas/132963105192978800s, LSN: 9, GlobalCommittedLsn: 9, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#9, UsingLocalLSN: False, TransportException: null, BELatencyMs: 1.089, ActivityId: 437a7564-a992-4baa-8a81-0476afe0ec7d, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:13.2144385Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0144},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:13.2144529Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0037},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:13.2144566Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.2014},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:13.2146580Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 1.4309},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:13.2160889Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1523},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:13.2162412Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-12T11:57:13.0743958Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-12T11:57:13.0743958Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-12T11:57:13.1343975Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":458,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":134,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Database, OperationType: Read\\\\r\\\\nRequestStart: 2022-05-12T11:57:13.2144385Z; ResponseTime: 2022-05-12T11:57:13.2244256Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.32:11300/apps/9f01fc1f-8f71-4132-a229-7f0e3f7a56df/services/54653f61-ae69-49c4-a9d2-3be9d77b97b6/partitions/e43ae5af-9e31-4e6f-80e5-6410db6edea2/replicas/132963105192978801s, LSN: 9, GlobalCommittedLsn: 9, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#9, UsingLocalLSN: False, TransportException: null, BELatencyMs: 1.166, ActivityId: 437a7564-a992-4baa-8a81-0476afe0ec7d, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:13.2144385Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0074},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:13.2144459Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0035},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:13.2144494Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1256},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:13.2145750Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 1.6557},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:13.2162307Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0821},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:13.2163128Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-12T11:57:12.9243816Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-12T11:57:12.9243816Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-12T11:57:12.9844061Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":458,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":134,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Database, OperationType: Read\\\\r\\\\n, SDK: Microsoft.Azure.Documents.Common/2.14.0\\\"}, Request URI: /dbs/TestDB1, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Message: {\\\"code\\\":\\\"NotFound\\\",\\\"message\\\":\\\"Message: {\\\\\\\"Errors\\\\\\\":[\\\\\\\"Resource Not Found. Learn more: https:\\\\\\\\/\\\\\\\\/aka.ms\\\\\\\\/cosmosdb-tsg-not-found\\\\\\\"]}\\\\r\\\\nActivityId: fcc9cacb-cf8b-46d4-896f-b2d3ccc98c8c, Request URI: /apps/1226fbb7-a202-4ebf-9f8d-0bf04a09f94d/services/5a7ab00c-e86a-4e80-9a52-02e534dddfb5/partitions/eca5fb29-1f9a-4a5e-9c14-be4838f9a0d0/replicas/132969561105398904s, RequestStats: \\\\r\\\\nRequestStartTime: 2022-05-17T04:36:05.7940826Z, RequestEndTime: 2022-05-17T04:36:05.7940826Z, Number of regions attempted:1\\\\r\\\\n{\\\\\\\"systemHistory\\\\\\\":[{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T04:35:13.4634651Z\\\\\\\",\\\\\\\"cpu\\\\\\\":1.966,\\\\\\\"memory\\\\\\\":465712324.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0181,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T04:35:23.4735525Z\\\\\\\",\\\\\\\"cpu\\\\\\\":2.536,\\\\\\\"memory\\\\\\\":470543448.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0141,\\\\\\\"availableThreads\\\\\\\":32758,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T04:35:33.4837218Z\\\\\\\",\\\\\\\"cpu\\\\\\\":3.278,\\\\\\\"memory\\\\\\\":469391888.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0289,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T04:35:43.4938570Z\\\\\\\",\\\\\\\"cpu\\\\\\\":1.360,\\\\\\\"memory\\\\\\\":468795268.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0141,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T04:35:53.5039928Z\\\\\\\",\\\\\\\"cpu\\\\\\\":1.800,\\\\\\\"memory\\\\\\\":468375948.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0208,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T04:36:03.5141068Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.720,\\\\\\\"memory\\\\\\\":467728656.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0158,\\\\\\\"availableThreads\\\\\\\":32762,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}}]}\\\\r\\\\nRequestStart: 2022-05-17T04:36:05.7940826Z; ResponseTime: 2022-05-17T04:36:05.7940826Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.20:11300/apps/1226fbb7-a202-4ebf-9f8d-0bf04a09f94d/services/5a7ab00c-e86a-4e80-9a52-02e534dddfb5/partitions/eca5fb29-1f9a-4a5e-9c14-be4838f9a0d0/replicas/132969561105398904s, LSN: 9, GlobalCommittedLsn: 9, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#9, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.926, ActivityId: fcc9cacb-cf8b-46d4-896f-b2d3ccc98c8c, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:05.7940826Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0103},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:05.7940929Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0027},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:05.7940956Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1629},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:05.7942585Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 1.2487},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:05.7955072Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0644},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:05.7955716Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":2},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-17T04:36:05.5841291Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-17T04:36:05.5841291Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-17T04:36:05.6241321Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":454,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":134,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Database, OperationType: Read\\\\r\\\\nRequestStart: 2022-05-17T04:36:05.7940826Z; ResponseTime: 2022-05-17T04:36:05.7940826Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.28:11000/apps/1226fbb7-a202-4ebf-9f8d-0bf04a09f94d/services/5a7ab00c-e86a-4e80-9a52-02e534dddfb5/partitions/eca5fb29-1f9a-4a5e-9c14-be4838f9a0d0/replicas/132969561105398905s, LSN: 9, GlobalCommittedLsn: 9, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#9, UsingLocalLSN: False, TransportException: null, BELatencyMs: 1.078, ActivityId: fcc9cacb-cf8b-46d4-896f-b2d3ccc98c8c, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:05.7940826Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0205},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:05.7941031Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.009},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:05.7941121Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0725},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:05.7941846Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 1.536},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:05.7957206Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0271},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:05.7957477Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-17T04:36:03.2540530Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-17T04:36:03.2540530Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-17T04:36:03.2540530Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":454,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":134,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Database, OperationType: Read\\\\r\\\\n, SDK: Microsoft.Azure.Documents.Common/2.14.0\\\"}, Request URI: /dbs/TestDB1, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", "StatusCode": 404 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "437a7564-a992-4baa-8a81-0476afe0ec7d" + "fcc9cacb-cf8b-46d4-896f-b2d3ccc98c8c" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -660,22 +720,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11990" ], "x-ms-request-id": [ - "21249a14-f217-4fdd-8c5e-5a86f7d07109" + "e4cb0b0f-ad4d-4b89-af11-531672f07b24" ], "x-ms-correlation-request-id": [ - "21249a14-f217-4fdd-8c5e-5a86f7d07109" + "e4cb0b0f-ad4d-4b89-af11-531672f07b24" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115747Z:21249a14-f217-4fdd-8c5e-5a86f7d07109" + "WESTUS2:20220517T043636Z:e4cb0b0f-ad4d-4b89-af11-531672f07b24" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:57:46 GMT" + "Tue, 17 May 2022 04:36:36 GMT" ], "Content-Length": [ "448" @@ -684,17 +744,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"TestDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\",\r\n \"_rid\": \"p287AA==\",\r\n \"_self\": \"dbs/p287AA==/\",\r\n \"_etag\": \"\\\"0000d802-0000-0700-0000-627cf6210000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1652356641\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"TestDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\",\r\n \"_rid\": \"+ndJAA==\",\r\n \"_self\": \"dbs/+ndJAA==/\",\r\n \"_etag\": \"\\\"00001a03-0000-0700-0000-6283263b0000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1652762171\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\"\r\n },\r\n \"options\": {}\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "437a7564-a992-4baa-8a81-0476afe0ec7d" + "fcc9cacb-cf8b-46d4-896f-b2d3ccc98c8c" ], "Accept-Language": [ "en-US" @@ -702,7 +762,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ], "Content-Type": [ @@ -720,13 +780,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/operationResults/36901978-d5ee-4dbc-a57c-c3c96bb9cd2e?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/operationResults/de66dce0-e5a4-4b52-9d02-6e00c0a7d2d7?api-version=2022-02-15-preview" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/36901978-d5ee-4dbc-a57c-c3c96bb9cd2e?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/de66dce0-e5a4-4b52-9d02-6e00c0a7d2d7?api-version=2022-02-15-preview" ], "x-ms-request-id": [ - "36901978-d5ee-4dbc-a57c-c3c96bb9cd2e" + "de66dce0-e5a4-4b52-9d02-6e00c0a7d2d7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -738,19 +798,19 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1198" ], "x-ms-correlation-request-id": [ - "8e5404f2-e87a-4e5a-9c17-d03fa7fc80e6" + "ee8aac1f-c84c-4690-a7b2-c226ba93388b" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115716Z:8e5404f2-e87a-4e5a-9c17-d03fa7fc80e6" + "WESTUS2:20220517T043606Z:ee8aac1f-c84c-4690-a7b2-c226ba93388b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:57:16 GMT" + "Tue, 17 May 2022 04:36:05 GMT" ], "Content-Length": [ "21" @@ -763,18 +823,18 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/36901978-d5ee-4dbc-a57c-c3c96bb9cd2e?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvMzY5MDE5NzgtZDVlZS00ZGJjLWE1N2MtYzNjOTZiYjljZDJlP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/de66dce0-e5a4-4b52-9d02-6e00c0a7d2d7?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvZGU2NmRjZTAtZTVhNC00YjUyLTlkMDItNmUwMGMwYTdkMmQ3P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "437a7564-a992-4baa-8a81-0476afe0ec7d" + "fcc9cacb-cf8b-46d4-896f-b2d3ccc98c8c" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -795,22 +855,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11991" ], "x-ms-request-id": [ - "e33656e6-1721-4aec-bad7-e664267afaa9" + "b4090f2e-f9e6-4ff7-8f16-cd7b8bcd8255" ], "x-ms-correlation-request-id": [ - "e33656e6-1721-4aec-bad7-e664267afaa9" + "b4090f2e-f9e6-4ff7-8f16-cd7b8bcd8255" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T115746Z:e33656e6-1721-4aec-bad7-e664267afaa9" + "WESTUS2:20220517T043636Z:b4090f2e-f9e6-4ff7-8f16-cd7b8bcd8255" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:57:46 GMT" + "Tue, 17 May 2022 04:36:35 GMT" ], "Content-Length": [ "22" @@ -823,13 +883,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "68f8bbf7-52ad-46dc-8be9-566e29a288c5" + "d6d53949-5a21-46cc-b5ab-ec5768627151" ], "Accept-Language": [ "en-US" @@ -837,7 +897,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -858,46 +918,46 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" + "11989" ], "x-ms-request-id": [ - "8e2815f9-332c-49ff-9a9a-00af809e4ca6" + "68932aca-8ed6-441d-b3a5-27977ebeb8a9" ], "x-ms-correlation-request-id": [ - "8e2815f9-332c-49ff-9a9a-00af809e4ca6" + "68932aca-8ed6-441d-b3a5-27977ebeb8a9" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115751Z:8e2815f9-332c-49ff-9a9a-00af809e4ca6" + "WESTUS2:20220517T043636Z:68932aca-8ed6-441d-b3a5-27977ebeb8a9" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:57:51 GMT" + "Tue, 17 May 2022 04:36:36 GMT" ], "Content-Length": [ - "6328" + "6327" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Message: {\\\"code\\\":\\\"NotFound\\\",\\\"message\\\":\\\"Message: {\\\\\\\"Errors\\\\\\\":[\\\\\\\"Resource Not Found. Learn more: https:\\\\\\\\/\\\\\\\\/aka.ms\\\\\\\\/cosmosdb-tsg-not-found\\\\\\\"]}\\\\r\\\\nActivityId: 68f8bbf7-52ad-46dc-8be9-566e29a288c5, Request URI: /apps/9f01fc1f-8f71-4132-a229-7f0e3f7a56df/services/54653f61-ae69-49c4-a9d2-3be9d77b97b6/partitions/e43ae5af-9e31-4e6f-80e5-6410db6edea2/replicas/132963105192978801s, RequestStats: \\\\r\\\\nRequestStartTime: 2022-05-12T11:57:51.5105654Z, RequestEndTime: 2022-05-12T11:57:51.5105654Z, Number of regions attempted:1\\\\r\\\\n{\\\\\\\"systemHistory\\\\\\\":[{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T11:56:45.4301786Z\\\\\\\",\\\\\\\"cpu\\\\\\\":10.056,\\\\\\\"memory\\\\\\\":118773188.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0144,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":24,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T11:56:55.4402346Z\\\\\\\",\\\\\\\"cpu\\\\\\\":9.329,\\\\\\\"memory\\\\\\\":118485916.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0222,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":24,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T11:57:05.4502886Z\\\\\\\",\\\\\\\"cpu\\\\\\\":8.938,\\\\\\\"memory\\\\\\\":118398640.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0154,\\\\\\\"availableThreads\\\\\\\":32762,\\\\\\\"minThreads\\\\\\\":24,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T11:57:15.4603630Z\\\\\\\",\\\\\\\"cpu\\\\\\\":7.228,\\\\\\\"memory\\\\\\\":118184132.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0186,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":24,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T11:57:35.4704691Z\\\\\\\",\\\\\\\"cpu\\\\\\\":9.528,\\\\\\\"memory\\\\\\\":117408752.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0185,\\\\\\\"availableThreads\\\\\\\":32761,\\\\\\\"minThreads\\\\\\\":24,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T11:57:45.4805041Z\\\\\\\",\\\\\\\"cpu\\\\\\\":13.898,\\\\\\\"memory\\\\\\\":118605884.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0146,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":24,\\\\\\\"maxThreads\\\\\\\":32767}}]}\\\\r\\\\nRequestStart: 2022-05-12T11:57:51.5105654Z; ResponseTime: 2022-05-12T11:57:51.5105654Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.32:11300/apps/9f01fc1f-8f71-4132-a229-7f0e3f7a56df/services/54653f61-ae69-49c4-a9d2-3be9d77b97b6/partitions/e43ae5af-9e31-4e6f-80e5-6410db6edea2/replicas/132963105192978801s, LSN: 10, GlobalCommittedLsn: 10, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#10, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.988, ActivityId: 68f8bbf7-52ad-46dc-8be9-566e29a288c5, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:51.5105654Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0186},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:51.5105840Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0042},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:51.5105882Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.2611},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:51.5108493Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 1.3619},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:51.5122112Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.111},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:51.5123222Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-12T11:57:51.3805349Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-12T11:57:51.3805349Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-12T11:57:51.4405344Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":494,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":135,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Collection, OperationType: Read\\\\r\\\\nRequestStart: 2022-05-12T11:57:51.5105654Z; ResponseTime: 2022-05-12T11:57:51.5105654Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.38:11300/apps/9f01fc1f-8f71-4132-a229-7f0e3f7a56df/services/54653f61-ae69-49c4-a9d2-3be9d77b97b6/partitions/e43ae5af-9e31-4e6f-80e5-6410db6edea2/replicas/132963105192978802s, LSN: 10, GlobalCommittedLsn: 10, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#10, UsingLocalLSN: False, TransportException: null, BELatencyMs: 1.028, ActivityId: 68f8bbf7-52ad-46dc-8be9-566e29a288c5, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:51.5105654Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0073},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:51.5105727Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0033},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:51.5105760Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.212},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:51.5107880Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 1.3229},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:51.5121109Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0654},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T11:57:51.5121763Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-12T11:57:51.3805349Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-12T11:57:51.3805349Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-12T11:57:51.4405344Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":494,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":135,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Collection, OperationType: Read\\\\r\\\\n, SDK: Microsoft.Azure.Documents.Common/2.14.0\\\"}, Request URI: /dbs/TestDB1/colls/TestCollectionInDB1, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Message: {\\\"code\\\":\\\"NotFound\\\",\\\"message\\\":\\\"Message: {\\\\\\\"Errors\\\\\\\":[\\\\\\\"Resource Not Found. Learn more: https:\\\\\\\\/\\\\\\\\/aka.ms\\\\\\\\/cosmosdb-tsg-not-found\\\\\\\"]}\\\\r\\\\nActivityId: d6d53949-5a21-46cc-b5ab-ec5768627151, Request URI: /apps/1226fbb7-a202-4ebf-9f8d-0bf04a09f94d/services/5a7ab00c-e86a-4e80-9a52-02e534dddfb5/partitions/eca5fb29-1f9a-4a5e-9c14-be4838f9a0d0/replicas/132969561105398904s, RequestStats: \\\\r\\\\nRequestStartTime: 2022-05-17T04:36:36.8545470Z, RequestEndTime: 2022-05-17T04:36:36.8545470Z, Number of regions attempted:1\\\\r\\\\n{\\\\\\\"systemHistory\\\\\\\":[{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T04:35:43.4938570Z\\\\\\\",\\\\\\\"cpu\\\\\\\":1.360,\\\\\\\"memory\\\\\\\":468795268.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0141,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T04:35:53.5039928Z\\\\\\\",\\\\\\\"cpu\\\\\\\":1.800,\\\\\\\"memory\\\\\\\":468375948.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0208,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T04:36:03.5141068Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.720,\\\\\\\"memory\\\\\\\":467728656.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0158,\\\\\\\"availableThreads\\\\\\\":32762,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T04:36:13.5242287Z\\\\\\\",\\\\\\\"cpu\\\\\\\":2.015,\\\\\\\"memory\\\\\\\":470673168.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0254,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T04:36:23.5343671Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.852,\\\\\\\"memory\\\\\\\":469848496.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0182,\\\\\\\"availableThreads\\\\\\\":32761,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T04:36:33.5344862Z\\\\\\\",\\\\\\\"cpu\\\\\\\":1.451,\\\\\\\"memory\\\\\\\":469486480.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0274,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}}]}\\\\r\\\\nRequestStart: 2022-05-17T04:36:36.8545470Z; ResponseTime: 2022-05-17T04:36:36.8545470Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.20:11300/apps/1226fbb7-a202-4ebf-9f8d-0bf04a09f94d/services/5a7ab00c-e86a-4e80-9a52-02e534dddfb5/partitions/eca5fb29-1f9a-4a5e-9c14-be4838f9a0d0/replicas/132969561105398904s, LSN: 10, GlobalCommittedLsn: 10, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#10, UsingLocalLSN: False, TransportException: null, BELatencyMs: 1.017, ActivityId: d6d53949-5a21-46cc-b5ab-ec5768627151, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:36.8545470Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0187},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:36.8545657Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0029},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:36.8545686Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.2541},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:36.8548227Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 1.3507},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:36.8561734Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0353},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:36.8562087Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":2},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-17T04:36:36.0445831Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-17T04:36:36.0445831Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-17T04:36:36.0445831Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":494,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":135,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Collection, OperationType: Read\\\\r\\\\nRequestStart: 2022-05-17T04:36:36.8545470Z; ResponseTime: 2022-05-17T04:36:36.8545470Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.28:11000/apps/1226fbb7-a202-4ebf-9f8d-0bf04a09f94d/services/5a7ab00c-e86a-4e80-9a52-02e534dddfb5/partitions/eca5fb29-1f9a-4a5e-9c14-be4838f9a0d0/replicas/132969561105398905s, LSN: 10, GlobalCommittedLsn: 10, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#10, UsingLocalLSN: False, TransportException: null, BELatencyMs: 1.672, ActivityId: d6d53949-5a21-46cc-b5ab-ec5768627151, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:36.8545470Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0062},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:36.8545532Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0014},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:36.8545546Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.215},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:36.8547696Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 2.4331},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:36.8572027Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0326},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T04:36:36.8572353Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-17T04:36:36.6245251Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-17T04:36:36.6245251Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-17T04:36:36.6245251Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":494,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":135,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Collection, OperationType: Read\\\\r\\\\n, SDK: Microsoft.Azure.Documents.Common/2.14.0\\\"}, Request URI: /dbs/TestDB1/colls/TestCollectionInDB1, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", "StatusCode": 404 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "68f8bbf7-52ad-46dc-8be9-566e29a288c5" + "d6d53949-5a21-46cc-b5ab-ec5768627151" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -918,22 +978,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" + "11987" ], "x-ms-request-id": [ - "8b3b4eec-8271-453f-aaa3-f6de4533e625" + "d4c49f9b-f05e-4459-814f-fad32834872d" ], "x-ms-correlation-request-id": [ - "8b3b4eec-8271-453f-aaa3-f6de4533e625" + "d4c49f9b-f05e-4459-814f-fad32834872d" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115825Z:8b3b4eec-8271-453f-aaa3-f6de4533e625" + "WESTUS2:20220517T043707Z:d4c49f9b-f05e-4459-814f-fad32834872d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:58:24 GMT" + "Tue, 17 May 2022 04:37:07 GMT" ], "Content-Length": [ "1126" @@ -942,17 +1002,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers\",\r\n \"name\": \"TestCollectionInDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestCollectionInDB1\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"backupPolicy\": {\r\n \"type\": 1\r\n },\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"p287APrthEY=\",\r\n \"_ts\": 1652356682,\r\n \"_self\": \"dbs/p287AA==/colls/p287APrthEY=/\",\r\n \"_etag\": \"\\\"0000db02-0000-0700-0000-627cf64a0000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\",\r\n \"statistics\": [\r\n {\r\n \"id\": \"0\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers\",\r\n \"name\": \"TestCollectionInDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestCollectionInDB1\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"backupPolicy\": {\r\n \"type\": 1\r\n },\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"+ndJAIT1gKM=\",\r\n \"_ts\": 1652762204,\r\n \"_self\": \"dbs/+ndJAA==/colls/+ndJAIT1gKM=/\",\r\n \"_etag\": \"\\\"00001d03-0000-0700-0000-6283265c0000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\",\r\n \"statistics\": [\r\n {\r\n \"id\": \"0\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestCollectionInDB1\",\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n }\r\n },\r\n \"options\": {\r\n \"throughput\": 600\r\n }\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "68f8bbf7-52ad-46dc-8be9-566e29a288c5" + "d6d53949-5a21-46cc-b5ab-ec5768627151" ], "Accept-Language": [ "en-US" @@ -960,7 +1020,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ], "Content-Type": [ @@ -978,13 +1038,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1/operationResults/aede69fd-1c08-4474-885b-e5fb453db85c?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1/operationResults/29a0c36e-929d-41e5-8adb-38dbc21a21d7?api-version=2022-02-15-preview" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/aede69fd-1c08-4474-885b-e5fb453db85c?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/29a0c36e-929d-41e5-8adb-38dbc21a21d7?api-version=2022-02-15-preview" ], "x-ms-request-id": [ - "aede69fd-1c08-4474-885b-e5fb453db85c" + "29a0c36e-929d-41e5-8adb-38dbc21a21d7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -996,19 +1056,19 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1197" ], "x-ms-correlation-request-id": [ - "e6c5f8b6-0fa5-4da0-95de-dc4e9338e601" + "ef2f88b1-24bf-4cc1-a7df-fcdcc21ca6e7" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115754Z:e6c5f8b6-0fa5-4da0-95de-dc4e9338e601" + "WESTUS2:20220517T043637Z:ef2f88b1-24bf-4cc1-a7df-fcdcc21ca6e7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:57:53 GMT" + "Tue, 17 May 2022 04:36:36 GMT" ], "Content-Length": [ "21" @@ -1021,18 +1081,18 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/aede69fd-1c08-4474-885b-e5fb453db85c?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvYWVkZTY5ZmQtMWMwOC00NDc0LTg4NWItZTVmYjQ1M2RiODVjP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/29a0c36e-929d-41e5-8adb-38dbc21a21d7?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvMjlhMGMzNmUtOTI5ZC00MWU1LThhZGItMzhkYmMyMWEyMWQ3P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "68f8bbf7-52ad-46dc-8be9-566e29a288c5" + "d6d53949-5a21-46cc-b5ab-ec5768627151" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1053,22 +1113,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" + "11988" ], "x-ms-request-id": [ - "dcd354d3-3eb8-465f-ba8d-dbb715044ff8" + "53d59ad3-d76d-4c98-9f2d-95743c519f0c" ], "x-ms-correlation-request-id": [ - "dcd354d3-3eb8-465f-ba8d-dbb715044ff8" + "53d59ad3-d76d-4c98-9f2d-95743c519f0c" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115824Z:dcd354d3-3eb8-465f-ba8d-dbb715044ff8" + "WESTUS2:20220517T043707Z:53d59ad3-d76d-4c98-9f2d-95743c519f0c" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:58:23 GMT" + "Tue, 17 May 2022 04:37:06 GMT" ], "Content-Length": [ "22" @@ -1081,13 +1141,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/West%20US/restorableDatabaseAccounts/8110cd92-ac4e-46a3-a255-9c29b8c18cec?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvV2VzdCUyMFVTL3Jlc3RvcmFibGVEYXRhYmFzZUFjY291bnRzLzgxMTBjZDkyLWFjNGUtNDZhMy1hMjU1LTljMjliOGMxOGNlYz9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/West%20US/restorableDatabaseAccounts/e3abbbcf-6830-403b-b442-9beb27a494f9?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvV2VzdCUyMFVTL3Jlc3RvcmFibGVEYXRhYmFzZUFjY291bnRzL2UzYWJiYmNmLTY4MzAtNDAzYi1iNDQyLTliZWIyN2E0OTRmOT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "db587adf-7092-4d91-9144-bcfae7d764ed" + "9a72a86a-4f47-4478-bd32-c057215a48a0" ], "Accept-Language": [ "en-US" @@ -1095,7 +1155,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1116,22 +1176,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" + "11985" ], "x-ms-request-id": [ - "ea42f8c4-59ff-4ec5-a5c2-dd29306a4a5a" + "cbb1a685-d448-4264-bb25-97dc805cd6d7" ], "x-ms-correlation-request-id": [ - "ea42f8c4-59ff-4ec5-a5c2-dd29306a4a5a" + "cbb1a685-d448-4264-bb25-97dc805cd6d7" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115830Z:ea42f8c4-59ff-4ec5-a5c2-dd29306a4a5a" + "WESTUS2:20220517T043708Z:cbb1a685-d448-4264-bb25-97dc805cd6d7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:58:29 GMT" + "Tue, 17 May 2022 04:37:07 GMT" ], "Content-Length": [ "615" @@ -1140,17 +1200,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"name\": \"8110cd92-ac4e-46a3-a255-9c29b8c18cec\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/8110cd92-ac4e-46a3-a255-9c29b8c18cec\",\r\n \"properties\": {\r\n \"accountName\": \"cosmosdb-1214\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2022-05-12T11:56:58Z\",\r\n \"oldestRestorableTime\": \"2022-05-12T11:56:58Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US\",\r\n \"regionalDatabaseAccountInstanceId\": \"17a007d9-9446-43c7-9915-34ccf413d53a\",\r\n \"creationTime\": \"2022-05-12T11:56:59Z\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"e3abbbcf-6830-403b-b442-9beb27a494f9\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/e3abbbcf-6830-403b-b442-9beb27a494f9\",\r\n \"properties\": {\r\n \"accountName\": \"cosmosdb-1214\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2022-05-17T04:35:26Z\",\r\n \"oldestRestorableTime\": \"2022-05-17T04:35:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US\",\r\n \"regionalDatabaseAccountInstanceId\": \"ebf2c414-f09e-4bcf-9243-90476777e38f\",\r\n \"creationTime\": \"2022-05-17T04:35:27Z\"\r\n }\r\n ]\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/West%20US/restorableDatabaseAccounts/8110cd92-ac4e-46a3-a255-9c29b8c18cec/restorableSqlDatabases?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvV2VzdCUyMFVTL3Jlc3RvcmFibGVEYXRhYmFzZUFjY291bnRzLzgxMTBjZDkyLWFjNGUtNDZhMy1hMjU1LTljMjliOGMxOGNlYy9yZXN0b3JhYmxlU3FsRGF0YWJhc2VzP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/West%20US/restorableDatabaseAccounts/e3abbbcf-6830-403b-b442-9beb27a494f9/restorableSqlDatabases?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvV2VzdCUyMFVTL3Jlc3RvcmFibGVEYXRhYmFzZUFjY291bnRzL2UzYWJiYmNmLTY4MzAtNDAzYi1iNDQyLTliZWIyN2E0OTRmOS9yZXN0b3JhYmxlU3FsRGF0YWJhc2VzP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "30d9b8dc-648b-4d9f-9886-83eb3a2bc6fb" + "4ca436b3-c634-409b-806b-da898c4e113c" ], "Accept-Language": [ "en-US" @@ -1158,7 +1218,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1179,22 +1239,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" + "11984" ], "x-ms-request-id": [ - "7f69a2c8-135b-4e0b-a73f-490c5a5305a8" + "e6855439-9561-416a-8b3a-e4a1c170cbb5" ], "x-ms-correlation-request-id": [ - "7f69a2c8-135b-4e0b-a73f-490c5a5305a8" + "e6855439-9561-416a-8b3a-e4a1c170cbb5" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115831Z:7f69a2c8-135b-4e0b-a73f-490c5a5305a8" + "WESTUS2:20220517T043708Z:e6855439-9561-416a-8b3a-e4a1c170cbb5" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:58:31 GMT" + "Tue, 17 May 2022 04:37:08 GMT" ], "Content-Length": [ "704" @@ -1203,17 +1263,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/West%20US/restorableDatabaseAccounts/8110cd92-ac4e-46a3-a255-9c29b8c18cec/restorableSqlDatabases/3c960fc8-e2ef-47b1-b81c-d191e1c0355f\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases\",\r\n \"name\": \"3c960fc8-e2ef-47b1-b81c-d191e1c0355f\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"FWu-JgAAAA==\",\r\n \"eventTimestamp\": \"2022-05-12T11:57:21Z\",\r\n \"ownerId\": \"TestDB1\",\r\n \"ownerResourceId\": \"p287AA==\",\r\n \"operationType\": \"Create\",\r\n \"database\": {\r\n \"id\": \"TestDB1\",\r\n \"_rid\": \"p287AA==\",\r\n \"_self\": \"dbs/p287AA==/\",\r\n \"_etag\": \"\\\"0000d802-0000-0700-0000-627cf6210000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\"\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/West%20US/restorableDatabaseAccounts/e3abbbcf-6830-403b-b442-9beb27a494f9/restorableSqlDatabases/76bc3817-0967-4a50-813b-e3ca160ef384\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases\",\r\n \"name\": \"76bc3817-0967-4a50-813b-e3ca160ef384\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"-w+ATgAAAA==\",\r\n \"eventTimestamp\": \"2022-05-17T04:36:11Z\",\r\n \"ownerId\": \"TestDB1\",\r\n \"ownerResourceId\": \"+ndJAA==\",\r\n \"operationType\": \"Create\",\r\n \"database\": {\r\n \"id\": \"TestDB1\",\r\n \"_rid\": \"+ndJAA==\",\r\n \"_self\": \"dbs/+ndJAA==/\",\r\n \"_etag\": \"\\\"00001a03-0000-0700-0000-6283263b0000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\"\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/West%20US/restorableDatabaseAccounts/8110cd92-ac4e-46a3-a255-9c29b8c18cec/restorableSqlContainers?api-version=2022-02-15-preview&restorableSqlDatabaseRid=p287AA%3D%3D", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvV2VzdCUyMFVTL3Jlc3RvcmFibGVEYXRhYmFzZUFjY291bnRzLzgxMTBjZDkyLWFjNGUtNDZhMy1hMjU1LTljMjliOGMxOGNlYy9yZXN0b3JhYmxlU3FsQ29udGFpbmVycz9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXcmcmVzdG9yYWJsZVNxbERhdGFiYXNlUmlkPXAyODdBQSUzRCUzRA==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/West%20US/restorableDatabaseAccounts/e3abbbcf-6830-403b-b442-9beb27a494f9/restorableSqlContainers?api-version=2022-02-15-preview&restorableSqlDatabaseRid=%2BndJAA%3D%3D", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvV2VzdCUyMFVTL3Jlc3RvcmFibGVEYXRhYmFzZUFjY291bnRzL2UzYWJiYmNmLTY4MzAtNDAzYi1iNDQyLTliZWIyN2E0OTRmOS9yZXN0b3JhYmxlU3FsQ29udGFpbmVycz9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXcmcmVzdG9yYWJsZVNxbERhdGFiYXNlUmlkPSUyQm5kSkFBJTNEJTNE", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "26b584f0-9b8d-4319-acfe-2cfab3e259cc" + "f7d33f1f-0060-4529-a245-123c7c2d719e" ], "Accept-Language": [ "en-US" @@ -1221,7 +1281,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1242,22 +1302,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" + "11983" ], "x-ms-request-id": [ - "067922fa-14db-41e3-ab18-a923e3cc80af" + "fa19047b-dd24-407d-a770-d58035b42ad1" ], "x-ms-correlation-request-id": [ - "067922fa-14db-41e3-ab18-a923e3cc80af" + "fa19047b-dd24-407d-a770-d58035b42ad1" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115832Z:067922fa-14db-41e3-ab18-a923e3cc80af" + "WESTUS2:20220517T043709Z:fa19047b-dd24-407d-a770-d58035b42ad1" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:58:31 GMT" + "Tue, 17 May 2022 04:37:08 GMT" ], "Content-Length": [ "1584" @@ -1266,17 +1326,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/West%20US/restorableDatabaseAccounts/8110cd92-ac4e-46a3-a255-9c29b8c18cec/restorableSqlContainers/43948b18-5077-4eee-bc33-894a09390372\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlContainers\",\r\n \"name\": \"43948b18-5077-4eee-bc33-894a09390372\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"ynSyvgAAAA==\",\r\n \"eventTimestamp\": \"2022-05-12T11:58:02Z\",\r\n \"ownerId\": \"TestCollectionInDB1\",\r\n \"ownerResourceId\": \"p287APrthEY=\",\r\n \"operationType\": \"Create\",\r\n \"container\": {\r\n \"id\": \"TestCollectionInDB1\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"supportSpatialLegacyCoordinates\": false,\r\n \"usePolygonsSmallerThanAHemisphere\": false,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n },\r\n {\r\n \"path\": \"/\\\"_ts\\\"/?\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"internalIndexingProperties\": {\r\n \"enableIndexingFullFidelity\": true,\r\n \"logicalIndexVersion\": 2,\r\n \"indexEncodingOptions\": 65567\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"backupPolicy\": {\r\n \"type\": 1\r\n },\r\n \"allowMaterializedViews\": false,\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"typeSystemPolicy\": {\r\n \"typeSystem\": \"CosmosCore\"\r\n },\r\n \"uniqueIndexNameEncodingMode\": 2,\r\n \"_idxpolicyver\": 2,\r\n \"_rid\": \"p287APrthEY=\",\r\n \"_self\": \"dbs/p287AA==/colls/p287APrthEY=/\",\r\n \"_etag\": \"\\\"0000db02-0000-0700-0000-627cf64a0000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\"\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/West%20US/restorableDatabaseAccounts/e3abbbcf-6830-403b-b442-9beb27a494f9/restorableSqlContainers/b6886ee6-3d6b-42e3-8cd5-2940332a4091\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlContainers\",\r\n \"name\": \"b6886ee6-3d6b-42e3-8cd5-2940332a4091\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"JY-wEgAAAA==\",\r\n \"eventTimestamp\": \"2022-05-17T04:36:44Z\",\r\n \"ownerId\": \"TestCollectionInDB1\",\r\n \"ownerResourceId\": \"+ndJAIT1gKM=\",\r\n \"operationType\": \"Create\",\r\n \"container\": {\r\n \"id\": \"TestCollectionInDB1\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"supportSpatialLegacyCoordinates\": false,\r\n \"usePolygonsSmallerThanAHemisphere\": false,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n },\r\n {\r\n \"path\": \"/\\\"_ts\\\"/?\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"internalIndexingProperties\": {\r\n \"enableIndexingFullFidelity\": true,\r\n \"logicalIndexVersion\": 2,\r\n \"indexEncodingOptions\": 65567\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"backupPolicy\": {\r\n \"type\": 1\r\n },\r\n \"allowMaterializedViews\": false,\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"typeSystemPolicy\": {\r\n \"typeSystem\": \"CosmosCore\"\r\n },\r\n \"uniqueIndexNameEncodingMode\": 2,\r\n \"_idxpolicyver\": 2,\r\n \"_rid\": \"+ndJAIT1gKM=\",\r\n \"_self\": \"dbs/+ndJAA==/colls/+ndJAIT1gKM=/\",\r\n \"_etag\": \"\\\"00001d03-0000-0700-0000-6283265c0000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\"\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/restored-cosmosdb-1214?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL3Jlc3RvcmVkLWNvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/restored-cosmosdb-1214?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL3Jlc3RvcmVkLWNvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "Accept-Language": [ "en-US" @@ -1284,7 +1344,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1299,13 +1359,13 @@ "gateway" ], "x-ms-request-id": [ - "421fa50e-365f-4d6c-867d-03d10f5881e6" + "c21a5c68-0028-48e8-afab-84dcf26fef4c" ], "x-ms-correlation-request-id": [ - "421fa50e-365f-4d6c-867d-03d10f5881e6" + "c21a5c68-0028-48e8-afab-84dcf26fef4c" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115835Z:421fa50e-365f-4d6c-867d-03d10f5881e6" + "WESTUS2:20220517T043709Z:c21a5c68-0028-48e8-afab-84dcf26fef4c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1314,7 +1374,7 @@ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:58:35 GMT" + "Tue, 17 May 2022 04:37:08 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1330,18 +1390,18 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/restored-cosmosdb-1214?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL3Jlc3RvcmVkLWNvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/restored-cosmosdb-1214?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL3Jlc3RvcmVkLWNvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1362,41 +1422,41 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11967" + "11953" ], "x-ms-request-id": [ - "0eb5598e-0675-422e-974a-b7bb206f1738" + "896ea536-a14e-4e55-be10-aae219ee7a07" ], "x-ms-correlation-request-id": [ - "0eb5598e-0675-422e-974a-b7bb206f1738" + "896ea536-a14e-4e55-be10-aae219ee7a07" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121301Z:0eb5598e-0675-422e-974a-b7bb206f1738" + "WESTUS2:20220517T045116Z:896ea536-a14e-4e55-be10-aae219ee7a07" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:13:00 GMT" + "Tue, 17 May 2022 04:51:15 GMT" ], "Content-Length": [ - "2738" + "2672" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/restored-cosmosdb-1214\",\r\n \"name\": \"restored-cosmosdb-1214\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T12:12:21.1968142Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restored-cosmosdb-1214.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"7ef64915-ff01-43d0-9212-7192f1cce488\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://restored-cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://restored-cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://restored-cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/8110cd92-ac4e-46a3-a255-9c29b8c18cec\",\r\n \"restoreTimestampInUtc\": \"2022-05-12T11:58:25Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"TestDB1\",\r\n \"collectionNames\": [\r\n \"TestCollectionInDB1\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n },\r\n \"capacity\": {\r\n \"totalThroughputLimit\": -1\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/restored-cosmosdb-1214\",\r\n \"name\": \"restored-cosmosdb-1214\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:50:46.342794Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restored-cosmosdb-1214.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"136c9fb2-7009-43b0-b151-15b8f7e421f8\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://restored-cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://restored-cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://restored-cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/e3abbbcf-6830-403b-b442-9beb27a494f9\",\r\n \"restoreTimestampInUtc\": \"2022-05-17T04:37:07Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"TestDB1\",\r\n \"collectionNames\": [\r\n \"TestCollectionInDB1\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n },\r\n \"capacity\": {\r\n \"totalThroughputLimit\": -1\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/restored-cosmosdb-1214?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL3Jlc3RvcmVkLWNvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/restored-cosmosdb-1214?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL3Jlc3RvcmVkLWNvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": false,\r\n \"virtualNetworkRules\": [],\r\n \"enableMultipleWriteLocations\": false,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"createMode\": \"Restore\",\r\n \"networkAclBypassResourceIds\": [],\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/8110cd92-ac4e-46a3-a255-9c29b8c18cec\",\r\n \"restoreTimestampInUtc\": \"2022-05-12T11:58:25Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"TestDB1\",\r\n \"collectionNames\": [\r\n \"TestCollectionInDB1\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"West US\",\r\n \"tags\": {}\r\n}", + "RequestBody": "{\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": false,\r\n \"virtualNetworkRules\": [],\r\n \"enableMultipleWriteLocations\": false,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"createMode\": \"Restore\",\r\n \"networkAclBypassResourceIds\": [],\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/e3abbbcf-6830-403b-b442-9beb27a494f9\",\r\n \"restoreTimestampInUtc\": \"2022-05-17T04:37:07Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"TestDB1\",\r\n \"collectionNames\": [\r\n \"TestCollectionInDB1\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"West US\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "Accept-Language": [ "en-US" @@ -1404,7 +1464,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ], "Content-Type": [ @@ -1422,13 +1482,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/restored-cosmosdb-1214/operationResults/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/restored-cosmosdb-1214/operationResults/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview" ], "x-ms-request-id": [ - "446b167f-dbec-4a4f-8411-89febb03e0ad" + "cac2acfc-e2bc-45f4-890c-8bc673ce5e80" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1440,43 +1500,43 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1196" ], "x-ms-correlation-request-id": [ - "07d8b747-a409-4347-a070-933105ba2feb" + "d25e860f-b1bb-459d-8002-fecfcf844131" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115848Z:07d8b747-a409-4347-a070-933105ba2feb" + "WESTUS2:20220517T043713Z:d25e860f-b1bb-459d-8002-fecfcf844131" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:58:48 GMT" + "Tue, 17 May 2022 04:37:13 GMT" ], "Content-Length": [ - "2629" + "2565" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/restored-cosmosdb-1214\",\r\n \"name\": \"restored-cosmosdb-1214\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T11:58:44.502548Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"7ef64915-ff01-43d0-9212-7192f1cce488\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/8110cd92-ac4e-46a3-a255-9c29b8c18cec\",\r\n \"restoreTimestampInUtc\": \"2022-05-12T11:58:25Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"TestDB1\",\r\n \"collectionNames\": [\r\n \"TestCollectionInDB1\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n },\r\n \"capacity\": {\r\n \"totalThroughputLimit\": -1\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup13/providers/Microsoft.DocumentDB/databaseAccounts/restored-cosmosdb-1214\",\r\n \"name\": \"restored-cosmosdb-1214\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:37:11.4366974Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"136c9fb2-7009-43b0-b151-15b8f7e421f8\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1214-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/e3abbbcf-6830-403b-b442-9beb27a494f9\",\r\n \"restoreTimestampInUtc\": \"2022-05-17T04:37:07Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"TestDB1\",\r\n \"collectionNames\": [\r\n \"TestCollectionInDB1\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n },\r\n \"capacity\": {\r\n \"totalThroughputLimit\": -1\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1497,22 +1557,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" + "11981" ], "x-ms-request-id": [ - "b6dc5481-0ce0-40f0-9332-d626a6858608" + "d9c43115-c111-4a73-8de9-f1471ae2d571" ], "x-ms-correlation-request-id": [ - "b6dc5481-0ce0-40f0-9332-d626a6858608" + "d9c43115-c111-4a73-8de9-f1471ae2d571" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115918Z:b6dc5481-0ce0-40f0-9332-d626a6858608" + "WESTUS2:20220517T043743Z:d9c43115-c111-4a73-8de9-f1471ae2d571" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:59:18 GMT" + "Tue, 17 May 2022 04:37:43 GMT" ], "Content-Length": [ "21" @@ -1525,18 +1585,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1557,22 +1617,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" + "11980" ], "x-ms-request-id": [ - "95eaf217-7477-4755-9130-f8a6678a16b6" + "b094c677-f917-4c6e-8529-8754dc4ba74f" ], "x-ms-correlation-request-id": [ - "95eaf217-7477-4755-9130-f8a6678a16b6" + "b094c677-f917-4c6e-8529-8754dc4ba74f" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T115949Z:95eaf217-7477-4755-9130-f8a6678a16b6" + "WESTUS2:20220517T043813Z:b094c677-f917-4c6e-8529-8754dc4ba74f" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 11:59:49 GMT" + "Tue, 17 May 2022 04:38:13 GMT" ], "Content-Length": [ "21" @@ -1585,18 +1645,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1617,22 +1677,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11979" ], "x-ms-request-id": [ - "4744bb40-e550-4299-aee3-92617ad26514" + "40d9a3c6-da81-4f2f-b31d-fbd036387f02" ], "x-ms-correlation-request-id": [ - "4744bb40-e550-4299-aee3-92617ad26514" + "40d9a3c6-da81-4f2f-b31d-fbd036387f02" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120019Z:4744bb40-e550-4299-aee3-92617ad26514" + "WESTUS2:20220517T043844Z:40d9a3c6-da81-4f2f-b31d-fbd036387f02" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:00:19 GMT" + "Tue, 17 May 2022 04:38:43 GMT" ], "Content-Length": [ "21" @@ -1645,18 +1705,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1677,22 +1737,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11978" ], "x-ms-request-id": [ - "5c40791c-32ba-411c-9ae6-84142ea6d24f" + "a05e9eaf-2eaf-4ed8-851e-7cc8b65e17e3" ], "x-ms-correlation-request-id": [ - "5c40791c-32ba-411c-9ae6-84142ea6d24f" + "a05e9eaf-2eaf-4ed8-851e-7cc8b65e17e3" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120049Z:5c40791c-32ba-411c-9ae6-84142ea6d24f" + "WESTUS2:20220517T043914Z:a05e9eaf-2eaf-4ed8-851e-7cc8b65e17e3" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:00:49 GMT" + "Tue, 17 May 2022 04:39:13 GMT" ], "Content-Length": [ "21" @@ -1705,18 +1765,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1737,22 +1797,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11977" ], "x-ms-request-id": [ - "2858cdcf-077b-4991-b194-dd721bcfb192" + "17e3e727-509e-4b71-a451-ae7e79e14c35" ], "x-ms-correlation-request-id": [ - "2858cdcf-077b-4991-b194-dd721bcfb192" + "17e3e727-509e-4b71-a451-ae7e79e14c35" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120120Z:2858cdcf-077b-4991-b194-dd721bcfb192" + "WESTUS2:20220517T043944Z:17e3e727-509e-4b71-a451-ae7e79e14c35" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:01:19 GMT" + "Tue, 17 May 2022 04:39:44 GMT" ], "Content-Length": [ "21" @@ -1765,18 +1825,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1797,22 +1857,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11976" ], "x-ms-request-id": [ - "a6cad295-0e43-4e4f-9820-44a4015e5ceb" + "75c2e7a6-f22b-4bae-8f4b-6a59e04969ed" ], "x-ms-correlation-request-id": [ - "a6cad295-0e43-4e4f-9820-44a4015e5ceb" + "75c2e7a6-f22b-4bae-8f4b-6a59e04969ed" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120150Z:a6cad295-0e43-4e4f-9820-44a4015e5ceb" + "WESTUS2:20220517T044014Z:75c2e7a6-f22b-4bae-8f4b-6a59e04969ed" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:01:50 GMT" + "Tue, 17 May 2022 04:40:14 GMT" ], "Content-Length": [ "21" @@ -1825,18 +1885,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1857,22 +1917,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11975" ], "x-ms-request-id": [ - "7e1d8712-0907-4ce8-8931-190d5af784a2" + "ab0d25e2-ae90-4825-84a9-91c1f58a19c9" ], "x-ms-correlation-request-id": [ - "7e1d8712-0907-4ce8-8931-190d5af784a2" + "ab0d25e2-ae90-4825-84a9-91c1f58a19c9" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120220Z:7e1d8712-0907-4ce8-8931-190d5af784a2" + "WESTUS2:20220517T044044Z:ab0d25e2-ae90-4825-84a9-91c1f58a19c9" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:02:20 GMT" + "Tue, 17 May 2022 04:40:43 GMT" ], "Content-Length": [ "21" @@ -1885,18 +1945,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1917,22 +1977,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11974" ], "x-ms-request-id": [ - "18be20c7-74bf-4997-99ee-ff3766cdea4c" + "3f17b667-0ab8-4018-90d7-726957210f9b" ], "x-ms-correlation-request-id": [ - "18be20c7-74bf-4997-99ee-ff3766cdea4c" + "3f17b667-0ab8-4018-90d7-726957210f9b" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120250Z:18be20c7-74bf-4997-99ee-ff3766cdea4c" + "WESTUS2:20220517T044114Z:3f17b667-0ab8-4018-90d7-726957210f9b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:02:50 GMT" + "Tue, 17 May 2022 04:41:13 GMT" ], "Content-Length": [ "21" @@ -1945,18 +2005,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1977,22 +2037,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11973" ], "x-ms-request-id": [ - "426252fc-5d1d-40ef-9ba4-af2f362d41c2" + "d66983c7-795e-4c44-ba6a-02f74d9433df" ], "x-ms-correlation-request-id": [ - "426252fc-5d1d-40ef-9ba4-af2f362d41c2" + "d66983c7-795e-4c44-ba6a-02f74d9433df" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120321Z:426252fc-5d1d-40ef-9ba4-af2f362d41c2" + "WESTUS2:20220517T044144Z:d66983c7-795e-4c44-ba6a-02f74d9433df" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:03:20 GMT" + "Tue, 17 May 2022 04:41:43 GMT" ], "Content-Length": [ "21" @@ -2005,18 +2065,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2037,22 +2097,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11986" + "11972" ], "x-ms-request-id": [ - "1311d828-4166-4c8c-83a3-53a6491429f9" + "71816844-4d45-4540-bc67-b0dd45ec1ab4" ], "x-ms-correlation-request-id": [ - "1311d828-4166-4c8c-83a3-53a6491429f9" + "71816844-4d45-4540-bc67-b0dd45ec1ab4" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120352Z:1311d828-4166-4c8c-83a3-53a6491429f9" + "WESTUS2:20220517T044214Z:71816844-4d45-4540-bc67-b0dd45ec1ab4" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:03:51 GMT" + "Tue, 17 May 2022 04:42:13 GMT" ], "Content-Length": [ "21" @@ -2065,18 +2125,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2097,22 +2157,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11985" + "11971" ], "x-ms-request-id": [ - "fa3dcbe2-6445-47bf-8b9c-a5048bce3b02" + "bcbebc97-67da-4d84-9eab-d53e549ccebe" ], "x-ms-correlation-request-id": [ - "fa3dcbe2-6445-47bf-8b9c-a5048bce3b02" + "bcbebc97-67da-4d84-9eab-d53e549ccebe" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120422Z:fa3dcbe2-6445-47bf-8b9c-a5048bce3b02" + "WESTUS2:20220517T044244Z:bcbebc97-67da-4d84-9eab-d53e549ccebe" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:04:22 GMT" + "Tue, 17 May 2022 04:42:43 GMT" ], "Content-Length": [ "21" @@ -2125,18 +2185,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2157,22 +2217,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11984" + "11970" ], "x-ms-request-id": [ - "b7265ec6-f4e2-4c1d-95c3-75bfb57c9067" + "a83cd87f-c693-46b7-a871-d87553c8f01a" ], "x-ms-correlation-request-id": [ - "b7265ec6-f4e2-4c1d-95c3-75bfb57c9067" + "a83cd87f-c693-46b7-a871-d87553c8f01a" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120452Z:b7265ec6-f4e2-4c1d-95c3-75bfb57c9067" + "WESTUS2:20220517T044314Z:a83cd87f-c693-46b7-a871-d87553c8f01a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:04:52 GMT" + "Tue, 17 May 2022 04:43:13 GMT" ], "Content-Length": [ "21" @@ -2185,18 +2245,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2217,22 +2277,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11983" + "11969" ], "x-ms-request-id": [ - "4eac3af7-56a0-4932-be06-8063b7ba5d4b" + "b2d25f3e-a869-4d56-95fa-ef42b6cc978d" ], "x-ms-correlation-request-id": [ - "4eac3af7-56a0-4932-be06-8063b7ba5d4b" + "b2d25f3e-a869-4d56-95fa-ef42b6cc978d" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120523Z:4eac3af7-56a0-4932-be06-8063b7ba5d4b" + "WESTUS2:20220517T044344Z:b2d25f3e-a869-4d56-95fa-ef42b6cc978d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:05:22 GMT" + "Tue, 17 May 2022 04:43:43 GMT" ], "Content-Length": [ "21" @@ -2245,18 +2305,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2277,22 +2337,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11982" + "11968" ], "x-ms-request-id": [ - "32021064-c040-4b81-8569-52ca678e20c8" + "c6ecdc59-f4c9-4d88-b8ab-8daae227004e" ], "x-ms-correlation-request-id": [ - "32021064-c040-4b81-8569-52ca678e20c8" + "c6ecdc59-f4c9-4d88-b8ab-8daae227004e" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120553Z:32021064-c040-4b81-8569-52ca678e20c8" + "WESTUS2:20220517T044414Z:c6ecdc59-f4c9-4d88-b8ab-8daae227004e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:05:52 GMT" + "Tue, 17 May 2022 04:44:14 GMT" ], "Content-Length": [ "21" @@ -2305,18 +2365,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2337,22 +2397,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11981" + "11967" ], "x-ms-request-id": [ - "0a77149a-44a4-4634-9acd-9f43bea7bdb4" + "6ee343aa-c264-45fa-9a54-d35aeb222d7d" ], "x-ms-correlation-request-id": [ - "0a77149a-44a4-4634-9acd-9f43bea7bdb4" + "6ee343aa-c264-45fa-9a54-d35aeb222d7d" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120623Z:0a77149a-44a4-4634-9acd-9f43bea7bdb4" + "WESTUS2:20220517T044444Z:6ee343aa-c264-45fa-9a54-d35aeb222d7d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:06:23 GMT" + "Tue, 17 May 2022 04:44:44 GMT" ], "Content-Length": [ "21" @@ -2365,18 +2425,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2397,22 +2457,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11980" + "11966" ], "x-ms-request-id": [ - "a6bb9dc9-55fd-4090-ab75-8291138426f5" + "0c59b3fb-ab54-4894-a6eb-6a8e2129f69b" ], "x-ms-correlation-request-id": [ - "a6bb9dc9-55fd-4090-ab75-8291138426f5" + "0c59b3fb-ab54-4894-a6eb-6a8e2129f69b" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120653Z:a6bb9dc9-55fd-4090-ab75-8291138426f5" + "WESTUS2:20220517T044515Z:0c59b3fb-ab54-4894-a6eb-6a8e2129f69b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:06:53 GMT" + "Tue, 17 May 2022 04:45:14 GMT" ], "Content-Length": [ "21" @@ -2425,18 +2485,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2457,22 +2517,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11979" + "11965" ], "x-ms-request-id": [ - "5392b3d5-742c-49a7-bb25-588fd87855bb" + "7aff56f8-39b7-4293-aece-381d1fbe71b1" ], "x-ms-correlation-request-id": [ - "5392b3d5-742c-49a7-bb25-588fd87855bb" + "7aff56f8-39b7-4293-aece-381d1fbe71b1" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120724Z:5392b3d5-742c-49a7-bb25-588fd87855bb" + "WESTUS2:20220517T044545Z:7aff56f8-39b7-4293-aece-381d1fbe71b1" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:07:23 GMT" + "Tue, 17 May 2022 04:45:44 GMT" ], "Content-Length": [ "21" @@ -2485,18 +2545,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2517,22 +2577,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11978" + "11964" ], "x-ms-request-id": [ - "d21bf4f2-8fc8-4a75-863a-3de1d2dca20f" + "a071142c-3efc-40b2-a11f-b167a5982377" ], "x-ms-correlation-request-id": [ - "d21bf4f2-8fc8-4a75-863a-3de1d2dca20f" + "a071142c-3efc-40b2-a11f-b167a5982377" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120754Z:d21bf4f2-8fc8-4a75-863a-3de1d2dca20f" + "WESTUS2:20220517T044615Z:a071142c-3efc-40b2-a11f-b167a5982377" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:07:54 GMT" + "Tue, 17 May 2022 04:46:14 GMT" ], "Content-Length": [ "21" @@ -2545,18 +2605,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2577,22 +2637,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11977" + "11963" ], "x-ms-request-id": [ - "8634bc62-7318-4a02-a584-42163af47d58" + "1c3890a0-5bf2-4432-bbec-058ee07317e9" ], "x-ms-correlation-request-id": [ - "8634bc62-7318-4a02-a584-42163af47d58" + "1c3890a0-5bf2-4432-bbec-058ee07317e9" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120824Z:8634bc62-7318-4a02-a584-42163af47d58" + "WESTUS2:20220517T044645Z:1c3890a0-5bf2-4432-bbec-058ee07317e9" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:08:24 GMT" + "Tue, 17 May 2022 04:46:44 GMT" ], "Content-Length": [ "21" @@ -2605,18 +2665,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2637,22 +2697,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11976" + "11962" ], "x-ms-request-id": [ - "58145641-aaec-491a-9d41-7c40ec5109ba" + "ddbfb338-45d5-457c-a7ef-a9f08283d3d2" ], "x-ms-correlation-request-id": [ - "58145641-aaec-491a-9d41-7c40ec5109ba" + "ddbfb338-45d5-457c-a7ef-a9f08283d3d2" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120855Z:58145641-aaec-491a-9d41-7c40ec5109ba" + "WESTUS2:20220517T044715Z:ddbfb338-45d5-457c-a7ef-a9f08283d3d2" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:08:54 GMT" + "Tue, 17 May 2022 04:47:14 GMT" ], "Content-Length": [ "21" @@ -2665,18 +2725,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2697,22 +2757,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11975" + "11961" ], "x-ms-request-id": [ - "cb69b6bd-87c1-4caa-8941-d0b8d15253cd" + "1f25665e-316f-405c-b456-e3223f02b65a" ], "x-ms-correlation-request-id": [ - "cb69b6bd-87c1-4caa-8941-d0b8d15253cd" + "1f25665e-316f-405c-b456-e3223f02b65a" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120926Z:cb69b6bd-87c1-4caa-8941-d0b8d15253cd" + "WESTUS2:20220517T044745Z:1f25665e-316f-405c-b456-e3223f02b65a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:09:25 GMT" + "Tue, 17 May 2022 04:47:44 GMT" ], "Content-Length": [ "21" @@ -2725,18 +2785,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2757,22 +2817,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11974" + "11960" ], "x-ms-request-id": [ - "70533c72-6e81-4a07-9a90-50f2f013acf8" + "5ae6e6e4-d9d1-4e97-98a2-831f87f70f22" ], "x-ms-correlation-request-id": [ - "70533c72-6e81-4a07-9a90-50f2f013acf8" + "5ae6e6e4-d9d1-4e97-98a2-831f87f70f22" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T120956Z:70533c72-6e81-4a07-9a90-50f2f013acf8" + "WESTUS2:20220517T044815Z:5ae6e6e4-d9d1-4e97-98a2-831f87f70f22" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:09:56 GMT" + "Tue, 17 May 2022 04:48:14 GMT" ], "Content-Length": [ "21" @@ -2785,18 +2845,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2817,22 +2877,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11973" + "11959" ], "x-ms-request-id": [ - "43ce5541-83dd-472d-a95f-a29fbd96e898" + "724f4749-318e-4a6d-a526-3b2979e25d12" ], "x-ms-correlation-request-id": [ - "43ce5541-83dd-472d-a95f-a29fbd96e898" + "724f4749-318e-4a6d-a526-3b2979e25d12" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121026Z:43ce5541-83dd-472d-a95f-a29fbd96e898" + "WESTUS2:20220517T044845Z:724f4749-318e-4a6d-a526-3b2979e25d12" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:10:26 GMT" + "Tue, 17 May 2022 04:48:45 GMT" ], "Content-Length": [ "21" @@ -2845,18 +2905,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2877,22 +2937,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11972" + "11958" ], "x-ms-request-id": [ - "9cc117c9-6613-4326-8601-263ff68acbd9" + "8da60c75-580d-4f22-b19f-f96fcbd781ec" ], "x-ms-correlation-request-id": [ - "9cc117c9-6613-4326-8601-263ff68acbd9" + "8da60c75-580d-4f22-b19f-f96fcbd781ec" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121056Z:9cc117c9-6613-4326-8601-263ff68acbd9" + "WESTUS2:20220517T044915Z:8da60c75-580d-4f22-b19f-f96fcbd781ec" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:10:56 GMT" + "Tue, 17 May 2022 04:49:15 GMT" ], "Content-Length": [ "21" @@ -2905,18 +2965,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2937,22 +2997,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11971" + "11957" ], "x-ms-request-id": [ - "30adb0f2-a4c8-4f65-92a5-24c3cac1e8bb" + "f64f37c3-b341-4ac7-94dd-d955044f2f92" ], "x-ms-correlation-request-id": [ - "30adb0f2-a4c8-4f65-92a5-24c3cac1e8bb" + "f64f37c3-b341-4ac7-94dd-d955044f2f92" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121127Z:30adb0f2-a4c8-4f65-92a5-24c3cac1e8bb" + "WESTUS2:20220517T044945Z:f64f37c3-b341-4ac7-94dd-d955044f2f92" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:11:26 GMT" + "Tue, 17 May 2022 04:49:45 GMT" ], "Content-Length": [ "21" @@ -2965,18 +3025,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -2997,22 +3057,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11970" + "11956" ], "x-ms-request-id": [ - "1550d678-02ab-4f5f-9e3c-979b4648868f" + "d61064c3-86b9-4b90-92b4-1ce67443db26" ], "x-ms-correlation-request-id": [ - "1550d678-02ab-4f5f-9e3c-979b4648868f" + "d61064c3-86b9-4b90-92b4-1ce67443db26" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121157Z:1550d678-02ab-4f5f-9e3c-979b4648868f" + "WESTUS2:20220517T045015Z:d61064c3-86b9-4b90-92b4-1ce67443db26" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:11:57 GMT" + "Tue, 17 May 2022 04:50:15 GMT" ], "Content-Length": [ "21" @@ -3025,18 +3085,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -3057,22 +3117,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11969" + "11955" ], "x-ms-request-id": [ - "c8d55a4d-851a-4106-a750-e40c8cab85ec" + "3b3b3b8d-566a-4d86-bd7c-a05fb29c761c" ], "x-ms-correlation-request-id": [ - "c8d55a4d-851a-4106-a750-e40c8cab85ec" + "3b3b3b8d-566a-4d86-bd7c-a05fb29c761c" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121227Z:c8d55a4d-851a-4106-a750-e40c8cab85ec" + "WESTUS2:20220517T045045Z:3b3b3b8d-566a-4d86-bd7c-a05fb29c761c" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:12:26 GMT" + "Tue, 17 May 2022 04:50:45 GMT" ], "Content-Length": [ "21" @@ -3085,18 +3145,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/446b167f-dbec-4a4f-8411-89febb03e0ad?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2YjE2N2YtZGJlYy00YTRmLTg0MTEtODlmZWJiMDNlMGFkP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/cac2acfc-e2bc-45f4-890c-8bc673ce5e80?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvbnNTdGF0dXMvY2FjMmFjZmMtZTJiYy00NWY0LTg5MGMtOGJjNjczY2U1ZTgwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adccea08-2f6a-4efc-b4ba-e413315c981e" + "60dd1c66-5f44-463c-942e-a5dc4b3bc19a" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -3117,22 +3177,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11968" + "11954" ], "x-ms-request-id": [ - "cd7b6ea1-9e55-4013-b941-8c7fba14b524" + "bf771719-3cf9-4147-aeae-cba11e0b8118" ], "x-ms-correlation-request-id": [ - "cd7b6ea1-9e55-4013-b941-8c7fba14b524" + "bf771719-3cf9-4147-aeae-cba11e0b8118" ], "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T121258Z:cd7b6ea1-9e55-4013-b941-8c7fba14b524" + "WESTUS2:20220517T045116Z:bf771719-3cf9-4147-aeae-cba11e0b8118" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:12:58 GMT" + "Tue, 17 May 2022 04:51:15 GMT" ], "Content-Length": [ "22" @@ -3147,6 +3207,6 @@ ], "Names": {}, "Variables": { - "SubscriptionId": "12053b8f-cab5-4f5c-9c1a-870580142abd" + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" } } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestSqlContainerBackupInformationCmdLets.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestSqlContainerBackupInformationCmdLets.json index 03c4e8c7347a..cbc4ad2d4105 100644 --- a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestSqlContainerBackupInformationCmdLets.json +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestSqlContainerBackupInformationCmdLets.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourcegroups/CosmosDBResourceGroup14?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourcegroups/CosmosDBResourceGroup52?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "acc6e8e8-87a6-47bc-8523-b8a342b5c9c3" + "fe37608c-3895-4b95-9e90-9042866f8a96" ], "Accept-Language": [ "en-US" @@ -15,7 +15,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.57" ], "Content-Type": [ @@ -33,16 +33,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1199" ], "x-ms-request-id": [ - "99f2a57c-3de9-4fdb-948e-17344a158bdf" + "18c63c5f-652a-4062-a08a-7f408c9f3728" ], "x-ms-correlation-request-id": [ - "99f2a57c-3de9-4fdb-948e-17344a158bdf" + "18c63c5f-652a-4062-a08a-7f408c9f3728" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T122722Z:99f2a57c-3de9-4fdb-948e-17344a158bdf" + "WESTUS2:20220517T050504Z:18c63c5f-652a-4062-a08a-7f408c9f3728" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,7 +51,7 @@ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:27:22 GMT" + "Tue, 17 May 2022 05:05:04 GMT" ], "Content-Length": [ "202" @@ -63,17 +63,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14\",\r\n \"name\": \"CosmosDBResourceGroup14\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52\",\r\n \"name\": \"CosmosDBResourceGroup52\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyNTI/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c15400a0-eb66-429a-9fe6-ee04f01203f3" + "bdc9decd-28cb-457f-ad3c-382fcb13b647" ], "Accept-Language": [ "en-US" @@ -81,7 +81,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -96,13 +96,13 @@ "gateway" ], "x-ms-request-id": [ - "2f024346-252a-41bb-986e-c6a2ff1d205c" + "ec6cfe25-9015-4a44-be33-9c0ce91a8d0c" ], "x-ms-correlation-request-id": [ - "2f024346-252a-41bb-986e-c6a2ff1d205c" + "ec6cfe25-9015-4a44-be33-9c0ce91a8d0c" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T122724Z:2f024346-252a-41bb-986e-c6a2ff1d205c" + "WESTUS2:20220517T050504Z:ec6cfe25-9015-4a44-be33-9c0ce91a8d0c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -111,7 +111,7 @@ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:27:24 GMT" + "Tue, 17 May 2022 05:05:04 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -123,22 +123,22 @@ "246" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214' under resource group 'CosmosDBResourceGroup14' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252' under resource group 'CosmosDBResourceGroup52' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", "StatusCode": 404 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyNTI/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c15400a0-eb66-429a-9fe6-ee04f01203f3" + "bdc9decd-28cb-457f-ad3c-382fcb13b647" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -159,41 +159,41 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11992" ], "x-ms-request-id": [ - "e9e9afd9-0a98-41ff-9c90-73a5027f227d" + "3523f8d4-e627-436e-8b8a-2dc073b3c969" ], "x-ms-correlation-request-id": [ - "e9e9afd9-0a98-41ff-9c90-73a5027f227d" + "3523f8d4-e627-436e-8b8a-2dc073b3c969" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123012Z:e9e9afd9-0a98-41ff-9c90-73a5027f227d" + "WESTUS2:20220517T050812Z:3523f8d4-e627-436e-8b8a-2dc073b3c969" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:30:11 GMT" + "Tue, 17 May 2022 05:08:12 GMT" ], "Content-Length": [ - "2320" + "2235" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214\",\r\n \"name\": \"cosmosdb-1214\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T12:29:31.1376533Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"a649c1ac-3dbe-44fe-b434-e043bdb4c462\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1214-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252\",\r\n \"name\": \"cosmosdb-1252\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T05:07:11.4878339Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1252.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"cb1e7bf5-b296-4d9e-9086-cdd54f0410c9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1252-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1252-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1252-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1252-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1252-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1252-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1252-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyNTI/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1138420f-29dc-40f2-8b97-5c886f0f14a0" + "7eef33ad-cc5b-4a2f-b44d-c64b12fb1039" ], "Accept-Language": [ "en-US" @@ -201,7 +201,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -222,41 +222,41 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" + "11985" ], "x-ms-request-id": [ - "e2f9ab2c-417e-46b4-976f-1653e15fce79" + "931c082a-f3ca-4a0d-b412-70616f074c1a" ], "x-ms-correlation-request-id": [ - "e2f9ab2c-417e-46b4-976f-1653e15fce79" + "931c082a-f3ca-4a0d-b412-70616f074c1a" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123134Z:e2f9ab2c-417e-46b4-976f-1653e15fce79" + "WESTUS2:20220517T050916Z:931c082a-f3ca-4a0d-b412-70616f074c1a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:31:33 GMT" + "Tue, 17 May 2022 05:09:15 GMT" ], "Content-Length": [ - "2320" + "2235" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214\",\r\n \"name\": \"cosmosdb-1214\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T12:29:31.1376533Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"a649c1ac-3dbe-44fe-b434-e043bdb4c462\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1214-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1214-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252\",\r\n \"name\": \"cosmosdb-1252\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T05:07:11.4878339Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1252.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"cb1e7bf5-b296-4d9e-9086-cdd54f0410c9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1252-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1252-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1252-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1252-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1252-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1252-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1252-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyNTI/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": false,\r\n \"virtualNetworkRules\": [],\r\n \"enableMultipleWriteLocations\": false,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"Central US\",\r\n \"tags\": {}\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": false,\r\n \"virtualNetworkRules\": [],\r\n \"enableMultipleWriteLocations\": false,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {}\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"Central US\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "c15400a0-eb66-429a-9fe6-ee04f01203f3" + "bdc9decd-28cb-457f-ad3c-382fcb13b647" ], "Accept-Language": [ "en-US" @@ -264,14 +264,14 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "656" + "695" ] }, "ResponseHeaders": { @@ -282,13 +282,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/operationResults/0eaf86cf-0f50-4be4-838e-e5f5134e97fb?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/operationResults/446fccc2-5d0f-4c52-a80c-d24f50b12521?api-version=2022-02-15-preview" ], "x-ms-request-id": [ - "0eaf86cf-0f50-4be4-838e-e5f5134e97fb" + "446fccc2-5d0f-4c52-a80c-d24f50b12521" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/0eaf86cf-0f50-4be4-838e-e5f5134e97fb?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/446fccc2-5d0f-4c52-a80c-d24f50b12521?api-version=2022-02-15-preview" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -300,43 +300,43 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1199" ], "x-ms-correlation-request-id": [ - "1019a379-b401-41a4-81f1-1b22bd6f44e2" + "1ada485d-ae5e-4166-9749-6550bb3e4ce6" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T122739Z:1019a379-b401-41a4-81f1-1b22bd6f44e2" + "WESTUS2:20220517T050511Z:1ada485d-ae5e-4166-9749-6550bb3e4ce6" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:27:39 GMT" + "Tue, 17 May 2022 05:05:11 GMT" ], "Content-Length": [ - "1995" + "1911" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214\",\r\n \"name\": \"cosmosdb-1214\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T12:27:36.341393Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"a649c1ac-3dbe-44fe-b434-e043bdb4c462\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1214-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1214-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252\",\r\n \"name\": \"cosmosdb-1252\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T05:05:09.6406834Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"cb1e7bf5-b296-4d9e-9086-cdd54f0410c9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1252-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1252-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1252-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1252-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/0eaf86cf-0f50-4be4-838e-e5f5134e97fb?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvMGVhZjg2Y2YtMGY1MC00YmU0LTgzOGUtZTVmNTEzNGU5N2ZiP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/446fccc2-5d0f-4c52-a80c-d24f50b12521?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2ZmNjYzItNWQwZi00YzUyLWE4MGMtZDI0ZjUwYjEyNTIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c15400a0-eb66-429a-9fe6-ee04f01203f3" + "bdc9decd-28cb-457f-ad3c-382fcb13b647" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -357,22 +357,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11998" ], "x-ms-request-id": [ - "41ce3240-d231-4fc2-9f5e-f790445615e3" + "aedbdf43-ebde-49eb-bc2a-cb4675917fbd" ], "x-ms-correlation-request-id": [ - "41ce3240-d231-4fc2-9f5e-f790445615e3" + "aedbdf43-ebde-49eb-bc2a-cb4675917fbd" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T122810Z:41ce3240-d231-4fc2-9f5e-f790445615e3" + "WESTUS2:20220517T050542Z:aedbdf43-ebde-49eb-bc2a-cb4675917fbd" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:28:09 GMT" + "Tue, 17 May 2022 05:05:41 GMT" ], "Content-Length": [ "21" @@ -385,18 +385,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/0eaf86cf-0f50-4be4-838e-e5f5134e97fb?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvMGVhZjg2Y2YtMGY1MC00YmU0LTgzOGUtZTVmNTEzNGU5N2ZiP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/446fccc2-5d0f-4c52-a80c-d24f50b12521?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2ZmNjYzItNWQwZi00YzUyLWE4MGMtZDI0ZjUwYjEyNTIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c15400a0-eb66-429a-9fe6-ee04f01203f3" + "bdc9decd-28cb-457f-ad3c-382fcb13b647" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -417,22 +417,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11997" ], "x-ms-request-id": [ - "75655d3d-256f-4655-86be-dd783d323718" + "b065cb35-d815-4a06-ab81-b43396fa95c5" ], "x-ms-correlation-request-id": [ - "75655d3d-256f-4655-86be-dd783d323718" + "b065cb35-d815-4a06-ab81-b43396fa95c5" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T122840Z:75655d3d-256f-4655-86be-dd783d323718" + "WESTUS2:20220517T050612Z:b065cb35-d815-4a06-ab81-b43396fa95c5" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:28:39 GMT" + "Tue, 17 May 2022 05:06:11 GMT" ], "Content-Length": [ "21" @@ -445,18 +445,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/0eaf86cf-0f50-4be4-838e-e5f5134e97fb?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvMGVhZjg2Y2YtMGY1MC00YmU0LTgzOGUtZTVmNTEzNGU5N2ZiP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/446fccc2-5d0f-4c52-a80c-d24f50b12521?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2ZmNjYzItNWQwZi00YzUyLWE4MGMtZDI0ZjUwYjEyNTIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c15400a0-eb66-429a-9fe6-ee04f01203f3" + "bdc9decd-28cb-457f-ad3c-382fcb13b647" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -477,22 +477,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11996" ], "x-ms-request-id": [ - "949a5d10-56a4-4db9-a961-e71fa0ff43b3" + "169a9b2f-15be-4c64-b598-e586e4370f12" ], "x-ms-correlation-request-id": [ - "949a5d10-56a4-4db9-a961-e71fa0ff43b3" + "169a9b2f-15be-4c64-b598-e586e4370f12" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T122910Z:949a5d10-56a4-4db9-a961-e71fa0ff43b3" + "WESTUS2:20220517T050642Z:169a9b2f-15be-4c64-b598-e586e4370f12" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:29:10 GMT" + "Tue, 17 May 2022 05:06:42 GMT" ], "Content-Length": [ "21" @@ -505,18 +505,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/0eaf86cf-0f50-4be4-838e-e5f5134e97fb?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvMGVhZjg2Y2YtMGY1MC00YmU0LTgzOGUtZTVmNTEzNGU5N2ZiP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/446fccc2-5d0f-4c52-a80c-d24f50b12521?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2ZmNjYzItNWQwZi00YzUyLWE4MGMtZDI0ZjUwYjEyNTIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c15400a0-eb66-429a-9fe6-ee04f01203f3" + "bdc9decd-28cb-457f-ad3c-382fcb13b647" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -537,22 +537,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11995" ], "x-ms-request-id": [ - "da10ffcc-e729-4585-a829-798367862294" + "b801e90d-cc2f-46c6-bc48-5d1036b0508e" ], "x-ms-correlation-request-id": [ - "da10ffcc-e729-4585-a829-798367862294" + "b801e90d-cc2f-46c6-bc48-5d1036b0508e" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T122941Z:da10ffcc-e729-4585-a829-798367862294" + "WESTUS2:20220517T050712Z:b801e90d-cc2f-46c6-bc48-5d1036b0508e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:29:40 GMT" + "Tue, 17 May 2022 05:07:12 GMT" ], "Content-Length": [ "21" @@ -565,18 +565,18 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/0eaf86cf-0f50-4be4-838e-e5f5134e97fb?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvMGVhZjg2Y2YtMGY1MC00YmU0LTgzOGUtZTVmNTEzNGU5N2ZiP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/446fccc2-5d0f-4c52-a80c-d24f50b12521?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2ZmNjYzItNWQwZi00YzUyLWE4MGMtZDI0ZjUwYjEyNTIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c15400a0-eb66-429a-9fe6-ee04f01203f3" + "bdc9decd-28cb-457f-ad3c-382fcb13b647" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -597,22 +597,82 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11994" ], "x-ms-request-id": [ - "881418dc-0fdd-4bcb-9986-1509e716588d" + "442b85cc-a7b2-456c-8274-a50fb1283b77" ], "x-ms-correlation-request-id": [ - "881418dc-0fdd-4bcb-9986-1509e716588d" + "442b85cc-a7b2-456c-8274-a50fb1283b77" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123011Z:881418dc-0fdd-4bcb-9986-1509e716588d" + "WESTUS2:20220517T050742Z:442b85cc-a7b2-456c-8274-a50fb1283b77" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:30:11 GMT" + "Tue, 17 May 2022 05:07:42 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/446fccc2-5d0f-4c52-a80c-d24f50b12521?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvNDQ2ZmNjYzItNWQwZi00YzUyLWE4MGMtZDI0ZjUwYjEyNTIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bdc9decd-28cb-457f-ad3c-382fcb13b647" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "eac45e77-69e4-497a-a6dd-1f3e42d9fa4e" + ], + "x-ms-correlation-request-id": [ + "eac45e77-69e4-497a-a6dd-1f3e42d9fa4e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T050812Z:eac45e77-69e4-497a-a6dd-1f3e42d9fa4e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 05:08:12 GMT" ], "Content-Length": [ "22" @@ -625,13 +685,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyNTIvc3FsRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3e5c42ca-38d0-4b89-9aca-c9574e5af655" + "740fa57f-6fe5-4f67-8eca-4c382e34f832" ], "Accept-Language": [ "en-US" @@ -639,7 +699,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -660,22 +720,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11991" ], "x-ms-request-id": [ - "d8739413-34ab-4c3e-8616-62f2ebfb4bb6" + "acf80039-b10f-4157-bbf2-3d0921cdde5d" ], "x-ms-correlation-request-id": [ - "d8739413-34ab-4c3e-8616-62f2ebfb4bb6" + "acf80039-b10f-4157-bbf2-3d0921cdde5d" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123016Z:d8739413-34ab-4c3e-8616-62f2ebfb4bb6" + "WESTUS2:20220517T050813Z:acf80039-b10f-4157-bbf2-3d0921cdde5d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:30:15 GMT" + "Tue, 17 May 2022 05:08:13 GMT" ], "Content-Length": [ "6292" @@ -684,22 +744,22 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Message: {\\\"code\\\":\\\"NotFound\\\",\\\"message\\\":\\\"Message: {\\\\\\\"Errors\\\\\\\":[\\\\\\\"Resource Not Found. Learn more: https:\\\\\\\\/\\\\\\\\/aka.ms\\\\\\\\/cosmosdb-tsg-not-found\\\\\\\"]}\\\\r\\\\nActivityId: 3e5c42ca-38d0-4b89-9aca-c9574e5af655, Request URI: /apps/6c57c1f6-3c0b-4bb1-b29e-89fe8262ed3d/services/3dd555bb-eae1-4c12-959f-ae734bf95d55/partitions/afad79da-a752-40e8-88f8-26913b003968/replicas/132965886052885669s, RequestStats: \\\\r\\\\nRequestStartTime: 2022-05-12T12:30:16.3732208Z, RequestEndTime: 2022-05-12T12:30:16.3832970Z, Number of regions attempted:1\\\\r\\\\n{\\\\\\\"systemHistory\\\\\\\":[{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T12:29:21.9525798Z\\\\\\\",\\\\\\\"cpu\\\\\\\":1.553,\\\\\\\"memory\\\\\\\":485976916.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0146,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T12:29:31.9626534Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.108,\\\\\\\"memory\\\\\\\":485982920.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0107,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T12:29:41.9728518Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.243,\\\\\\\"memory\\\\\\\":485672696.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0148,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T12:29:51.9829097Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.414,\\\\\\\"memory\\\\\\\":485093620.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0141,\\\\\\\"availableThreads\\\\\\\":32745,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T12:30:01.9931042Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.375,\\\\\\\"memory\\\\\\\":484721548.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0462,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T12:30:12.0032313Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.630,\\\\\\\"memory\\\\\\\":484212784.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0143,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}}]}\\\\r\\\\nRequestStart: 2022-05-12T12:30:16.3732208Z; ResponseTime: 2022-05-12T12:30:16.3832970Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.20:11300/apps/6c57c1f6-3c0b-4bb1-b29e-89fe8262ed3d/services/3dd555bb-eae1-4c12-959f-ae734bf95d55/partitions/afad79da-a752-40e8-88f8-26913b003968/replicas/132965886052885669s, LSN: 9, GlobalCommittedLsn: 9, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#9, UsingLocalLSN: False, TransportException: null, BELatencyMs: 1.243, ActivityId: 3e5c42ca-38d0-4b89-9aca-c9574e5af655, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:16.3732208Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0087},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:16.3732295Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0031},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:16.3732326Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1507},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:16.3733833Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 2.0039},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:16.3753872Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0281},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:16.3754153Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-12T12:30:16.2932250Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-12T12:30:16.2932250Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-12T12:30:16.3232701Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":456,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":134,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Database, OperationType: Read\\\\r\\\\nRequestStart: 2022-05-12T12:30:16.3732208Z; ResponseTime: 2022-05-12T12:30:16.3832970Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.21:11000/apps/6c57c1f6-3c0b-4bb1-b29e-89fe8262ed3d/services/3dd555bb-eae1-4c12-959f-ae734bf95d55/partitions/afad79da-a752-40e8-88f8-26913b003968/replicas/132965886052885668s, LSN: 9, GlobalCommittedLsn: 9, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#9, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.857, ActivityId: 3e5c42ca-38d0-4b89-9aca-c9574e5af655, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:16.3732208Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0045},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:16.3732253Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0017},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:16.3732270Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1443},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:16.3733713Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 1.2673},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:16.3746386Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0624},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:16.3747010Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-12T12:30:16.1732178Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-12T12:30:16.1732178Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-12T12:30:16.2132692Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":456,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":134,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Database, OperationType: Read\\\\r\\\\n, SDK: Microsoft.Azure.Documents.Common/2.14.0\\\"}, Request URI: /dbs/TestDB1, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Message: {\\\"code\\\":\\\"NotFound\\\",\\\"message\\\":\\\"Message: {\\\\\\\"Errors\\\\\\\":[\\\\\\\"Resource Not Found. Learn more: https:\\\\\\\\/\\\\\\\\/aka.ms\\\\\\\\/cosmosdb-tsg-not-found\\\\\\\"]}\\\\r\\\\nActivityId: 740fa57f-6fe5-4f67-8eca-4c382e34f832, Request URI: /apps/e46d51a7-1d0b-401c-b750-6551241eb97b/services/1dd4a4d2-ffcf-46f5-91e4-c7c8e32ef815/partitions/d875eae3-fe74-440c-aef3-2e387f63d3a8/replicas/132972267079168552s, RequestStats: \\\\r\\\\nRequestStartTime: 2022-05-17T05:08:13.5139012Z, RequestEndTime: 2022-05-17T05:08:13.5139012Z, Number of regions attempted:1\\\\r\\\\n{\\\\\\\"systemHistory\\\\\\\":[{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T05:07:19.3436588Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.372,\\\\\\\"memory\\\\\\\":476043512.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0154,\\\\\\\"availableThreads\\\\\\\":32759,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T05:07:29.3536927Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.223,\\\\\\\"memory\\\\\\\":475718256.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0159,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T05:07:39.3637468Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.417,\\\\\\\"memory\\\\\\\":475039200.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0126,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T05:07:49.3738055Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.261,\\\\\\\"memory\\\\\\\":475042600.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0147,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T05:07:59.3838196Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.415,\\\\\\\"memory\\\\\\\":474484092.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0155,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T05:08:09.3938948Z\\\\\\\",\\\\\\\"cpu\\\\\\\":1.191,\\\\\\\"memory\\\\\\\":477847876.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0153,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}}]}\\\\r\\\\nRequestStart: 2022-05-17T05:08:13.5139012Z; ResponseTime: 2022-05-17T05:08:13.5139012Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.21:11300/apps/e46d51a7-1d0b-401c-b750-6551241eb97b/services/1dd4a4d2-ffcf-46f5-91e4-c7c8e32ef815/partitions/d875eae3-fe74-440c-aef3-2e387f63d3a8/replicas/132972267079168552s, LSN: 9, GlobalCommittedLsn: 9, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#9, UsingLocalLSN: False, TransportException: null, BELatencyMs: 1.228, ActivityId: 740fa57f-6fe5-4f67-8eca-4c382e34f832, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:13.5139012Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0098},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:13.5139110Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0027},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:13.5139137Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1713},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:13.5140850Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 1.9405},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:13.5160255Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1656},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:13.5161911Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-17T05:08:13.4039212Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-17T05:08:13.4039212Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-17T05:08:13.4539237Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":454,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":134,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Database, OperationType: Read\\\\r\\\\nRequestStart: 2022-05-17T05:08:13.5139012Z; ResponseTime: 2022-05-17T05:08:13.5139012Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.19:11300/apps/e46d51a7-1d0b-401c-b750-6551241eb97b/services/1dd4a4d2-ffcf-46f5-91e4-c7c8e32ef815/partitions/d875eae3-fe74-440c-aef3-2e387f63d3a8/replicas/132972267079168550s, LSN: 9, GlobalCommittedLsn: 9, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#9, UsingLocalLSN: False, TransportException: null, BELatencyMs: 1.439, ActivityId: 740fa57f-6fe5-4f67-8eca-4c382e34f832, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:13.5139012Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0044},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:13.5139056Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0013},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:13.5139069Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1442},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:13.5140511Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 2.0122},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:13.5160633Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0976},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:13.5161609Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-17T05:08:13.2838596Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-17T05:08:13.2838596Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-17T05:08:13.3339227Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":454,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":134,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Database, OperationType: Read\\\\r\\\\n, SDK: Microsoft.Azure.Documents.Common/2.14.0\\\"}, Request URI: /dbs/TestDB1, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", "StatusCode": 404 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyNTIvc3FsRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3e5c42ca-38d0-4b89-9aca-c9574e5af655" + "740fa57f-6fe5-4f67-8eca-4c382e34f832" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -720,22 +780,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11989" ], "x-ms-request-id": [ - "eb2f8cef-7e22-4b54-983c-6cb73ae349c5" + "c9f81dc5-6b40-4afa-b10d-36b6352e45d9" ], "x-ms-correlation-request-id": [ - "eb2f8cef-7e22-4b54-983c-6cb73ae349c5" + "c9f81dc5-6b40-4afa-b10d-36b6352e45d9" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123050Z:eb2f8cef-7e22-4b54-983c-6cb73ae349c5" + "WESTUS2:20220517T050844Z:c9f81dc5-6b40-4afa-b10d-36b6352e45d9" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:30:50 GMT" + "Tue, 17 May 2022 05:08:44 GMT" ], "Content-Length": [ "448" @@ -744,17 +804,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"TestDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\",\r\n \"_rid\": \"pShZAA==\",\r\n \"_self\": \"dbs/pShZAA==/\",\r\n \"_etag\": \"\\\"0000d205-0000-0300-0000-627cfde00000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1652358624\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"TestDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\",\r\n \"_rid\": \"2PloAA==\",\r\n \"_self\": \"dbs/2PloAA==/\",\r\n \"_etag\": \"\\\"0000c90c-0000-0300-0000-62832dc20000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1652764098\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyNTIvc3FsRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1138420f-29dc-40f2-8b97-5c886f0f14a0" + "7eef33ad-cc5b-4a2f-b44d-c64b12fb1039" ], "Accept-Language": [ "en-US" @@ -762,7 +822,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -783,22 +843,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11984" ], "x-ms-request-id": [ - "11fbbd5c-1b8e-41f1-b5ba-59ea565e9c89" + "006c7869-b0c2-45b8-8b41-f49036ac6fb2" ], "x-ms-correlation-request-id": [ - "11fbbd5c-1b8e-41f1-b5ba-59ea565e9c89" + "006c7869-b0c2-45b8-8b41-f49036ac6fb2" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123135Z:11fbbd5c-1b8e-41f1-b5ba-59ea565e9c89" + "WESTUS2:20220517T050916Z:006c7869-b0c2-45b8-8b41-f49036ac6fb2" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:31:34 GMT" + "Tue, 17 May 2022 05:09:16 GMT" ], "Content-Length": [ "448" @@ -807,17 +867,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"TestDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\",\r\n \"_rid\": \"pShZAA==\",\r\n \"_self\": \"dbs/pShZAA==/\",\r\n \"_etag\": \"\\\"0000d205-0000-0300-0000-627cfde00000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1652358624\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"TestDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\",\r\n \"_rid\": \"2PloAA==\",\r\n \"_self\": \"dbs/2PloAA==/\",\r\n \"_etag\": \"\\\"0000c90c-0000-0300-0000-62832dc20000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1652764098\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyNTIvc3FsRGF0YWJhc2VzL1Rlc3REQjE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestDB1\"\r\n },\r\n \"options\": {}\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "3e5c42ca-38d0-4b89-9aca-c9574e5af655" + "740fa57f-6fe5-4f67-8eca-4c382e34f832" ], "Accept-Language": [ "en-US" @@ -825,7 +885,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ], "Content-Type": [ @@ -843,13 +903,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/operationResults/3a175b2b-9418-40cc-95e7-a0129ece57a2?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1/operationResults/83db43dc-ac2a-4080-bd25-16ff0dc8c6f3?api-version=2022-02-15-preview" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/3a175b2b-9418-40cc-95e7-a0129ece57a2?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/83db43dc-ac2a-4080-bd25-16ff0dc8c6f3?api-version=2022-02-15-preview" ], "x-ms-request-id": [ - "3a175b2b-9418-40cc-95e7-a0129ece57a2" + "83db43dc-ac2a-4080-bd25-16ff0dc8c6f3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -861,19 +921,19 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1198" ], "x-ms-correlation-request-id": [ - "eed459a9-1b26-4291-b72d-244123ff49ff" + "820d768c-4124-4a13-bcd5-1a479ffffe8a" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123019Z:eed459a9-1b26-4291-b72d-244123ff49ff" + "WESTUS2:20220517T050814Z:820d768c-4124-4a13-bcd5-1a479ffffe8a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:30:19 GMT" + "Tue, 17 May 2022 05:08:13 GMT" ], "Content-Length": [ "21" @@ -886,18 +946,18 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/3a175b2b-9418-40cc-95e7-a0129ece57a2?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvM2ExNzViMmItOTQxOC00MGNjLTk1ZTctYTAxMjllY2U1N2EyP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/83db43dc-ac2a-4080-bd25-16ff0dc8c6f3?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvODNkYjQzZGMtYWMyYS00MDgwLWJkMjUtMTZmZjBkYzhjNmYzP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3e5c42ca-38d0-4b89-9aca-c9574e5af655" + "740fa57f-6fe5-4f67-8eca-4c382e34f832" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -918,22 +978,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11990" ], "x-ms-request-id": [ - "41f3541d-6b4b-4ef4-9d17-371f6dfe87c5" + "c095642c-df5e-4c70-876f-090d44ebc738" ], "x-ms-correlation-request-id": [ - "41f3541d-6b4b-4ef4-9d17-371f6dfe87c5" + "c095642c-df5e-4c70-876f-090d44ebc738" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123050Z:41f3541d-6b4b-4ef4-9d17-371f6dfe87c5" + "WESTUS2:20220517T050844Z:c095642c-df5e-4c70-876f-090d44ebc738" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:30:49 GMT" + "Tue, 17 May 2022 05:08:43 GMT" ], "Content-Length": [ "22" @@ -946,13 +1006,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1/containers/TestCollectionInDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyNTIvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "25a43ef3-32b6-4b18-82b0-948c2805e907" + "ca2a9e19-7dd8-488a-bdac-6b389bf30d62" ], "Accept-Language": [ "en-US" @@ -960,7 +1020,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -981,46 +1041,46 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11988" ], "x-ms-request-id": [ - "7e1c311e-502b-44f0-a649-58995259534f" + "c4c0c921-943a-4b4a-9b98-e882a4036f19" ], "x-ms-correlation-request-id": [ - "7e1c311e-502b-44f0-a649-58995259534f" + "c4c0c921-943a-4b4a-9b98-e882a4036f19" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123055Z:7e1c311e-502b-44f0-a649-58995259534f" + "WESTUS2:20220517T050845Z:c4c0c921-943a-4b4a-9b98-e882a4036f19" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:30:55 GMT" + "Tue, 17 May 2022 05:08:44 GMT" ], "Content-Length": [ - "6327" + "6325" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Message: {\\\"code\\\":\\\"NotFound\\\",\\\"message\\\":\\\"Message: {\\\\\\\"Errors\\\\\\\":[\\\\\\\"Resource Not Found. Learn more: https:\\\\\\\\/\\\\\\\\/aka.ms\\\\\\\\/cosmosdb-tsg-not-found\\\\\\\"]}\\\\r\\\\nActivityId: 25a43ef3-32b6-4b18-82b0-948c2805e907, Request URI: /apps/6c57c1f6-3c0b-4bb1-b29e-89fe8262ed3d/services/3dd555bb-eae1-4c12-959f-ae734bf95d55/partitions/afad79da-a752-40e8-88f8-26913b003968/replicas/132965886052885670s, RequestStats: \\\\r\\\\nRequestStartTime: 2022-05-12T12:30:55.6908027Z, RequestEndTime: 2022-05-12T12:30:55.6908027Z, Number of regions attempted:1\\\\r\\\\n{\\\\\\\"systemHistory\\\\\\\":[{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T12:29:57.3204754Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.360,\\\\\\\"memory\\\\\\\":480258368.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0239,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T12:30:07.3306477Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.372,\\\\\\\"memory\\\\\\\":479936696.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0106,\\\\\\\"availableThreads\\\\\\\":32762,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T12:30:17.3406052Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.516,\\\\\\\"memory\\\\\\\":479677672.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0137,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T12:30:27.3506902Z\\\\\\\",\\\\\\\"cpu\\\\\\\":1.095,\\\\\\\"memory\\\\\\\":481986892.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0119,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T12:30:37.3607512Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.615,\\\\\\\"memory\\\\\\\":481438384.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0181,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-12T12:30:47.3708046Z\\\\\\\",\\\\\\\"cpu\\\\\\\":1.617,\\\\\\\"memory\\\\\\\":480899088.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0209,\\\\\\\"availableThreads\\\\\\\":32762,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}}]}\\\\r\\\\nRequestStart: 2022-05-12T12:30:55.6908027Z; ResponseTime: 2022-05-12T12:30:55.6908027Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.24:11300/apps/6c57c1f6-3c0b-4bb1-b29e-89fe8262ed3d/services/3dd555bb-eae1-4c12-959f-ae734bf95d55/partitions/afad79da-a752-40e8-88f8-26913b003968/replicas/132965886052885670s, LSN: 10, GlobalCommittedLsn: 10, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#10, UsingLocalLSN: False, TransportException: null, BELatencyMs: 1.18, ActivityId: 25a43ef3-32b6-4b18-82b0-948c2805e907, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:55.6908027Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0084},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:55.6908111Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0026},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:55.6908137Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.2505},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:55.6910642Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 1.6752},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:55.6927394Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1627},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:55.6929021Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-12T12:30:55.5908120Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-12T12:30:55.5908120Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-12T12:30:55.6308733Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":486,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":135,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Collection, OperationType: Read\\\\r\\\\nRequestStart: 2022-05-12T12:30:55.6908027Z; ResponseTime: 2022-05-12T12:30:55.6908027Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.21:11000/apps/6c57c1f6-3c0b-4bb1-b29e-89fe8262ed3d/services/3dd555bb-eae1-4c12-959f-ae734bf95d55/partitions/afad79da-a752-40e8-88f8-26913b003968/replicas/132965886052885668s, LSN: 10, GlobalCommittedLsn: 10, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#10, UsingLocalLSN: False, TransportException: null, BELatencyMs: 1.097, ActivityId: 25a43ef3-32b6-4b18-82b0-948c2805e907, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:55.6908027Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0042},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:55.6908069Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0177},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:55.6908246Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1726},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:55.6909972Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 1.7456},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:55.6927428Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0598},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-12T12:30:55.6928026Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-12T12:30:55.4708107Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-12T12:30:55.4708107Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-12T12:30:55.5108722Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":486,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":135,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Collection, OperationType: Read\\\\r\\\\n, SDK: Microsoft.Azure.Documents.Common/2.14.0\\\"}, Request URI: /dbs/TestDB1/colls/TestCollectionInDB1, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Message: {\\\"code\\\":\\\"NotFound\\\",\\\"message\\\":\\\"Message: {\\\\\\\"Errors\\\\\\\":[\\\\\\\"Resource Not Found. Learn more: https:\\\\\\\\/\\\\\\\\/aka.ms\\\\\\\\/cosmosdb-tsg-not-found\\\\\\\"]}\\\\r\\\\nActivityId: ca2a9e19-7dd8-488a-bdac-6b389bf30d62, Request URI: /apps/e46d51a7-1d0b-401c-b750-6551241eb97b/services/1dd4a4d2-ffcf-46f5-91e4-c7c8e32ef815/partitions/d875eae3-fe74-440c-aef3-2e387f63d3a8/replicas/132972267079168551s, RequestStats: \\\\r\\\\nRequestStartTime: 2022-05-17T05:08:44.9965397Z, RequestEndTime: 2022-05-17T05:08:44.9965397Z, Number of regions attempted:1\\\\r\\\\n{\\\\\\\"systemHistory\\\\\\\":[{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T05:07:50.1260921Z\\\\\\\",\\\\\\\"cpu\\\\\\\":3.662,\\\\\\\"memory\\\\\\\":479196344.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0122,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T05:08:00.1361749Z\\\\\\\",\\\\\\\"cpu\\\\\\\":1.953,\\\\\\\"memory\\\\\\\":478867940.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.012,\\\\\\\"availableThreads\\\\\\\":32762,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T05:08:10.1462857Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.757,\\\\\\\"memory\\\\\\\":479067000.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0257,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T05:08:20.1563706Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.688,\\\\\\\"memory\\\\\\\":478406532.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0121,\\\\\\\"availableThreads\\\\\\\":32749,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T05:08:30.1664328Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.691,\\\\\\\"memory\\\\\\\":477866088.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0632,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-17T05:08:40.1764441Z\\\\\\\",\\\\\\\"cpu\\\\\\\":7.398,\\\\\\\"memory\\\\\\\":477652516.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0095,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":52,\\\\\\\"maxThreads\\\\\\\":32767}}]}\\\\r\\\\nRequestStart: 2022-05-17T05:08:44.9965397Z; ResponseTime: 2022-05-17T05:08:44.9965397Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.23:11000/apps/e46d51a7-1d0b-401c-b750-6551241eb97b/services/1dd4a4d2-ffcf-46f5-91e4-c7c8e32ef815/partitions/d875eae3-fe74-440c-aef3-2e387f63d3a8/replicas/132972267079168551s, LSN: 10, GlobalCommittedLsn: 10, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#10, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.995, ActivityId: ca2a9e19-7dd8-488a-bdac-6b389bf30d62, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:44.9965397Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0104},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:44.9965501Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0029},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:44.9965530Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.2501},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:44.9968031Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 1.4215},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:44.9982246Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0786},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:44.9983032Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-17T05:08:44.9064991Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-17T05:08:44.9064991Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-17T05:08:44.9465416Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":488,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":135,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Collection, OperationType: Read\\\\r\\\\nRequestStart: 2022-05-17T05:08:44.9965397Z; ResponseTime: 2022-05-17T05:08:44.9965397Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.19:11300/apps/e46d51a7-1d0b-401c-b750-6551241eb97b/services/1dd4a4d2-ffcf-46f5-91e4-c7c8e32ef815/partitions/d875eae3-fe74-440c-aef3-2e387f63d3a8/replicas/132972267079168550s, LSN: 10, GlobalCommittedLsn: 10, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#10, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.962, ActivityId: ca2a9e19-7dd8-488a-bdac-6b389bf30d62, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:44.9965397Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0208},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:44.9965605Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0014},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:44.9965619Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1706},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:44.9967325Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 1.31},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:44.9980425Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1259},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-17T05:08:44.9981684Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-17T05:08:44.9064991Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-17T05:08:44.9064991Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-17T05:08:44.9465416Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":488,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":135,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Collection, OperationType: Read\\\\r\\\\n, SDK: Microsoft.Azure.Documents.Common/2.14.0\\\"}, Request URI: /dbs/TestDB1/colls/TestCollectionInDB1, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", "StatusCode": 404 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1/containers/TestCollectionInDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyNTIvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "25a43ef3-32b6-4b18-82b0-948c2805e907" + "ca2a9e19-7dd8-488a-bdac-6b389bf30d62" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1041,22 +1101,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11986" ], "x-ms-request-id": [ - "0e8985ab-4c17-44dc-84d8-f14a7f7631a6" + "051758a2-7ba7-49e9-af52-61a8ef779f82" ], "x-ms-correlation-request-id": [ - "0e8985ab-4c17-44dc-84d8-f14a7f7631a6" + "051758a2-7ba7-49e9-af52-61a8ef779f82" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123131Z:0e8985ab-4c17-44dc-84d8-f14a7f7631a6" + "WESTUS2:20220517T050916Z:051758a2-7ba7-49e9-af52-61a8ef779f82" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:31:30 GMT" + "Tue, 17 May 2022 05:09:15 GMT" ], "Content-Length": [ "1224" @@ -1065,17 +1125,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers\",\r\n \"name\": \"TestCollectionInDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestCollectionInDB1\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"backupPolicy\": {\r\n \"type\": 1\r\n },\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"pShZAOTdOr8=\",\r\n \"_ts\": 1652358668,\r\n \"_self\": \"dbs/pShZAA==/colls/pShZAOTdOr8=/\",\r\n \"_etag\": \"\\\"0000d505-0000-0300-0000-627cfe0c0000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\",\r\n \"statistics\": [\r\n {\r\n \"id\": \"0\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n },\r\n {\r\n \"id\": \"1\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1/containers/TestCollectionInDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers\",\r\n \"name\": \"TestCollectionInDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestCollectionInDB1\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"backupPolicy\": {\r\n \"type\": 1\r\n },\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"2PloAP8n6Ms=\",\r\n \"_ts\": 1652764134,\r\n \"_self\": \"dbs/2PloAA==/colls/2PloAP8n6Ms=/\",\r\n \"_etag\": \"\\\"0000cc0c-0000-0300-0000-62832de60000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\",\r\n \"statistics\": [\r\n {\r\n \"id\": \"1\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n },\r\n {\r\n \"id\": \"0\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1/containers/TestCollectionInDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyNTIvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1138420f-29dc-40f2-8b97-5c886f0f14a0" + "7eef33ad-cc5b-4a2f-b44d-c64b12fb1039" ], "Accept-Language": [ "en-US" @@ -1083,7 +1143,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1104,22 +1164,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11983" ], "x-ms-request-id": [ - "34e018fe-3772-4252-ae00-857f77345b0c" + "bee6ce4a-cdb6-44d4-ab7f-54f100dd27f4" ], "x-ms-correlation-request-id": [ - "34e018fe-3772-4252-ae00-857f77345b0c" + "bee6ce4a-cdb6-44d4-ab7f-54f100dd27f4" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123137Z:34e018fe-3772-4252-ae00-857f77345b0c" + "WESTUS2:20220517T050916Z:bee6ce4a-cdb6-44d4-ab7f-54f100dd27f4" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:31:36 GMT" + "Tue, 17 May 2022 05:09:16 GMT" ], "Content-Length": [ "1224" @@ -1128,17 +1188,17 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers\",\r\n \"name\": \"TestCollectionInDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestCollectionInDB1\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"backupPolicy\": {\r\n \"type\": 1\r\n },\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"pShZAOTdOr8=\",\r\n \"_ts\": 1652358668,\r\n \"_self\": \"dbs/pShZAA==/colls/pShZAOTdOr8=/\",\r\n \"_etag\": \"\\\"0000d505-0000-0300-0000-627cfe0c0000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\",\r\n \"statistics\": [\r\n {\r\n \"id\": \"1\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n },\r\n {\r\n \"id\": \"0\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1/containers/TestCollectionInDB1\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers\",\r\n \"name\": \"TestCollectionInDB1\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestCollectionInDB1\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"backupPolicy\": {\r\n \"type\": 1\r\n },\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"2PloAP8n6Ms=\",\r\n \"_ts\": 1652764134,\r\n \"_self\": \"dbs/2PloAA==/colls/2PloAP8n6Ms=/\",\r\n \"_etag\": \"\\\"0000cc0c-0000-0300-0000-62832de60000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\",\r\n \"statistics\": [\r\n {\r\n \"id\": \"1\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n },\r\n {\r\n \"id\": \"0\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1/containers/TestCollectionInDB1?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyNTIvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestCollectionInDB1\",\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n }\r\n },\r\n \"options\": {\r\n \"throughput\": 10000\r\n }\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "25a43ef3-32b6-4b18-82b0-948c2805e907" + "ca2a9e19-7dd8-488a-bdac-6b389bf30d62" ], "Accept-Language": [ "en-US" @@ -1146,7 +1206,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ], "Content-Type": [ @@ -1164,13 +1224,13 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1/operationResults/71720975-33d0-4d60-9c43-263d0d0c7d97?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1/containers/TestCollectionInDB1/operationResults/a52ffef5-f5b5-4a1f-996d-eb928f7a3396?api-version=2022-02-15-preview" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/71720975-33d0-4d60-9c43-263d0d0c7d97?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/a52ffef5-f5b5-4a1f-996d-eb928f7a3396?api-version=2022-02-15-preview" ], "x-ms-request-id": [ - "71720975-33d0-4d60-9c43-263d0d0c7d97" + "a52ffef5-f5b5-4a1f-996d-eb928f7a3396" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1185,16 +1245,16 @@ "1197" ], "x-ms-correlation-request-id": [ - "1f526193-adae-407e-99a8-c4b31eb81387" + "91ae8b10-edc6-401a-9448-19860ee6fc71" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123059Z:1f526193-adae-407e-99a8-c4b31eb81387" + "WESTUS2:20220517T050845Z:91ae8b10-edc6-401a-9448-19860ee6fc71" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:30:59 GMT" + "Tue, 17 May 2022 05:08:45 GMT" ], "Content-Length": [ "21" @@ -1207,18 +1267,18 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/71720975-33d0-4d60-9c43-263d0d0c7d97?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvNzE3MjA5NzUtMzNkMC00ZDYwLTljNDMtMjYzZDBkMGM3ZDk3P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/a52ffef5-f5b5-4a1f-996d-eb928f7a3396?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvYTUyZmZlZjUtZjViNS00YTFmLTk5NmQtZWI5MjhmN2EzMzk2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "25a43ef3-32b6-4b18-82b0-948c2805e907" + "ca2a9e19-7dd8-488a-bdac-6b389bf30d62" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1239,22 +1299,22 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11987" ], "x-ms-request-id": [ - "b3b79b6b-da53-4984-a9e5-e4d508fd0842" + "cb7c9911-b07c-46fc-95e8-e5fb53993d4e" ], "x-ms-correlation-request-id": [ - "b3b79b6b-da53-4984-a9e5-e4d508fd0842" + "cb7c9911-b07c-46fc-95e8-e5fb53993d4e" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123130Z:b3b79b6b-da53-4984-a9e5-e4d508fd0842" + "WESTUS2:20220517T050915Z:cb7c9911-b07c-46fc-95e8-e5fb53993d4e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:31:29 GMT" + "Tue, 17 May 2022 05:09:15 GMT" ], "Content-Length": [ "22" @@ -1267,13 +1327,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1/retrieveContinuousBackupInformation?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxL3JldHJpZXZlQ29udGludW91c0JhY2t1cEluZm9ybWF0aW9uP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1/containers/TestCollectionInDB1/retrieveContinuousBackupInformation?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyNTIvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxL3JldHJpZXZlQ29udGludW91c0JhY2t1cEluZm9ybWF0aW9uP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "POST", "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "1138420f-29dc-40f2-8b97-5c886f0f14a0" + "7eef33ad-cc5b-4a2f-b44d-c64b12fb1039" ], "Accept-Language": [ "en-US" @@ -1281,7 +1341,7 @@ "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ], "Content-Type": [ @@ -1299,10 +1359,10 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1/retrieveContinuousBackupInformation/operationResults/9f2a769d-77b7-43e4-b1f7-59e118187842?api-version=2022-02-15-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1/containers/TestCollectionInDB1/retrieveContinuousBackupInformation/operationResults/b7d42ded-d3a7-4bd4-95ec-7efd7952a595?api-version=2022-02-15-preview" ], "x-ms-request-id": [ - "9f2a769d-77b7-43e4-b1f7-59e118187842" + "b7d42ded-d3a7-4bd4-95ec-7efd7952a595" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1317,16 +1377,16 @@ "1199" ], "x-ms-correlation-request-id": [ - "70a7acf5-623b-4329-8601-a5aa7a1ad7cd" + "c32e860f-0138-4c15-8fb6-3bf60a8eb818" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123138Z:70a7acf5-623b-4329-8601-a5aa7a1ad7cd" + "WESTUS2:20220517T050917Z:c32e860f-0138-4c15-8fb6-3bf60a8eb818" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:31:37 GMT" + "Tue, 17 May 2022 05:09:17 GMT" ], "Content-Length": [ "21" @@ -1339,18 +1399,18 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1/retrieveContinuousBackupInformation/operationResults/9f2a769d-77b7-43e4-b1f7-59e118187842?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxL3JldHJpZXZlQ29udGludW91c0JhY2t1cEluZm9ybWF0aW9uL29wZXJhdGlvblJlc3VsdHMvOWYyYTc2OWQtNzdiNy00M2U0LWIxZjctNTllMTE4MTg3ODQyP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1/containers/TestCollectionInDB1/retrieveContinuousBackupInformation/operationResults/b7d42ded-d3a7-4bd4-95ec-7efd7952a595?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyNTIvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxL3JldHJpZXZlQ29udGludW91c0JhY2t1cEluZm9ybWF0aW9uL29wZXJhdGlvblJlc3VsdHMvYjdkNDJkZWQtZDNhNy00YmQ0LTk1ZWMtN2VmZDc5NTJhNTk1P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1138420f-29dc-40f2-8b97-5c886f0f14a0" + "7eef33ad-cc5b-4a2f-b44d-c64b12fb1039" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1371,46 +1431,46 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11982" ], "x-ms-request-id": [ - "ad950ce0-c6f7-46e6-a294-59a9a751edf9" + "8be9e9b8-62c7-4b43-9232-683bd02e0f33" ], "x-ms-correlation-request-id": [ - "ad950ce0-c6f7-46e6-a294-59a9a751edf9" + "8be9e9b8-62c7-4b43-9232-683bd02e0f33" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123209Z:ad950ce0-c6f7-46e6-a294-59a9a751edf9" + "WESTUS2:20220517T050947Z:8be9e9b8-62c7-4b43-9232-683bd02e0f33" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:32:09 GMT" + "Tue, 17 May 2022 05:09:47 GMT" ], "Content-Length": [ - "85" + "84" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"continuousBackupInformation\": {\r\n \"latestRestorableTimestamp\": \"5/12/2022 12:31:44 PM\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"continuousBackupInformation\": {\r\n \"latestRestorableTimestamp\": \"5/17/2022 5:09:22 AM\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup14/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1214/sqlDatabases/TestDB1/containers/TestCollectionInDB1/retrieveContinuousBackupInformation/operationResults/9f2a769d-77b7-43e4-b1f7-59e118187842?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDE0L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMTQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxL3JldHJpZXZlQ29udGludW91c0JhY2t1cEluZm9ybWF0aW9uL29wZXJhdGlvblJlc3VsdHMvOWYyYTc2OWQtNzdiNy00M2U0LWIxZjctNTllMTE4MTg3ODQyP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup52/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1252/sqlDatabases/TestDB1/containers/TestCollectionInDB1/retrieveContinuousBackupInformation/operationResults/b7d42ded-d3a7-4bd4-95ec-7efd7952a595?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDUyL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyNTIvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29sbGVjdGlvbkluREIxL3JldHJpZXZlQ29udGludW91c0JhY2t1cEluZm9ybWF0aW9uL29wZXJhdGlvblJlc3VsdHMvYjdkNDJkZWQtZDNhNy00YmQ0LTk1ZWMtN2VmZDc5NTJhNTk1P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1138420f-29dc-40f2-8b97-5c886f0f14a0" + "7eef33ad-cc5b-4a2f-b44d-c64b12fb1039" ], "User-Agent": [ "FxVersion/4.700.22.21202", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", + "OSVersion/Microsoft.Windows.10.0.22616", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" ] }, @@ -1431,36 +1491,36 @@ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11981" ], "x-ms-request-id": [ - "ec47c7a5-52b0-4ca9-a51f-721ea5230bea" + "274dd28f-9c8f-4946-b446-e5ca4e086962" ], "x-ms-correlation-request-id": [ - "ec47c7a5-52b0-4ca9-a51f-721ea5230bea" + "274dd28f-9c8f-4946-b446-e5ca4e086962" ], "x-ms-routing-request-id": [ - "JIOINDIACENTRAL:20220512T123210Z:ec47c7a5-52b0-4ca9-a51f-721ea5230bea" + "WESTUS2:20220517T050947Z:274dd28f-9c8f-4946-b446-e5ca4e086962" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Thu, 12 May 2022 12:32:09 GMT" + "Tue, 17 May 2022 05:09:47 GMT" ], "Content-Length": [ - "85" + "84" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"continuousBackupInformation\": {\r\n \"latestRestorableTimestamp\": \"5/12/2022 12:31:44 PM\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"continuousBackupInformation\": {\r\n \"latestRestorableTimestamp\": \"5/17/2022 5:09:22 AM\"\r\n }\r\n}", "StatusCode": 200 } ], "Names": {}, "Variables": { - "SubscriptionId": "12053b8f-cab5-4f5c-9c1a-870580142abd" + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" } } \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestUpdateCosmosDBAccountBackupPolicyCmdLet.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestUpdateCosmosDBAccountBackupPolicyCmdLet.json deleted file mode 100644 index 8a353f829ec3..000000000000 --- a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestUpdateCosmosDBAccountBackupPolicyCmdLet.json +++ /dev/null @@ -1,770 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourcegroups/CosmosDBResourceGroup20?api-version=2016-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDIwP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b4aed098-9927-4c08-bd6b-4be592d800cd" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.700.22.21202", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", - "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.57" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "32" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-request-id": [ - "ed82ab80-6685-47a9-b006-f40ef4bb4d92" - ], - "x-ms-correlation-request-id": [ - "ed82ab80-6685-47a9-b006-f40ef4bb4d92" - ], - "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114515Z:ed82ab80-6685-47a9-b006-f40ef4bb4d92" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 12 May 2022 11:45:15 GMT" - ], - "Content-Length": [ - "202" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20\",\r\n \"name\": \"CosmosDBResourceGroup20\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDIwL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMjA/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "dcab0a1d-7f19-4ac5-8644-d803c8f57a3f" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.700.22.21202", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-failure-cause": [ - "gateway" - ], - "x-ms-request-id": [ - "d342bb85-944f-465b-a766-522475f18c95" - ], - "x-ms-correlation-request-id": [ - "d342bb85-944f-465b-a766-522475f18c95" - ], - "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114515Z:d342bb85-944f-465b-a766-522475f18c95" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 12 May 2022 11:45:15 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "246" - ] - }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220' under resource group 'CosmosDBResourceGroup20' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDIwL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMjA/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "dcab0a1d-7f19-4ac5-8644-d803c8f57a3f" - ], - "User-Agent": [ - "FxVersion/4.700.22.21202", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.14.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" - ], - "x-ms-request-id": [ - "197c69de-37ab-46a6-b986-9b8b700eb8c4" - ], - "x-ms-correlation-request-id": [ - "197c69de-37ab-46a6-b986-9b8b700eb8c4" - ], - "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114732Z:197c69de-37ab-46a6-b986-9b8b700eb8c4" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 12 May 2022 11:47:31 GMT" - ], - "Content-Length": [ - "2363" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220\",\r\n \"name\": \"cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T11:46:50.817332Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"c7f62fd3-efd6-4ca3-a4e4-b536680c47e5\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDIwL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMjA/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ed299d83-49db-43d5-a40e-f22a42925831" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.700.22.21202", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.14.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" - ], - "x-ms-request-id": [ - "4bd6142d-64b1-454f-bc85-c787991c6db5" - ], - "x-ms-correlation-request-id": [ - "4bd6142d-64b1-454f-bc85-c787991c6db5" - ], - "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114734Z:4bd6142d-64b1-454f-bc85-c787991c6db5" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 12 May 2022 11:47:34 GMT" - ], - "Content-Length": [ - "2363" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220\",\r\n \"name\": \"cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T11:46:50.817332Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"c7f62fd3-efd6-4ca3-a4e4-b536680c47e5\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDIwL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMjA/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ed299d83-49db-43d5-a40e-f22a42925831" - ], - "User-Agent": [ - "FxVersion/4.700.22.21202", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.14.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" - ], - "x-ms-request-id": [ - "150813ec-d9d6-48d9-b908-8f9a5e6c2933" - ], - "x-ms-correlation-request-id": [ - "150813ec-d9d6-48d9-b908-8f9a5e6c2933" - ], - "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114741Z:150813ec-d9d6-48d9-b908-8f9a5e6c2933" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 12 May 2022 11:47:40 GMT" - ], - "Content-Length": [ - "2363" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220\",\r\n \"name\": \"cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T11:46:50.817332Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"c7f62fd3-efd6-4ca3-a4e4-b536680c47e5\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDIwL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMjA/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "58efed75-9acf-4ff9-adf8-302280c0ec61" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.700.22.21202", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.14.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" - ], - "x-ms-request-id": [ - "732be39d-1701-45f7-b428-0fa0f24ca954" - ], - "x-ms-correlation-request-id": [ - "732be39d-1701-45f7-b428-0fa0f24ca954" - ], - "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114832Z:732be39d-1701-45f7-b428-0fa0f24ca954" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 12 May 2022 11:48:31 GMT" - ], - "Content-Length": [ - "2493" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220\",\r\n \"name\": \"cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T11:46:50.817332Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"c7f62fd3-efd6-4ca3-a4e4-b536680c47e5\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous30Days\",\r\n \"startTime\": \"2022-05-12T11:47:36Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDIwL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMjA/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": false,\r\n \"virtualNetworkRules\": [],\r\n \"enableMultipleWriteLocations\": false,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"networkAclBypassResourceIds\": [],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"Central US\",\r\n \"tags\": {}\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "dcab0a1d-7f19-4ac5-8644-d803c8f57a3f" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.700.22.21202", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "597" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220/operationResults/922f631c-34fd-4769-aab7-b36f11eac148?api-version=2022-02-15-preview" - ], - "x-ms-request-id": [ - "922f631c-34fd-4769-aab7-b36f11eac148" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/922f631c-34fd-4769-aab7-b36f11eac148?api-version=2022-02-15-preview" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.14.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "5c509823-33f5-44da-a54d-91d35566d662" - ], - "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114530Z:5c509823-33f5-44da-a54d-91d35566d662" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 12 May 2022 11:45:30 GMT" - ], - "Content-Length": [ - "2044" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220\",\r\n \"name\": \"cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T11:45:27.3082535Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"c7f62fd3-efd6-4ca3-a4e4-b536680c47e5\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Invalid\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/922f631c-34fd-4769-aab7-b36f11eac148?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvOTIyZjYzMWMtMzRmZC00NzY5LWFhYjctYjM2ZjExZWFjMTQ4P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "dcab0a1d-7f19-4ac5-8644-d803c8f57a3f" - ], - "User-Agent": [ - "FxVersion/4.700.22.21202", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.14.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "8362bb01-5923-44dd-a1f4-5802dfde0547" - ], - "x-ms-correlation-request-id": [ - "8362bb01-5923-44dd-a1f4-5802dfde0547" - ], - "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114601Z:8362bb01-5923-44dd-a1f4-5802dfde0547" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 12 May 2022 11:46:00 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/922f631c-34fd-4769-aab7-b36f11eac148?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvOTIyZjYzMWMtMzRmZC00NzY5LWFhYjctYjM2ZjExZWFjMTQ4P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "dcab0a1d-7f19-4ac5-8644-d803c8f57a3f" - ], - "User-Agent": [ - "FxVersion/4.700.22.21202", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.14.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "2c0e9a34-f154-4743-a54b-01215a9f9f0f" - ], - "x-ms-correlation-request-id": [ - "2c0e9a34-f154-4743-a54b-01215a9f9f0f" - ], - "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114631Z:2c0e9a34-f154-4743-a54b-01215a9f9f0f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 12 May 2022 11:46:30 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/922f631c-34fd-4769-aab7-b36f11eac148?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvOTIyZjYzMWMtMzRmZC00NzY5LWFhYjctYjM2ZjExZWFjMTQ4P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "dcab0a1d-7f19-4ac5-8644-d803c8f57a3f" - ], - "User-Agent": [ - "FxVersion/4.700.22.21202", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.14.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-request-id": [ - "5c0a57ae-161d-4b43-9183-aa9be6b82914" - ], - "x-ms-correlation-request-id": [ - "5c0a57ae-161d-4b43-9183-aa9be6b82914" - ], - "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114701Z:5c0a57ae-161d-4b43-9183-aa9be6b82914" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 12 May 2022 11:47:01 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/922f631c-34fd-4769-aab7-b36f11eac148?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvOTIyZjYzMWMtMzRmZC00NzY5LWFhYjctYjM2ZjExZWFjMTQ4P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "dcab0a1d-7f19-4ac5-8644-d803c8f57a3f" - ], - "User-Agent": [ - "FxVersion/4.700.22.21202", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.14.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" - ], - "x-ms-request-id": [ - "b66bb246-92b4-430f-b961-7d9e663a6ec9" - ], - "x-ms-correlation-request-id": [ - "b66bb246-92b4-430f-b961-7d9e663a6ec9" - ], - "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114732Z:b66bb246-92b4-430f-b961-7d9e663a6ec9" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 12 May 2022 11:47:31 GMT" - ], - "Content-Length": [ - "22" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220?api-version=2022-02-15-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDIwL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzL2Nvc21vc2RiLTEyMjA/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", - "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"location\": \"Central US\",\r\n \"properties\": {\r\n \"locations\": [\r\n {\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n }\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ed299d83-49db-43d5-a40e-f22a42925831" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.700.22.21202", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.22000", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "309" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220/operationResults/b630620a-c63b-44cc-9b86-2cebb6ea6eb6?api-version=2022-02-15-preview" - ], - "x-ms-request-id": [ - "b630620a-c63b-44cc-9b86-2cebb6ea6eb6" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/b630620a-c63b-44cc-9b86-2cebb6ea6eb6?api-version=2022-02-15-preview" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.14.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "cbf4ce26-1258-487f-aa86-1175c1ebe374" - ], - "x-ms-routing-request-id": [ - "CENTRALINDIA:20220512T114740Z:cbf4ce26-1258-487f-aa86-1175c1ebe374" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 12 May 2022 11:47:39 GMT" - ], - "Content-Length": [ - "2363" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/CosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1220\",\r\n \"name\": \"cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-12T11:46:50.817332Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"c7f62fd3-efd6-4ca3-a4e4-b536680c47e5\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "12053b8f-cab5-4f5c-9c1a-870580142abd" - } -} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestUpdateCosmosDBAccountBackupPolicyToContinuous30DaysCmdLets.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestUpdateCosmosDBAccountBackupPolicyToContinuous30DaysCmdLets.json new file mode 100644 index 000000000000..69b4d1f4d436 --- /dev/null +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestUpdateCosmosDBAccountBackupPolicyToContinuous30DaysCmdLets.json @@ -0,0 +1,1154 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourcegroups/PSCosmosDBResourceGroup20?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlZ3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwMjA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cb8676f4-bc02-4f7a-9b49-6f02be5c05fe" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.57" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "883363fb-0bb5-49e6-bf32-89d927ac7ce8" + ], + "x-ms-correlation-request-id": [ + "883363fb-0bb5-49e6-bf32-89d927ac7ce8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T034648Z:883363fb-0bb5-49e6-bf32-89d927ac7ce8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:46:47 GMT" + ], + "Content-Length": [ + "206" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20\",\r\n \"name\": \"PSCosmosDBResourceGroup20\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTIyMD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d9ceedf6-5d36-4d32-85ca-674e927b04a8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "304b2e84-7851-4018-bcfb-60dcf3f9633d" + ], + "x-ms-correlation-request-id": [ + "304b2e84-7851-4018-bcfb-60dcf3f9633d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T034648Z:304b2e84-7851-4018-bcfb-60dcf3f9633d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:46:48 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "251" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220' under resource group 'PSCosmosDBResourceGroup20' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTIyMD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d9ceedf6-5d36-4d32-85ca-674e927b04a8" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "a48f2bde-aecc-4eec-8a6c-5cc37ee60f04" + ], + "x-ms-correlation-request-id": [ + "a48f2bde-aecc-4eec-8a6c-5cc37ee60f04" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T034927Z:a48f2bde-aecc-4eec-8a6c-5cc37ee60f04" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:49:26 GMT" + ], + "Content-Length": [ + "2311" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220\",\r\n \"name\": \"ps-cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T03:48:38.8126796Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"ac045dd8-e6c6-4874-8224-652e785fa3b2\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTIyMD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6967f667-2b6a-46bf-b170-91be2e4451e3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "36b87952-6def-4db8-bf9f-aa4d307a3141" + ], + "x-ms-correlation-request-id": [ + "36b87952-6def-4db8-bf9f-aa4d307a3141" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T034927Z:36b87952-6def-4db8-bf9f-aa4d307a3141" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:49:26 GMT" + ], + "Content-Length": [ + "2311" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220\",\r\n \"name\": \"ps-cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T03:48:38.8126796Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"ac045dd8-e6c6-4874-8224-652e785fa3b2\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTIyMD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6967f667-2b6a-46bf-b170-91be2e4451e3" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "f7bb76ff-39c1-4779-80c0-1d817a526166" + ], + "x-ms-correlation-request-id": [ + "f7bb76ff-39c1-4779-80c0-1d817a526166" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T034929Z:f7bb76ff-39c1-4779-80c0-1d817a526166" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:49:28 GMT" + ], + "Content-Length": [ + "2311" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220\",\r\n \"name\": \"ps-cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T03:48:38.8126796Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"ac045dd8-e6c6-4874-8224-652e785fa3b2\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTIyMD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "53d480f9-3f26-47b4-914c-a6e4781b47b7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "51cc9fd3-00a7-4c9e-a3b6-4c88bb99fe6b" + ], + "x-ms-correlation-request-id": [ + "51cc9fd3-00a7-4c9e-a3b6-4c88bb99fe6b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T035029Z:51cc9fd3-00a7-4c9e-a3b6-4c88bb99fe6b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:50:28 GMT" + ], + "Content-Length": [ + "2441" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220\",\r\n \"name\": \"ps-cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T03:48:38.8126796Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"ac045dd8-e6c6-4874-8224-652e785fa3b2\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous30Days\",\r\n \"startTime\": \"2022-05-17T03:49:27Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTIyMD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "654f6d6b-3e17-42df-a4bb-9e9331c4a1ca" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "448e7d4c-5280-4d3d-a3bd-0448ad7601e9" + ], + "x-ms-correlation-request-id": [ + "448e7d4c-5280-4d3d-a3bd-0448ad7601e9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T035630Z:448e7d4c-5280-4d3d-a3bd-0448ad7601e9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:56:29 GMT" + ], + "Content-Length": [ + "2267" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220\",\r\n \"name\": \"ps-cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T03:48:38.8126796Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"ac045dd8-e6c6-4874-8224-652e785fa3b2\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTIyMD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8ab86569-5526-4e0d-8f6c-8f52d37fc111" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "d0b56a38-abd2-4f86-b146-fbd21dcd9c9a" + ], + "x-ms-correlation-request-id": [ + "d0b56a38-abd2-4f86-b146-fbd21dcd9c9a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T035630Z:d0b56a38-abd2-4f86-b146-fbd21dcd9c9a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:56:29 GMT" + ], + "Content-Length": [ + "2267" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220\",\r\n \"name\": \"ps-cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T03:48:38.8126796Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"ac045dd8-e6c6-4874-8224-652e785fa3b2\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTIyMD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8ab86569-5526-4e0d-8f6c-8f52d37fc111" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "b41e0b66-4bea-4527-8854-138f1e21386a" + ], + "x-ms-correlation-request-id": [ + "b41e0b66-4bea-4527-8854-138f1e21386a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T035634Z:b41e0b66-4bea-4527-8854-138f1e21386a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:56:33 GMT" + ], + "Content-Length": [ + "2267" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220\",\r\n \"name\": \"ps-cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T03:48:38.8126796Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"ac045dd8-e6c6-4874-8224-652e785fa3b2\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTIyMD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1cb82c19-b670-44ff-9d55-56600c05f8cd" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "57f06c18-644f-4253-9598-345171fe4993" + ], + "x-ms-correlation-request-id": [ + "57f06c18-644f-4253-9598-345171fe4993" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T035834Z:57f06c18-644f-4253-9598-345171fe4993" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:58:34 GMT" + ], + "Content-Length": [ + "2266" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220\",\r\n \"name\": \"ps-cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T03:48:38.8126796Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"ac045dd8-e6c6-4874-8224-652e785fa3b2\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous7Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTIyMD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": false,\r\n \"virtualNetworkRules\": [],\r\n \"enableMultipleWriteLocations\": false,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"networkAclBypassResourceIds\": [],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"Central US\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d9ceedf6-5d36-4d32-85ca-674e927b04a8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "597" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220/operationResults/e439c68c-a7aa-499c-a9d8-ce66f5b14d06?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "e439c68c-a7aa-499c-a9d8-ce66f5b14d06" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/e439c68c-a7aa-499c-a9d8-ce66f5b14d06?api-version=2022-02-15-preview" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "b06404a4-2e2b-4d15-9da1-874e8d63e6b8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T034656Z:b06404a4-2e2b-4d15-9da1-874e8d63e6b8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:46:55 GMT" + ], + "Content-Length": [ + "1979" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220\",\r\n \"name\": \"ps-cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T03:46:53.4722757Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"ac045dd8-e6c6-4874-8224-652e785fa3b2\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Invalid\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/e439c68c-a7aa-499c-a9d8-ce66f5b14d06?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvZTQzOWM2OGMtYTdhYS00OTljLWE5ZDgtY2U2NmY1YjE0ZDA2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d9ceedf6-5d36-4d32-85ca-674e927b04a8" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "b562dab3-7068-4881-acac-db8b9825b0bb" + ], + "x-ms-correlation-request-id": [ + "b562dab3-7068-4881-acac-db8b9825b0bb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T034726Z:b562dab3-7068-4881-acac-db8b9825b0bb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:47:26 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/e439c68c-a7aa-499c-a9d8-ce66f5b14d06?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvZTQzOWM2OGMtYTdhYS00OTljLWE5ZDgtY2U2NmY1YjE0ZDA2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d9ceedf6-5d36-4d32-85ca-674e927b04a8" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "4cf3d95b-425b-4d98-9ca9-c89e3e1281f3" + ], + "x-ms-correlation-request-id": [ + "4cf3d95b-425b-4d98-9ca9-c89e3e1281f3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T034756Z:4cf3d95b-425b-4d98-9ca9-c89e3e1281f3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:47:56 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/e439c68c-a7aa-499c-a9d8-ce66f5b14d06?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvZTQzOWM2OGMtYTdhYS00OTljLWE5ZDgtY2U2NmY1YjE0ZDA2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d9ceedf6-5d36-4d32-85ca-674e927b04a8" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "006deadd-b0c9-49f9-9103-b87891d1da44" + ], + "x-ms-correlation-request-id": [ + "006deadd-b0c9-49f9-9103-b87891d1da44" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T034826Z:006deadd-b0c9-49f9-9103-b87891d1da44" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:48:26 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/e439c68c-a7aa-499c-a9d8-ce66f5b14d06?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvZTQzOWM2OGMtYTdhYS00OTljLWE5ZDgtY2U2NmY1YjE0ZDA2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d9ceedf6-5d36-4d32-85ca-674e927b04a8" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "9307527c-191d-4cee-86eb-a8db20cdf8fc" + ], + "x-ms-correlation-request-id": [ + "9307527c-191d-4cee-86eb-a8db20cdf8fc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T034856Z:9307527c-191d-4cee-86eb-a8db20cdf8fc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:48:56 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/e439c68c-a7aa-499c-a9d8-ce66f5b14d06?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvZTQzOWM2OGMtYTdhYS00OTljLWE5ZDgtY2U2NmY1YjE0ZDA2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d9ceedf6-5d36-4d32-85ca-674e927b04a8" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "31589c69-e931-47ab-b707-335b997cc1af" + ], + "x-ms-correlation-request-id": [ + "31589c69-e931-47ab-b707-335b997cc1af" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T034926Z:31589c69-e931-47ab-b707-335b997cc1af" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:49:26 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTIyMD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"location\": \"Central US\",\r\n \"properties\": {\r\n \"locations\": [\r\n {\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {}\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6967f667-2b6a-46bf-b170-91be2e4451e3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "348" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220/operationResults/9a6268c1-fec8-4c20-8e50-06cb4d9e975b?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "9a6268c1-fec8-4c20-8e50-06cb4d9e975b" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/9a6268c1-fec8-4c20-8e50-06cb4d9e975b?api-version=2022-02-15-preview" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "cb54eab1-122b-41ce-a6d5-2f2a5b457bc3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T034929Z:cb54eab1-122b-41ce-a6d5-2f2a5b457bc3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:49:28 GMT" + ], + "Content-Length": [ + "2311" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220\",\r\n \"name\": \"ps-cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T03:48:38.8126796Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"ac045dd8-e6c6-4874-8224-652e785fa3b2\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwMjAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTIyMD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"location\": \"Central US\",\r\n \"properties\": {\r\n \"locations\": [\r\n {\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous7Days\"\r\n }\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8ab86569-5526-4e0d-8f6c-8f52d37fc111" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "391" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220/operationResults/c5aae54d-afb2-4a46-a493-925fff463149?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "c5aae54d-afb2-4a46-a493-925fff463149" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/c5aae54d-afb2-4a46-a493-925fff463149?api-version=2022-02-15-preview" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "8fa738cb-9502-4206-8d40-a3fcd98ce91c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T035634Z:8fa738cb-9502-4206-8d40-a3fcd98ce91c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:56:33 GMT" + ], + "Content-Length": [ + "2267" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup20/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1220\",\r\n \"name\": \"ps-cosmosdb-1220\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T03:48:38.8126796Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"ac045dd8-e6c6-4874-8224-652e785fa3b2\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1220-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1220-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" + } +} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestUpdateCosmosDBAccountBackupPolicyToContinuous7DaysCmdLets.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestUpdateCosmosDBAccountBackupPolicyToContinuous7DaysCmdLets.json new file mode 100644 index 000000000000..ceeca407b670 --- /dev/null +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.RestoreTests/TestUpdateCosmosDBAccountBackupPolicyToContinuous7DaysCmdLets.json @@ -0,0 +1,2108 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourcegroups/PSCosmosDBResourceGroup50?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlZ3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTA/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"Central US\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "67f9437a-18dd-40e5-adae-96d47f03e3a2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.57" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "32" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "3befc415-2583-4e53-ad8b-ca8fec036304" + ], + "x-ms-correlation-request-id": [ + "3befc415-2583-4e53-ad8b-ca8fec036304" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T035910Z:3befc415-2583-4e53-ad8b-ca8fec036304" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:59:09 GMT" + ], + "Content-Length": [ + "206" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50\",\r\n \"name\": \"PSCosmosDBResourceGroup50\",\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6d02d664-0f10-4436-9b01-2745c4fb250e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "84be2c1b-eb9f-43aa-b877-1a96af17278e" + ], + "x-ms-correlation-request-id": [ + "84be2c1b-eb9f-43aa-b877-1a96af17278e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T035910Z:84be2c1b-eb9f-43aa-b877-1a96af17278e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:59:10 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "251" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250' under resource group 'PSCosmosDBResourceGroup50' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6d02d664-0f10-4436-9b01-2745c4fb250e" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "48502d60-7efd-42cd-adc7-ef6fd84af196" + ], + "x-ms-correlation-request-id": [ + "48502d60-7efd-42cd-adc7-ef6fd84af196" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T040117Z:48502d60-7efd-42cd-adc7-ef6fd84af196" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:01:17 GMT" + ], + "Content-Length": [ + "2311" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "684769fd-c2f2-431d-975c-0411a626efb8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "c4a024ad-331c-45ae-9789-9ab1c78e0cc4" + ], + "x-ms-correlation-request-id": [ + "c4a024ad-331c-45ae-9789-9ab1c78e0cc4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T040118Z:c4a024ad-331c-45ae-9789-9ab1c78e0cc4" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:01:17 GMT" + ], + "Content-Length": [ + "2311" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "684769fd-c2f2-431d-975c-0411a626efb8" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "8fad40b3-5418-4cd5-9e37-05c0c61ea74d" + ], + "x-ms-correlation-request-id": [ + "8fad40b3-5418-4cd5-9e37-05c0c61ea74d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T040120Z:8fad40b3-5418-4cd5-9e37-05c0c61ea74d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:01:19 GMT" + ], + "Content-Length": [ + "2311" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "738a0c75-6470-4bde-8f17-92e68de94dfa" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "28a9da37-8cde-43ef-b617-2cd56886bff6" + ], + "x-ms-correlation-request-id": [ + "28a9da37-8cde-43ef-b617-2cd56886bff6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T040220Z:28a9da37-8cde-43ef-b617-2cd56886bff6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:02:20 GMT" + ], + "Content-Length": [ + "2440" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous7Days\",\r\n \"startTime\": \"2022-05-17T04:01:18Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7de4c725-3038-42c1-b253-f99f676fa9bb" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "21654302-722b-40d7-9551-0d3c99217c4f" + ], + "x-ms-correlation-request-id": [ + "21654302-722b-40d7-9551-0d3c99217c4f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T040821Z:21654302-722b-40d7-9551-0d3c99217c4f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:08:21 GMT" + ], + "Content-Length": [ + "2440" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous7Days\",\r\n \"startTime\": \"2022-05-17T04:01:18Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "180e931b-ad80-414f-a1c2-7c666450dacc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "d023df97-cbd4-42b0-bf5a-c19f9cf0c4a1" + ], + "x-ms-correlation-request-id": [ + "d023df97-cbd4-42b0-bf5a-c19f9cf0c4a1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T040922Z:d023df97-cbd4-42b0-bf5a-c19f9cf0c4a1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:09:21 GMT" + ], + "Content-Length": [ + "2440" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous7Days\",\r\n \"startTime\": \"2022-05-17T04:01:18Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5390c28f-6568-4db0-8127-3ec1688931da" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "5d05ec82-fb5f-4700-9fe3-d82cc74c6ba6" + ], + "x-ms-correlation-request-id": [ + "5d05ec82-fb5f-4700-9fe3-d82cc74c6ba6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T041022Z:5d05ec82-fb5f-4700-9fe3-d82cc74c6ba6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:10:21 GMT" + ], + "Content-Length": [ + "2440" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous7Days\",\r\n \"startTime\": \"2022-05-17T04:01:18Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a571b1ff-ce94-4453-aaf7-8f81d7735453" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "eaa9c649-30b4-417f-8f95-382df825602a" + ], + "x-ms-correlation-request-id": [ + "eaa9c649-30b4-417f-8f95-382df825602a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T041123Z:eaa9c649-30b4-417f-8f95-382df825602a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:11:22 GMT" + ], + "Content-Length": [ + "2440" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous7Days\",\r\n \"startTime\": \"2022-05-17T04:01:18Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "dab3017c-27ef-4d73-9169-f007890eb31e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "44848283-8aae-47e0-9fad-8e03b075d05d" + ], + "x-ms-correlation-request-id": [ + "44848283-8aae-47e0-9fad-8e03b075d05d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T041223Z:44848283-8aae-47e0-9fad-8e03b075d05d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:12:22 GMT" + ], + "Content-Length": [ + "2440" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous7Days\",\r\n \"startTime\": \"2022-05-17T04:01:18Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f392b1e1-a13d-47c5-96e5-dd847daf8941" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "832afce3-8faa-4214-b03b-c6c43c3115f6" + ], + "x-ms-correlation-request-id": [ + "832afce3-8faa-4214-b03b-c6c43c3115f6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T041323Z:832afce3-8faa-4214-b03b-c6c43c3115f6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:13:23 GMT" + ], + "Content-Length": [ + "2440" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous7Days\",\r\n \"startTime\": \"2022-05-17T04:01:18Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b8f49632-f76c-4086-a635-985172f17b49" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "76940a3a-c227-4c18-8dfd-8ec54ae1273e" + ], + "x-ms-correlation-request-id": [ + "76940a3a-c227-4c18-8dfd-8ec54ae1273e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T041424Z:76940a3a-c227-4c18-8dfd-8ec54ae1273e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:14:23 GMT" + ], + "Content-Length": [ + "2440" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous7Days\",\r\n \"startTime\": \"2022-05-17T04:01:18Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5ca4cb99-e8d5-4595-949b-28538ba6bf63" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "e9e1f8ac-3c83-4f60-bca1-b9e4516f73ed" + ], + "x-ms-correlation-request-id": [ + "e9e1f8ac-3c83-4f60-bca1-b9e4516f73ed" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T041524Z:e9e1f8ac-3c83-4f60-bca1-b9e4516f73ed" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:15:24 GMT" + ], + "Content-Length": [ + "2440" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous7Days\",\r\n \"startTime\": \"2022-05-17T04:01:18Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "10130ea6-f2a2-4053-80c5-72014d63b405" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "1c6560bb-c74c-4c0b-b4fc-b830b6101ada" + ], + "x-ms-correlation-request-id": [ + "1c6560bb-c74c-4c0b-b4fc-b830b6101ada" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T041624Z:1c6560bb-c74c-4c0b-b4fc-b830b6101ada" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:16:24 GMT" + ], + "Content-Length": [ + "2440" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous7Days\",\r\n \"startTime\": \"2022-05-17T04:01:18Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "89e886b6-46e5-4f65-aba2-70f79b402bcc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "e4bcb643-7a53-442f-b0c9-59795ae3fbde" + ], + "x-ms-correlation-request-id": [ + "e4bcb643-7a53-442f-b0c9-59795ae3fbde" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T041725Z:e4bcb643-7a53-442f-b0c9-59795ae3fbde" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:17:24 GMT" + ], + "Content-Length": [ + "2440" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous7Days\",\r\n \"startTime\": \"2022-05-17T04:01:18Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3fb7f868-61c1-41cb-9472-7e4a5d01d3d1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "b48b4460-8255-4769-95bf-fe89e4fef21a" + ], + "x-ms-correlation-request-id": [ + "b48b4460-8255-4769-95bf-fe89e4fef21a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T041825Z:b48b4460-8255-4769-95bf-fe89e4fef21a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:18:24 GMT" + ], + "Content-Length": [ + "2440" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous7Days\",\r\n \"startTime\": \"2022-05-17T04:01:18Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "83990ac7-f20c-4816-a7b9-822d8342d613" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "f6a8c0f9-15ee-4660-bcc9-e45fc7811821" + ], + "x-ms-correlation-request-id": [ + "f6a8c0f9-15ee-4660-bcc9-e45fc7811821" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T041925Z:f6a8c0f9-15ee-4660-bcc9-e45fc7811821" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:19:25 GMT" + ], + "Content-Length": [ + "2440" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous7Days\",\r\n \"startTime\": \"2022-05-17T04:01:18Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4f9adef8-8407-447d-a5a7-bc940c1af30c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "06698a05-b66c-48b6-95c8-15de0048761e" + ], + "x-ms-correlation-request-id": [ + "06698a05-b66c-48b6-95c8-15de0048761e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T042026Z:06698a05-b66c-48b6-95c8-15de0048761e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:20:25 GMT" + ], + "Content-Length": [ + "2463" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n },\r\n \"migrationState\": {\r\n \"status\": \"InProgress\",\r\n \"targetType\": \"Continuous\",\r\n \"targetTier\": \"Continuous7Days\",\r\n \"startTime\": \"2022-05-17T04:01:18Z\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c6681355-eee3-4d6b-8632-cbc13e2ed09a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-request-id": [ + "65dcbd46-9c41-4db6-a4e0-077a16c93458" + ], + "x-ms-correlation-request-id": [ + "65dcbd46-9c41-4db6-a4e0-077a16c93458" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T042126Z:65dcbd46-9c41-4db6-a4e0-077a16c93458" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:21:25 GMT" + ], + "Content-Length": [ + "2266" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous7Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "511b6a7d-7415-4603-8b17-71651eec7ae2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-request-id": [ + "3864ac16-cde3-49f6-92ef-968172d0a826" + ], + "x-ms-correlation-request-id": [ + "3864ac16-cde3-49f6-92ef-968172d0a826" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T042126Z:3864ac16-cde3-49f6-92ef-968172d0a826" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:21:25 GMT" + ], + "Content-Length": [ + "2266" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous7Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "077ae025-c762-4d17-a886-2b605a756ae1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "8f764822-c418-43ee-94e1-85a94535896c" + ], + "x-ms-correlation-request-id": [ + "8f764822-c418-43ee-94e1-85a94535896c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T042329Z:8f764822-c418-43ee-94e1-85a94535896c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:23:28 GMT" + ], + "Content-Length": [ + "2266" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous7Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1392d3b5-9523-4831-98aa-da66b4a4b717" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "e80d2118-e2fb-4735-b5c9-c302167ddd4a" + ], + "x-ms-correlation-request-id": [ + "e80d2118-e2fb-4735-b5c9-c302167ddd4a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T042329Z:e80d2118-e2fb-4735-b5c9-c302167ddd4a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:23:29 GMT" + ], + "Content-Length": [ + "2266" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous7Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1392d3b5-9523-4831-98aa-da66b4a4b717" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "c462298e-0577-4d86-b0ca-3e6f6c13c7ff" + ], + "x-ms-correlation-request-id": [ + "c462298e-0577-4d86-b0ca-3e6f6c13c7ff" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T042331Z:c462298e-0577-4d86-b0ca-3e6f6c13c7ff" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:23:30 GMT" + ], + "Content-Length": [ + "2266" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous7Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0ea6b189-22df-4295-a596-232b0826b7ef" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "40f91212-5040-4991-a512-8732b37eda96" + ], + "x-ms-correlation-request-id": [ + "40f91212-5040-4991-a512-8732b37eda96" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T042531Z:40f91212-5040-4991-a512-8732b37eda96" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:25:30 GMT" + ], + "Content-Length": [ + "2267" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": false,\r\n \"virtualNetworkRules\": [],\r\n \"enableMultipleWriteLocations\": false,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"networkAclBypassResourceIds\": [],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"Central US\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6d02d664-0f10-4436-9b01-2745c4fb250e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "597" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250/operationResults/c517654b-c811-48bf-8226-aa7008eb6b36?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "c517654b-c811-48bf-8226-aa7008eb6b36" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/c517654b-c811-48bf-8226-aa7008eb6b36?api-version=2022-02-15-preview" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "1253ab4e-dabf-4188-bee4-4b998dcada4d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T035917Z:1253ab4e-dabf-4188-bee4-4b998dcada4d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:59:17 GMT" + ], + "Content-Length": [ + "1979" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T03:59:15.1626575Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Invalid\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/c517654b-c811-48bf-8226-aa7008eb6b36?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvYzUxNzY1NGItYzgxMS00OGJmLTgyMjYtYWE3MDA4ZWI2YjM2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6d02d664-0f10-4436-9b01-2745c4fb250e" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "ffe8af94-3d66-4d1f-a42a-226cc2170180" + ], + "x-ms-correlation-request-id": [ + "ffe8af94-3d66-4d1f-a42a-226cc2170180" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T035947Z:ffe8af94-3d66-4d1f-a42a-226cc2170180" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 03:59:47 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/c517654b-c811-48bf-8226-aa7008eb6b36?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvYzUxNzY1NGItYzgxMS00OGJmLTgyMjYtYWE3MDA4ZWI2YjM2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6d02d664-0f10-4436-9b01-2745c4fb250e" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "20e1dd98-268f-467d-a480-3edbc1c9f714" + ], + "x-ms-correlation-request-id": [ + "20e1dd98-268f-467d-a480-3edbc1c9f714" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T040017Z:20e1dd98-268f-467d-a480-3edbc1c9f714" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:00:17 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/c517654b-c811-48bf-8226-aa7008eb6b36?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvYzUxNzY1NGItYzgxMS00OGJmLTgyMjYtYWE3MDA4ZWI2YjM2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6d02d664-0f10-4436-9b01-2745c4fb250e" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "57d6c1d2-c2d4-4d83-8f70-c01357219648" + ], + "x-ms-correlation-request-id": [ + "57d6c1d2-c2d4-4d83-8f70-c01357219648" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T040047Z:57d6c1d2-c2d4-4d83-8f70-c01357219648" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:00:47 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/c517654b-c811-48bf-8226-aa7008eb6b36?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2VudHJhbHVzL29wZXJhdGlvbnNTdGF0dXMvYzUxNzY1NGItYzgxMS00OGJmLTgyMjYtYWE3MDA4ZWI2YjM2P2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6d02d664-0f10-4436-9b01-2745c4fb250e" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "f6c7c986-2728-487b-a224-fe66e3dc2549" + ], + "x-ms-correlation-request-id": [ + "f6c7c986-2728-487b-a224-fe66e3dc2549" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T040117Z:f6c7c986-2728-487b-a224-fe66e3dc2549" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:01:17 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"location\": \"Central US\",\r\n \"properties\": {\r\n \"locations\": [\r\n {\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous7Days\"\r\n }\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "684769fd-c2f2-431d-975c-0411a626efb8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "391" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250/operationResults/c0cbe554-e91d-4659-bcdd-c76129323eda?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "c0cbe554-e91d-4659-bcdd-c76129323eda" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/c0cbe554-e91d-4659-bcdd-c76129323eda?api-version=2022-02-15-preview" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "12e0aa4e-8cc7-4a42-b7ac-410b390463c3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T040120Z:12e0aa4e-8cc7-4a42-b7ac-410b390463c3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:01:19 GMT" + ], + "Content-Length": [ + "2311" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"location\": \"Central US\",\r\n \"properties\": {\r\n \"locations\": [\r\n {\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "511b6a7d-7415-4603-8b17-71651eec7ae2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "250" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "faee6524-f85f-477f-940a-16365d922148" + ], + "x-ms-correlation-request-id": [ + "faee6524-f85f-477f-940a-16365d922148" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T042128Z:faee6524-f85f-477f-940a-16365d922148" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:21:28 GMT" + ], + "Content-Length": [ + "2266" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous7Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL1BTQ29zbW9zREJSZXNvdXJjZUdyb3VwNTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcHMtY29zbW9zZGItMTI1MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"location\": \"Central US\",\r\n \"properties\": {\r\n \"locations\": [\r\n {\r\n \"locationName\": \"Central US\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous30Days\"\r\n }\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1392d3b5-9523-4831-98aa-da66b4a4b717" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.22616", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.7.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "392" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250/operationResults/24bd67f5-faf5-49cd-8d2a-5b0e4a850b44?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "24bd67f5-faf5-49cd-8d2a-5b0e4a850b44" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/centralus/operationsStatus/24bd67f5-faf5-49cd-8d2a-5b0e4a850b44?api-version=2022-02-15-preview" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "49943a3d-1be6-406c-a233-2a982d8f6596" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20220517T042331Z:49943a3d-1be6-406c-a233-2a982d8f6596" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 17 May 2022 04:23:30 GMT" + ], + "Content-Length": [ + "2266" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/PSCosmosDBResourceGroup50/providers/Microsoft.DocumentDB/databaseAccounts/ps-cosmosdb-1250\",\r\n \"name\": \"ps-cosmosdb-1250\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2022-05-17T04:00:43.2277143Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"schemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aa3321ec-36c3-43d9-92f6-36005494ee39\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://ps-cosmosdb-1250-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ps-cosmosdb-1250-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\",\r\n \"continuousModeProperties\": {\r\n \"tier\": \"Continuous7Days\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [],\r\n \"diagnosticLogSettings\": {\r\n \"enableFullTextQuery\": \"None\"\r\n }\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" + } +} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.SqlOperationsTests/TestSqlContainerAdaptiveRUCmdlets.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.SqlOperationsTests/TestSqlContainerAdaptiveRUCmdlets.json new file mode 100644 index 000000000000..423317d2bc7d --- /dev/null +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.SqlOperationsTests/TestSqlContainerAdaptiveRUCmdlets.json @@ -0,0 +1,1871 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0b1c208a-0acd-4626-857f-fcc1b5416174" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "7a847593-6917-4eaa-a042-4a4fdcc902a9" + ], + "x-ms-correlation-request-id": [ + "7a847593-6917-4eaa-a042-4a4fdcc902a9" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091830Z:7a847593-6917-4eaa-a042-4a4fdcc902a9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:18:29 GMT" + ], + "Content-Length": [ + "6313" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Message: {\\\"code\\\":\\\"NotFound\\\",\\\"message\\\":\\\"Message: {\\\\\\\"Errors\\\\\\\":[\\\\\\\"Resource Not Found. Learn more: https:\\\\\\\\/\\\\\\\\/aka.ms\\\\\\\\/cosmosdb-tsg-not-found\\\\\\\"]}\\\\r\\\\nActivityId: 0b1c208a-0acd-4626-857f-fcc1b5416174, Request URI: /apps/7409314d-caec-4e18-8b1c-efe907fcb5e6/services/a4ff8c57-c2a8-431d-b30e-aa6f38f7d0dd/partitions/42e02189-9ea8-47d2-be06-4c9554c3fad4/replicas/132970080068833152s, RequestStats: \\\\r\\\\nRequestStartTime: 2022-05-19T09:18:30.1625207Z, RequestEndTime: 2022-05-19T09:18:30.1625207Z, Number of regions attempted:1\\\\r\\\\n{\\\\\\\"systemHistory\\\\\\\":[{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:17:32.5424621Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.403,\\\\\\\"memory\\\\\\\":433732572.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0586,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:17:42.5524573Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.371,\\\\\\\"memory\\\\\\\":433752400.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0271,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:17:52.5625169Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.624,\\\\\\\"memory\\\\\\\":433760864.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0193,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:18:02.5724831Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.566,\\\\\\\"memory\\\\\\\":433640548.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.106,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:18:12.5825106Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.956,\\\\\\\"memory\\\\\\\":433482148.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0203,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:18:22.5925428Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.597,\\\\\\\"memory\\\\\\\":433162856.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0203,\\\\\\\"availableThreads\\\\\\\":32761,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}}]}\\\\r\\\\nRequestStart: 2022-05-19T09:18:30.1625207Z; ResponseTime: 2022-05-19T09:18:30.1625207Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.25:11300/apps/7409314d-caec-4e18-8b1c-efe907fcb5e6/services/a4ff8c57-c2a8-431d-b30e-aa6f38f7d0dd/partitions/42e02189-9ea8-47d2-be06-4c9554c3fad4/replicas/132970080068833152s, LSN: 371, GlobalCommittedLsn: 371, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#371, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.227, ActivityId: 0b1c208a-0acd-4626-857f-fcc1b5416174, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:18:30.1625207Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.012},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:18:30.1625327Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0032},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:18:30.1625359Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1147},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:18:30.1626506Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.9625},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:18:30.1636131Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0833},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:18:30.1636964Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-19T09:18:30.1525190Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-19T09:18:30.1525190Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-19T09:18:30.1525190Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":469,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":136,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Database, OperationType: Read\\\\r\\\\nRequestStart: 2022-05-19T09:18:30.1625207Z; ResponseTime: 2022-05-19T09:18:30.1625207Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.19:11000/apps/7409314d-caec-4e18-8b1c-efe907fcb5e6/services/a4ff8c57-c2a8-431d-b30e-aa6f38f7d0dd/partitions/42e02189-9ea8-47d2-be06-4c9554c3fad4/replicas/132970080068833150s, LSN: 371, GlobalCommittedLsn: 371, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#371, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.194, ActivityId: 0b1c208a-0acd-4626-857f-fcc1b5416174, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:18:30.1625207Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0064},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:18:30.1625271Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0037},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:18:30.1625308Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0982},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:18:30.1626290Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.8168},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:18:30.1634458Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0404},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:18:30.1634862Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-19T09:18:30.1525190Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-19T09:18:30.1525190Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-19T09:18:30.1525190Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":469,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":136,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Database, OperationType: Read\\\\r\\\\n, SDK: Microsoft.Azure.Documents.Common/2.14.0\\\"}, Request URI: /dbs/adaptiverudatabase, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0b1c208a-0acd-4626-857f-fcc1b5416174" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "06ceced8-f055-45a8-b0e4-fd91f51e180c" + ], + "x-ms-correlation-request-id": [ + "06ceced8-f055-45a8-b0e4-fd91f51e180c" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091902Z:06ceced8-f055-45a8-b0e4-fd91f51e180c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:19:01 GMT" + ], + "Content-Length": [ + "469" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"adaptiverudatabase\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"adaptiverudatabase\",\r\n \"_rid\": \"61U1AA==\",\r\n \"_self\": \"dbs/61U1AA==/\",\r\n \"_etag\": \"\\\"0000b503-0000-0900-0000-62860b6c0000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1652951916\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"adaptiverudatabase\"\r\n },\r\n \"options\": {}\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0b1c208a-0acd-4626-857f-fcc1b5416174" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "108" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/operationResults/fbf6a902-6152-4701-89b3-c1c69fe741da?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/fbf6a902-6152-4701-89b3-c1c69fe741da?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "fbf6a902-6152-4701-89b3-c1c69fe741da" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "b8315635-d409-416a-b722-eb5d1b7f13d8" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091832Z:b8315635-d409-416a-b722-eb5d1b7f13d8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:18:31 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/fbf6a902-6152-4701-89b3-c1c69fe741da?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2FuYWRhZWFzdC9vcGVyYXRpb25zU3RhdHVzL2ZiZjZhOTAyLTYxNTItNDcwMS04OWIzLWMxYzY5ZmU3NDFkYT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0b1c208a-0acd-4626-857f-fcc1b5416174" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "10818f45-9f95-4de7-988b-862e97c30401" + ], + "x-ms-correlation-request-id": [ + "10818f45-9f95-4de7-988b-862e97c30401" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091902Z:10818f45-9f95-4de7-988b-862e97c30401" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:19:01 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb250YWluZXJzL2FkYXB0aXZlcnVDb250YWluZXI/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bca06642-98a0-4139-a959-c45a7074753e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "a932eaea-1326-41af-89f4-620cf1358167" + ], + "x-ms-correlation-request-id": [ + "a932eaea-1326-41af-89f4-620cf1358167" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091902Z:a932eaea-1326-41af-89f4-620cf1358167" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:19:02 GMT" + ], + "Content-Length": [ + "6345" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Message: {\\\"code\\\":\\\"NotFound\\\",\\\"message\\\":\\\"Message: {\\\\\\\"Errors\\\\\\\":[\\\\\\\"Resource Not Found. Learn more: https:\\\\\\\\/\\\\\\\\/aka.ms\\\\\\\\/cosmosdb-tsg-not-found\\\\\\\"]}\\\\r\\\\nActivityId: bca06642-98a0-4139-a959-c45a7074753e, Request URI: /apps/7409314d-caec-4e18-8b1c-efe907fcb5e6/services/a4ff8c57-c2a8-431d-b30e-aa6f38f7d0dd/partitions/42e02189-9ea8-47d2-be06-4c9554c3fad4/replicas/132970080068833152s, RequestStats: \\\\r\\\\nRequestStartTime: 2022-05-19T09:19:02.8025457Z, RequestEndTime: 2022-05-19T09:19:02.8025457Z, Number of regions attempted:1\\\\r\\\\n{\\\\\\\"systemHistory\\\\\\\":[{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:18:12.5825106Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.956,\\\\\\\"memory\\\\\\\":433482148.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0203,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:18:22.5925428Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.597,\\\\\\\"memory\\\\\\\":433162856.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0203,\\\\\\\"availableThreads\\\\\\\":32761,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:18:32.6025369Z\\\\\\\",\\\\\\\"cpu\\\\\\\":1.604,\\\\\\\"memory\\\\\\\":433708784.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0222,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:18:42.6125191Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.519,\\\\\\\"memory\\\\\\\":433688528.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0262,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:18:52.6225486Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.772,\\\\\\\"memory\\\\\\\":433660148.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0377,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:19:02.6325287Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.621,\\\\\\\"memory\\\\\\\":433531008.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0256,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}}]}\\\\r\\\\nRequestStart: 2022-05-19T09:19:02.8025457Z; ResponseTime: 2022-05-19T09:19:02.8025457Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.25:11300/apps/7409314d-caec-4e18-8b1c-efe907fcb5e6/services/a4ff8c57-c2a8-431d-b30e-aa6f38f7d0dd/partitions/42e02189-9ea8-47d2-be06-4c9554c3fad4/replicas/132970080068833152s, LSN: 372, GlobalCommittedLsn: 372, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#372, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.378, ActivityId: bca06642-98a0-4139-a959-c45a7074753e, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:19:02.8025457Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0194},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:19:02.8025651Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0029},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:19:02.8025680Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.2835},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:19:02.8028515Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 1.0525},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:19:02.8039040Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0544},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:19:02.8039584Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-19T09:19:02.5325792Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-19T09:19:02.5325792Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-19T09:19:02.5325792Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":503,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":136,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Collection, OperationType: Read\\\\r\\\\nRequestStart: 2022-05-19T09:19:02.8025457Z; ResponseTime: 2022-05-19T09:19:02.8025457Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.19:11000/apps/7409314d-caec-4e18-8b1c-efe907fcb5e6/services/a4ff8c57-c2a8-431d-b30e-aa6f38f7d0dd/partitions/42e02189-9ea8-47d2-be06-4c9554c3fad4/replicas/132970080068833150s, LSN: 372, GlobalCommittedLsn: 372, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#372, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.234, ActivityId: bca06642-98a0-4139-a959-c45a7074753e, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:19:02.8025457Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0226},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:19:02.8025683Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0017},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:19:02.8025700Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1733},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:19:02.8027433Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.7856},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:19:02.8035289Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0898},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:19:02.8036187Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-19T09:19:02.5325792Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-19T09:19:02.5325792Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-19T09:19:02.5325792Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":503,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":136,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Collection, OperationType: Read\\\\r\\\\n, SDK: Microsoft.Azure.Documents.Common/2.14.0\\\"}, Request URI: /dbs/adaptiverudatabase/colls/adaptiveruContainer, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb250YWluZXJzL2FkYXB0aXZlcnVDb250YWluZXI/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bca06642-98a0-4139-a959-c45a7074753e" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "10fea0c8-90b7-495d-8bd3-9b83b781aa29" + ], + "x-ms-correlation-request-id": [ + "10fea0c8-90b7-495d-8bd3-9b83b781aa29" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091933Z:10fea0c8-90b7-495d-8bd3-9b83b781aa29" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:19:32 GMT" + ], + "Content-Length": [ + "1393" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers\",\r\n \"name\": \"adaptiveruContainer\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"adaptiveruContainer\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"61U1AL8CKVA=\",\r\n \"_ts\": 1652951954,\r\n \"_self\": \"dbs/61U1AA==/colls/61U1AL8CKVA=/\",\r\n \"_etag\": \"\\\"0000b703-0000-0900-0000-62860b920000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\",\r\n \"statistics\": [\r\n {\r\n \"id\": \"3\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n },\r\n {\r\n \"id\": \"1\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n },\r\n {\r\n \"id\": \"0\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n },\r\n {\r\n \"id\": \"2\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb250YWluZXJzL2FkYXB0aXZlcnVDb250YWluZXI/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"adaptiveruContainer\",\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n }\r\n },\r\n \"options\": {\r\n \"throughput\": 24000\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bca06642-98a0-4139-a959-c45a7074753e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "255" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/operationResults/934ce048-6a26-4956-9958-99a4eb0e105e?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/934ce048-6a26-4956-9958-99a4eb0e105e?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "934ce048-6a26-4956-9958-99a4eb0e105e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "e509a4bd-6b50-4ac6-bd06-29f190f6d82c" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091903Z:e509a4bd-6b50-4ac6-bd06-29f190f6d82c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:19:02 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/934ce048-6a26-4956-9958-99a4eb0e105e?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2FuYWRhZWFzdC9vcGVyYXRpb25zU3RhdHVzLzkzNGNlMDQ4LTZhMjYtNDk1Ni05OTU4LTk5YTRlYjBlMTA1ZT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bca06642-98a0-4139-a959-c45a7074753e" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "ad195d34-7337-4759-a046-121d09f68e75" + ], + "x-ms-correlation-request-id": [ + "ad195d34-7337-4759-a046-121d09f68e75" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091933Z:ad195d34-7337-4759-a046-121d09f68e75" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:19:32 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb250YWluZXJzL2FkYXB0aXZlcnVDb250YWluZXIvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 2000\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0e577660-4903-48cd-b9c7-c80f7445f6a0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/operationResults/a192cab7-2b82-4bf3-823e-1e403aaca986?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/a192cab7-2b82-4bf3-823e-1e403aaca986?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "a192cab7-2b82-4bf3-823e-1e403aaca986" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "7bdd34c2-4b01-46ea-ae4f-c5f0b2b3c7c5" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091934Z:7bdd34c2-4b01-46ea-ae4f-c5f0b2b3c7c5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:19:33 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/a192cab7-2b82-4bf3-823e-1e403aaca986?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2FuYWRhZWFzdC9vcGVyYXRpb25zU3RhdHVzL2ExOTJjYWI3LTJiODItNGJmMy04MjNlLTFlNDAzYWFjYTk4Nj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0e577660-4903-48cd-b9c7-c80f7445f6a0" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "8704b795-7a2d-458e-b434-490a127cd090" + ], + "x-ms-correlation-request-id": [ + "8704b795-7a2d-458e-b434-490a127cd090" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092004Z:8704b795-7a2d-458e-b434-490a127cd090" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:20:04 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb250YWluZXJzL2FkYXB0aXZlcnVDb250YWluZXIvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0e577660-4903-48cd-b9c7-c80f7445f6a0" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "9fdacbc7-7a56-4e75-8a25-3ab3fc1066e8" + ], + "x-ms-correlation-request-id": [ + "9fdacbc7-7a56-4e75-8a25-3ab3fc1066e8" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092005Z:9fdacbc7-7a56-4e75-8a25-3ab3fc1066e8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:20:04 GMT" + ], + "Content-Length": [ + "415" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings\",\r\n \"name\": \"CHFN\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 2000,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb250YWluZXJzL2FkYXB0aXZlcnVDb250YWluZXIvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQvcmV0cmlldmVUaHJvdWdocHV0RGlzdHJpYnV0aW9uP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"physicalPartitionIds\": [\r\n {\r\n \"id\": \"-1\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a8ce3558-795c-4a28-a946-61ce08d221dc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "140" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution/operationResults/a77a46e7-2c4c-4f65-a652-818014d151b0?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/a77a46e7-2c4c-4f65-a652-818014d151b0?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "a77a46e7-2c4c-4f65-a652-818014d151b0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "c99288c0-6e5e-47e5-b058-6ccdea89502a" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092008Z:c99288c0-6e5e-47e5-b058-6ccdea89502a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:20:07 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb250YWluZXJzL2FkYXB0aXZlcnVDb250YWluZXIvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQvcmV0cmlldmVUaHJvdWdocHV0RGlzdHJpYnV0aW9uP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"physicalPartitionIds\": [\r\n {\r\n \"id\": \"0\"\r\n },\r\n {\r\n \"id\": \"1\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0b88cf3a-1aed-46ac-a569-30743fd51e6d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "183" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution/operationResults/e57b6c6a-f63d-4697-a3cc-1d3539f7a390?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/e57b6c6a-f63d-4697-a3cc-1d3539f7a390?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "e57b6c6a-f63d-4697-a3cc-1d3539f7a390" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "9dd38156-5e3e-4735-8a87-11eb402ac83f" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092141Z:9dd38156-5e3e-4735-8a87-11eb402ac83f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:21:41 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/a77a46e7-2c4c-4f65-a652-818014d151b0?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2FuYWRhZWFzdC9vcGVyYXRpb25zU3RhdHVzL2E3N2E0NmU3LTJjNGMtNGY2NS1hNjUyLTgxODAxNGQxNTFiMD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a8ce3558-795c-4a28-a946-61ce08d221dc" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "2c90fc62-8c19-4b90-b34f-723bc5d353c6" + ], + "x-ms-correlation-request-id": [ + "2c90fc62-8c19-4b90-b34f-723bc5d353c6" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092038Z:2c90fc62-8c19-4b90-b34f-723bc5d353c6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:20:37 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution/operationResults/a77a46e7-2c4c-4f65-a652-818014d151b0?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb250YWluZXJzL2FkYXB0aXZlcnVDb250YWluZXIvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQvcmV0cmlldmVUaHJvdWdocHV0RGlzdHJpYnV0aW9uL29wZXJhdGlvblJlc3VsdHMvYTc3YTQ2ZTctMmM0Yy00ZjY1LWE2NTItODE4MDE0ZDE1MWIwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a8ce3558-795c-4a28-a946-61ce08d221dc" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "c49eec50-2ee0-4c61-9e9a-ff159300c197" + ], + "x-ms-correlation-request-id": [ + "c49eec50-2ee0-4c61-9e9a-ff159300c197" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092038Z:c49eec50-2ee0-4c61-9e9a-ff159300c197" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:20:37 GMT" + ], + "Content-Length": [ + "589" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/retrieveThroughputDistribution\",\r\n \"name\": \"CHFN\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"physicalPartitionThroughputInfo\": [\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"2\"\r\n },\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"0\"\r\n },\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"3\"\r\n },\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"1\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/redistributeThroughput?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb250YWluZXJzL2FkYXB0aXZlcnVDb250YWluZXIvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQvcmVkaXN0cmlidXRlVGhyb3VnaHB1dD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughputPolicy\": \"Custom\",\r\n \"targetPhysicalPartitionThroughputInfo\": [\r\n {\r\n \"id\": \"2\",\r\n \"throughput\": 600.0\r\n },\r\n {\r\n \"id\": \"3\",\r\n \"throughput\": 600.0\r\n }\r\n ],\r\n \"sourcePhysicalPartitionThroughputInfo\": [\r\n {\r\n \"id\": \"0\",\r\n \"throughput\": 400.0\r\n },\r\n {\r\n \"id\": \"1\",\r\n \"throughput\": 400.0\r\n }\r\n ]\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "531fbbbc-d7ed-4b84-8ad6-1f329dec5c87" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "512" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/redistributeThroughput/operationResults/bd82faf4-31f5-461c-9abf-4aecc3158b42?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/bd82faf4-31f5-461c-9abf-4aecc3158b42?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "bd82faf4-31f5-461c-9abf-4aecc3158b42" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "f372db1f-40af-4660-bfda-9ce65f96bcb8" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092039Z:f372db1f-40af-4660-bfda-9ce65f96bcb8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:20:38 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/redistributeThroughput?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb250YWluZXJzL2FkYXB0aXZlcnVDb250YWluZXIvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQvcmVkaXN0cmlidXRlVGhyb3VnaHB1dD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughputPolicy\": \"Equal\",\r\n \"targetPhysicalPartitionThroughputInfo\": [],\r\n \"sourcePhysicalPartitionThroughputInfo\": []\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c9a2af60-dea0-4578-a708-0d9d47b4b567" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "193" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/redistributeThroughput/operationResults/b703e975-95d2-46ad-814a-f9e193d1e34f?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/b703e975-95d2-46ad-814a-f9e193d1e34f?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "b703e975-95d2-46ad-814a-f9e193d1e34f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "163315d1-d4d9-44eb-81ea-1af842965691" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092110Z:163315d1-d4d9-44eb-81ea-1af842965691" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:21:09 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/bd82faf4-31f5-461c-9abf-4aecc3158b42?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2FuYWRhZWFzdC9vcGVyYXRpb25zU3RhdHVzL2JkODJmYWY0LTMxZjUtNDYxYy05YWJmLTRhZWNjMzE1OGI0Mj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "531fbbbc-d7ed-4b84-8ad6-1f329dec5c87" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "229d67f0-7fce-4e60-ba88-b1263c56d247" + ], + "x-ms-correlation-request-id": [ + "229d67f0-7fce-4e60-ba88-b1263c56d247" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092109Z:229d67f0-7fce-4e60-ba88-b1263c56d247" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:21:08 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/redistributeThroughput/operationResults/bd82faf4-31f5-461c-9abf-4aecc3158b42?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb250YWluZXJzL2FkYXB0aXZlcnVDb250YWluZXIvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQvcmVkaXN0cmlidXRlVGhyb3VnaHB1dC9vcGVyYXRpb25SZXN1bHRzL2JkODJmYWY0LTMxZjUtNDYxYy05YWJmLTRhZWNjMzE1OGI0Mj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "531fbbbc-d7ed-4b84-8ad6-1f329dec5c87" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "09a0c6cf-fc36-4139-8e7c-8667da7eb89d" + ], + "x-ms-correlation-request-id": [ + "09a0c6cf-fc36-4139-8e7c-8667da7eb89d" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092109Z:09a0c6cf-fc36-4139-8e7c-8667da7eb89d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:21:08 GMT" + ], + "Content-Length": [ + "573" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/redistributeThroughput\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/redistributeThroughput\",\r\n \"name\": \"CHFN\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"physicalPartitionThroughputInfo\": [\r\n {\r\n \"throughput\": 600.0,\r\n \"id\": \"2\"\r\n },\r\n {\r\n \"throughput\": 400.0,\r\n \"id\": \"0\"\r\n },\r\n {\r\n \"throughput\": 600.0,\r\n \"id\": \"3\"\r\n },\r\n {\r\n \"throughput\": 400.0,\r\n \"id\": \"1\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/b703e975-95d2-46ad-814a-f9e193d1e34f?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2FuYWRhZWFzdC9vcGVyYXRpb25zU3RhdHVzL2I3MDNlOTc1LTk1ZDItNDZhZC04MTRhLWY5ZTE5M2QxZTM0Zj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c9a2af60-dea0-4578-a708-0d9d47b4b567" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "f3f6ffdc-1f75-4bcc-8db7-7d541f166aa1" + ], + "x-ms-correlation-request-id": [ + "f3f6ffdc-1f75-4bcc-8db7-7d541f166aa1" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092140Z:f3f6ffdc-1f75-4bcc-8db7-7d541f166aa1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:21:40 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/redistributeThroughput/operationResults/b703e975-95d2-46ad-814a-f9e193d1e34f?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb250YWluZXJzL2FkYXB0aXZlcnVDb250YWluZXIvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQvcmVkaXN0cmlidXRlVGhyb3VnaHB1dC9vcGVyYXRpb25SZXN1bHRzL2I3MDNlOTc1LTk1ZDItNDZhZC04MTRhLWY5ZTE5M2QxZTM0Zj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c9a2af60-dea0-4578-a708-0d9d47b4b567" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-request-id": [ + "7cffa940-da6c-43b6-a7bb-4caf0d1af47d" + ], + "x-ms-correlation-request-id": [ + "7cffa940-da6c-43b6-a7bb-4caf0d1af47d" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092141Z:7cffa940-da6c-43b6-a7bb-4caf0d1af47d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:21:40 GMT" + ], + "Content-Length": [ + "573" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/redistributeThroughput\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/redistributeThroughput\",\r\n \"name\": \"CHFN\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"physicalPartitionThroughputInfo\": [\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"2\"\r\n },\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"0\"\r\n },\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"3\"\r\n },\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"1\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/e57b6c6a-f63d-4697-a3cc-1d3539f7a390?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2FuYWRhZWFzdC9vcGVyYXRpb25zU3RhdHVzL2U1N2I2YzZhLWY2M2QtNDY5Ny1hM2NjLTFkMzUzOWY3YTM5MD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0b88cf3a-1aed-46ac-a569-30743fd51e6d" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-request-id": [ + "14907c94-3f54-4f88-8d98-05aa63ce72dd" + ], + "x-ms-correlation-request-id": [ + "14907c94-3f54-4f88-8d98-05aa63ce72dd" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092211Z:14907c94-3f54-4f88-8d98-05aa63ce72dd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:22:11 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution/operationResults/e57b6c6a-f63d-4697-a3cc-1d3539f7a390?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb250YWluZXJzL2FkYXB0aXZlcnVDb250YWluZXIvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQvcmV0cmlldmVUaHJvdWdocHV0RGlzdHJpYnV0aW9uL29wZXJhdGlvblJlc3VsdHMvZTU3YjZjNmEtZjYzZC00Njk3LWEzY2MtMWQzNTM5ZjdhMzkwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0b88cf3a-1aed-46ac-a569-30743fd51e6d" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "4d30f1d5-0423-4146-917d-ea29d1486ac1" + ], + "x-ms-correlation-request-id": [ + "4d30f1d5-0423-4146-917d-ea29d1486ac1" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092212Z:4d30f1d5-0423-4146-917d-ea29d1486ac1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:22:11 GMT" + ], + "Content-Length": [ + "529" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/throughputSettings/default/retrieveThroughputDistribution\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/retrieveThroughputDistribution\",\r\n \"name\": \"CHFN\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"physicalPartitionThroughputInfo\": [\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"0\"\r\n },\r\n {\r\n \"throughput\": 500.0,\r\n \"id\": \"1\"\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb250YWluZXJzL2FkYXB0aXZlcnVDb250YWluZXI/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "150f6a91-d99c-401d-a966-05672e3bb9c8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/operationResults/b5fe0698-d0ba-4856-9b5d-f3eb9bb27991?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/b5fe0698-d0ba-4856-9b5d-f3eb9bb27991?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "b5fe0698-d0ba-4856-9b5d-f3eb9bb27991" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "bbcb277f-0d1c-47c9-a2eb-58a49ddb26d0" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092212Z:bbcb277f-0d1c-47c9-a2eb-58a49ddb26d0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:22:12 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/b5fe0698-d0ba-4856-9b5d-f3eb9bb27991?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2FuYWRhZWFzdC9vcGVyYXRpb25zU3RhdHVzL2I1ZmUwNjk4LWQwYmEtNDg1Ni05YjVkLWYzZWI5YmIyNzk5MT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "150f6a91-d99c-401d-a966-05672e3bb9c8" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "3c22158b-38a2-45f1-9225-ebdb4d8f2e48" + ], + "x-ms-correlation-request-id": [ + "3c22158b-38a2-45f1-9225-ebdb4d8f2e48" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092242Z:3c22158b-38a2-45f1-9225-ebdb4d8f2e48" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:22:42 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/containers/adaptiveruContainer/operationResults/b5fe0698-d0ba-4856-9b5d-f3eb9bb27991?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9jb250YWluZXJzL2FkYXB0aXZlcnVDb250YWluZXIvb3BlcmF0aW9uUmVzdWx0cy9iNWZlMDY5OC1kMGJhLTQ4NTYtOWI1ZC1mM2ViOWJiMjc5OTE/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "150f6a91-d99c-401d-a966-05672e3bb9c8" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "67280952-d0ef-4b03-be6c-f36a89e21546" + ], + "x-ms-correlation-request-id": [ + "67280952-d0ef-4b03-be6c-f36a89e21546" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092243Z:67280952-d0ef-4b03-be6c-f36a89e21546" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:22:43 GMT" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f556cda4-1f5b-40df-8707-c8297d65b2b7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/operationResults/6700db56-2a73-4974-8923-9007b9dae18b?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/6700db56-2a73-4974-8923-9007b9dae18b?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "6700db56-2a73-4974-8923-9007b9dae18b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "cd31cb5e-0eef-475b-b486-621495147ae2" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092246Z:cd31cb5e-0eef-475b-b486-621495147ae2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:22:45 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/6700db56-2a73-4974-8923-9007b9dae18b?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2FuYWRhZWFzdC9vcGVyYXRpb25zU3RhdHVzLzY3MDBkYjU2LTJhNzMtNDk3NC04OTIzLTkwMDdiOWRhZTE4Yj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f556cda4-1f5b-40df-8707-c8297d65b2b7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "358c0352-ac9b-41f7-b4f7-833e90a5d18b" + ], + "x-ms-correlation-request-id": [ + "358c0352-ac9b-41f7-b4f7-833e90a5d18b" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092316Z:358c0352-ac9b-41f7-b4f7-833e90a5d18b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:23:15 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/adaptiverudatabase/operationResults/6700db56-2a73-4974-8923-9007b9dae18b?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL2FkYXB0aXZlcnVkYXRhYmFzZS9vcGVyYXRpb25SZXN1bHRzLzY3MDBkYjU2LTJhNzMtNDk3NC04OTIzLTkwMDdiOWRhZTE4Yj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f556cda4-1f5b-40df-8707-c8297d65b2b7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "4ee3fc8d-78c8-466f-ae20-29b35cbd2091" + ], + "x-ms-correlation-request-id": [ + "4ee3fc8d-78c8-466f-ae20-29b35cbd2091" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T092316Z:4ee3fc8d-78c8-466f-ae20-29b35cbd2091" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:23:15 GMT" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "12053b8f-cab5-4f5c-9c1a-870580142abd" + } +} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.SqlOperationsTests/TestSqlContainerMergeCmdlet.json b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.SqlOperationsTests/TestSqlContainerMergeCmdlet.json new file mode 100644 index 000000000000..f34ddeb10630 --- /dev/null +++ b/src/CosmosDB/CosmosDB.Test/SessionRecords/Microsoft.Azure.Commands.CosmosDB.Test.ScenarioTests.ScenarioTest.SqlOperationsTests/TestSqlContainerMergeCmdlet.json @@ -0,0 +1,1787 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL21lcmdlZGF0YWJhc2U/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e615ba3c-586d-4b94-a257-440cd1040f95" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "bc12a9c8-382a-4b98-9e63-b4767742bc03" + ], + "x-ms-correlation-request-id": [ + "bc12a9c8-382a-4b98-9e63-b4767742bc03" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091111Z:bc12a9c8-382a-4b98-9e63-b4767742bc03" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:11:11 GMT" + ], + "Content-Length": [ + "6307" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Message: {\\\"code\\\":\\\"NotFound\\\",\\\"message\\\":\\\"Message: {\\\\\\\"Errors\\\\\\\":[\\\\\\\"Resource Not Found. Learn more: https:\\\\\\\\/\\\\\\\\/aka.ms\\\\\\\\/cosmosdb-tsg-not-found\\\\\\\"]}\\\\r\\\\nActivityId: e615ba3c-586d-4b94-a257-440cd1040f95, Request URI: /apps/7409314d-caec-4e18-8b1c-efe907fcb5e6/services/a4ff8c57-c2a8-431d-b30e-aa6f38f7d0dd/partitions/42e02189-9ea8-47d2-be06-4c9554c3fad4/replicas/132970080068833152s, RequestStats: \\\\r\\\\nRequestStartTime: 2022-05-19T09:11:11.7530494Z, RequestEndTime: 2022-05-19T09:11:11.7530494Z, Number of regions attempted:1\\\\r\\\\n{\\\\\\\"systemHistory\\\\\\\":[{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:10:13.8628377Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.721,\\\\\\\"memory\\\\\\\":431102812.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.025,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:10:23.8728939Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.774,\\\\\\\"memory\\\\\\\":431095948.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0198,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:10:33.8829453Z\\\\\\\",\\\\\\\"cpu\\\\\\\":1.038,\\\\\\\"memory\\\\\\\":430993640.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0456,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:10:43.8929760Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.433,\\\\\\\"memory\\\\\\\":430999288.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0586,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:10:53.9029744Z\\\\\\\",\\\\\\\"cpu\\\\\\\":2.457,\\\\\\\"memory\\\\\\\":431645324.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0169,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:11:03.9130390Z\\\\\\\",\\\\\\\"cpu\\\\\\\":2.185,\\\\\\\"memory\\\\\\\":431510040.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0353,\\\\\\\"availableThreads\\\\\\\":32757,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}}]}\\\\r\\\\nRequestStart: 2022-05-19T09:11:11.7530494Z; ResponseTime: 2022-05-19T09:11:11.7530494Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.25:11300/apps/7409314d-caec-4e18-8b1c-efe907fcb5e6/services/a4ff8c57-c2a8-431d-b30e-aa6f38f7d0dd/partitions/42e02189-9ea8-47d2-be06-4c9554c3fad4/replicas/132970080068833152s, LSN: 355, GlobalCommittedLsn: 355, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#355, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.206, ActivityId: e615ba3c-586d-4b94-a257-440cd1040f95, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:11.7530494Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0102},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:11.7530596Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0028},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:11.7530624Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1866},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:11.7532490Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.6799},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:11.7539289Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0354},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:11.7539643Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-19T09:11:11.7530494Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-19T09:11:11.7530494Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-19T09:11:11.7530494Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":458,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":136,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Database, OperationType: Read\\\\r\\\\nRequestStart: 2022-05-19T09:11:11.7530494Z; ResponseTime: 2022-05-19T09:11:11.7530494Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.23:11300/apps/7409314d-caec-4e18-8b1c-efe907fcb5e6/services/a4ff8c57-c2a8-431d-b30e-aa6f38f7d0dd/partitions/42e02189-9ea8-47d2-be06-4c9554c3fad4/replicas/132970080068833151s, LSN: 355, GlobalCommittedLsn: 355, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#355, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.278, ActivityId: e615ba3c-586d-4b94-a257-440cd1040f95, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:11.7530494Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0064},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:11.7530558Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.002},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:11.7530578Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.115},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:11.7531728Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.8276},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:11.7540004Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.1329},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:11.7541333Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-19T09:11:11.7430414Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-19T09:11:11.7430414Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-19T09:11:11.7530494Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":458,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":136,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Database, OperationType: Read\\\\r\\\\n, SDK: Microsoft.Azure.Documents.Common/2.14.0\\\"}, Request URI: /dbs/mergedatabase, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL21lcmdlZGF0YWJhc2U/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e615ba3c-586d-4b94-a257-440cd1040f95" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "297e0ebb-7ef8-45c3-ab7f-a9ce50937de7" + ], + "x-ms-correlation-request-id": [ + "297e0ebb-7ef8-45c3-ab7f-a9ce50937de7" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091143Z:297e0ebb-7ef8-45c3-ab7f-a9ce50937de7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:11:43 GMT" + ], + "Content-Length": [ + "454" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"mergedatabase\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"mergedatabase\",\r\n \"_rid\": \"O+16AA==\",\r\n \"_self\": \"dbs/O+16AA==/\",\r\n \"_etag\": \"\\\"00009f03-0000-0900-0000-628609b80000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1652951480\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL21lcmdlZGF0YWJhc2U/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"mergedatabase\"\r\n },\r\n \"options\": {}\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e615ba3c-586d-4b94-a257-440cd1040f95" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "103" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase/operationResults/47f913c0-b012-44ca-ab12-32feb7f208bc?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/47f913c0-b012-44ca-ab12-32feb7f208bc?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "47f913c0-b012-44ca-ab12-32feb7f208bc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "9b790ff4-bcb3-4ad6-9908-9ccd0c85dea8" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091113Z:9b790ff4-bcb3-4ad6-9908-9ccd0c85dea8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:11:13 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/47f913c0-b012-44ca-ab12-32feb7f208bc?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2FuYWRhZWFzdC9vcGVyYXRpb25zU3RhdHVzLzQ3ZjkxM2MwLWIwMTItNDRjYS1hYjEyLTMyZmViN2YyMDhiYz9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e615ba3c-586d-4b94-a257-440cd1040f95" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "7d19ac0a-6f51-4270-b3a5-4e77f54058b3" + ], + "x-ms-correlation-request-id": [ + "7d19ac0a-6f51-4270-b3a5-4e77f54058b3" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091143Z:7d19ac0a-6f51-4270-b3a5-4e77f54058b3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:11:42 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase/containers/mergecontainer?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL21lcmdlZGF0YWJhc2UvY29udGFpbmVycy9tZXJnZWNvbnRhaW5lcj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b689b97d-6263-46e7-bd55-c81c0fa6af17" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "ed910e5e-5cca-41b8-af76-e7b3eb81a70b" + ], + "x-ms-correlation-request-id": [ + "ed910e5e-5cca-41b8-af76-e7b3eb81a70b" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091144Z:ed910e5e-5cca-41b8-af76-e7b3eb81a70b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:11:43 GMT" + ], + "Content-Length": [ + "6332" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Message: {\\\"code\\\":\\\"NotFound\\\",\\\"message\\\":\\\"Message: {\\\\\\\"Errors\\\\\\\":[\\\\\\\"Resource Not Found. Learn more: https:\\\\\\\\/\\\\\\\\/aka.ms\\\\\\\\/cosmosdb-tsg-not-found\\\\\\\"]}\\\\r\\\\nActivityId: b689b97d-6263-46e7-bd55-c81c0fa6af17, Request URI: /apps/7409314d-caec-4e18-8b1c-efe907fcb5e6/services/a4ff8c57-c2a8-431d-b30e-aa6f38f7d0dd/partitions/42e02189-9ea8-47d2-be06-4c9554c3fad4/replicas/132970080068833152s, RequestStats: \\\\r\\\\nRequestStartTime: 2022-05-19T09:11:44.0331258Z, RequestEndTime: 2022-05-19T09:11:44.0331258Z, Number of regions attempted:1\\\\r\\\\n{\\\\\\\"systemHistory\\\\\\\":[{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:10:53.9029744Z\\\\\\\",\\\\\\\"cpu\\\\\\\":2.457,\\\\\\\"memory\\\\\\\":431645324.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0169,\\\\\\\"availableThreads\\\\\\\":32763,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:11:03.9130390Z\\\\\\\",\\\\\\\"cpu\\\\\\\":2.185,\\\\\\\"memory\\\\\\\":431510040.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0353,\\\\\\\"availableThreads\\\\\\\":32757,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:11:13.9230127Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.726,\\\\\\\"memory\\\\\\\":431504012.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0246,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:11:23.9330197Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.691,\\\\\\\"memory\\\\\\\":431397072.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0113,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:11:33.9432023Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.741,\\\\\\\"memory\\\\\\\":431388908.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0256,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}},{\\\\\\\"dateUtc\\\\\\\":\\\\\\\"2022-05-19T09:11:43.9631107Z\\\\\\\",\\\\\\\"cpu\\\\\\\":0.608,\\\\\\\"memory\\\\\\\":431295604.000,\\\\\\\"threadInfo\\\\\\\":{\\\\\\\"isThreadStarving\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"threadWaitIntervalInMs\\\\\\\":0.0185,\\\\\\\"availableThreads\\\\\\\":32764,\\\\\\\"minThreads\\\\\\\":40,\\\\\\\"maxThreads\\\\\\\":32767}}]}\\\\r\\\\nRequestStart: 2022-05-19T09:11:44.0331258Z; ResponseTime: 2022-05-19T09:11:44.0331258Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.25:11300/apps/7409314d-caec-4e18-8b1c-efe907fcb5e6/services/a4ff8c57-c2a8-431d-b30e-aa6f38f7d0dd/partitions/42e02189-9ea8-47d2-be06-4c9554c3fad4/replicas/132970080068833152s, LSN: 356, GlobalCommittedLsn: 356, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#356, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.224, ActivityId: b689b97d-6263-46e7-bd55-c81c0fa6af17, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:44.0331258Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0125},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:44.0331383Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0028},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:44.0331411Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.2764},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:44.0334175Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.8629},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:44.0342804Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.061},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:44.0343414Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-19T09:11:44.0331258Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-19T09:11:44.0331258Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-19T09:11:44.0331258Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":493,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":136,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Collection, OperationType: Read\\\\r\\\\nRequestStart: 2022-05-19T09:11:44.0331258Z; ResponseTime: 2022-05-19T09:11:44.0331258Z; StoreResult: StorePhysicalAddress: rntbd://10.0.0.23:11300/apps/7409314d-caec-4e18-8b1c-efe907fcb5e6/services/a4ff8c57-c2a8-431d-b30e-aa6f38f7d0dd/partitions/42e02189-9ea8-47d2-be06-4c9554c3fad4/replicas/132970080068833151s, LSN: 356, GlobalCommittedLsn: 356, PartitionKeyRangeId: , IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1, ItemLSN: -1, SessionToken: -1#356, UsingLocalLSN: False, TransportException: null, BELatencyMs: 0.439, ActivityId: b689b97d-6263-46e7-bd55-c81c0fa6af17, RetryAfterInMs: , TransportRequestTimeline: {\\\\\\\"requestTimeline\\\\\\\":[{\\\\\\\"event\\\\\\\": \\\\\\\"Created\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:44.0331258Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0071},{\\\\\\\"event\\\\\\\": \\\\\\\"ChannelAcquisitionStarted\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:44.0331329Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.0024},{\\\\\\\"event\\\\\\\": \\\\\\\"Pipelined\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:44.0331353Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.194},{\\\\\\\"event\\\\\\\": \\\\\\\"Transit Time\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:44.0333293Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 1.3369},{\\\\\\\"event\\\\\\\": \\\\\\\"Received\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:44.0346662Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0.055},{\\\\\\\"event\\\\\\\": \\\\\\\"Completed\\\\\\\", \\\\\\\"startTimeUtc\\\\\\\": \\\\\\\"2022-05-19T09:11:44.0347212Z\\\\\\\", \\\\\\\"durationInMs\\\\\\\": 0}],\\\\\\\"serviceEndpointStats\\\\\\\":{\\\\\\\"inflightRequests\\\\\\\":1,\\\\\\\"openConnections\\\\\\\":1},\\\\\\\"connectionStats\\\\\\\":{\\\\\\\"waitforConnectionInit\\\\\\\":\\\\\\\"False\\\\\\\",\\\\\\\"callsPendingReceive\\\\\\\":0,\\\\\\\"lastSendAttempt\\\\\\\":\\\\\\\"2022-05-19T09:11:44.0232347Z\\\\\\\",\\\\\\\"lastSend\\\\\\\":\\\\\\\"2022-05-19T09:11:44.0232347Z\\\\\\\",\\\\\\\"lastReceive\\\\\\\":\\\\\\\"2022-05-19T09:11:44.0331258Z\\\\\\\"},\\\\\\\"requestSizeInBytes\\\\\\\":493,\\\\\\\"responseMetadataSizeInBytes\\\\\\\":136,\\\\\\\"responseBodySizeInBytes\\\\\\\":87};\\\\r\\\\n ResourceType: Collection, OperationType: Read\\\\r\\\\n, SDK: Microsoft.Azure.Documents.Common/2.14.0\\\"}, Request URI: /dbs/mergedatabase/colls/mergecontainer, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase/containers/mergecontainer?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL21lcmdlZGF0YWJhc2UvY29udGFpbmVycy9tZXJnZWNvbnRhaW5lcj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b689b97d-6263-46e7-bd55-c81c0fa6af17" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "ca5b12f7-ccfb-465e-864c-0bfa9f3b0b9f" + ], + "x-ms-correlation-request-id": [ + "ca5b12f7-ccfb-465e-864c-0bfa9f3b0b9f" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091215Z:ca5b12f7-ccfb-465e-864c-0bfa9f3b0b9f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:12:14 GMT" + ], + "Content-Length": [ + "1373" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase/containers/mergecontainer\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers\",\r\n \"name\": \"mergecontainer\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"mergecontainer\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"O+16AKbzq7o=\",\r\n \"_ts\": 1652951513,\r\n \"_self\": \"dbs/O+16AA==/colls/O+16AKbzq7o=/\",\r\n \"_etag\": \"\\\"0000a103-0000-0900-0000-628609d90000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\",\r\n \"statistics\": [\r\n {\r\n \"id\": \"2\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n },\r\n {\r\n \"id\": \"0\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n },\r\n {\r\n \"id\": \"1\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n },\r\n {\r\n \"id\": \"3\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"sampledDistinctPartitionKeyCount\": 0,\r\n \"partitionKeys\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase/containers/mergecontainer?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL21lcmdlZGF0YWJhc2UvY29udGFpbmVycy9tZXJnZWNvbnRhaW5lcj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"mergecontainer\",\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/foo/bar\"\r\n ],\r\n \"kind\": \"Hash\"\r\n }\r\n },\r\n \"options\": {\r\n \"throughput\": 24000\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b689b97d-6263-46e7-bd55-c81c0fa6af17" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "250" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase/containers/mergecontainer/operationResults/ebeeb184-d752-4695-8ccd-88c101b8f2a9?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/ebeeb184-d752-4695-8ccd-88c101b8f2a9?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "ebeeb184-d752-4695-8ccd-88c101b8f2a9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "2dedb206-0f24-4af0-a672-2108239fc24f" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091144Z:2dedb206-0f24-4af0-a672-2108239fc24f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:11:44 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/ebeeb184-d752-4695-8ccd-88c101b8f2a9?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2FuYWRhZWFzdC9vcGVyYXRpb25zU3RhdHVzL2ViZWViMTg0LWQ3NTItNDY5NS04Y2NkLTg4YzEwMWI4ZjJhOT9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b689b97d-6263-46e7-bd55-c81c0fa6af17" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "242e40c0-1423-43f8-890e-68818bfd2142" + ], + "x-ms-correlation-request-id": [ + "242e40c0-1423-43f8-890e-68818bfd2142" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091214Z:242e40c0-1423-43f8-890e-68818bfd2142" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:12:13 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase/containers/mergecontainer/throughputSettings/default?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL21lcmdlZGF0YWJhc2UvY29udGFpbmVycy9tZXJnZWNvbnRhaW5lci90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 2000\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "808832db-ceee-42c2-bf66-50f49424e41d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase/containers/mergecontainer/throughputSettings/default/operationResults/63b6eb81-cb15-4902-b42e-41e46373dbab?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/63b6eb81-cb15-4902-b42e-41e46373dbab?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "63b6eb81-cb15-4902-b42e-41e46373dbab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "9a1a14a7-42d1-4ca5-99e6-920653b6b742" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091215Z:9a1a14a7-42d1-4ca5-99e6-920653b6b742" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:12:15 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/63b6eb81-cb15-4902-b42e-41e46373dbab?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2FuYWRhZWFzdC9vcGVyYXRpb25zU3RhdHVzLzYzYjZlYjgxLWNiMTUtNDkwMi1iNDJlLTQxZTQ2MzczZGJhYj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "808832db-ceee-42c2-bf66-50f49424e41d" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "29bdaca4-70a8-48d0-9d75-64bc2c818ab9" + ], + "x-ms-correlation-request-id": [ + "29bdaca4-70a8-48d0-9d75-64bc2c818ab9" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091245Z:29bdaca4-70a8-48d0-9d75-64bc2c818ab9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:12:45 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase/containers/mergecontainer/throughputSettings/default?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL21lcmdlZGF0YWJhc2UvY29udGFpbmVycy9tZXJnZWNvbnRhaW5lci90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "808832db-ceee-42c2-bf66-50f49424e41d" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "60ebbd80-93ec-4f15-a95e-e3766f4133e7" + ], + "x-ms-correlation-request-id": [ + "60ebbd80-93ec-4f15-a95e-e3766f4133e7" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091246Z:60ebbd80-93ec-4f15-a95e-e3766f4133e7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:12:46 GMT" + ], + "Content-Length": [ + "405" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase/containers/mergecontainer/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings\",\r\n \"name\": \"NPGA\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 2000,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3QvbW9uZ29kYkRhdGFiYXNlcy9tZXJnZWRhdGFiYXNlL2NvbGxlY3Rpb25zL21lcmdlY29udGFpbmVyL3BhcnRpdGlvbk1lcmdlP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"IsDryRun\": false\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25e81a2b-3125-4c41-8d06-894c37042bb7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "25" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "8d7e41af-4007-4dcf-9a11-fa4a0be55b90" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "498711b9-8938-4d3c-bbef-7aa6cdda01f2" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091247Z:498711b9-8938-4d3c-bbef-7aa6cdda01f2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:12:47 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3QvbW9uZ29kYkRhdGFiYXNlcy9tZXJnZWRhdGFiYXNlL2NvbGxlY3Rpb25zL21lcmdlY29udGFpbmVyL3BhcnRpdGlvbk1lcmdlL29wZXJhdGlvblJlc3VsdHMvOGQ3ZTQxYWYtNDAwNy00ZGNmLTlhMTEtZmE0YTBiZTU1YjkwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25e81a2b-3125-4c41-8d06-894c37042bb7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "8d7e41af-4007-4dcf-9a11-fa4a0be55b90" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "6af03dfc-29bd-4442-a0ac-df25a8e3a9e9" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091317Z:6af03dfc-29bd-4442-a0ac-df25a8e3a9e9" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:13:17 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3QvbW9uZ29kYkRhdGFiYXNlcy9tZXJnZWRhdGFiYXNlL2NvbGxlY3Rpb25zL21lcmdlY29udGFpbmVyL3BhcnRpdGlvbk1lcmdlL29wZXJhdGlvblJlc3VsdHMvOGQ3ZTQxYWYtNDAwNy00ZGNmLTlhMTEtZmE0YTBiZTU1YjkwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25e81a2b-3125-4c41-8d06-894c37042bb7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "8d7e41af-4007-4dcf-9a11-fa4a0be55b90" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "49cbfdc5-4d08-440c-8480-92d1a97fec0f" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091347Z:49cbfdc5-4d08-440c-8480-92d1a97fec0f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:13:47 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3QvbW9uZ29kYkRhdGFiYXNlcy9tZXJnZWRhdGFiYXNlL2NvbGxlY3Rpb25zL21lcmdlY29udGFpbmVyL3BhcnRpdGlvbk1lcmdlL29wZXJhdGlvblJlc3VsdHMvOGQ3ZTQxYWYtNDAwNy00ZGNmLTlhMTEtZmE0YTBiZTU1YjkwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25e81a2b-3125-4c41-8d06-894c37042bb7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "8d7e41af-4007-4dcf-9a11-fa4a0be55b90" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "4a56bb9e-2dd9-4fd7-a118-1bf2d8bf4dc3" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091418Z:4a56bb9e-2dd9-4fd7-a118-1bf2d8bf4dc3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:14:17 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3QvbW9uZ29kYkRhdGFiYXNlcy9tZXJnZWRhdGFiYXNlL2NvbGxlY3Rpb25zL21lcmdlY29udGFpbmVyL3BhcnRpdGlvbk1lcmdlL29wZXJhdGlvblJlc3VsdHMvOGQ3ZTQxYWYtNDAwNy00ZGNmLTlhMTEtZmE0YTBiZTU1YjkwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25e81a2b-3125-4c41-8d06-894c37042bb7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "8d7e41af-4007-4dcf-9a11-fa4a0be55b90" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "78475086-ecd0-4718-94ea-4f6765b25279" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091448Z:78475086-ecd0-4718-94ea-4f6765b25279" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:14:48 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3QvbW9uZ29kYkRhdGFiYXNlcy9tZXJnZWRhdGFiYXNlL2NvbGxlY3Rpb25zL21lcmdlY29udGFpbmVyL3BhcnRpdGlvbk1lcmdlL29wZXJhdGlvblJlc3VsdHMvOGQ3ZTQxYWYtNDAwNy00ZGNmLTlhMTEtZmE0YTBiZTU1YjkwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25e81a2b-3125-4c41-8d06-894c37042bb7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "8d7e41af-4007-4dcf-9a11-fa4a0be55b90" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "80bd9588-12ed-4458-b3d5-70433567676a" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091518Z:80bd9588-12ed-4458-b3d5-70433567676a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:15:18 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3QvbW9uZ29kYkRhdGFiYXNlcy9tZXJnZWRhdGFiYXNlL2NvbGxlY3Rpb25zL21lcmdlY29udGFpbmVyL3BhcnRpdGlvbk1lcmdlL29wZXJhdGlvblJlc3VsdHMvOGQ3ZTQxYWYtNDAwNy00ZGNmLTlhMTEtZmE0YTBiZTU1YjkwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25e81a2b-3125-4c41-8d06-894c37042bb7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "8d7e41af-4007-4dcf-9a11-fa4a0be55b90" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "9c34dcba-5ec6-4265-a559-0f37fd6df11d" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091548Z:9c34dcba-5ec6-4265-a559-0f37fd6df11d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:15:47 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3QvbW9uZ29kYkRhdGFiYXNlcy9tZXJnZWRhdGFiYXNlL2NvbGxlY3Rpb25zL21lcmdlY29udGFpbmVyL3BhcnRpdGlvbk1lcmdlL29wZXJhdGlvblJlc3VsdHMvOGQ3ZTQxYWYtNDAwNy00ZGNmLTlhMTEtZmE0YTBiZTU1YjkwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25e81a2b-3125-4c41-8d06-894c37042bb7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "8d7e41af-4007-4dcf-9a11-fa4a0be55b90" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "798f4740-5740-42fa-8f35-d1f7916f6872" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091618Z:798f4740-5740-42fa-8f35-d1f7916f6872" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:16:17 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3QvbW9uZ29kYkRhdGFiYXNlcy9tZXJnZWRhdGFiYXNlL2NvbGxlY3Rpb25zL21lcmdlY29udGFpbmVyL3BhcnRpdGlvbk1lcmdlL29wZXJhdGlvblJlc3VsdHMvOGQ3ZTQxYWYtNDAwNy00ZGNmLTlhMTEtZmE0YTBiZTU1YjkwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25e81a2b-3125-4c41-8d06-894c37042bb7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "8d7e41af-4007-4dcf-9a11-fa4a0be55b90" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "776e3db2-1bfe-4b07-935a-77c2ccdfad57" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091649Z:776e3db2-1bfe-4b07-935a-77c2ccdfad57" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:16:48 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3QvbW9uZ29kYkRhdGFiYXNlcy9tZXJnZWRhdGFiYXNlL2NvbGxlY3Rpb25zL21lcmdlY29udGFpbmVyL3BhcnRpdGlvbk1lcmdlL29wZXJhdGlvblJlc3VsdHMvOGQ3ZTQxYWYtNDAwNy00ZGNmLTlhMTEtZmE0YTBiZTU1YjkwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25e81a2b-3125-4c41-8d06-894c37042bb7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "f65cb24e-7c51-4177-b7d4-54cd46e099a8" + ], + "x-ms-correlation-request-id": [ + "f65cb24e-7c51-4177-b7d4-54cd46e099a8" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091719Z:f65cb24e-7c51-4177-b7d4-54cd46e099a8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:17:18 GMT" + ], + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"physicalPartitionStorageInfoCollection\": [\r\n {\r\n \"storageInKB\": 0.0,\r\n \"id\": \"4\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/mongodbDatabases/mergedatabase/collections/mergecontainer/partitionMerge/operationResults/8d7e41af-4007-4dcf-9a11-fa4a0be55b90?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3QvbW9uZ29kYkRhdGFiYXNlcy9tZXJnZWRhdGFiYXNlL2NvbGxlY3Rpb25zL21lcmdlY29udGFpbmVyL3BhcnRpdGlvbk1lcmdlL29wZXJhdGlvblJlc3VsdHMvOGQ3ZTQxYWYtNDAwNy00ZGNmLTlhMTEtZmE0YTBiZTU1YjkwP2FwaS12ZXJzaW9uPTIwMjItMDItMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "25e81a2b-3125-4c41-8d06-894c37042bb7" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "a7add2dc-dbaa-454a-a2c1-26bea90a19a7" + ], + "x-ms-correlation-request-id": [ + "a7add2dc-dbaa-454a-a2c1-26bea90a19a7" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091719Z:a7add2dc-dbaa-454a-a2c1-26bea90a19a7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:17:19 GMT" + ], + "Content-Length": [ + "73" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"physicalPartitionStorageInfoCollection\": [\r\n {\r\n \"storageInKB\": 0.0,\r\n \"id\": \"4\"\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase/containers/mergecontainer?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL21lcmdlZGF0YWJhc2UvY29udGFpbmVycy9tZXJnZWNvbnRhaW5lcj9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f33a0b20-caa2-4207-b616-03a66cd6798e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase/containers/mergecontainer/operationResults/bd69e65e-8559-43cd-982b-4ec8c0a1015d?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/bd69e65e-8559-43cd-982b-4ec8c0a1015d?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "bd69e65e-8559-43cd-982b-4ec8c0a1015d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "39318758-7346-45d9-8999-8061b83b3ba0" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091720Z:39318758-7346-45d9-8999-8061b83b3ba0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:17:19 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/bd69e65e-8559-43cd-982b-4ec8c0a1015d?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2FuYWRhZWFzdC9vcGVyYXRpb25zU3RhdHVzL2JkNjllNjVlLTg1NTktNDNjZC05ODJiLTRlYzhjMGExMDE1ZD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f33a0b20-caa2-4207-b616-03a66cd6798e" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "a48691b4-5d53-4493-b2ca-a4dd77b967eb" + ], + "x-ms-correlation-request-id": [ + "a48691b4-5d53-4493-b2ca-a4dd77b967eb" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091750Z:a48691b4-5d53-4493-b2ca-a4dd77b967eb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:17:49 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase/containers/mergecontainer/operationResults/bd69e65e-8559-43cd-982b-4ec8c0a1015d?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL21lcmdlZGF0YWJhc2UvY29udGFpbmVycy9tZXJnZWNvbnRhaW5lci9vcGVyYXRpb25SZXN1bHRzL2JkNjllNjVlLTg1NTktNDNjZC05ODJiLTRlYzhjMGExMDE1ZD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f33a0b20-caa2-4207-b616-03a66cd6798e" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-request-id": [ + "61cd0106-df45-4a2f-afa5-154a06235519" + ], + "x-ms-correlation-request-id": [ + "61cd0106-df45-4a2f-afa5-154a06235519" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091750Z:61cd0106-df45-4a2f-afa5-154a06235519" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:17:49 GMT" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL21lcmdlZGF0YWJhc2U/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1e23e572-ab1c-4871-a3f2-d8267e630e80" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase/operationResults/b9ee46c0-30a4-4f45-9c0d-4baa6f06b4f0?api-version=2022-02-15-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/b9ee46c0-30a4-4f45-9c0d-4baa6f06b4f0?api-version=2022-02-15-preview" + ], + "x-ms-request-id": [ + "b9ee46c0-30a4-4f45-9c0d-4baa6f06b4f0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "f0ef2489-c44e-48f1-a792-6c015df0e95f" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091752Z:f0ef2489-c44e-48f1-a792-6c015df0e95f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:17:51 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/providers/Microsoft.DocumentDB/locations/canadaeast/operationsStatus/b9ee46c0-30a4-4f45-9c0d-4baa6f06b4f0?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvY2FuYWRhZWFzdC9vcGVyYXRpb25zU3RhdHVzL2I5ZWU0NmMwLTMwYTQtNGY0NS05YzBkLTRiYWE2ZjA2YjRmMD9hcGktdmVyc2lvbj0yMDIyLTAyLTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1e23e572-ab1c-4871-a3f2-d8267e630e80" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "d8ea3359-fbc8-498f-97af-6f46388af54f" + ], + "x-ms-correlation-request-id": [ + "d8ea3359-fbc8-498f-97af-6f46388af54f" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091822Z:d8ea3359-fbc8-498f-97af-6f46388af54f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:18:22 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/12053b8f-cab5-4f5c-9c1a-870580142abd/resourceGroups/canary-sdk-test/providers/Microsoft.DocumentDB/databaseAccounts/mergetest/sqlDatabases/mergedatabase/operationResults/b9ee46c0-30a4-4f45-9c0d-4baa6f06b4f0?api-version=2022-02-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTIwNTNiOGYtY2FiNS00ZjVjLTljMWEtODcwNTgwMTQyYWJkL3Jlc291cmNlR3JvdXBzL2NhbmFyeS1zZGstdGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkRvY3VtZW50REIvZGF0YWJhc2VBY2NvdW50cy9tZXJnZXRlc3Qvc3FsRGF0YWJhc2VzL21lcmdlZGF0YWJhc2Uvb3BlcmF0aW9uUmVzdWx0cy9iOWVlNDZjMC0zMGE0LTRmNDUtOWMwZC00YmFhNmYwNmI0ZjA/YXBpLXZlcnNpb249MjAyMi0wMi0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1e23e572-ab1c-4871-a3f2-d8267e630e80" + ], + "User-Agent": [ + "FxVersion/4.700.22.21202", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19044", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.5.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "2f867690-1574-405c-8167-16132f3fef74" + ], + "x-ms-correlation-request-id": [ + "2f867690-1574-405c-8167-16132f3fef74" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20220519T091823Z:2f867690-1574-405c-8167-16132f3fef74" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 19 May 2022 09:18:22 GMT" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "12053b8f-cab5-4f5c-9c1a-870580142abd" + } +} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB/Az.CosmosDB.psd1 b/src/CosmosDB/CosmosDB/Az.CosmosDB.psd1 index db439d7265c5..84baf8c86c03 100644 --- a/src/CosmosDB/CosmosDB/Az.CosmosDB.psd1 +++ b/src/CosmosDB/CosmosDB/Az.CosmosDB.psd1 @@ -184,7 +184,14 @@ CmdletsToExport = 'Get-AzCosmosDBSqlContainer', 'Update-AzManagedCassandraDataCenter', 'Get-AzCosmosDbClientEncryptionKey', 'New-AzCosmosDbClientEncryptionKey', - 'Update-AzCosmosDbClientEncryptionKey' + 'Update-AzCosmosDbClientEncryptionKey', + 'Invoke-AzCosmosDbSqlContainerMerge', + 'Invoke-AzCosmosDbMongoDbCollectionMerge', + 'Get-AzCosmosDBSqlContainerPerPartitionThroughput', + 'Update-AzCosmosDBSqlContainerPerPartitionThroughput', + 'Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput', + 'Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput', + 'New-AzCosmosDBPhysicalPartitionThroughputObject' # Variables to export from this module # VariablesToExport = @() diff --git a/src/CosmosDB/CosmosDB/ChangeLog.md b/src/CosmosDB/CosmosDB/ChangeLog.md index 96d70c56abaf..534f91016ff7 100644 --- a/src/CosmosDB/CosmosDB/ChangeLog.md +++ b/src/CosmosDB/CosmosDB/ChangeLog.md @@ -19,6 +19,9 @@ --> ## Upcoming Release +* Introduced support for CosmosDB partition Merge and ThroughputRedistribution APIs by adding the following cmdlets: +`Get-AzCosmosDBSqlContainerPerPartitionThroughput`, `Update-AzCosmosDBSqlContainerPerPartitionThroughput`, `Invoke-AzCosmosDBSqlContainerMerge` +`Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput`, `Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput`, `Invoke-AzCosmosDBMongoDBCollectionMerge` * Introduced support for creating containers with Client Encryption Policy. The current supported version of Client Encryption Policy is 1. ## Version 1.7.0 diff --git a/src/CosmosDB/CosmosDB/CosmosDB.csproj b/src/CosmosDB/CosmosDB/CosmosDB.csproj index 78ae462544e2..f8bbe1307335 100644 --- a/src/CosmosDB/CosmosDB/CosmosDB.csproj +++ b/src/CosmosDB/CosmosDB/CosmosDB.csproj @@ -7,7 +7,7 @@ - + \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs b/src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs index 1c65f0bf7283..b80de82838e7 100644 --- a/src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs +++ b/src/CosmosDB/CosmosDB/CosmosDBAccount/NewAzCosmosDBAccount.cs @@ -228,22 +228,45 @@ public override void ExecuteCmdlet() if (!string.IsNullOrEmpty(BackupPolicyType)) { - PSBackupPolicy backupPolicy = new PSBackupPolicy() + if (BackupPolicyType.Equals(PSBackupPolicy.PeriodicModeBackupType, StringComparison.OrdinalIgnoreCase)) { - BackupType = BackupPolicyType, - BackupIntervalInMinutes = BackupIntervalInMinutes, - BackupRetentionIntervalInHours = BackupRetentionIntervalInHours, - BackupStorageRedundancy = BackupStorageRedundancy - }; + if (!string.IsNullOrEmpty(ContinuousTier)) + { + WriteWarning("Cannot accept ContinuousBackupTier parameter for PeriodicModeBackupType"); + return; + } - if (BackupPolicyType.Equals(PSBackupPolicy.ContinuousModeBackupType, StringComparison.OrdinalIgnoreCase) && - (BackupIntervalInMinutes.HasValue || BackupRetentionIntervalInHours.HasValue)) + databaseAccountCreateUpdateParameters.BackupPolicy = new PeriodicModeBackupPolicy() + { + PeriodicModeProperties = new PeriodicModeProperties() + { + BackupIntervalInMinutes = BackupIntervalInMinutes, + BackupRetentionIntervalInHours = BackupRetentionIntervalInHours, + BackupStorageRedundancy = BackupStorageRedundancy + } + }; + } + else if (BackupPolicyType.Equals(PSBackupPolicy.ContinuousModeBackupType, StringComparison.OrdinalIgnoreCase)) { - WriteWarning("Cannot accept BackupInterval or BackupRetention parameters for ContinuousModeBackupType"); + if (BackupIntervalInMinutes.HasValue || BackupRetentionIntervalInHours.HasValue || !string.IsNullOrEmpty(BackupStorageRedundancy)) + { + WriteWarning("Cannot accept BackupInterval or BackupRetention or BackupStorageRedundancy parameters for ContinuousModeBackupType"); + return; + } + + databaseAccountCreateUpdateParameters.BackupPolicy = new ContinuousModeBackupPolicy + { + ContinuousModeProperties = new ContinuousModeProperties() + { + Tier = ContinuousTier + } + }; + } + else + { + WriteWarning("Invalid BackupPolicyType provided"); return; } - - databaseAccountCreateUpdateParameters.BackupPolicy = backupPolicy.ToSDKModel(); } else if (BackupIntervalInMinutes.HasValue || BackupRetentionIntervalInHours.HasValue || !string.IsNullOrEmpty(BackupStorageRedundancy)) { diff --git a/src/CosmosDB/CosmosDB/CosmosDBAccount/NewOrUpdateAzCosmosDBAccount.cs b/src/CosmosDB/CosmosDB/CosmosDBAccount/NewOrUpdateAzCosmosDBAccount.cs index 0c30281612cc..6298f21eb7ed 100644 --- a/src/CosmosDB/CosmosDB/CosmosDBAccount/NewOrUpdateAzCosmosDBAccount.cs +++ b/src/CosmosDB/CosmosDB/CosmosDBAccount/NewOrUpdateAzCosmosDBAccount.cs @@ -99,6 +99,10 @@ public class NewOrUpdateAzCosmosDBAccount : AzureCosmosDBCmdletBase [PSArgumentCompleter("Periodic", "Continuous")] public string BackupPolicyType { get; set; } + [Parameter(Mandatory = false, HelpMessage = Constants.ContinuousTierHelpMessage)] + [PSArgumentCompleter("Continuous7Days", "Continuous30Days")] + public string ContinuousTier { get; set; } + [Parameter(Mandatory = false, HelpMessage = Constants.AnalyticalStorageSchemaTypeHelpMessage)] [PSArgumentCompleter(SDKModel.AnalyticalStorageSchemaType.WellDefined, SDKModel.AnalyticalStorageSchemaType.FullFidelity)] public string AnalyticalStorageSchemaType { get; set; } diff --git a/src/CosmosDB/CosmosDB/CosmosDBAccount/UpdateAzCosmosDBAccount.cs b/src/CosmosDB/CosmosDB/CosmosDBAccount/UpdateAzCosmosDBAccount.cs index 652f5c57b417..695f40b26880 100644 --- a/src/CosmosDB/CosmosDB/CosmosDBAccount/UpdateAzCosmosDBAccount.cs +++ b/src/CosmosDB/CosmosDB/CosmosDBAccount/UpdateAzCosmosDBAccount.cs @@ -158,9 +158,10 @@ public override void ExecuteCmdlet() if (BackupIntervalInMinutes.HasValue || BackupRetentionIntervalInHours.HasValue || !string.IsNullOrEmpty(BackupStorageRedundancy)) { - if (BackupPolicyType == "Continuous") + if (!string.IsNullOrEmpty(BackupPolicyType) && + BackupPolicyType.Equals(PSBackupPolicy.ContinuousModeBackupType, StringComparison.OrdinalIgnoreCase)) { - WriteWarning("Cannot set BackupPolicyType along with BackupInterval or BackupRetention parameters"); + WriteWarning("Cannot set BackupPolicyType along with BackupInterval or BackupRetention or BackupStorageRedundancy parameters"); return; } @@ -183,10 +184,41 @@ public override void ExecuteCmdlet() } } - // Update backup policy to ContinuousModeBackupPolicy - if (BackupPolicyType == "Continuous" && readDatabase.BackupPolicy is PeriodicModeBackupPolicy) + if (!string.IsNullOrEmpty(ContinuousTier)) { - databaseAccountUpdateParameters.BackupPolicy = new ContinuousModeBackupPolicy(); + if (!(!string.IsNullOrEmpty(BackupPolicyType) && + BackupPolicyType.Equals(PSBackupPolicy.ContinuousModeBackupType, StringComparison.OrdinalIgnoreCase))) + { + WriteWarning("ContinuousTier parameter need to be set together with BackupPolicyType Continuous"); + return; + } + } + + if (!string.IsNullOrEmpty(BackupPolicyType) && + BackupPolicyType.Equals(PSBackupPolicy.ContinuousModeBackupType, StringComparison.OrdinalIgnoreCase)) + { + // Update backup policy to ContinuousModeBackupPolicy + if (readDatabase.BackupPolicy is PeriodicModeBackupPolicy) + { + databaseAccountUpdateParameters.BackupPolicy = new ContinuousModeBackupPolicy + { + ContinuousModeProperties = new ContinuousModeProperties() + { + Tier = ContinuousTier + } + }; + } + else if (readDatabase.BackupPolicy is ContinuousModeBackupPolicy && !string.IsNullOrEmpty(ContinuousTier)) + { + // Update continuous tier if provided + databaseAccountUpdateParameters.BackupPolicy = new ContinuousModeBackupPolicy + { + ContinuousModeProperties = new ContinuousModeProperties() + { + Tier = ContinuousTier + } + }; + } } // Update analytical storage schema type. diff --git a/src/CosmosDB/CosmosDB/Helpers/Constants.cs b/src/CosmosDB/CosmosDB/Helpers/Constants.cs index 9b4691e38eab..4b99d51b2931 100644 --- a/src/CosmosDB/CosmosDB/Helpers/Constants.cs +++ b/src/CosmosDB/CosmosDB/Helpers/Constants.cs @@ -78,6 +78,7 @@ internal static class Constants public const string BackupRetentionInHoursHelpMessage = "The time(in hours) for which each backup is retained (only for accounts with periodic mode backups)"; public const string BackupTypeHelpMessage = "The type of backups on the Cosmos DB account. Accepted values: Periodic, Continuous"; public const string BackupStorageRedundancyHelpMessage = "The redundancy type of the backup Storage account"; + public const string ContinuousTierHelpMessage = "The continuous backup tier of the account"; //Sql cmdlets help messages public const string DatabaseNameHelpMessage = "Database name."; @@ -132,6 +133,15 @@ internal static class Constants public const string CompositePathOrderTypeHelpMessage = " Gets or sets sort order for composite paths. Possible values include: 'Ascending', 'Descending'"; public const string SqlContainerAnalyticalStorageTtlHelpMessage = "TTL for Analytical Storage (in Seconds)."; public const string ClientEncryptionKeyObjectHelpMessage = "Client Encryption Key object."; + public const string IsPartitionMergeSimulationHelpMessage = "Boolean to indicate whether or not this is a simulated operation (true if not specified)."; + public const string PhysicalPartitionIdHelpMessage = "Id of the physical partition."; + public const string PhysicalPartitionThroughputHelpMessage = "Throughput of the physical partition."; + public const string SourcePhysicalPartitionThroughputHelpMessage = "Source physical partitions"; + public const string TargetPhysicalPartitionThroughputHelpMessage = "Target physical partitions"; + public const string GetAllPhysicalPartitionsThroughputHelpMessage = "Set this switch to get the throughput for all physical partitions."; + public const string ResetPartitionThroughputLayoutHelpMessage = "Set this switch to reset the throughput layout for all partitions."; + public const string PhysicalPartitionThroughputInfosHelpMessage = "List of PhysicalPartitionInfo objects for which throughput needs to be retrieved.."; + public const string PhysicalPartitionIdsHelpMessage = "List of PhysicalPartitionId for which throughput needs to be retrieved."; //SQL Client Side Encryption public const string ClientEncryptionKeyName = "Client Encryption Key name."; diff --git a/src/CosmosDB/CosmosDB/Models/DatabaseAccount/PSBackupPolicy.cs b/src/CosmosDB/CosmosDB/Models/DatabaseAccount/PSBackupPolicy.cs index 5b5a186c9c67..fa9d184f2945 100644 --- a/src/CosmosDB/CosmosDB/Models/DatabaseAccount/PSBackupPolicy.cs +++ b/src/CosmosDB/CosmosDB/Models/DatabaseAccount/PSBackupPolicy.cs @@ -40,6 +40,8 @@ public PSBackupPolicy(BackupPolicy backupPolicy) } else if (backupPolicy is ContinuousModeBackupPolicy) { + ContinuousModeBackupPolicy continuousModeBackupPolicy = backupPolicy as ContinuousModeBackupPolicy; + Tier = continuousModeBackupPolicy.ContinuousModeProperties.Tier; BackupType = ContinuousModeBackupType; } @@ -57,6 +59,8 @@ public PSBackupPolicy(BackupPolicy backupPolicy) public string BackupStorageRedundancy { get; set; } + public string Tier { get; set; } + public PSBackupPolicyMigrationState BackupPolicyMigrationState { get; set;} public BackupPolicy ToSDKModel() @@ -64,7 +68,15 @@ public BackupPolicy ToSDKModel() BackupPolicy backupPolicy; if (BackupType.Equals(PSBackupPolicy.ContinuousModeBackupType)) { - backupPolicy = new ContinuousModeBackupPolicy(); + ContinuousModeBackupPolicy continuousModeBackupPolicy = new ContinuousModeBackupPolicy + { + ContinuousModeProperties = new ContinuousModeProperties() + { + Tier = Tier + } + }; + + backupPolicy = continuousModeBackupPolicy; } else { diff --git a/src/CosmosDB/CosmosDB/Models/PSPhysicalPartitionStorageInfo.cs b/src/CosmosDB/CosmosDB/Models/PSPhysicalPartitionStorageInfo.cs new file mode 100644 index 000000000000..277bac0ce517 --- /dev/null +++ b/src/CosmosDB/CosmosDB/Models/PSPhysicalPartitionStorageInfo.cs @@ -0,0 +1,39 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Management.CosmosDB.Models; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.CosmosDB.Models +{ + public class PSPhysicalPartitionStorageInfo + { + public PSPhysicalPartitionStorageInfo() + { + } + + public PSPhysicalPartitionStorageInfo(string id, double? storageInKB) + { + this.Id = id; + this.StorageInKB = storageInKB; + } + + public string Id { get; set; } + + + public double? StorageInKB { get; set; } + + + } +} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB/Models/PSPhysicalPartitionThroughputInfo.cs b/src/CosmosDB/CosmosDB/Models/PSPhysicalPartitionThroughputInfo.cs new file mode 100644 index 000000000000..538d5d949b33 --- /dev/null +++ b/src/CosmosDB/CosmosDB/Models/PSPhysicalPartitionThroughputInfo.cs @@ -0,0 +1,39 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Management.CosmosDB.Models; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.CosmosDB.Models +{ + public class PSPhysicalPartitionThroughputInfo + { + public PSPhysicalPartitionThroughputInfo() + { + } + + public PSPhysicalPartitionThroughputInfo(string id, double throughput) + { + this.Id = id; + this.Throughput = throughput; + } + + public string Id { get; set; } + + + public double? Throughput { get; set; } + + + } +} \ No newline at end of file diff --git a/src/CosmosDB/CosmosDB/Models/Restore/PSRestorableDatabaseAccountGetResult.cs b/src/CosmosDB/CosmosDB/Models/Restore/PSRestorableDatabaseAccountGetResult.cs index 220189832e4f..8ed9507f18bf 100644 --- a/src/CosmosDB/CosmosDB/Models/Restore/PSRestorableDatabaseAccountGetResult.cs +++ b/src/CosmosDB/CosmosDB/Models/Restore/PSRestorableDatabaseAccountGetResult.cs @@ -35,6 +35,7 @@ public PSRestorableDatabaseAccountGetResult(RestorableDatabaseAccountGetResult r DatabaseAccountName = restorableDatabaseAccountGetResult.AccountName; CreationTime = restorableDatabaseAccountGetResult.CreationTime; DeletionTime = restorableDatabaseAccountGetResult.DeletionTime; + OldestRestorableTime = restorableDatabaseAccountGetResult.OldestRestorableTime; ApiType = restorableDatabaseAccountGetResult.ApiType; RestorableLocations = restorableDatabaseAccountGetResult.RestorableLocations?.Select(restorableLocation => new PSRestorableLocationResource(restorableLocation)).ToArray(); } @@ -71,6 +72,12 @@ public PSRestorableDatabaseAccountGetResult(RestorableDatabaseAccountGetResult r // been deleted (ISO-8601 format). public System.DateTime? DeletionTime { get; set; } + // + // Summary: + // Gets or sets the oldest time at which the CosmosDB Restorable database account + // can be restored to (ISO-8601 format). + public System.DateTime? OldestRestorableTime { get; set; } + // // Summary: // Gets or sets the Api Type of the global database account diff --git a/src/CosmosDB/CosmosDB/MongoDB/GetAzCosmosDBMongoDBCollectionPerPartitionThroughput.cs b/src/CosmosDB/CosmosDB/MongoDB/GetAzCosmosDBMongoDBCollectionPerPartitionThroughput.cs new file mode 100644 index 000000000000..4c4f298a8071 --- /dev/null +++ b/src/CosmosDB/CosmosDB/MongoDB/GetAzCosmosDBMongoDBCollectionPerPartitionThroughput.cs @@ -0,0 +1,137 @@ +// ---------------------------------------------------------------------------------- +// +// 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.CosmosDB.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Management.CosmosDB.Models; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Commands.CosmosDB.Helpers; +using Microsoft.Azure.Management.CosmosDB; +using System; +using System.Collections.Generic; +using System.Management.Automation; +using Microsoft.Rest; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBMongoDBCollectionPerPartitionThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSPhysicalPartitionThroughputInfo))] + public class GetAzCosmosDBMongoDBCollectionPerPartitionThroughput : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.AccountNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string AccountName; + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.DatabaseNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string DatabaseName { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.ContainerNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParentObjectParameterSet, HelpMessage = Constants.SqlDatabaseObjectHelpMessage)] + [ValidateNotNull] + public PSSqlDatabaseGetResults ParentObject { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ObjectParameterSet, HelpMessage = Constants.SqlContainerObjectHelpMessage)] + [ValidateNotNull] + public PSSqlContainerGetResults InputObject { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.PhysicalPartitionIdsHelpMessage)] + [ValidateNotNullOrEmpty] + public string[] PhysicalPartitionIds { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.GetAllPhysicalPartitionsThroughputHelpMessage)] + public SwitchParameter AllPartitions { get; set; } + + public void PopulateFromParentObject() + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(ParentObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + DatabaseName = resourceIdentifier.ResourceName; + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + public void PopulateFromInputObject() + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(InputObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + Name = resourceIdentifier.ResourceName; + DatabaseName = ResourceIdentifierExtensions.GetSqlDatabaseName(resourceIdentifier); + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.Equals(ParentObjectParameterSet, StringComparison.Ordinal)) + { + PopulateFromParentObject(); + } + else if (ParameterSetName.Equals(ObjectParameterSet, StringComparison.Ordinal)) + { + PopulateFromInputObject(); + } + + if (ShouldProcess(Name, "Retrieving throughput distribution.")) + { + List physicalPartitionIds = new List(); + if (this.AllPartitions.IsPresent) + { + physicalPartitionIds.Add(new PhysicalPartitionId("-1")); + } + else + { + if(this.PhysicalPartitionIds == null) + { + throw new ArgumentException("List of PhysicalPartitionId cannot be null if the 'AllPartitions' switch is not enabled."); + } + + foreach (string physicalPartitionId in this.PhysicalPartitionIds) + { + if(string.IsNullOrEmpty(physicalPartitionId)) + { + throw new ArgumentException("PhysicalPartitionId cannot be null or empty."); + } + + physicalPartitionIds.Add(new PhysicalPartitionId(physicalPartitionId)); + } + } + + RetrieveThroughputParameters retrieveThroughputParameters = new RetrieveThroughputParameters(); + retrieveThroughputParameters.Resource = new RetrieveThroughputPropertiesResource(physicalPartitionIds); + + PhysicalPartitionThroughputInfoResult physicalPartitionThroughputInfoResult = + CosmosDBManagementClient.MongoDBResources.MongoDBContainerRetrieveThroughputDistribution( + this.ResourceGroupName, + this.AccountName, + this.DatabaseName, + this.Name, + retrieveThroughputParameters); + + List physicalPartitionThroughputInfos = new List(); + foreach (PhysicalPartitionThroughputInfoResource item in physicalPartitionThroughputInfoResult.Resource.PhysicalPartitionThroughputInfo) + { + physicalPartitionThroughputInfos.Add(new PSPhysicalPartitionThroughputInfo(item.Id, item.Throughput.Value)); + } + + WriteObject(physicalPartitionThroughputInfos); + } + } + } +} diff --git a/src/CosmosDB/CosmosDB/MongoDB/InvokeAzCosmosDBMongoDBCollectionMerge.cs b/src/CosmosDB/CosmosDB/MongoDB/InvokeAzCosmosDBMongoDBCollectionMerge.cs new file mode 100644 index 000000000000..01853af82005 --- /dev/null +++ b/src/CosmosDB/CosmosDB/MongoDB/InvokeAzCosmosDBMongoDBCollectionMerge.cs @@ -0,0 +1,116 @@ +// ---------------------------------------------------------------------------------- +// +// 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 System.Management.Automation; +using Microsoft.Azure.Commands.CosmosDB.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Management.CosmosDB.Models; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Commands.CosmosDB.Helpers; +using Microsoft.Azure.Management.CosmosDB; +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet("Invoke", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBMongoDBCollectionMerge", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSPhysicalPartitionStorageInfo))] + public class InvokeAzCosmosDBMongoDBCollectionMerge : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.AccountNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string AccountName; + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.DatabaseNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string DatabaseName; + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.CollectionNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParentObjectParameterSet, HelpMessage = Constants.MongoDatabaseObjectHelpMessage)] + [ValidateNotNull] + public PSSqlDatabaseGetResults ParentObject { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ObjectParameterSet, HelpMessage = Constants.MongoCollectionObjectHelpMessage)] + [ValidateNotNull] + public PSSqlContainerGetResults InputObject { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Force { get; set; } + + public void PopulateFromParentObject() + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(ParentObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + DatabaseName = resourceIdentifier.ResourceName; + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + public void PopulateFromInputObject() + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(InputObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + Name = resourceIdentifier.ResourceName; + DatabaseName = ResourceIdentifierExtensions.GetMongoDBDatabaseName(resourceIdentifier); + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.Equals(ParentObjectParameterSet, StringComparison.Ordinal)) + { + PopulateFromParentObject(); + } + else if (ParameterSetName.Equals(ObjectParameterSet, StringComparison.Ordinal)) + { + PopulateFromInputObject(); + } + + PhysicalPartitionStorageInfoCollection physicalPartitionStorageInfoCollection = null; + + if (ShouldProcess(Name, "Merging partitions.", String.Empty, out ShouldProcessReason shouldProcessReason)) + { + if(this.Force.IsPresent || ShouldContinue($"This command will merge the partitions of collection {Name} , do you want to continue?",String.Empty)) + { + physicalPartitionStorageInfoCollection = + CosmosDBManagementClient.MongoDBResources.ListMongoDBCollectionPartitionMerge(ResourceGroupName, AccountName, DatabaseName, Name, new MergeParameters(isDryRun: false)); + } + } + else if(shouldProcessReason == ShouldProcessReason.WhatIf) + { + physicalPartitionStorageInfoCollection = + CosmosDBManagementClient.MongoDBResources.ListMongoDBCollectionPartitionMerge(ResourceGroupName, AccountName, DatabaseName, Name, new MergeParameters(isDryRun: true)); + } + + if(physicalPartitionStorageInfoCollection != null) + { + IList physicalPartitionStorageInfos = new List(); + + foreach (PhysicalPartitionStorageInfo item in physicalPartitionStorageInfoCollection.PhysicalPartitionStorageInfoCollectionProperty) + { + physicalPartitionStorageInfos.Add(new PSPhysicalPartitionStorageInfo(item.Id, item.StorageInKB)); + } + + WriteObject(physicalPartitionStorageInfos); + } + } + } +} diff --git a/src/CosmosDB/CosmosDB/MongoDB/UpdateAzCosmosDBMongoDBCollectionPerPartitionThroughput.cs b/src/CosmosDB/CosmosDB/MongoDB/UpdateAzCosmosDBMongoDBCollectionPerPartitionThroughput.cs new file mode 100644 index 000000000000..c67268b79117 --- /dev/null +++ b/src/CosmosDB/CosmosDB/MongoDB/UpdateAzCosmosDBMongoDBCollectionPerPartitionThroughput.cs @@ -0,0 +1,146 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Management.Automation; +using Microsoft.Azure.Commands.CosmosDB.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Management.CosmosDB.Models; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Commands.CosmosDB.Helpers; +using Microsoft.Azure.Management.CosmosDB; +using System; +using System.Linq; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBMongoDBCollectionPerPartitionThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSPhysicalPartitionThroughputInfo))] + public class UpdateAzCosmosDBMongoDBCollectionPerPartitionThroughput : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.AccountNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string AccountName; + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.DatabaseNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string DatabaseName { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.ContainerNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParentObjectParameterSet, HelpMessage = Constants.SqlDatabaseObjectHelpMessage)] + [ValidateNotNull] + public PSSqlDatabaseGetResults ParentObject { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ObjectParameterSet, HelpMessage = Constants.SqlContainerObjectHelpMessage)] + [ValidateNotNull] + public PSSqlContainerGetResults InputObject { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.SourcePhysicalPartitionThroughputHelpMessage)] + public PSPhysicalPartitionThroughputInfo[] SourcePhysicalPartitionThroughputObject { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.TargetPhysicalPartitionThroughputHelpMessage)] + public PSPhysicalPartitionThroughputInfo[] TargetPhysicalPartitionThroughputObject { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.ResetPartitionThroughputLayoutHelpMessage)] + public SwitchParameter EqualDistributionPolicy { get; set; } + + public void PopulateFromParentObject() + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(ParentObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + DatabaseName = resourceIdentifier.ResourceName; + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + public void PopulateFromInputObject() + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(InputObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + Name = resourceIdentifier.ResourceName; + DatabaseName = ResourceIdentifierExtensions.GetSqlDatabaseName(resourceIdentifier); + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.Equals(ParentObjectParameterSet, StringComparison.Ordinal)) + { + PopulateFromParentObject(); + } + else if (ParameterSetName.Equals(ObjectParameterSet, StringComparison.Ordinal)) + { + PopulateFromInputObject(); + } + + if (ShouldProcess(Name, "Updating throughput")) + { + string throughputPolicy = "Custom"; + + List sourcePartitionInfos = + new List(); + + List targetPartitionInfos = + new List(); + + if (this.EqualDistributionPolicy.IsPresent) + { + throughputPolicy = "Equal"; + } + else + { + if(this.SourcePhysicalPartitionThroughputObject == null || this.TargetPhysicalPartitionThroughputObject == null) + { + throw new ArgumentException("SourcePhysicalPartitionThroughputObject and TargetPhysicalPartitionThroughputObject cannot be null if 'EqualDistributionPolicy' is absent."); + } + + foreach (var item in this.SourcePhysicalPartitionThroughputObject) + { + //NullorEmpty + PhysicalPartitionThroughputInfoResource source = new PhysicalPartitionThroughputInfoResource(item.Id, item.Throughput); + sourcePartitionInfos.Add(source); + } + + foreach (var item in this.TargetPhysicalPartitionThroughputObject) + { + PhysicalPartitionThroughputInfoResource target = new PhysicalPartitionThroughputInfoResource(item.Id, item.Throughput); + targetPartitionInfos.Add(target); + } + } + + RedistributeThroughputParameters redistributeThroughputParameters = new RedistributeThroughputParameters(); + redistributeThroughputParameters.Resource + = new RedistributeThroughputPropertiesResource(throughputPolicy, targetPartitionInfos, sourcePartitionInfos); + + PhysicalPartitionThroughputInfoResult physicalPartitionThroughputInfoResult = + CosmosDBManagementClient.MongoDBResources.MongoDBContainerRedistributeThroughput(this.ResourceGroupName, this.AccountName, this.DatabaseName, this.Name, + redistributeThroughputParameters); + + List resultantPartitionInfos = new List(); + foreach (var item in physicalPartitionThroughputInfoResult.Resource.PhysicalPartitionThroughputInfo) + { + resultantPartitionInfos.Add(new PSPhysicalPartitionThroughputInfo(item.Id, item.Throughput.Value)); + } + + WriteObject(resultantPartitionInfos); + } + } + } +} diff --git a/src/CosmosDB/CosmosDB/NewAzCosmosDBPhysicalPartitionThroughputObject.cs b/src/CosmosDB/CosmosDB/NewAzCosmosDBPhysicalPartitionThroughputObject.cs new file mode 100644 index 000000000000..8df465f769fc --- /dev/null +++ b/src/CosmosDB/CosmosDB/NewAzCosmosDBPhysicalPartitionThroughputObject.cs @@ -0,0 +1,39 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Management.Automation; +using Microsoft.Azure.Commands.CosmosDB.Models; +using Microsoft.Azure.Commands.CosmosDB.Helpers; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBPhysicalPartitionThroughputObject")] + public class NewAzCosmosDBPhysicalPartitionThroughputObject : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, HelpMessage = Constants.PhysicalPartitionIdHelpMessage)] + [ValidateNotNullOrEmpty] + public string Id { get; set; } + + [Parameter(Mandatory = true, HelpMessage = Constants.PhysicalPartitionThroughputHelpMessage)] + [ValidateNotNullOrEmpty] + public double Throughput { get; set; } + + public override void ExecuteCmdlet() + { + PSPhysicalPartitionThroughputInfo physicalThroughputInfo = new PSPhysicalPartitionThroughputInfo(this.Id, this.Throughput); + WriteObject(physicalThroughputInfo); + return; + } + } +} diff --git a/src/CosmosDB/CosmosDB/SQL/GetAzCosmosDBSqlContainerPerPartitionThroughput.cs b/src/CosmosDB/CosmosDB/SQL/GetAzCosmosDBSqlContainerPerPartitionThroughput.cs new file mode 100644 index 000000000000..027447b3d5b4 --- /dev/null +++ b/src/CosmosDB/CosmosDB/SQL/GetAzCosmosDBSqlContainerPerPartitionThroughput.cs @@ -0,0 +1,137 @@ +// ---------------------------------------------------------------------------------- +// +// 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.CosmosDB.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Management.CosmosDB.Models; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Commands.CosmosDB.Helpers; +using Microsoft.Azure.Management.CosmosDB; +using System; +using System.Collections.Generic; +using System.Management.Automation; +using Microsoft.Rest; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBSqlContainerPerPartitionThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSPhysicalPartitionThroughputInfo))] + public class GetAzCosmosDBSqlContainerPerPartitionThroughput : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.AccountNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string AccountName; + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.DatabaseNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string DatabaseName { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.ContainerNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParentObjectParameterSet, HelpMessage = Constants.SqlDatabaseObjectHelpMessage)] + [ValidateNotNull] + public PSSqlDatabaseGetResults ParentObject { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ObjectParameterSet, HelpMessage = Constants.SqlContainerObjectHelpMessage)] + [ValidateNotNull] + public PSSqlContainerGetResults InputObject { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.PhysicalPartitionIdsHelpMessage)] + [ValidateNotNullOrEmpty] + public string[] PhysicalPartitionIds { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.GetAllPhysicalPartitionsThroughputHelpMessage)] + public SwitchParameter AllPartitions { get; set; } + + public void PopulateFromParentObject() + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(ParentObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + DatabaseName = resourceIdentifier.ResourceName; + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + public void PopulateFromInputObject() + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(InputObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + Name = resourceIdentifier.ResourceName; + DatabaseName = ResourceIdentifierExtensions.GetSqlDatabaseName(resourceIdentifier); + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.Equals(ParentObjectParameterSet, StringComparison.Ordinal)) + { + PopulateFromParentObject(); + } + else if (ParameterSetName.Equals(ObjectParameterSet, StringComparison.Ordinal)) + { + PopulateFromInputObject(); + } + + if (ShouldProcess(Name, "Retrieving throughput distribution.")) + { + List physicalPartitionIds = new List(); + if (this.AllPartitions.IsPresent) + { + physicalPartitionIds.Add(new PhysicalPartitionId("-1")); + } + else + { + if(this.PhysicalPartitionIds == null) + { + throw new ArgumentException("List of PhysicalPartitionId cannot be null if the 'AllPartitions' switch is not enabled."); + } + + foreach (string physicalPartitionId in this.PhysicalPartitionIds) + { + if(string.IsNullOrEmpty(physicalPartitionId)) + { + throw new ArgumentException("PhysicalPartitionId cannot be null or empty."); + } + + physicalPartitionIds.Add(new PhysicalPartitionId(physicalPartitionId)); + } + } + + RetrieveThroughputParameters retrieveThroughputParameters = new RetrieveThroughputParameters(); + retrieveThroughputParameters.Resource = new RetrieveThroughputPropertiesResource(physicalPartitionIds); + + PhysicalPartitionThroughputInfoResult physicalPartitionThroughputInfoResult = + CosmosDBManagementClient.SqlResources.SqlContainerRetrieveThroughputDistribution( + this.ResourceGroupName, + this.AccountName, + this.DatabaseName, + this.Name, + retrieveThroughputParameters); + + List physicalPartitionThroughputInfos = new List(); + foreach (PhysicalPartitionThroughputInfoResource item in physicalPartitionThroughputInfoResult.Resource.PhysicalPartitionThroughputInfo) + { + physicalPartitionThroughputInfos.Add(new PSPhysicalPartitionThroughputInfo(item.Id, item.Throughput.Value)); + } + + WriteObject(physicalPartitionThroughputInfos); + } + } + } +} diff --git a/src/CosmosDB/CosmosDB/SQL/InvokeAzCosmosDBSqlContainerMerge.cs b/src/CosmosDB/CosmosDB/SQL/InvokeAzCosmosDBSqlContainerMerge.cs new file mode 100644 index 000000000000..be1835a840f7 --- /dev/null +++ b/src/CosmosDB/CosmosDB/SQL/InvokeAzCosmosDBSqlContainerMerge.cs @@ -0,0 +1,117 @@ +// ---------------------------------------------------------------------------------- +// +// 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 System.Management.Automation; +using Microsoft.Azure.Commands.CosmosDB.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Management.CosmosDB.Models; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Commands.CosmosDB.Helpers; +using Microsoft.Azure.Management.CosmosDB; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet("Invoke", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBSqlContainerMerge", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSPhysicalPartitionStorageInfo))] + public class InvokeAzCosmosDBSqlContainerMerge : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.AccountNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string AccountName; + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.DatabaseNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string DatabaseName; + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.ContainerNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParentObjectParameterSet, HelpMessage = Constants.SqlDatabaseObjectHelpMessage)] + [ValidateNotNull] + public PSSqlDatabaseGetResults ParentObject { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ObjectParameterSet, HelpMessage = Constants.SqlContainerObjectHelpMessage)] + [ValidateNotNull] + public PSSqlContainerGetResults InputObject { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Force { get; set; } + + public void PopulateFromParentObject() + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(ParentObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + DatabaseName = resourceIdentifier.ResourceName; + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + public void PopulateFromInputObject() + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(InputObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + Name = resourceIdentifier.ResourceName; + DatabaseName = ResourceIdentifierExtensions.GetSqlDatabaseName(resourceIdentifier); + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.Equals(ParentObjectParameterSet, StringComparison.Ordinal)) + { + PopulateFromParentObject(); + } + else if (ParameterSetName.Equals(ObjectParameterSet, StringComparison.Ordinal)) + { + PopulateFromInputObject(); + } + + PhysicalPartitionStorageInfoCollection physicalPartitionStorageInfoCollection = null; + MergeParameters mergeParameters = new MergeParameters(isDryRun: false); + + if (ShouldProcess(Name, "Merging partitions.", String.Empty, out ShouldProcessReason shouldProcessReason)) + { + if (this.Force.IsPresent || ShouldContinue($"This command will merge the partitions of collection {Name} , do you want to continue?", "This operation might take a long time (potentially hours) depending on the data movement involved.")) + { + physicalPartitionStorageInfoCollection = + CosmosDBManagementClient.MongoDBResources.ListMongoDBCollectionPartitionMerge(ResourceGroupName, AccountName, DatabaseName, Name, new MergeParameters(isDryRun: false)); + } + } + else if (shouldProcessReason == ShouldProcessReason.WhatIf) + { + mergeParameters.IsDryRun = true; + physicalPartitionStorageInfoCollection = + CosmosDBManagementClient.MongoDBResources.ListMongoDBCollectionPartitionMerge(ResourceGroupName, AccountName, DatabaseName, Name, new MergeParameters(isDryRun: true)); + } + + if (physicalPartitionStorageInfoCollection != null) + { + IList physicalPartitionStorageInfos = new List(); + + foreach (PhysicalPartitionStorageInfo item in physicalPartitionStorageInfoCollection.PhysicalPartitionStorageInfoCollectionProperty) + { + physicalPartitionStorageInfos.Add(new PSPhysicalPartitionStorageInfo(item.Id, item.StorageInKB)); + } + + WriteObject(physicalPartitionStorageInfos); + } + } + } +} diff --git a/src/CosmosDB/CosmosDB/SQL/NewAzCosmosDBSqlUniqueKeyPolicy.cs b/src/CosmosDB/CosmosDB/SQL/NewAzCosmosDBSqlUniqueKeyPolicy.cs index bcafb3bf3f8d..6edb5364121e 100644 --- a/src/CosmosDB/CosmosDB/SQL/NewAzCosmosDBSqlUniqueKeyPolicy.cs +++ b/src/CosmosDB/CosmosDB/SQL/NewAzCosmosDBSqlUniqueKeyPolicy.cs @@ -15,6 +15,7 @@ using System.Management.Automation; using Microsoft.Azure.Commands.CosmosDB.Models; using Microsoft.Azure.Commands.CosmosDB.Helpers; +using Microsoft.Azure.Management.CosmosDB.Models; namespace Microsoft.Azure.Commands.CosmosDB { @@ -27,8 +28,10 @@ public class NewAzCosmosDBSqlUniqueKeyPolicy : AzureCosmosDBCmdletBase public override void ExecuteCmdlet() { + PSSqlUniqueKeyPolicy uniqueKeyPolicy = new PSSqlUniqueKeyPolicy { + UniqueKeys = UniqueKey }; diff --git a/src/CosmosDB/CosmosDB/SQL/UpdateAzCosmosDBSqlContainerPerPartitionThroughput.cs b/src/CosmosDB/CosmosDB/SQL/UpdateAzCosmosDBSqlContainerPerPartitionThroughput.cs new file mode 100644 index 000000000000..bbe4b71c64a5 --- /dev/null +++ b/src/CosmosDB/CosmosDB/SQL/UpdateAzCosmosDBSqlContainerPerPartitionThroughput.cs @@ -0,0 +1,146 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Management.Automation; +using Microsoft.Azure.Commands.CosmosDB.Models; +using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; +using Microsoft.Azure.Management.CosmosDB.Models; +using Microsoft.Azure.Management.Internal.Resources.Utilities.Models; +using Microsoft.Azure.Commands.CosmosDB.Helpers; +using Microsoft.Azure.Management.CosmosDB; +using System; +using System.Linq; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.CosmosDB +{ + [Cmdlet("Update", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "CosmosDBSqlContainerPerPartitionThroughput", DefaultParameterSetName = NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PSPhysicalPartitionThroughputInfo))] + public class UpdateAzCosmosDBSqlContainerPerPartitionThroughput : AzureCosmosDBCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.AccountNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string AccountName; + + [Parameter(Mandatory = true, ParameterSetName = NameParameterSet, HelpMessage = Constants.DatabaseNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string DatabaseName { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.ContainerNameHelpMessage)] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ParentObjectParameterSet, HelpMessage = Constants.SqlDatabaseObjectHelpMessage)] + [ValidateNotNull] + public PSSqlDatabaseGetResults ParentObject { get; set; } + + [Parameter(Mandatory = true, ValueFromPipeline = true, ParameterSetName = ObjectParameterSet, HelpMessage = Constants.SqlContainerObjectHelpMessage)] + [ValidateNotNull] + public PSSqlContainerGetResults InputObject { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.SourcePhysicalPartitionThroughputHelpMessage)] + public PSPhysicalPartitionThroughputInfo[] SourcePhysicalPartitionThroughputObject { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.TargetPhysicalPartitionThroughputHelpMessage)] + public PSPhysicalPartitionThroughputInfo[] TargetPhysicalPartitionThroughputObject { get; set; } + + [Parameter(Mandatory = false, HelpMessage = Constants.ResetPartitionThroughputLayoutHelpMessage)] + public SwitchParameter EqualDistributionPolicy { get; set; } + + public void PopulateFromParentObject() + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(ParentObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + DatabaseName = resourceIdentifier.ResourceName; + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + public void PopulateFromInputObject() + { + ResourceIdentifier resourceIdentifier = new ResourceIdentifier(InputObject.Id); + ResourceGroupName = resourceIdentifier.ResourceGroupName; + Name = resourceIdentifier.ResourceName; + DatabaseName = ResourceIdentifierExtensions.GetSqlDatabaseName(resourceIdentifier); + AccountName = ResourceIdentifierExtensions.GetDatabaseAccountName(resourceIdentifier); + } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.Equals(ParentObjectParameterSet, StringComparison.Ordinal)) + { + PopulateFromParentObject(); + } + else if (ParameterSetName.Equals(ObjectParameterSet, StringComparison.Ordinal)) + { + PopulateFromInputObject(); + } + + if (ShouldProcess(Name, "Updating throughput")) + { + string throughputPolicy = "Custom"; + + List sourcePartitionInfos = + new List(); + + List targetPartitionInfos = + new List(); + + if (this.EqualDistributionPolicy.IsPresent) + { + throughputPolicy = "Equal"; + } + else + { + if(this.SourcePhysicalPartitionThroughputObject == null || this.TargetPhysicalPartitionThroughputObject == null) + { + throw new ArgumentException("SourcePhysicalPartitionThroughputObject and TargetPhysicalPartitionThroughputObject cannot be null if 'EqualDistributionPolicy' is absent."); + } + + foreach (var item in this.SourcePhysicalPartitionThroughputObject) + { + //NullorEmpty + PhysicalPartitionThroughputInfoResource source = new PhysicalPartitionThroughputInfoResource(item.Id, item.Throughput); + sourcePartitionInfos.Add(source); + } + + foreach (var item in this.TargetPhysicalPartitionThroughputObject) + { + PhysicalPartitionThroughputInfoResource target = new PhysicalPartitionThroughputInfoResource(item.Id, item.Throughput); + targetPartitionInfos.Add(target); + } + } + + RedistributeThroughputParameters redistributeThroughputParameters = new RedistributeThroughputParameters(); + redistributeThroughputParameters.Resource + = new RedistributeThroughputPropertiesResource(throughputPolicy, targetPartitionInfos, sourcePartitionInfos); + + PhysicalPartitionThroughputInfoResult physicalPartitionThroughputInfoResult = + CosmosDBManagementClient.SqlResources.SqlContainerRedistributeThroughput(this.ResourceGroupName, this.AccountName, this.DatabaseName, this.Name, + redistributeThroughputParameters); + + List resultantPartitionInfos = new List(); + foreach (var item in physicalPartitionThroughputInfoResult.Resource.PhysicalPartitionThroughputInfo) + { + resultantPartitionInfos.Add(new PSPhysicalPartitionThroughputInfo(item.Id, item.Throughput.Value)); + } + + WriteObject(resultantPartitionInfos); + } + } + } +} diff --git a/src/CosmosDB/CosmosDB/help/Az.CosmosDB.md b/src/CosmosDB/CosmosDB/help/Az.CosmosDB.md index 0d806ce5afd3..614a5cc5288e 100644 --- a/src/CosmosDB/CosmosDB/help/Az.CosmosDB.md +++ b/src/CosmosDB/CosmosDB/help/Az.CosmosDB.md @@ -54,6 +54,9 @@ Gets the CosmosDB MongoDB Collection. ### [Get-AzCosmosDBMongoDBCollectionBackupInformation](Get-AzCosmosDBMongoDBCollectionBackupInformation.md) Retrieves the latest restorable timestamp for a mongodb collection. +### [Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput](Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput.md) +{{ Fill in the Synopsis }} + ### [Get-AzCosmosDBMongoDBCollectionThroughput](Get-AzCosmosDBMongoDBCollectionThroughput.md) Gets the CosmosDB throughput properties of MongoDB Collection. @@ -81,6 +84,9 @@ Gets the CosmosDB Sql Container. ### [Get-AzCosmosDBSqlContainerBackupInformation](Get-AzCosmosDBSqlContainerBackupInformation.md) Retrieves the latest restorable timestamp for a sql container. +### [Get-AzCosmosDBSqlContainerPerPartitionThroughput](Get-AzCosmosDBSqlContainerPerPartitionThroughput.md) +{{ Fill in the Synopsis }} + ### [Get-AzCosmosDBSqlContainerThroughput](Get-AzCosmosDBSqlContainerThroughput.md) Gets the throughput settings corresponding to a CosmosDB Sql Container. @@ -138,12 +144,18 @@ Use this to migrate autoscale throughput to manual throughput and vice versa. ### [Invoke-AzCosmosDBGremlinGraphThroughputMigration](Invoke-AzCosmosDBGremlinGraphThroughputMigration.md) Use this to migrate autoscale throughput to manual throughput and vice versa. +### [Invoke-AzCosmosDBMongoDBCollectionMerge](Invoke-AzCosmosDBMongoDBCollectionMerge.md) +Invoke Merge for the specified MongoDB collection. + ### [Invoke-AzCosmosDBMongoDBCollectionThroughputMigration](Invoke-AzCosmosDBMongoDBCollectionThroughputMigration.md) Use this to migrate autoscale throughput to manual throughput and vice versa. ### [Invoke-AzCosmosDBMongoDBDatabaseThroughputMigration](Invoke-AzCosmosDBMongoDBDatabaseThroughputMigration.md) Use this to migrate autoscale throughput to manual throughput and vice versa. +### [Invoke-AzCosmosDBSqlContainerMerge](Invoke-AzCosmosDBSqlContainerMerge.md) +Invoke Merge for the specified Sql Container. + ### [Invoke-AzCosmosDBSqlContainerThroughputMigration](Invoke-AzCosmosDBSqlContainerThroughputMigration.md) Use this to migrate autoscale throughput to manual throughput and vice versa. @@ -225,6 +237,9 @@ Creates a new CosmosDB MongoDB Index. ### [New-AzCosmosDBPermission](New-AzCosmosDBPermission.md) Creates a new CosmosDB Permission object to be used to create or update a Role Definition. +### [New-AzCosmosDBPhysicalPartitionThroughputObject](New-AzCosmosDBPhysicalPartitionThroughputObject.md) +{{ Fill in the Synopsis }} + ### [New-AzCosmosDBSqlCompositePath](New-AzCosmosDBSqlCompositePath.md) Creates a new object of type PSCompositePath. It can be passed as a parameter value for Set-AzCosmosDBSqlContainer. @@ -375,6 +390,9 @@ Updates the throughput value of a CosmosDB Gremlin Graph. ### [Update-AzCosmosDBMongoDBCollection](Update-AzCosmosDBMongoDBCollection.md) Updates the CosmosDB MongoDB Collection. Performs a client side patch operation by reading the existing Collection. +### [Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput](Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput.md) +{{ Fill in the Synopsis }} + ### [Update-AzCosmosDBMongoDBCollectionThroughput](Update-AzCosmosDBMongoDBCollectionThroughput.md) Updates the throughput value of a CosmosDB MongoDB Collection. @@ -387,6 +405,9 @@ Updates the throughput value of a CosmosDB MongoDB Database. ### [Update-AzCosmosDBSqlContainer](Update-AzCosmosDBSqlContainer.md) Updates the CosmosDB Sql Container. Performs a client side patch operation by reading the existing Container. +### [Update-AzCosmosDBSqlContainerPerPartitionThroughput](Update-AzCosmosDBSqlContainerPerPartitionThroughput.md) +{{ Fill in the Synopsis }} + ### [Update-AzCosmosDBSqlContainerThroughput](Update-AzCosmosDBSqlContainerThroughput.md) Updates the throughput value of a CosmosDB Sql Container. diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput.md new file mode 100644 index 000000000000..7d1567bfec47 --- /dev/null +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput.md @@ -0,0 +1,249 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml +Module Name: Az.CosmosDB +online version: +schema: 2.0.0 +--- + +# Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput + +## SYNOPSIS +Gets the Partition throughput distribution for a MongoDB collection. + +## SYNTAX + +### ByNameParameterSet (Default) +``` +Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput -ResourceGroupName -DatabaseName + [-Name ] [-PhysicalPartitionIds ] [-AllPartitions] + [-DefaultProfile ] -AccountName [-WhatIf] [-Confirm] [] +``` + +### ByParentObjectParameterSet +``` +Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput [-Name ] -ParentObject + [-PhysicalPartitionIds ] [-AllPartitions] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] +``` + +### ByObjectParameterSet +``` +Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput [-Name ] -InputObject + [-PhysicalPartitionIds ] [-AllPartitions] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] +``` + +## DESCRIPTION +This cmdlet can be used to retrieve the throughput distribution on the partitions of a MongoDB collection. + +## EXAMPLES + +### Example 1 +```powershell +$partitions = Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -AllPartitions + $sources = @() + $targets = @() + Foreach($partition in $partitions) + { + if($partition.Id -lt 2) + { + $throughput = $partition.Throughput - 100 + $sources += New-AzCosmosDBPhysicalPartitionThroughputObject -Id $partition.Id -Throughput $throughput + } + else + { + $throughput = $partition.Throughput + 100 + $targets += New-AzCosmosDBPhysicalPartitionThroughputObject -Id $partition.Id -Throughput $throughput + } + } + + $newPartitions = Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -SourcePhysicalPartitionThroughputObject $sources -TargetPhysicalPartitionThroughputObject $targets + + $resetPartitions = Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -EqualDistributionPolicy + + $somePartitions = Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -PhysicalPartitionIds ('0', '1') +``` +## PARAMETERS + +### -AccountName +Name of the Cosmos DB database account. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AllPartitions +Set this switch to get the throughput for all physical partitions. + +```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 +``` + +### -DatabaseName +Database name. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +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 +``` + +### -InputObject +Sql Container object. + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSSqlContainerGetResults +Parameter Sets: ByObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Container name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ParentObject +Sql Database object. + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSSqlDatabaseGetResults +Parameter Sets: ByParentObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -PhysicalPartitionIds +List of PhysicalPartitionId for which throughput needs to be retrieved. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of resource group. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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 + +### Microsoft.Azure.Commands.CosmosDB.Models.PSSqlDatabaseGetResults + +### Microsoft.Azure.Commands.CosmosDB.Models.PSSqlContainerGetResults + +## OUTPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSPhysicalPartitionThroughputInfo + +## NOTES + +## RELATED LINKS diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBRestorableDatabaseAccount.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBRestorableDatabaseAccount.md index d936f96373d2..a2c206d06072 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBRestorableDatabaseAccount.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBRestorableDatabaseAccount.md @@ -34,6 +34,7 @@ Location : West US DatabaseAccountName : deleted-account-1 CreationTime : 8/2/2020 10:23:00 PM DeletionTime : 8/2/2020 10:26:13 PM +OldestRestorableTime : 8/2/2020 10:23:00 PM ApiType : Sql RestorableLocations : {West US, East US} @@ -43,6 +44,7 @@ Location : East US DatabaseAccountName : deleted-account-2 CreationTime : 8/2/2020 6:32:32 PM DeletionTime : 8/2/2020 6:34:48 PM +OldestRestorableTime : 8/2/2020 6:32:32 PM ApiType : Sql RestorableLocations : {Australia Southeast, East US, West US} @@ -52,6 +54,7 @@ Location : West US DatabaseAccountName : live-account-1 CreationTime : 8/2/2020 6:34:35 PM DeletionTime : +OldestRestorableTime : 8/2/2020 6:34:35 PM ApiType : MongoDB RestorableLocations : {West US} ``` diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlContainerPerPartitionThroughput.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlContainerPerPartitionThroughput.md new file mode 100644 index 000000000000..acd83bdd7f66 --- /dev/null +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlContainerPerPartitionThroughput.md @@ -0,0 +1,251 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml +Module Name: Az.CosmosDB +online version: +schema: 2.0.0 +--- + +# Get-AzCosmosDBSqlContainerPerPartitionThroughput + +## SYNOPSIS +Gets the CosmosDB Sql Container Partition throughput. + +## SYNTAX + +### ByNameParameterSet (Default) +``` +Get-AzCosmosDBSqlContainerPerPartitionThroughput -ResourceGroupName -DatabaseName + [-Name ] [-PhysicalPartitionIds ] [-AllPartitions] + [-DefaultProfile ] -AccountName [-WhatIf] [-Confirm] [] +``` + +### ByParentObjectParameterSet +``` +Get-AzCosmosDBSqlContainerPerPartitionThroughput [-Name ] -ParentObject + [-PhysicalPartitionIds ] [-AllPartitions] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] +``` + +### ByObjectParameterSet +``` +Get-AzCosmosDBSqlContainerPerPartitionThroughput [-Name ] -InputObject + [-PhysicalPartitionIds ] [-AllPartitions] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] +``` + +## DESCRIPTION +This cmdlet can be used to retrieve the throughput applied at partition level on a Sql Container. + +## EXAMPLES + +### Example 1 +```powershell +$partitions = Get-AzCosmosDBSqlContainerPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -AllPartitions + + $sources = @() + $targets = @() + Foreach($partition in $partitions) + { + + if($partition.Id -lt 2) + { + $throughput = $partition.Throughput - 100 + $sources += New-AzCosmosDBPhysicalPartitionThroughputObject -Id $partition.Id -Throughput $throughput + } + else + { + $throughput = $partition.Throughput + 100 + $targets += New-AzCosmosDBPhysicalPartitionThroughputObject -Id $partition.Id -Throughput $throughput + } + } + + $newPartitions = Update-AzCosmosDBSqlContainerPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -SourcePhysicalPartitionThroughputObject $sources -TargetPhysicalPartitionThroughputObject $targets + + $resetPartitions = Update-AzCosmosDBSqlContainerPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -EqualDistributionPolicy + $somePartitions = Get-AzCosmosDBSqlContainerPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -PhysicalPartitionIds ('0', '1') +``` + +## PARAMETERS + +### -AccountName +Name of the Cosmos DB database account. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AllPartitions +Set this switch to get the throughput for all physical partitions. + +```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 +``` + +### -DatabaseName +Database name. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +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 +``` + +### -InputObject +Sql Container object. + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSSqlContainerGetResults +Parameter Sets: ByObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Container name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ParentObject +Sql Database object. + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSSqlDatabaseGetResults +Parameter Sets: ByParentObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -PhysicalPartitionIds +Source physical partitions + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of resource group. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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 + +### Microsoft.Azure.Commands.CosmosDB.Models.PSSqlDatabaseGetResults + +### Microsoft.Azure.Commands.CosmosDB.Models.PSSqlContainerGetResults + +## OUTPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSPhysicalPartitionThroughputInfo + +## NOTES + +## RELATED LINKS diff --git a/src/CosmosDB/CosmosDB/help/Invoke-AzCosmosDBMongoDBCollectionMerge.md b/src/CosmosDB/CosmosDB/help/Invoke-AzCosmosDBMongoDBCollectionMerge.md new file mode 100644 index 000000000000..246c2e904b11 --- /dev/null +++ b/src/CosmosDB/CosmosDB/help/Invoke-AzCosmosDBMongoDBCollectionMerge.md @@ -0,0 +1,221 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml +Module Name: Az.CosmosDB +online version: +schema: 2.0.0 +--- + +# Invoke-AzCosmosDBMongoDBCollectionMerge + +## SYNOPSIS +Invoke Merge for the specified MongoDB collection. + +## SYNTAX + +### ByNameParameterSet (Default) +``` +Invoke-AzCosmosDBMongoDBCollectionMerge -ResourceGroupName [-Name ] [-Force] + [-DefaultProfile ] -AccountName -DatabaseName [-WhatIf] [-Confirm] + [] +``` + +### ByParentObjectParameterSet +``` +Invoke-AzCosmosDBMongoDBCollectionMerge [-Name ] -ParentObject [-Force] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ByObjectParameterSet +``` +Invoke-AzCosmosDBMongoDBCollectionMerge [-Name ] -InputObject [-Force] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +This cmdlet merges the partitions of a MongoDB collection. + +## EXAMPLES + +### Example 1 +```powershell +Invoke-AzCosmosDBMongoDBCollectionMerge -ResourceGroupName "resourceGroupName" -AccountName "accountName" -DatabaseName "databaseName" -Name "name" +``` + +```output +Id StorageInKB +--- ------------ +targetpartition0 100 +targetpartition1 100 +targetpartition2 100 +targetpartition3 100 +``` + +## PARAMETERS + +### -AccountName +Name of the Cosmos DB database account. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DatabaseName +Database name. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +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 +``` + +### -Force +Skips prompt Confirmation of the command. + +```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 +``` + +### -InputObject +Mongo Collection object. + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSSqlContainerGetResults +Parameter Sets: ByObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Collection name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ParentObject +Mongo Database object. + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSSqlDatabaseGetResults +Parameter Sets: ByParentObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of resource group. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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 + +### Microsoft.Azure.Commands.CosmosDB.Models.PSSqlDatabaseGetResults + +### Microsoft.Azure.Commands.CosmosDB.Models.PSSqlContainerGetResults + +## OUTPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSPhysicalPartitionStorageInfo + +## NOTES + +## RELATED LINKS diff --git a/src/CosmosDB/CosmosDB/help/Invoke-AzCosmosDBSqlContainerMerge.md b/src/CosmosDB/CosmosDB/help/Invoke-AzCosmosDBSqlContainerMerge.md new file mode 100644 index 000000000000..eac16118eb0f --- /dev/null +++ b/src/CosmosDB/CosmosDB/help/Invoke-AzCosmosDBSqlContainerMerge.md @@ -0,0 +1,221 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml +Module Name: Az.CosmosDB +online version: +schema: 2.0.0 +--- + +# Invoke-AzCosmosDBSqlContainerMerge + +## SYNOPSIS +Invoke Merge for the specified Sql Container. + +## SYNTAX + +### ByNameParameterSet (Default) +``` +Invoke-AzCosmosDBSqlContainerMerge -ResourceGroupName [-Name ] [-Force] + [-DefaultProfile ] -AccountName -DatabaseName [-WhatIf] [-Confirm] + [] +``` + +### ByParentObjectParameterSet +``` +Invoke-AzCosmosDBSqlContainerMerge [-Name ] -ParentObject [-Force] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ByObjectParameterSet +``` +Invoke-AzCosmosDBSqlContainerMerge [-Name ] -InputObject [-Force] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +The **Invoke-AzCosmosDBSqlContainerMerge** cmdlet merges the partitions for a given container. It is a long running operation. + +## EXAMPLES + +### Example 1 +```powershell +Invoke-AzCosmosDBSqlContainerMerge -ResourceGroupName "resourceGroupName" -AccountName "accountName" -DatabaseName "databaseName" -Name "name" +``` + +```output +Id StorageInKB +--- ------------ +targetpartition0 100 +targetpartition1 100 +targetpartition2 100 +targetpartition3 100 +``` + +## PARAMETERS + +### -AccountName +Name of the Cosmos DB database account. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DatabaseName +Database name. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +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 +``` + +### -Force +Skips prompt Confirmation of the command. + +```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 +``` + +### -InputObject +Sql Container object. + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSSqlContainerGetResults +Parameter Sets: ByObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Container name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ParentObject +Sql Database object. + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSSqlDatabaseGetResults +Parameter Sets: ByParentObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of resource group. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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 + +### Microsoft.Azure.Commands.CosmosDB.Models.PSSqlDatabaseGetResults + +### Microsoft.Azure.Commands.CosmosDB.Models.PSSqlContainerGetResults + +## OUTPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSThroughputSettingsGetResults + +## NOTES + +## RELATED LINKS diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md index 5fbcc33da479..7ebff55c2679 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md @@ -22,8 +22,8 @@ New-AzCosmosDBAccount [-EnableAutomaticFailover] [-EnableMultipleWriteLocations] [-KeyVaultKeyUri ] [-EnableAnalyticalStorage ] [-AsJob] [-NetworkAclBypass ] [-NetworkAclBypassResourceId ] [-ServerVersion ] [-BackupIntervalInMinutes ] [-BackupRetentionIntervalInHours ] [-BackupStorageRedundancy ] [-BackupPolicyType ] - [-AnalyticalStorageSchemaType ] [-DefaultProfile ] [-WhatIf] [-Confirm] - [] + [-ContinuousTier ] [-AnalyticalStorageSchemaType ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -255,6 +255,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ContinuousTier +The tier of continuous backups mode on the Cosmos DB account. Accepted values: Continuous7Days, Continuous30Days + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultConsistencyLevel Default consistency level of the Cosmos DB database account. Accepted values: BoundedStaleness, ConsistentPrefix, Eventual, Session, Strong diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBPhysicalPartitionThroughputObject.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBPhysicalPartitionThroughputObject.md new file mode 100644 index 000000000000..48532c54d6b8 --- /dev/null +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBPhysicalPartitionThroughputObject.md @@ -0,0 +1,92 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml +Module Name: Az.CosmosDB +online version: +schema: 2.0.0 +--- + +# New-AzCosmosDBPhysicalPartitionThroughputObject + +## SYNOPSIS +Creates a new PhysicalPartitionThroughputObject + +## SYNTAX + +``` +New-AzCosmosDBPhysicalPartitionThroughputObject -Id -Throughput + [-DefaultProfile ] [] +``` + +## DESCRIPTION +The **New-AzCosmosDBPhysicalPartitionThroughputObject** cmdlet creates a new PhysicalPartitionThroughputObject that can be used in the throughput redistribution cmdlets. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> $partitionInfo = New-AzCosmosDBPhysicalPartitionThroughputObject -Id '1' -Throughput 200 +``` + +This creates a partition object with Id '1' and throughput 200. + +## PARAMETERS + +### -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 +``` + +### -Id +Id of the physical partition. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Throughput +Throughput of the physical partition. + +```yaml +Type: System.Double +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +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 + +### None + +## OUTPUTS + +### None + +## NOTES + +## RELATED LINKS diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccount.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccount.md index 88300aa61906..15e9835db162 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccount.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccount.md @@ -22,8 +22,9 @@ Update-AzCosmosDBAccount [-EnableAutomaticFailover ] [-EnableMultipleWr [-PublicNetworkAccess ] [-KeyVaultKeyUri ] [-EnableAnalyticalStorage ] [-AsJob] [-NetworkAclBypass ] [-NetworkAclBypassResourceId ] [-ServerVersion ] [-BackupIntervalInMinutes ] [-BackupRetentionIntervalInHours ] - [-BackupStorageRedundancy ] [-BackupPolicyType ] [-AnalyticalStorageSchemaType ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-BackupStorageRedundancy ] [-BackupPolicyType ] [-ContinuousTier ] + [-AnalyticalStorageSchemaType ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ### ByResourceIdParameterSet @@ -36,8 +37,9 @@ Update-AzCosmosDBAccount -ResourceId [-EnableAutomaticFailover ] [-KeyVaultKeyUri ] [-EnableAnalyticalStorage ] [-AsJob] [-NetworkAclBypass ] [-NetworkAclBypassResourceId ] [-ServerVersion ] [-BackupIntervalInMinutes ] [-BackupRetentionIntervalInHours ] - [-BackupStorageRedundancy ] [-BackupPolicyType ] [-AnalyticalStorageSchemaType ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-BackupStorageRedundancy ] [-BackupPolicyType ] [-ContinuousTier ] + [-AnalyticalStorageSchemaType ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ### ByObjectParameterSet @@ -50,8 +52,9 @@ Update-AzCosmosDBAccount -InputObject [-EnableAuto [-PublicNetworkAccess ] [-KeyVaultKeyUri ] [-EnableAnalyticalStorage ] [-AsJob] [-NetworkAclBypass ] [-NetworkAclBypassResourceId ] [-ServerVersion ] [-BackupIntervalInMinutes ] [-BackupRetentionIntervalInHours ] - [-BackupStorageRedundancy ] [-BackupPolicyType ] [-AnalyticalStorageSchemaType ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-BackupStorageRedundancy ] [-BackupPolicyType ] [-ContinuousTier ] + [-AnalyticalStorageSchemaType ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -182,6 +185,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ContinuousTier +The tier of continuous backups mode on the Cosmos DB account. Accepted values: Continuous7Days, Continuous30Days + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultConsistencyLevel Default consistency level of the Cosmos DB database account. Accepted values: BoundedStaleness, ConsistentPrefix, Eventual, Session, Strong diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput.md new file mode 100644 index 000000000000..8f5bf6f2044b --- /dev/null +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput.md @@ -0,0 +1,272 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml +Module Name: Az.CosmosDB +online version: +schema: 2.0.0 +--- + +# Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput + +## SYNOPSIS +Updates the Partition Throughput for a MongoDB collection. + +## SYNTAX + +### ByNameParameterSet (Default) +``` +Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput -ResourceGroupName -DatabaseName + [-Name ] [-SourcePhysicalPartitionThroughputObject ] + [-TargetPhysicalPartitionThroughputObject ] [-EqualDistributionPolicy] + [-DefaultProfile ] -AccountName [-WhatIf] [-Confirm] [] +``` + +### ByParentObjectParameterSet +``` +Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput [-Name ] + -ParentObject + [-SourcePhysicalPartitionThroughputObject ] + [-TargetPhysicalPartitionThroughputObject ] [-EqualDistributionPolicy] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ByObjectParameterSet +``` +Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput [-Name ] + -InputObject + [-SourcePhysicalPartitionThroughputObject ] + [-TargetPhysicalPartitionThroughputObject ] [-EqualDistributionPolicy] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +This cmdlet can be used to redistribute the throughput across partitions in a MongoDB collection. + +## EXAMPLES + +### Example 1 +```powershell +$partitions = Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -AllPartitions + $sources = @() + $targets = @() + Foreach($partition in $partitions) + { + if($partition.Id -lt 2) + { + $throughput = $partition.Throughput - 100 + $sources += New-AzCosmosDBPhysicalPartitionThroughputObject -Id $partition.Id -Throughput $throughput + } + else + { + $throughput = $partition.Throughput + 100 + $targets += New-AzCosmosDBPhysicalPartitionThroughputObject -Id $partition.Id -Throughput $throughput + } + } + + $newPartitions = Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -SourcePhysicalPartitionThroughputObject $sources -TargetPhysicalPartitionThroughputObject $targets + + $resetPartitions = Update-AzCosmosDBMongoDBCollectionPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -EqualDistributionPolicy + + $somePartitions = Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -PhysicalPartitionIds ('0', '1') +``` + +{{ Add example description here }} + +## PARAMETERS + +### -AccountName +Name of the Cosmos DB database account. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DatabaseName +Database name. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +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 +``` + +### -EqualDistributionPolicy +Set this switch to reset the throughput layout for all partitions. + +```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 +``` + +### -InputObject +Sql Container object. + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSSqlContainerGetResults +Parameter Sets: ByObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Container name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ParentObject +Sql Database object. + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSSqlDatabaseGetResults +Parameter Sets: ByParentObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +Name of resource group. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SourcePhysicalPartitionThroughputObject +Source physical partitions + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSPhysicalPartitionThroughputInfo[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TargetPhysicalPartitionThroughputObject +Target physical partitions + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSPhysicalPartitionThroughputInfo[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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 + +### Microsoft.Azure.Commands.CosmosDB.Models.PSSqlDatabaseGetResults + +### Microsoft.Azure.Commands.CosmosDB.Models.PSSqlContainerGetResults + +## OUTPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSPhysicalPartitionThroughputInfo + +## NOTES + +## RELATED LINKS diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlContainerPerPartitionThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlContainerPerPartitionThroughput.md new file mode 100644 index 000000000000..01da71217c25 --- /dev/null +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlContainerPerPartitionThroughput.md @@ -0,0 +1,268 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml +Module Name: Az.CosmosDB +online version: +schema: 2.0.0 +--- + +# Update-AzCosmosDBSqlContainerPerPartitionThroughput + +## SYNOPSIS +Updates the throughput of selected partitions in a CosmosDB Sql container. + +## SYNTAX + +### ByNameParameterSet (Default) +``` +Update-AzCosmosDBSqlContainerPerPartitionThroughput -ResourceGroupName -DatabaseName + [-Name ] [-SourcePhysicalPartitionThroughputObject ] + [-TargetPhysicalPartitionThroughputObject ] [-EqualDistributionPolicy] + [-DefaultProfile ] -AccountName [-WhatIf] [-Confirm] [] +``` + +### ByParentObjectParameterSet +``` +Update-AzCosmosDBSqlContainerPerPartitionThroughput [-Name ] -ParentObject + [-SourcePhysicalPartitionThroughputObject ] + [-TargetPhysicalPartitionThroughputObject ] [-EqualDistributionPolicy] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ByObjectParameterSet +``` +Update-AzCosmosDBSqlContainerPerPartitionThroughput [-Name ] -InputObject + [-SourcePhysicalPartitionThroughputObject ] + [-TargetPhysicalPartitionThroughputObject ] [-EqualDistributionPolicy] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +This cmdlet can be used to redistribute the throughput across partitions in a CosmosDB Sql container. + +## EXAMPLES + +### Example 1 +```powershell +$partitions = Get-AzCosmosDBSqlContainerPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -AllPartitions + + $sources = @() + $targets = @() + Foreach($partition in $partitions) + { + + if($partition.Id -lt 2) + { + $throughput = $partition.Throughput - 100 + $sources += New-AzCosmosDBPhysicalPartitionThroughputObject -Id $partition.Id -Throughput $throughput + } + else + { + $throughput = $partition.Throughput + 100 + $targets += New-AzCosmosDBPhysicalPartitionThroughputObject -Id $partition.Id -Throughput $throughput + } + } + + $newPartitions = Update-AzCosmosDBSqlContainerPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -SourcePhysicalPartitionThroughputObject $sources -TargetPhysicalPartitionThroughputObject $targets + + $resetPartitions = Update-AzCosmosDBSqlContainerPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -EqualDistributionPolicy + $somePartitions = Get-AzCosmosDBSqlContainerPerPartitionThroughput -ResourceGroupName $rgName -AccountName $AccountName -DatabaseName $DatabaseName -Name $ContainerName -PhysicalPartitionIds ('0', '1') +``` +## PARAMETERS + +### -AccountName +Name of the Cosmos DB database account. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DatabaseName +Database name. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +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 +``` + +### -InputObject +Sql Container object. + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSSqlContainerGetResults +Parameter Sets: ByObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Container name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ParentObject +Sql Database object. + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSSqlDatabaseGetResults +Parameter Sets: ByParentObjectParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -EqualDistributionPolicy +Set this switch to reset the throughput layout for all partitions. + +```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 +``` + +### -ResourceGroupName +Name of resource group. + +```yaml +Type: System.String +Parameter Sets: ByNameParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SourcePhysicalPartitionThroughputObject +Source physical partitions + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSPhysicalPartitionThroughputInfo[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TargetPhysicalPartitionThroughputObject +Target physical partitions + +```yaml +Type: Microsoft.Azure.Commands.CosmosDB.Models.PSPhysicalPartitionThroughputInfo[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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 + +### Microsoft.Azure.Commands.CosmosDB.Models.PSSqlDatabaseGetResults + +### Microsoft.Azure.Commands.CosmosDB.Models.PSSqlContainerGetResults + +## OUTPUTS + +### Microsoft.Azure.Commands.CosmosDB.Models.PSPhysicalPartitionThroughputInfo + +## NOTES + +## RELATED LINKS diff --git a/src/IotHub/IotHub.Test/ScenarioTests/IotHubController.cs b/src/IotHub/IotHub.Test/ScenarioTests/IotHubController.cs deleted file mode 100644 index 7775048b4376..000000000000 --- a/src/IotHub/IotHub.Test/ScenarioTests/IotHubController.cs +++ /dev/null @@ -1,157 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// 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.Diagnostics; -using Microsoft.Azure.Management.EventHub; -using Microsoft.Azure.Management.Storage; -using Microsoft.Azure.Management.Internal.Resources; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using Microsoft.Azure.Commands.Common.Authentication; -using Microsoft.Azure.Management.IotHub; -using Microsoft.Azure.Test.HttpRecorder; -using Microsoft.Rest.ClientRuntime.Azure.TestFramework; -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; - -namespace Microsoft.Azure.Commands.IotHub.Test.ScenarioTests -{ - public sealed class IotHubController - { - private readonly EnvironmentSetupHelper _helper; - - public ResourceManagementClient ResourceManagementClient { get; private set; } - - public IotHubClient IotHubClient { get; private set; } - - public StorageManagementClient StorageClient { get; private set; } - - public EventHubManagementClient EHClient { get; private set; } - - public string UserDomain { get; private set; } - - public static IotHubController NewInstance => new IotHubController(); - - public IotHubController() - { - _helper = new EnvironmentSetupHelper(); - } - - public void RunPsTest(XunitTracingInterceptor logger, params string[] scripts) - { - var sf = new StackTrace().GetFrame(1); - var callingClassType = sf.GetMethod().ReflectedType?.ToString(); - var mockName = sf.GetMethod().Name; - - RunPsTestWorkflow( - logger, - () => scripts, - // no custom cleanup - null, - callingClassType, - mockName); - } - - - public void RunPsTestWorkflow( - XunitTracingInterceptor logger, - Func scriptBuilder, - Action cleanup, - string callingClassType, - string mockName) - { - _helper.TracingInterceptor = logger; - var d = new Dictionary - { - {"Microsoft.Resources", null}, - {"Microsoft.Features", null}, - {"Microsoft.Storage", null }, - {"Microsoft.Authorization", null}, - {"Microsoft.EventHub", null} - }; - var providersToIgnore = new Dictionary - { - {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} - }; - HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore); - - HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords"); - using (var context = MockContext.Start(callingClassType, mockName)) - { - SetupManagementClients(context); - - _helper.SetupEnvironment(AzureModule.AzureResourceManager); - - var callingClassName = callingClassType.Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries).Last(); - _helper.SetupModules(AzureModule.AzureResourceManager, - "Assert.ps1", - "Common.ps1", - "ScenarioTests\\" + callingClassName + ".ps1", - _helper.RMProfileModule, - _helper.GetRMModulePath(@"AzureRM.IotHub.psd1"), - _helper.GetRMModulePath(@"AzureRM.EventHub.psd1"), - _helper.GetRMModulePath(@"AzureRM.Storage.psd1"), - "AzureRM.Resources.ps1"); - - try - { - var psScripts = scriptBuilder?.Invoke(); - - if (psScripts != null) - { - _helper.RunPowerShellTest(psScripts); - } - } - finally - { - cleanup?.Invoke(); - } - } - } - - private void SetupManagementClients(MockContext context) - { - ResourceManagementClient = GetResourceManagementClient(context); - IotHubClient = GetIotHubClient(context); - StorageClient = GetStorageManagementClient(context); - EHClient = GetEHClient(context); - - _helper.SetupManagementClients(ResourceManagementClient, - IotHubClient, - StorageClient, - EHClient); - } - - private static ResourceManagementClient GetResourceManagementClient(MockContext context) - { - return context.GetServiceClient(Rest.ClientRuntime.Azure.TestFramework.TestEnvironmentFactory.GetTestEnvironment()); - } - - private static IotHubClient GetIotHubClient(MockContext context) - { - return context.GetServiceClient(Rest.ClientRuntime.Azure.TestFramework.TestEnvironmentFactory.GetTestEnvironment()); - } - private static StorageManagementClient GetStorageManagementClient(MockContext context) - { - return context.GetServiceClient(Rest.ClientRuntime.Azure.TestFramework.TestEnvironmentFactory.GetTestEnvironment()); - } - - private static EventHubManagementClient GetEHClient(MockContext context) - { - return context.GetServiceClient(Rest.ClientRuntime.Azure.TestFramework.TestEnvironmentFactory.GetTestEnvironment()); - } - } -} diff --git a/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPConfigurationTests.cs b/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPConfigurationTests.cs index d105b4c5ab80..7176d8ce39bc 100644 --- a/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPConfigurationTests.cs +++ b/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPConfigurationTests.cs @@ -12,29 +12,23 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; using Xunit.Abstractions; namespace Microsoft.Azure.Commands.IotHub.Test.ScenarioTests { - public class IotHubDPConfigurationTests : RMTestBase + public class IotHubDPConfigurationTests : IotHubTestRunner { - public XunitTracingInterceptor _logger; - - public IotHubDPConfigurationTests(ITestOutputHelper output) + public IotHubDPConfigurationTests(ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.LiveOnly)] public void TestAzureIotHubConfigurationLifecycle() { - IotHubController.NewInstance.RunPsTest(_logger, "Test-AzureRmIotHubConfigurationLifecycle"); + TestRunner.RunTestScript("Test-AzureRmIotHubConfigurationLifecycle"); } } } diff --git a/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPDeviceTests.cs b/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPDeviceTests.cs index f246cc03cf70..d5982180c3db 100644 --- a/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPDeviceTests.cs +++ b/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPDeviceTests.cs @@ -12,29 +12,23 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; using Xunit.Abstractions; namespace Microsoft.Azure.Commands.IotHub.Test.ScenarioTests { - public class IotHubDPDeviceTests : RMTestBase + public class IotHubDPDeviceTests : IotHubTestRunner { - public XunitTracingInterceptor _logger; - - public IotHubDPDeviceTests(ITestOutputHelper output) + public IotHubDPDeviceTests(ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.LiveOnly)] public void TestAzureIotHubDeviceLifecycle() { - IotHubController.NewInstance.RunPsTest(_logger, "Test-AzureRmIotHubDeviceLifecycle"); + TestRunner.RunTestScript("Test-AzureRmIotHubDeviceLifecycle"); } } } diff --git a/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPModuleTests.cs b/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPModuleTests.cs index 6c64158a8d64..4dd5745d45c1 100644 --- a/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPModuleTests.cs +++ b/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPModuleTests.cs @@ -12,29 +12,23 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; using Xunit.Abstractions; namespace Microsoft.Azure.Commands.IotHub.Test.ScenarioTests { - public class IotHubDPModuleTests : RMTestBase + public class IotHubDPModuleTests : IotHubTestRunner { - public XunitTracingInterceptor _logger; - - public IotHubDPModuleTests(ITestOutputHelper output) + public IotHubDPModuleTests(ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.LiveOnly)] public void TestAzureIotHubModuleLifecycle() { - IotHubController.NewInstance.RunPsTest(_logger, "Test-AzureRmIotHubModuleLifecycle"); + TestRunner.RunTestScript("Test-AzureRmIotHubModuleLifecycle"); } } } diff --git a/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPTracingTests.cs b/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPTracingTests.cs index e279903a511c..c73f7c09d6b2 100644 --- a/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPTracingTests.cs +++ b/src/IotHub/IotHub.Test/ScenarioTests/IotHubDPTracingTests.cs @@ -12,29 +12,23 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; using Xunit.Abstractions; namespace Microsoft.Azure.Commands.IotHub.Test.ScenarioTests { - public class IotHubDPTracingTests : RMTestBase + public class IotHubDPTracingTests : IotHubTestRunner { - public XunitTracingInterceptor _logger; - - public IotHubDPTracingTests(ITestOutputHelper output) + public IotHubDPTracingTests(ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.LiveOnly)] public void TestAzureIotHubTracing() { - IotHubController.NewInstance.RunPsTest(_logger, "Test-AzureRmIotHubTracing"); + TestRunner.RunTestScript("Test-AzureRmIotHubTracing"); } } } diff --git a/src/IotHub/IotHub.Test/ScenarioTests/IotHubRoutingTests.cs b/src/IotHub/IotHub.Test/ScenarioTests/IotHubRoutingTests.cs index bb3f8f11f6fb..7810ee334596 100644 --- a/src/IotHub/IotHub.Test/ScenarioTests/IotHubRoutingTests.cs +++ b/src/IotHub/IotHub.Test/ScenarioTests/IotHubRoutingTests.cs @@ -12,22 +12,16 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; using Xunit.Abstractions; namespace Microsoft.Azure.Commands.IotHub.Test.ScenarioTests { - public class IotHubRoutingTests : RMTestBase + public class IotHubRoutingTests : IotHubTestRunner { - public XunitTracingInterceptor _logger; - - public IotHubRoutingTests(ITestOutputHelper output) + public IotHubRoutingTests(ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] @@ -35,7 +29,7 @@ public IotHubRoutingTests(ITestOutputHelper output) [Trait("Re-record", "ClientRuntime changes")] public void TestAzureIotHubRoutingLifeCycle() { - IotHubController.NewInstance.RunPsTest(_logger, "Test-AzureRmIotHubRoutingLifecycle"); + TestRunner.RunTestScript("Test-AzureRmIotHubRoutingLifecycle"); } } } diff --git a/src/IotHub/IotHub.Test/ScenarioTests/IotHubTestRunner.cs b/src/IotHub/IotHub.Test/ScenarioTests/IotHubTestRunner.cs new file mode 100644 index 000000000000..81d4810e5576 --- /dev/null +++ b/src/IotHub/IotHub.Test/ScenarioTests/IotHubTestRunner.cs @@ -0,0 +1,60 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Collections.Generic; +using Microsoft.Azure.Commands.TestFx; +using Xunit.Abstractions; + +namespace Microsoft.Azure.Commands.IotHub.Test.ScenarioTests +{ + public class IotHubTestRunner + { + protected readonly ITestRunner TestRunner; + + protected IotHubTestRunner(ITestOutputHelper output) + { + TestRunner = TestManager.CreateInstance(output) + .WithNewPsScriptFilename($"{GetType().Name}.ps1") + .WithProjectSubfolderForTests("ScenarioTests") + .WithCommonPsScripts(new[] + { + @"Assert.ps1", + @"Common.ps1", + @"../AzureRM.Resources.ps1" + }) + .WithNewRmModules(helper => new[] + { + helper.RMProfileModule, + helper.GetRMModulePath("Az.IotHub.psd1"), + helper.GetRMModulePath("Az.EventHub.psd1"), + helper.GetRMModulePath("Az.Storage.psd1") + }) + .WithNewRecordMatcherArguments( + userAgentsToIgnore: new Dictionary + { + {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} + }, + resourceProviders: new Dictionary + { + {"Microsoft.Resources", null}, + {"Microsoft.Features", null}, + {"Microsoft.Storage", null }, + {"Microsoft.Authorization", null}, + {"Microsoft.EventHub", null} + } + ) + .Build(); + } + } +} diff --git a/src/IotHub/IotHub.Test/ScenarioTests/IotHubTests.cs b/src/IotHub/IotHub.Test/ScenarioTests/IotHubTests.cs index 6b2094856bc3..4b5fa2d7f765 100644 --- a/src/IotHub/IotHub.Test/ScenarioTests/IotHubTests.cs +++ b/src/IotHub/IotHub.Test/ScenarioTests/IotHubTests.cs @@ -12,22 +12,16 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; using Xunit.Abstractions; namespace Microsoft.Azure.Commands.IotHub.Test.ScenarioTests { - public class IotHubTests : RMTestBase + public class IotHubTests : IotHubTestRunner { - public XunitTracingInterceptor _logger; - - public IotHubTests(ITestOutputHelper output) + public IotHubTests(ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] @@ -35,7 +29,7 @@ public IotHubTests(ITestOutputHelper output) [Trait("Re-record", "ClientRuntime changes")] public void TestAzureIotHubLifeCycle() { - IotHubController.NewInstance.RunPsTest(_logger, "Test-AzureRmIotHubLifecycle"); + TestRunner.RunTestScript("Test-AzureRmIotHubLifecycle"); } #if NETSTANDARD @@ -49,7 +43,7 @@ public void TestAzureIotHubLifeCycle() [Trait("Requires", "Elevated Privileges")] public void TestAzureIotHubCertificateLifeCycle() { - IotHubController.NewInstance.RunPsTest(_logger, "Test-AzureRmIotHubCertificateLifecycle"); + TestRunner.RunTestScript("Test-AzureRmIotHubCertificateLifecycle"); } } } diff --git a/src/Monitor/Monitor.Test/ScenarioTests/ActionGroupsTests.cs b/src/Monitor/Monitor.Test/ScenarioTests/ActionGroupsTests.cs index 87fdd7054135..224749f588ae 100644 --- a/src/Monitor/Monitor.Test/ScenarioTests/ActionGroupsTests.cs +++ b/src/Monitor/Monitor.Test/ScenarioTests/ActionGroupsTests.cs @@ -12,29 +12,22 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using System; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; -using Microsoft.Azure.ServiceManagement.Common.Models; namespace Microsoft.Azure.Commands.Insights.Test.ScenarioTests { - public class ActionGroupsTests : RMTestBase + public class ActionGroupsTests : MonitorTestRunner { - public XunitTracingInterceptor _logger; - - public ActionGroupsTests(Xunit.Abstractions.ITestOutputHelper output) + public ActionGroupsTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddGetListSetRemoveActionGroup() { - TestsController.NewInstance.RunPsTest(_logger, "Test-AddGetListSetRemoveActionGroup"); + TestRunner.RunTestScript("Test-AddGetListSetRemoveActionGroup"); } } } diff --git a/src/Monitor/Monitor.Test/ScenarioTests/ActivityLogAlertsTests.cs b/src/Monitor/Monitor.Test/ScenarioTests/ActivityLogAlertsTests.cs index a453024ba162..d30adaf85fde 100644 --- a/src/Monitor/Monitor.Test/ScenarioTests/ActivityLogAlertsTests.cs +++ b/src/Monitor/Monitor.Test/ScenarioTests/ActivityLogAlertsTests.cs @@ -12,28 +12,22 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; namespace Microsoft.Azure.Commands.Insights.Test.ScenarioTests { - public class ActivityLogAlertsTests : RMTestBase + public class ActivityLogAlertsTests : MonitorTestRunner { - public XunitTracingInterceptor _logger; - - public ActivityLogAlertsTests(Xunit.Abstractions.ITestOutputHelper output) + public ActivityLogAlertsTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestSetGetListUpdateRemoveActivityLogAlert() { - TestsController.NewInstance.RunPsTest(_logger, "Test-SetGetListUpdateRemoveActivityLogAlert"); + TestRunner.RunTestScript("Test-SetGetListUpdateRemoveActivityLogAlert"); } } } diff --git a/src/Monitor/Monitor.Test/ScenarioTests/ActivityLogsTests.cs b/src/Monitor/Monitor.Test/ScenarioTests/ActivityLogsTests.cs index e49ca5b97f0a..262013ec7683 100644 --- a/src/Monitor/Monitor.Test/ScenarioTests/ActivityLogsTests.cs +++ b/src/Monitor/Monitor.Test/ScenarioTests/ActivityLogsTests.cs @@ -12,42 +12,36 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; namespace Microsoft.Azure.Commands.Insights.Test.ScenarioTests { - public class ActivityLogsTests : RMTestBase + public class ActivityLogsTests : MonitorTestRunner { - public XunitTracingInterceptor _logger; - - public ActivityLogsTests(Xunit.Abstractions.ITestOutputHelper output) + public ActivityLogsTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetAzureLogAllParameters() { - TestsController.NewInstance.RunPsTest(_logger, "Test-GetAzureLogAllParameters"); + TestRunner.RunTestScript("Test-GetAzureLogAllParameters"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetAzureSubscriptionIdLogMaxEvents() { - TestsController.NewInstance.RunPsTest(_logger, "Test-GetAzureSubscriptionIdLogMaxEvents"); + TestRunner.RunTestScript("Test-GetAzureSubscriptionIdLogMaxEvents"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetAzureSubscriptionIdLogPaged() { - TestsController.NewInstance.RunPsTest(_logger, "Test-GetAzureSubscriptionIdLogPaged"); + TestRunner.RunTestScript("Test-GetAzureSubscriptionIdLogPaged"); } } } diff --git a/src/Monitor/Monitor.Test/ScenarioTests/AlertsTests.cs b/src/Monitor/Monitor.Test/ScenarioTests/AlertsTests.cs index a1dc15b63025..eacd4eb3c923 100644 --- a/src/Monitor/Monitor.Test/ScenarioTests/AlertsTests.cs +++ b/src/Monitor/Monitor.Test/ScenarioTests/AlertsTests.cs @@ -12,147 +12,141 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; namespace Microsoft.Azure.Commands.Insights.Test.ScenarioTests { - public class AlertsTests : RMTestBase + public class AlertsTests : MonitorTestRunner { - public XunitTracingInterceptor _logger; - - public AlertsTests(Xunit.Abstractions.ITestOutputHelper output) + public AlertsTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestNewAzureRmAlertRuleWebhook() { - TestsController.NewInstance.RunPsTest(_logger, "Test-NewAzureRmAlertRuleWebhook"); + TestRunner.RunTestScript("Test-NewAzureRmAlertRuleWebhook"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestNewAzureRmAlertRuleEmail() { - TestsController.NewInstance.RunPsTest(_logger, "Test-NewAzureRmAlertRuleEmail"); + TestRunner.RunTestScript("Test-NewAzureRmAlertRuleEmail"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAzureRmMetricAlertRule() { - TestsController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmMetricAlertRule"); + TestRunner.RunTestScript("Test-AddAzureRmMetricAlertRule"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAzureRmWebtestAlertRule() { - TestsController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmWebtestAlertRule"); + TestRunner.RunTestScript("Test-AddAzureRmWebtestAlertRule"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetAzureRmAlertRule() { - TestsController.NewInstance.RunPsTest(_logger, "Test-GetAzureRmAlertRule"); + TestRunner.RunTestScript("Test-GetAzureRmAlertRule"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetAzureRmAlertRuleByName() { - TestsController.NewInstance.RunPsTest(_logger, "Test-GetAzureRmAlertRuleByName"); + TestRunner.RunTestScript("Test-GetAzureRmAlertRuleByName"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRemoveAzureRmAlertRule() { - TestsController.NewInstance.RunPsTest(_logger, "Test-RemoveAzureRmAlertRule"); + TestRunner.RunTestScript("Test-RemoveAzureRmAlertRule"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetAzureRmAlertHistory() { - TestsController.NewInstance.RunPsTest(_logger, "Test-GetAzureRmAlertHistory"); + TestRunner.RunTestScript("Test-GetAzureRmAlertHistory"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetAzureRmMetricAlertRuleV2() { - TestsController.NewInstance.RunPsTest(_logger, "Test-GetAzureRmMetricAlertRuleV2"); + TestRunner.RunTestScript("Test-GetAzureRmMetricAlertRuleV2"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRemoveAzureRmMetricAlertRuleV2() { - TestsController.NewInstance.RunPsTest(_logger, "Test-RemoveAzureRmAlertRuleV2"); + TestRunner.RunTestScript("Test-RemoveAzureRmAlertRuleV2"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAzureRmMetricAlertRuleV2() { - TestsController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmMetricAlertRuleV2"); + TestRunner.RunTestScript("Test-AddAzureRmMetricAlertRuleV2"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAzureRmMetricAlertRuleV2WithoutActionGroup() { - TestsController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmMetricAlertRuleV2-NoActionGroup"); + TestRunner.RunTestScript("Test-AddAzureRmMetricAlertRuleV2-NoActionGroup"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAzureRmMetricAlertRuleV2WithActionGroupId() { - TestsController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmMetricAlertRuleV2-ActionGroupId"); + TestRunner.RunTestScript("Test-AddAzureRmMetricAlertRuleV2-ActionGroupId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAzureRmMetricAlertRuleV2WithSkipMetricValidation() { - TestsController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmMetricAlertRuleV2-SkipMetricValidation"); + TestRunner.RunTestScript("Test-AddAzureRmMetricAlertRuleV2-SkipMetricValidation"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAzureRmMetricAlertRuleV2WithAutoMitigate() { - TestsController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmMetricAlertRuleV2-autoMitigate"); + TestRunner.RunTestScript("Test-AddAzureRmMetricAlertRuleV2-autoMitigate"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestDisableAzureRmMetricAlertRuleV2WithActionGroups() { - TestsController.NewInstance.RunPsTest(_logger, "Test-DisableAzureRmMetricAlertRuleV2WithActionGroups"); + TestRunner.RunTestScript("Test-DisableAzureRmMetricAlertRuleV2WithActionGroups"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAzureRmDynamicMetricAlertRuleV2() { - TestsController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmMetricAlertRuleV2-DynamicThreshold"); + TestRunner.RunTestScript("Test-AddAzureRmMetricAlertRuleV2-DynamicThreshold"); } [Fact] [Trait(Category.AcceptanceType, Category.LiveOnly)] public void TestAddAzureRmWebtestAlertRuleV2() { - TestsController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmMetricAlertRuleV2-Webtest"); + TestRunner.RunTestScript("Test-AddAzureRmMetricAlertRuleV2-Webtest"); } } } diff --git a/src/Monitor/Monitor.Test/ScenarioTests/AutoscaleTests.cs b/src/Monitor/Monitor.Test/ScenarioTests/AutoscaleTests.cs index 53b7efb8fe10..d7b54afa3cab 100644 --- a/src/Monitor/Monitor.Test/ScenarioTests/AutoscaleTests.cs +++ b/src/Monitor/Monitor.Test/ScenarioTests/AutoscaleTests.cs @@ -12,70 +12,64 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; namespace Microsoft.Azure.Commands.Insights.Test.ScenarioTests { - public class AutoscaleTests : RMTestBase + public class AutoscaleTests : MonitorTestRunner { - public XunitTracingInterceptor _logger; - - public AutoscaleTests(Xunit.Abstractions.ITestOutputHelper output) + public AutoscaleTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAzureRmAutoscaleSetting() { - TestsController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmAutoscaleSetting"); + TestRunner.RunTestScript("Test-AddAzureRmAutoscaleSetting"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetAzureRmAutoscaleSetting() { - TestsController.NewInstance.RunPsTest(_logger, "Test-GetAzureRmAutoscaleSetting"); + TestRunner.RunTestScript("Test-GetAzureRmAutoscaleSetting"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetAzureRmAutoscaleSettingByName() { - TestsController.NewInstance.RunPsTest(_logger, "Test-GetAzureRmAutoscaleSettingByName"); + TestRunner.RunTestScript("Test-GetAzureRmAutoscaleSettingByName"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRemoveAzureRmAutoscaleSetting() { - TestsController.NewInstance.RunPsTest(_logger, "Test-RemoveAzureRmAutoscaleSetting"); + TestRunner.RunTestScript("Test-RemoveAzureRmAutoscaleSetting"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetAzureRmAutoscaleHistory() { - TestsController.NewInstance.RunPsTest(_logger, "Test-GetAzureRmAutoscaleHistory"); + TestRunner.RunTestScript("Test-GetAzureRmAutoscaleHistory"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestNewAzureRmAutoscaleNotification() { - TestsController.NewInstance.RunPsTest(_logger, "Test-NewAzureRmAutoscaleNotification"); + TestRunner.RunTestScript("Test-NewAzureRmAutoscaleNotification"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestNewAzureRmAutoscaleWebhook() { - TestsController.NewInstance.RunPsTest(_logger, "Test-NewAzureRmAutoscaleWebhook"); + TestRunner.RunTestScript("Test-NewAzureRmAutoscaleWebhook"); } } } diff --git a/src/Monitor/Monitor.Test/ScenarioTests/AzureRmDiagnosticSettingTests.cs b/src/Monitor/Monitor.Test/ScenarioTests/AzureRmDiagnosticSettingTests.cs index 646172711337..c172f2c1d9c8 100644 --- a/src/Monitor/Monitor.Test/ScenarioTests/AzureRmDiagnosticSettingTests.cs +++ b/src/Monitor/Monitor.Test/ScenarioTests/AzureRmDiagnosticSettingTests.cs @@ -12,91 +12,85 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; namespace Microsoft.Azure.Commands.Insights.Test.ScenarioTests { - public class AzureRmDiagnosticSettingTests : RMTestBase + public class AzureRmDiagnosticSettingTests : MonitorTestRunner { - public XunitTracingInterceptor _logger; - - public AzureRmDiagnosticSettingTests(Xunit.Abstractions.ITestOutputHelper output) + public AzureRmDiagnosticSettingTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetAzureRmDiagnosticSetting() { - TestsController.NewInstance.RunPsTest(_logger, "Test-GetAzureRmDiagnosticSetting"); + TestRunner.RunTestScript("Test-GetAzureRmDiagnosticSetting"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestSetAzureRmDiagnosticSettingCreate() { - TestsController.NewInstance.RunPsTest(_logger, "Test-SetAzureRmDiagnosticSettingCreate"); + TestRunner.RunTestScript("Test-SetAzureRmDiagnosticSettingCreate"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestSetAzureRmDiagnosticSettingUpdate() { - TestsController.NewInstance.RunPsTest(_logger, "Test-SetAzureRmDiagnosticSettingUpdate"); + TestRunner.RunTestScript("Test-SetAzureRmDiagnosticSettingUpdate"); } [Fact] //(Skip = "TODO: fixing this test after introducing Swagger specs")] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestSetAzureRmDiagnosticSettingWithRetention() { - TestsController.NewInstance.RunPsTest(_logger, "Test-SetAzureRmDiagnosticSettingWithRetention"); + TestRunner.RunTestScript("Test-SetAzureRmDiagnosticSettingWithRetention"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestSetAzureRmDiagnosticSettingCategoriesOnly() { - TestsController.NewInstance.RunPsTest(_logger, "Test-SetAzureRmDiagnosticSetting-CategoriesOnly"); + TestRunner.RunTestScript("Test-SetAzureRmDiagnosticSetting-CategoriesOnly"); } [Fact] //(Skip = "TODO: fixing this test after introducing Swagger specs")] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestSetAzureRmDiagnosticSettingTimeGrainsOnly() { - TestsController.NewInstance.RunPsTest(_logger, "Test-SetAzureRmDiagnosticSetting-TimegrainsOnly"); + TestRunner.RunTestScript("Test-SetAzureRmDiagnosticSetting-TimegrainsOnly"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestSetAzureRmDiagnosticSettingEventHub() { - TestsController.NewInstance.RunPsTest(_logger, "Test-SetAzureRmDiagnosticSetting-EventHub"); + TestRunner.RunTestScript("Test-SetAzureRmDiagnosticSetting-EventHub"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestSetAzureRmDiagnosticSettingLogAnalytics() { - TestsController.NewInstance.RunPsTest(_logger, "Test-SetAzureRmDiagnosticSetting-LogAnalytics"); + TestRunner.RunTestScript("Test-SetAzureRmDiagnosticSetting-LogAnalytics"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetAzDiagnosticSettingCategory() { - TestsController.NewInstance.RunPsTest(_logger, "Test-GetAzDiagnosticSettingCategory"); + TestRunner.RunTestScript("Test-GetAzDiagnosticSettingCategory"); } [Fact] [Trait(Category.AcceptanceType, Category.LiveOnly)] public void TestSubscriptionDiagnosticSetting() { - TestsController.NewInstance.RunPsTest(_logger, "Test-SubscriptionDiagnosticSetting"); + TestRunner.RunTestScript("Test-SubscriptionDiagnosticSetting"); } } } diff --git a/src/Monitor/Monitor.Test/ScenarioTests/AzureRmLogProfileTests.cs b/src/Monitor/Monitor.Test/ScenarioTests/AzureRmLogProfileTests.cs index 119700dbee88..4e188a094c77 100644 --- a/src/Monitor/Monitor.Test/ScenarioTests/AzureRmLogProfileTests.cs +++ b/src/Monitor/Monitor.Test/ScenarioTests/AzureRmLogProfileTests.cs @@ -12,42 +12,36 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; namespace Microsoft.Azure.Commands.Insights.Test.ScenarioTests { - public class AzureRmLogProfileTests : RMTestBase + public class AzureRmLogProfileTests : MonitorTestRunner { - public XunitTracingInterceptor _logger; - - public AzureRmLogProfileTests(Xunit.Abstractions.ITestOutputHelper output) + public AzureRmLogProfileTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] //(Skip = "TODO: fixing this test after introducing Swagger specs")] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetAzureRmLogProfile() { - TestsController.NewInstance.RunPsTest(_logger, "Test-GetAzureRmLogProfile"); + TestRunner.RunTestScript("Test-GetAzureRmLogProfile"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAzureRmLogProfile() { - TestsController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmLogProfile"); + TestRunner.RunTestScript("Test-AddAzureRmLogProfile"); } [Fact] //(Skip = "TODO: fixing this test after introducing Swagger specs")] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAzureRmLogProfileWithRetention() { - TestsController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmLogProfileWithRetention"); + TestRunner.RunTestScript("Test-AddAzureRmLogProfileWithRetention"); } } } diff --git a/src/Monitor/Monitor.Test/ScenarioTests/DataCollectionRulesTests.cs b/src/Monitor/Monitor.Test/ScenarioTests/DataCollectionRulesTests.cs index 3a5ed0b3b25f..c50dc408d019 100644 --- a/src/Monitor/Monitor.Test/ScenarioTests/DataCollectionRulesTests.cs +++ b/src/Monitor/Monitor.Test/ScenarioTests/DataCollectionRulesTests.cs @@ -12,29 +12,22 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using System; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; -using Microsoft.Azure.ServiceManagement.Common.Models; namespace Microsoft.Azure.Commands.Insights.Test.ScenarioTests { - public class DataCollectionRulesTests : RMTestBase + public class DataCollectionRulesTests : MonitorTestRunner { - public XunitTracingInterceptor _logger; - - public DataCollectionRulesTests(Xunit.Abstractions.ITestOutputHelper output) + public DataCollectionRulesTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void AddGetListSetRemoveDataCollectionRulesAndAssociations() { - TestsController.NewInstance.RunPsTest(_logger, "Test-AddGetListSetRemoveDataCollectionRulesAndAssociations"); + TestRunner.RunTestScript("Test-AddGetListSetRemoveDataCollectionRulesAndAssociations"); } } } diff --git a/src/Monitor/Monitor.Test/ScenarioTests/MetricsTests.cs b/src/Monitor/Monitor.Test/ScenarioTests/MetricsTests.cs index 4b4578207cdc..6cd25d4c578c 100644 --- a/src/Monitor/Monitor.Test/ScenarioTests/MetricsTests.cs +++ b/src/Monitor/Monitor.Test/ScenarioTests/MetricsTests.cs @@ -12,35 +12,29 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; namespace Microsoft.Azure.Commands.Insights.Test.ScenarioTests { - public class MetricsTests : RMTestBase + public class MetricsTests : MonitorTestRunner { - public XunitTracingInterceptor _logger; - - public MetricsTests(Xunit.Abstractions.ITestOutputHelper output) + public MetricsTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetMetrics() { - TestsController.NewInstance.RunPsTest(_logger, "Test-GetMetrics"); + TestRunner.RunTestScript("Test-GetMetrics"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetMetricDefinitions() { - TestsController.NewInstance.RunPsTest(_logger, "Test-GetMetricDefinitions"); + TestRunner.RunTestScript("Test-GetMetricDefinitions"); } } } diff --git a/src/Monitor/Monitor.Test/ScenarioTests/MonitorTestRunner.cs b/src/Monitor/Monitor.Test/ScenarioTests/MonitorTestRunner.cs new file mode 100644 index 000000000000..96ca37d6bfcc --- /dev/null +++ b/src/Monitor/Monitor.Test/ScenarioTests/MonitorTestRunner.cs @@ -0,0 +1,59 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Collections.Generic; +using Microsoft.Azure.Commands.TestFx; +using Xunit.Abstractions; + +namespace Microsoft.Azure.Commands.Insights.Test.ScenarioTests +{ + public class MonitorTestRunner + { + protected readonly ITestRunner TestRunner; + + protected MonitorTestRunner(ITestOutputHelper output) + { + TestRunner = TestManager.CreateInstance(output) + .WithNewPsScriptFilename($"{GetType().Name}.ps1") + .WithProjectSubfolderForTests("ScenarioTests") + .WithCommonPsScripts(new[] + { + @"Common.ps1", + @"../AzureRM.Storage.ps1", + @"../AzureRM.Resources.ps1" + }) + .WithNewRmModules(helper => new[] + { + helper.RMProfileModule, + helper.GetRMModulePath("Az.Monitor.psd1"), + helper.GetRMModulePath("Az.ApplicationInsights.psd1"), + helper.GetRMModulePath("Az.OperationalInsights.psd1"), + helper.GetRMModulePath("Az.Network.psd1") + }) + .WithNewRecordMatcherArguments( + userAgentsToIgnore: new Dictionary + { + {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} + }, + resourceProviders: new Dictionary + { + {"Microsoft.Insights", null}, + {"Microsoft.Network", null}, + {"Microsoft.OperationalInsights", null} + } + ) + .Build(); + } + } +} diff --git a/src/Monitor/Monitor.Test/ScenarioTests/PrivateLinkScopeTests.cs b/src/Monitor/Monitor.Test/ScenarioTests/PrivateLinkScopeTests.cs index 3543fb67bda6..68dcea231a72 100644 --- a/src/Monitor/Monitor.Test/ScenarioTests/PrivateLinkScopeTests.cs +++ b/src/Monitor/Monitor.Test/ScenarioTests/PrivateLinkScopeTests.cs @@ -12,35 +12,29 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; namespace Microsoft.Azure.Commands.Insights.Test.ScenarioTests { - public class PrivateLinkScopeTests : RMTestBase + public class PrivateLinkScopeTests : MonitorTestRunner { - public XunitTracingInterceptor _logger; - - public PrivateLinkScopeTests(Xunit.Abstractions.ITestOutputHelper output) + public PrivateLinkScopeTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestPrivateLinkScopeCRUD() { - TestsController.NewInstance.RunPsTest(_logger, "Test-PrivateLinkScopeCRUD"); + TestRunner.RunTestScript("Test-PrivateLinkScopeCRUD"); } [Fact] [Trait(Category.AcceptanceType, Category.LiveOnly)] public void TestPrivateLinkScopedResourceCRUD() { - TestsController.NewInstance.RunPsTest(_logger, "Test-PrivateLinkScopedResourceCRUD"); + TestRunner.RunTestScript("Test-PrivateLinkScopedResourceCRUD"); } } } diff --git a/src/Monitor/Monitor.Test/ScenarioTests/ScheduledQueryRulesTests.cs b/src/Monitor/Monitor.Test/ScenarioTests/ScheduledQueryRulesTests.cs index 7f3fdee87d00..0798b40ec7ca 100644 --- a/src/Monitor/Monitor.Test/ScenarioTests/ScheduledQueryRulesTests.cs +++ b/src/Monitor/Monitor.Test/ScenarioTests/ScheduledQueryRulesTests.cs @@ -12,35 +12,29 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; namespace Microsoft.Azure.Commands.Insights.Test.ScenarioTests { - public class ScheduledQueryRulesTests : RMTestBase + public class ScheduledQueryRulesTests : MonitorTestRunner { - public XunitTracingInterceptor _logger; - - public ScheduledQueryRulesTests(Xunit.Abstractions.ITestOutputHelper output) + public ScheduledQueryRulesTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.LiveOnly)] public void TestNewGetUpdateSetRemoveScheduledQueryRule() { - TestsController.NewInstance.RunPsTest(_logger, "Test-NewGetUpdateSetRemoveScheduledQueryRule"); + TestRunner.RunTestScript("Test-NewGetUpdateSetRemoveScheduledQueryRule"); } [Fact] [Trait(Category.AcceptanceType, Category.LiveOnly)] public void TestPipingRemoveSetUpdateScheduledQueryRule() { - TestsController.NewInstance.RunPsTest(_logger, "Test-PipingRemoveSetUpdateScheduledQueryRule"); + TestRunner.RunTestScript("Test-PipingRemoveSetUpdateScheduledQueryRule"); } } } \ No newline at end of file diff --git a/src/Monitor/Monitor.Test/ScenarioTests/TestsController.cs b/src/Monitor/Monitor.Test/ScenarioTests/TestsController.cs deleted file mode 100644 index 4ba81e785f8b..000000000000 --- a/src/Monitor/Monitor.Test/ScenarioTests/TestsController.cs +++ /dev/null @@ -1,219 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// 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.Common.Authentication; -using Microsoft.Azure.Management.Internal.Resources; -using Microsoft.Azure.Management.Monitor; -using Microsoft.Azure.Management.Storage.Version2017_10_01; -using Microsoft.Azure.Management.ApplicationInsights.Management; -using Microsoft.Azure.Management.Network; -using Microsoft.Azure.Management.OperationalInsights; -using Microsoft.Azure.Test.HttpRecorder; -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using RestTestFramework = Microsoft.Rest.ClientRuntime.Azure.TestFramework; -using Microsoft.Azure.Internal.Common; - -namespace Microsoft.Azure.Commands.Insights.Test.ScenarioTests -{ - public sealed class TestsController : RMTestBase - { - private readonly EnvironmentSetupHelper _helper; - - public ResourceManagementClient ResourceManagementClient { get; private set; } - - public StorageManagementClient StorageManagementClient { get; private set; } - - public IMonitorManagementClient MonitorManagementClient { get; private set; } - - public ApplicationInsightsManagementClient ApplicationInsightsClient { get; private set; } - - public NetworkManagementClient NetworkManagementClient { get; private set; } - - public AzureRestClient AzureRestClient { get; private set; } - - public OperationalInsightsManagementClient OperationalInsightsManagementClient { get; private set; } - - public static TestsController NewInstance => new TestsController(); - - public TestsController() - { - _helper = new EnvironmentSetupHelper(); - } - - public void RunPsTest(ServiceManagement.Common.Models.XunitTracingInterceptor logger, params string[] scripts) - { - var sf = new StackTrace().GetFrame(1); - var callingClassType = sf.GetMethod().ReflectedType?.ToString(); - var mockName = sf.GetMethod().Name; - - _helper.TracingInterceptor = logger; - RunPsTestWorkflow( - () => scripts, - // no custom cleanup - null, - callingClassType, - mockName); - } - - public void RunPsTestWorkflow( - Func scriptBuilder, - Action cleanup, - string callingClassType, - string mockName) - { - var providers = new Dictionary() - { - { "Microsoft.Insights", null }, - { "Microsoft.Network", null }, - { "Microsoft.OperationalInsights", null} - }; - - var providersToIgnore = new Dictionary(); - providersToIgnore.Add("Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"); - - HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(ignoreResourcesClient: true, providers: providers, userAgents: providersToIgnore); - HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords"); - - using (RestTestFramework.MockContext context = RestTestFramework.MockContext.Start(callingClassType, mockName)) - { - SetupManagementClients(context); - - _helper.SetupEnvironment(AzureModule.AzureResourceManager); - - var callingClassName = callingClassType - .Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries) - .Last(); - _helper.SetupModules(AzureModule.AzureResourceManager, - _helper.RMProfileModule, - _helper.GetRMModulePath("AzureRM.Monitor.psd1"), - "ScenarioTests\\Common.ps1", - "ScenarioTests\\" + callingClassName + ".ps1", - "AzureRM.Storage.ps1", - "AzureRM.Resources.ps1", - _helper.GetRMModulePath("AzureRM.ApplicationInsights.psd1"), - _helper.GetRMModulePath("AzureRM.OperationalInsights.psd1"), - _helper.GetRMModulePath("AzureRM.Network.psd1")); - - try - { - if (scriptBuilder != null) - { - var psScripts = scriptBuilder(); - - if (psScripts != null) - { - _helper.RunPowerShellTest(psScripts); - } - } - } - finally - { - cleanup?.Invoke(); - } - } - } - - private void SetupManagementClients(RestTestFramework.MockContext context) - { - if (HttpMockServer.Mode == HttpRecorderMode.Record) - { - // This allows the use of a particular subscription if the user is associated to several - // "TEST_CSM_ORGID_AUTHENTICATION=SubscriptionId=" - string subId = Environment.GetEnvironmentVariable("TEST_CSM_ORGID_AUTHENTICATION"); - RestTestFramework.TestEnvironment environment = new RestTestFramework.TestEnvironment(connectionString: subId); - this.MonitorManagementClient = this.GetInsightsManagementClient(context: context, env: environment); - this.ResourceManagementClient = this.GetResourceManagementClient(context: context, env: environment); - this.StorageManagementClient = this.GetStorageManagementClient(context: context, env: environment); - this.ApplicationInsightsClient = this.GetApplicationInsightsManagementClient(context: context, env: environment); - this.NetworkManagementClient = this.GetNetworkManagementClient(context: context, env: environment); - this.AzureRestClient = this.GetAzureRestClient(context: context, env: environment); - this.OperationalInsightsManagementClient = GetOperationalInsightsManagementClient(context: context, env: environment); - } - else if (HttpMockServer.Mode == HttpRecorderMode.Playback) - { - this.MonitorManagementClient = this.GetInsightsManagementClient(context: context, env: null); - ResourceManagementClient = this.GetResourceManagementClient(context: context, env: null); - StorageManagementClient = this.GetStorageManagementClient(context: context, env: null); - this.ApplicationInsightsClient = this.GetApplicationInsightsManagementClient(context: context, env: null); - this.NetworkManagementClient = this.GetNetworkManagementClient(context: context, env: null); - this.AzureRestClient = this.GetAzureRestClient(context: context, env: null); - this.OperationalInsightsManagementClient = GetOperationalInsightsManagementClient(context: context, env: null); - } - - _helper.SetupManagementClients( - ResourceManagementClient, - this.MonitorManagementClient, - StorageManagementClient, - this.ApplicationInsightsClient, - this.NetworkManagementClient, - this.AzureRestClient, - this.OperationalInsightsManagementClient); - } - - private ResourceManagementClient GetResourceManagementClient(RestTestFramework.MockContext context, RestTestFramework.TestEnvironment env) - { - return env != null - ? context.GetServiceClient(currentEnvironment:env) - : context.GetServiceClient(); - } - - private IMonitorManagementClient GetInsightsManagementClient(RestTestFramework.MockContext context, RestTestFramework.TestEnvironment env) - { - return env != null - ? context.GetServiceClient(currentEnvironment: env) - : context.GetServiceClient(); - } - - private StorageManagementClient GetStorageManagementClient(RestTestFramework.MockContext context, RestTestFramework.TestEnvironment env) - { - return env != null - ? context.GetServiceClient(currentEnvironment: env) - : context.GetServiceClient(); - } - - private ApplicationInsightsManagementClient GetApplicationInsightsManagementClient(RestTestFramework.MockContext context, RestTestFramework.TestEnvironment env) - { - return env != null - ? context.GetServiceClient(currentEnvironment: env) - : context.GetServiceClient(); - } - - private NetworkManagementClient GetNetworkManagementClient(RestTestFramework.MockContext context, RestTestFramework.TestEnvironment env) - { - return env != null - ? context.GetServiceClient(currentEnvironment: env) - : context.GetServiceClient(); - } - - private AzureRestClient GetAzureRestClient(RestTestFramework.MockContext context, RestTestFramework.TestEnvironment env) - { - return env != null - ? context.GetServiceClient(currentEnvironment: env) - : context.GetServiceClient(); - } - - private OperationalInsightsManagementClient GetOperationalInsightsManagementClient(RestTestFramework.MockContext context, RestTestFramework.TestEnvironment env) - { - return env != null - ? context.GetServiceClient(currentEnvironment: env) - : context.GetServiceClient(); - } - } -} diff --git a/src/PrivateDns/PrivateDns.Test/ScenarioTests/LinkTests.cs b/src/PrivateDns/PrivateDns.Test/ScenarioTests/LinkTests.cs index ee745ec5a276..adefbc982986 100644 --- a/src/PrivateDns/PrivateDns.Test/ScenarioTests/LinkTests.cs +++ b/src/PrivateDns/PrivateDns.Test/ScenarioTests/LinkTests.cs @@ -12,151 +12,146 @@ namespace Microsoft.Azure.Commands.PrivateDns.Test.ScenarioTests { - using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; - public class LinkTests : PrivateDnsTestsBase + public class LinkTests : PrivateDnsTestRunner { - public XunitTracingInterceptor Logger; - - public LinkTests(Xunit.Abstractions.ITestOutputHelper output) + public LinkTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - Logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(Logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestLinkCrud() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-LinkCrud"); + TestRunner.RunTestScript("Test-LinkCrud"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestLinkCrudWithPiping() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-LinkCrudWithPiping"); + TestRunner.RunTestScript("Test-LinkCrudWithPiping"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRegistrationLinkCreate() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-RegistrationLinkCreate"); + TestRunner.RunTestScript("Test-RegistrationLinkCreate"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestLinkAlreadyExistsCreateThrow() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-LinkAlreadyExistsCreateThrow"); + TestRunner.RunTestScript("Test-LinkAlreadyExistsCreateThrow"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestCreateLinkWithVirtualNetworkObject() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-CreateLinkWithVirtualNetworkObject"); + TestRunner.RunTestScript("Test-CreateLinkWithVirtualNetworkObject"); } [Fact(Skip = "Test framework doesn't support using tokens for multiple tenants at the moment.")] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestCreateLinkWithRemoteVirtualId() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-CreateLinkWithRemoteVirtualId"); + TestRunner.RunTestScript("Test-CreateLinkWithRemoteVirtualId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestUpdateLinkRegistrationStatusWithPiping() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-UpdateLinkRegistrationStatusWithPiping"); + TestRunner.RunTestScript("Test-UpdateLinkRegistrationStatusWithPiping"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestUpdateLinkRegistrationStatusWithPipingResourceId() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-UpdateLinkRegistrationStatusWithResourceId"); + TestRunner.RunTestScript("Test-UpdateLinkRegistrationStatusWithResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestUpdateLinkWithEtagMismatchThrow() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-UpdateLinkWithEtagMismatchThrow"); + TestRunner.RunTestScript("Test-UpdateLinkWithEtagMismatchThrow"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestDeleteLinkWithResourceId() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-DeleteLinkWithResourceId"); + TestRunner.RunTestScript("Test-DeleteLinkWithResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestUpdateLinkWithEtagMismatchOverwrite() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-UpdateLinkWithEtagMismatchOverwrite"); + TestRunner.RunTestScript("Test-UpdateLinkWithEtagMismatchOverwrite"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestUpdateLinkZoneNotExistsThrow() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-UpdateLinkZoneNotExistsThrow"); + TestRunner.RunTestScript("Test-UpdateLinkZoneNotExistsThrow"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestUpdateLinkLinkNotExistsThrow() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-UpdateLinkLinkNotExistsThrow"); + TestRunner.RunTestScript("Test-UpdateLinkLinkNotExistsThrow"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestUpdateLinkWithNoChangesShouldNotThrow() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-UpdateLinkWithNoChangesShouldNotThrow"); + TestRunner.RunTestScript("Test-UpdateLinkWithNoChangesShouldNotThrow"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetLinkZoneNotExistsThrow() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-GetLinkZoneNotExistsThrow"); + TestRunner.RunTestScript("Test-GetLinkZoneNotExistsThrow"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetLinkLinkNotExistsThrow() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-GetLinkLinkNotExistsThrow"); + TestRunner.RunTestScript("Test-GetLinkLinkNotExistsThrow"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRemoveLinkZoneNotExistsShouldNotThrow() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-RemoveLinkZoneNotExistsShouldNotThrow"); + TestRunner.RunTestScript("Test-RemoveLinkZoneNotExistsShouldNotThrow"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRemoveLinkLinkNotExistsShouldNotThrow() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-RemoveLinkLinkNotExistsShouldNotThrow"); + TestRunner.RunTestScript("Test-RemoveLinkLinkNotExistsShouldNotThrow"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestListLinks() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(Logger, "Test-ListLinks"); + TestRunner.RunTestScript("Test-ListLinks"); } } } diff --git a/src/PrivateDns/PrivateDns.Test/ScenarioTests/PrivateDnsTestRunner.cs b/src/PrivateDns/PrivateDns.Test/ScenarioTests/PrivateDnsTestRunner.cs new file mode 100644 index 000000000000..1df27ec0d9cb --- /dev/null +++ b/src/PrivateDns/PrivateDns.Test/ScenarioTests/PrivateDnsTestRunner.cs @@ -0,0 +1,57 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Collections.Generic; +using Microsoft.Azure.Commands.TestFx; +using Xunit.Abstractions; + +namespace Microsoft.Azure.Commands.PrivateDns.Test.ScenarioTests +{ + public class PrivateDnsTestRunner + { + protected readonly ITestRunner TestRunner; + + protected PrivateDnsTestRunner(ITestOutputHelper output) + { + TestRunner = TestManager.CreateInstance(output) + .WithNewPsScriptFilename($"{GetType().Name}.ps1") + .WithProjectSubfolderForTests("ScenarioTests") + .WithCommonPsScripts(new[] + { + @"Common.ps1", + @"../AzureRM.Resources.ps1" + }) + .WithNewRmModules(helper => new[] + { + helper.RMProfileModule, + helper.GetRMModulePath("Az.PrivateDns.psd1"), + helper.GetRMModulePath("Az.Network.psd1") + }) + .WithNewRecordMatcherArguments( + userAgentsToIgnore: new Dictionary + { + {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} + }, + resourceProviders: new Dictionary + { + {"Microsoft.Resources", null}, + {"Microsoft.Features", null}, + {"Microsoft.Authorization", null}, + {"Microsoft.Network", null} + } + ) + .Build(); + } + } +} \ No newline at end of file diff --git a/src/PrivateDns/PrivateDns.Test/ScenarioTests/PrivateDnsTestsBase.cs b/src/PrivateDns/PrivateDns.Test/ScenarioTests/PrivateDnsTestsBase.cs deleted file mode 100644 index 0f98e842111b..000000000000 --- a/src/PrivateDns/PrivateDns.Test/ScenarioTests/PrivateDnsTestsBase.cs +++ /dev/null @@ -1,142 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// 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. -// ---------------------------------------------------------------------------------- - -namespace Microsoft.Azure.Commands.PrivateDns.Test.ScenarioTests -{ - using System; - using System.Collections.Generic; - using System.Diagnostics; - using System.IO; - using System.Linq; - using Microsoft.Azure.Commands.Common.Authentication; - using Microsoft.Azure.Management.PrivateDns; - using Microsoft.Azure.Management.Internal.Resources; - using Microsoft.Azure.Management.Network; - using Microsoft.Azure.ServiceManagement.Common.Models; - using Microsoft.Azure.Test.HttpRecorder; - using Microsoft.Rest.ClientRuntime.Azure.TestFramework; - using Microsoft.WindowsAzure.Commands.ScenarioTest; - using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; - using TestEnvironmentFactory = Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestEnvironmentFactory; - - public class PrivateDnsTestsBase : RMTestBase - { - private readonly EnvironmentSetupHelper _helper; - - public ResourceManagementClient ResourceManagementClient { get; private set; } - - public PrivateDnsManagementClient PrivateDnsClient { get; private set; } - - public NetworkManagementClient NetworkManagementClient { get; private set; } - - public static PrivateDnsTestsBase NewInstance => new PrivateDnsTestsBase(); - - protected PrivateDnsTestsBase() - { - _helper = new EnvironmentSetupHelper(); - } - - protected void SetupManagementClients(MockContext context) - { - ResourceManagementClient = GetResourceManagementClient(context); - PrivateDnsClient = GetFeatureClient(context); - NetworkManagementClient = GetNetworkManagementClient(context); - - _helper.SetupManagementClients( - ResourceManagementClient, - PrivateDnsClient, - NetworkManagementClient); - } - - - public void RunPowerShellTest(XunitTracingInterceptor logger, params string[] scripts) - { - var sf = new StackTrace().GetFrame(1); - var callingClassType = sf.GetMethod().ReflectedType?.ToString(); - var mockName = sf.GetMethod().Name; - - _helper.TracingInterceptor = logger; - - RunPsTestWorkflow( - () => scripts, - // no custom cleanup - null, - callingClassType, - mockName); - } - - - public void RunPsTestWorkflow( - Func scriptBuilder, - Action cleanup, - string callingClassType, - string mockName) - { - var d = new Dictionary - { - {"Microsoft.Resources", null}, {"Microsoft.Features", null}, {"Microsoft.Authorization", null}, {"Microsoft.Network", null} - }; - var providersToIgnore = new Dictionary - { - {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} - }; - HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore); - HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords"); - - using (var context = MockContext.Start(callingClassType, mockName)) - { - - SetupManagementClients(context); - - _helper.SetupEnvironment(AzureModule.AzureResourceManager); - - var callingClassName = callingClassType.Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries).Last(); - - _helper.SetupModules(AzureModule.AzureResourceManager, "ScenarioTests\\Common.ps1", "ScenarioTests\\" + callingClassName + ".ps1", - _helper.RMProfileModule, - _helper.GetRMModulePath("AzureRM.PrivateDns.psd1"), - _helper.GetRMModulePath("AzureRM.Network.psd1"), - "AzureRM.Resources.ps1"); - - try - { - var psScripts = scriptBuilder?.Invoke(); - if (psScripts != null) - { - _helper.RunPowerShellTest(psScripts); - } - } - finally - { - cleanup?.Invoke(); - } - } - } - - protected ResourceManagementClient GetResourceManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - protected NetworkManagementClient GetNetworkManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static PrivateDnsManagementClient GetFeatureClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - } -} diff --git a/src/PrivateDns/PrivateDns.Test/ScenarioTests/RecordsTests.cs b/src/PrivateDns/PrivateDns.Test/ScenarioTests/RecordsTests.cs index a5e5a5cbb94b..eaec47c8a8fe 100644 --- a/src/PrivateDns/PrivateDns.Test/ScenarioTests/RecordsTests.cs +++ b/src/PrivateDns/PrivateDns.Test/ScenarioTests/RecordsTests.cs @@ -14,137 +14,132 @@ namespace Microsoft.Azure.Commands.PrivateDns.Test.ScenarioTests { - using ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; - public class RecordsTests : PrivateDnsTestsBase + public class RecordsTests : PrivateDnsTestRunner { - public XunitTracingInterceptor _logger; - - public RecordsTests(Xunit.Abstractions.ITestOutputHelper output) + public RecordsTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetCrud() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetCrud"); + TestRunner.RunTestScript("Test-RecordSetCrud"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetCrudTrimsDotFromZoneName() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetCrudTrimsDotFromZoneName"); + TestRunner.RunTestScript("Test-RecordSetCrudTrimsDotFromZoneName"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetCrudWithZoneResourceId() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetCrudWithZoneResourceId"); + TestRunner.RunTestScript("Test-RecordSetCrudWithZoneResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetCrudWithPiping() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetCrudWithPiping"); + TestRunner.RunTestScript("Test-RecordSetCrudWithPiping"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetCrudWithPipingTrimsDotFromZoneName() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetCrudWithPipingTrimsDotFromZoneName"); + TestRunner.RunTestScript("Test-RecordSetCrudWithPipingTrimsDotFromZoneName"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetA() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetA"); + TestRunner.RunTestScript("Test-RecordSetA"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetANonEmpty() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetANonEmpty"); + TestRunner.RunTestScript("Test-RecordSetANonEmpty"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetAAAA() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetAAAA"); + TestRunner.RunTestScript("Test-RecordSetAAAA"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetAAAANonEmpty() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetAAAANonEmpty"); + TestRunner.RunTestScript("Test-RecordSetAAAANonEmpty"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetCNAME() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetCNAME"); + TestRunner.RunTestScript("Test-RecordSetCNAME"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetCNAMENonEmpty() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetCNAMENonEmpty"); + TestRunner.RunTestScript("Test-RecordSetCNAMENonEmpty"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetMX() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetMX"); + TestRunner.RunTestScript("Test-RecordSetMX"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetMXNonEmpty() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetMXNonEmpty"); + TestRunner.RunTestScript("Test-RecordSetMXNonEmpty"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetTXT() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetTXT"); + TestRunner.RunTestScript("Test-RecordSetTXT"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetTXTNonEmpty() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetTXTNonEmpty"); + TestRunner.RunTestScript("Test-RecordSetTXTNonEmpty"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetTXTLengthValidation() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetTXTLengthValidation"); + TestRunner.RunTestScript("Test-RecordSetTXTLengthValidation"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetTXTLegacyLengthValidation() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetTXTLegacyLengthValidation"); + TestRunner.RunTestScript("Test-RecordSetTXTLegacyLengthValidation"); } @@ -152,97 +147,97 @@ public void TestRecordSetTXTLegacyLengthValidation() [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetSRV() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetSRV"); + TestRunner.RunTestScript("Test-RecordSetSRV"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetSRVNonEmpty() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetSRVNonEmpty"); + TestRunner.RunTestScript("Test-RecordSetSRVNonEmpty"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetSOA() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetSOA"); + TestRunner.RunTestScript("Test-RecordSetSOA"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetPTR() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetPTR"); + TestRunner.RunTestScript("Test-RecordSetPTR"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetPTRNonEmpty() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetPTRNonEmpty"); + TestRunner.RunTestScript("Test-RecordSetPTRNonEmpty"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetNewAlreadyExists() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetNewAlreadyExists"); + TestRunner.RunTestScript("Test-RecordSetNewAlreadyExists"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetAddRecordTypeMismatch() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetAddRecordTypeMismatch"); + TestRunner.RunTestScript("Test-RecordSetAddRecordTypeMismatch"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetAddTwoCnames() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetAddTwoCnames"); + TestRunner.RunTestScript("Test-RecordSetAddTwoCnames"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetRemoveRecordTypeMismatch() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetRemoveRecordTypeMismatch"); + TestRunner.RunTestScript("Test-RecordSetRemoveRecordTypeMismatch"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetRemoveUsingResourceId() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetRemoveUsingResourceId"); + TestRunner.RunTestScript("Test-RecordSetRemoveUsingResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetEtagMismatch() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetEtagMismatch"); + TestRunner.RunTestScript("Test-RecordSetEtagMismatch"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetGet() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetGet"); + TestRunner.RunTestScript("Test-RecordSetGet"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetEndsWithZoneName() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetEndsWithZoneName"); + TestRunner.RunTestScript("Test-RecordSetEndsWithZoneName"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRecordSetNewRecordNoName() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-RecordSetNewRecordNoName"); + TestRunner.RunTestScript("Test-RecordSetNewRecordNoName"); } } } diff --git a/src/PrivateDns/PrivateDns.Test/ScenarioTests/ZoneTests.cs b/src/PrivateDns/PrivateDns.Test/ScenarioTests/ZoneTests.cs index f4a9dad6cc71..4492bfadbe4b 100644 --- a/src/PrivateDns/PrivateDns.Test/ScenarioTests/ZoneTests.cs +++ b/src/PrivateDns/PrivateDns.Test/ScenarioTests/ZoneTests.cs @@ -14,116 +14,111 @@ namespace Microsoft.Azure.Commands.PrivateDns.Test.ScenarioTests { - using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; - public class ZoneTests : PrivateDnsTestsBase + public class ZoneTests : PrivateDnsTestRunner { - public XunitTracingInterceptor _logger; - - public ZoneTests(Xunit.Abstractions.ITestOutputHelper output) + public ZoneTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestZoneCrud() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneCrud"); + TestRunner.RunTestScript("Test-ZoneCrud"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestZoneCrudTrimsDot() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneCrudTrimsDot"); + TestRunner.RunTestScript("Test-ZoneCrudTrimsDot"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestZoneCrudWithPiping() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneCrudWithPiping"); + TestRunner.RunTestScript("Test-ZoneCrudWithPiping"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestZoneSetUsingResourceId() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneSetUsingResourceId"); + TestRunner.RunTestScript("Test-ZoneSetUsingResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestZoneRemoveUsingResourceId() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneRemoveUsingResourceId"); + TestRunner.RunTestScript("Test-ZoneRemoveUsingResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestZoneCrudWithPipingTrimsDot() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneCrudWithPipingTrimsDot"); + TestRunner.RunTestScript("Test-ZoneCrudWithPipingTrimsDot"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestZoneList() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneList"); + TestRunner.RunTestScript("Test-ZoneList"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestZoneListSubscription() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneListSubscription"); + TestRunner.RunTestScript("Test-ZoneListSubscription"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestZoneNewAlreadyExists() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneNewAlreadyExists"); + TestRunner.RunTestScript("Test-ZoneNewAlreadyExists"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestZoneNewWithLocalSuffix() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneNewWithLocalSuffix"); + TestRunner.RunTestScript("Test-ZoneNewWithLocalSuffix"); } [Fact()] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestZoneSetEtagMismatch() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneSetEtagMismatch"); + TestRunner.RunTestScript("Test-ZoneSetEtagMismatch"); } [Fact()] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestZoneSetNotFound() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneSetNotFound"); + TestRunner.RunTestScript("Test-ZoneSetNotFound"); } [Fact()] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestZoneRemoveEtagMismatch() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneRemoveEtagMismatch"); + TestRunner.RunTestScript("Test-ZoneRemoveEtagMismatch"); } [Fact()] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestZoneRemoveNotFound() { - PrivateDnsTestsBase.NewInstance.RunPowerShellTest(_logger, "Test-ZoneRemoveNonExisting"); + TestRunner.RunTestScript("Test-ZoneRemoveNonExisting"); } } } diff --git a/src/RedisCache/RedisCache.Test/ScenarioTests/RedisCacheController.cs b/src/RedisCache/RedisCache.Test/ScenarioTests/RedisCacheController.cs deleted file mode 100644 index 109b6b9b1df3..000000000000 --- a/src/RedisCache/RedisCache.Test/ScenarioTests/RedisCacheController.cs +++ /dev/null @@ -1,122 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// 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.Common.Authentication; -using Microsoft.Azure.Management.Insights; -using Microsoft.Azure.Management.Redis; -using Microsoft.Azure.Test.HttpRecorder; -using Microsoft.Rest.ClientRuntime.Azure.TestFramework; -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using System; -using System.IO; -using System.Linq; -using TestEnvironmentFactory = Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestEnvironmentFactory; -using Microsoft.Azure.Management.Storage.Version2017_10_01; -using System.Collections.Generic; -using System.Diagnostics; -using Microsoft.Azure.ServiceManagement.Common.Models; - -namespace Microsoft.Azure.Commands.RedisCache.Test.ScenarioTests -{ - public class RedisCacheController - { - private readonly EnvironmentSetupHelper _helper; - - public Management.Internal.Resources.ResourceManagementClient NewResourceManagementClient { get; private set; } - - public InsightsManagementClient InsightsManagementClient { get; private set; } - - public RedisManagementClient RedisManagementClient { get; private set; } - - public StorageManagementClient StorageClient { get; private set; } - - public RedisCacheController() - { - _helper = new EnvironmentSetupHelper(); - } - - public static RedisCacheController NewInstance => new RedisCacheController(); - - private void SetupManagementClients(MockContext context) - { - RedisManagementClient = GetRedisManagementClient(context); - InsightsManagementClient = GetInsightsManagementClient(context); - NewResourceManagementClient = GetResourceManagementClient(context); - StorageClient = GetStorageManagementClient(context); - _helper.SetupManagementClients( - RedisManagementClient, - StorageClient, - NewResourceManagementClient, - InsightsManagementClient); - } - - public void RunPowerShellTest(XunitTracingInterceptor logger, params string[] scripts) - { - var sf = new StackTrace().GetFrame(1); - var callingClassType = sf.GetMethod().ReflectedType?.ToString(); - var mockName = sf.GetMethod().Name; - - _helper.TracingInterceptor = logger; - - var d = new Dictionary - { - {"Microsoft.Resources", null}, - {"Microsoft.Features", null}, - {"Microsoft.Authorization", null} - }; - var providersToIgnore = new Dictionary(); - HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore); - - HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords"); - using (var context = MockContext.Start(callingClassType, mockName)) - { - SetupManagementClients(context); - - var callingClassName = callingClassType?.Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries).Last(); - _helper.SetupEnvironment(AzureModule.AzureResourceManager); - _helper.SetupModules(AzureModule.AzureResourceManager, - "ScenarioTests\\" + callingClassName + ".ps1", - _helper.RMProfileModule, - "AzureRM.Storage.ps1", - _helper.GetRMModulePath(@"AzureRM.RedisCache.psd1"), - "AzureRM.Resources.ps1"); - - if (scripts != null) - { - _helper.RunPowerShellTest(scripts); - } - } - } - - private static StorageManagementClient GetStorageManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static RedisManagementClient GetRedisManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static InsightsManagementClient GetInsightsManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static Management.Internal.Resources.ResourceManagementClient GetResourceManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - } -} diff --git a/src/RedisCache/RedisCache.Test/ScenarioTests/RedisCacheTestRunner.cs b/src/RedisCache/RedisCache.Test/ScenarioTests/RedisCacheTestRunner.cs new file mode 100644 index 000000000000..4c72cc1d0485 --- /dev/null +++ b/src/RedisCache/RedisCache.Test/ScenarioTests/RedisCacheTestRunner.cs @@ -0,0 +1,52 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Collections.Generic; +using Microsoft.Azure.Commands.TestFx; +using Xunit.Abstractions; + +namespace Microsoft.Azure.Commands.RedisCache.Test.ScenarioTests +{ + public class RedisCacheTestRunner + { + protected readonly ITestRunner TestRunner; + + protected RedisCacheTestRunner(ITestOutputHelper output) + { + TestRunner = TestManager.CreateInstance(output) + .WithNewPsScriptFilename($"{GetType().Name}.ps1") + .WithProjectSubfolderForTests("ScenarioTests") + .WithCommonPsScripts(new[] + { + @"../AzureRM.Storage.ps1", + @"../AzureRM.Resources.ps1" + }) + .WithNewRmModules(helper => new[] + { + helper.RMProfileModule, + helper.GetRMModulePath("Az.RedisCache.psd1") + }) + .WithNewRecordMatcherArguments( + userAgentsToIgnore: new Dictionary(), + resourceProviders: new Dictionary + { + {"Microsoft.Resources", null}, + {"Microsoft.Features", null}, + {"Microsoft.Authorization", null} + } + ) + .Build(); + } + } +} \ No newline at end of file diff --git a/src/RedisCache/RedisCache.Test/ScenarioTests/RedisCacheTests.cs b/src/RedisCache/RedisCache.Test/ScenarioTests/RedisCacheTests.cs index f27a49b16997..6af8c3e77ffc 100644 --- a/src/RedisCache/RedisCache.Test/ScenarioTests/RedisCacheTests.cs +++ b/src/RedisCache/RedisCache.Test/ScenarioTests/RedisCacheTests.cs @@ -15,61 +15,55 @@ namespace Microsoft.Azure.Commands.RedisCache.Test.ScenarioTests { using Microsoft.WindowsAzure.Commands.ScenarioTest; - using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; - using ServiceManagement.Common.Models; using Xunit; using Xunit.Abstractions; - public class RedisCacheTests : RMTestBase + public class RedisCacheTests : RedisCacheTestRunner { - public XunitTracingInterceptor _logger; - - public RedisCacheTests(ITestOutputHelper output) + public RedisCacheTests(ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRedisCache() { - RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-RedisCache"); + TestRunner.RunTestScript("Test-RedisCache"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestSetNonExistingRedisCacheTest() { - RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-SetNonExistingRedisCacheTest"); + TestRunner.RunTestScript("Test-SetNonExistingRedisCacheTest"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRedisCachePipeline() { - RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-RedisCachePipeline"); + TestRunner.RunTestScript("Test-RedisCachePipeline"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRedisCacheClustering() { - RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-RedisCacheClustering"); + TestRunner.RunTestScript("Test-RedisCacheClustering"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRedisCachePatchSchedules() { - RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-RedisCachePatchSchedules"); + TestRunner.RunTestScript("Test-RedisCachePatchSchedules"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestImportExportReboot() { - RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-ImportExportReboot"); + TestRunner.RunTestScript("Test-ImportExportReboot"); } #if NETSTANDARD @@ -80,35 +74,35 @@ public void TestImportExportReboot() [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestDiagnosticOperations() { - RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-DiagnosticOperations"); + TestRunner.RunTestScript("Test-DiagnosticOperations"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGeoReplication() { - RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-GeoReplication"); + TestRunner.RunTestScript("Test-GeoReplication"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestFirewallRule() { - RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-FirewallRule"); + TestRunner.RunTestScript("Test-FirewallRule"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestZones() { - RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-Zones"); + TestRunner.RunTestScript("Test-Zones"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestManagedIdentity() { - RedisCacheController.NewInstance.RunPowerShellTest(_logger, "Test-ManagedIdentity"); + TestRunner.RunTestScript("Test-ManagedIdentity"); } } } diff --git a/src/Reservations/Reservations.Test/ScenarioTests/ReservationOrderTests.cs b/src/Reservations/Reservations.Test/ScenarioTests/ReservationOrderTests.cs index b2ea5faed8a8..82a385bb9a84 100644 --- a/src/Reservations/Reservations.Test/ScenarioTests/ReservationOrderTests.cs +++ b/src/Reservations/Reservations.Test/ScenarioTests/ReservationOrderTests.cs @@ -12,36 +12,29 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.Reservations.Test.ScenarioTests.ScenarioTest; -using Microsoft.Azure.Commands.ScenarioTest; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Reservations.Test.ScenarioTests { - public class ReservationOrderTests + public class ReservationOrderTests : ReservationsTestRunner { - private ServiceManagement.Common.Models.XunitTracingInterceptor _logger; - - public ReservationOrderTests(Xunit.Abstractions.ITestOutputHelper output) + public ReservationOrderTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new ServiceManagement.Common.Models.XunitTracingInterceptor(output); - ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetReservationOrder() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-GetReservationOrder"); + TestRunner.RunTestScript("Test-GetReservationOrder"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestListReservationOrders() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListReservationOrders"); + TestRunner.RunTestScript("Test-ListReservationOrders"); } } } diff --git a/src/Reservations/Reservations.Test/ScenarioTests/ReservationTests.cs b/src/Reservations/Reservations.Test/ScenarioTests/ReservationTests.cs index 31c3a444817c..5b1e239abccc 100644 --- a/src/Reservations/Reservations.Test/ScenarioTests/ReservationTests.cs +++ b/src/Reservations/Reservations.Test/ScenarioTests/ReservationTests.cs @@ -12,99 +12,92 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.Reservations.Test.ScenarioTests.ScenarioTest; -using Microsoft.Azure.Commands.ScenarioTest; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Reservations.Test.ScenarioTests { - public class ReservationTests + public class ReservationTests : ReservationsTestRunner { - private ServiceManagement.Common.Models.XunitTracingInterceptor _logger; - - public ReservationTests(Xunit.Abstractions.ITestOutputHelper output) + public ReservationTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new ServiceManagement.Common.Models.XunitTracingInterceptor(output); - ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestMergeReservation() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-MergeReservation"); + TestRunner.RunTestScript("Test-MergeReservation"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestSplitReservation() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-SplitReservation"); + TestRunner.RunTestScript("Test-SplitReservation"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetReservation() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-GetReservation"); + TestRunner.RunTestScript("Test-GetReservation"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestUpdateReservationToSingle() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-UpdateReservationToSingle"); + TestRunner.RunTestScript("Test-UpdateReservationToSingle"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestUpdateReservationToShared() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-UpdateReservationToShared"); + TestRunner.RunTestScript("Test-UpdateReservationToShared"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestListReservations() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListReservations"); + TestRunner.RunTestScript("Test-ListReservations"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestListReservationHistory() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListReservationHistory"); + TestRunner.RunTestScript("Test-ListReservationHistory"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetReservationOrderId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-GetReservationOrderId"); + TestRunner.RunTestScript("Test-GetReservationOrderId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetCatalog() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-GetCatalog"); + TestRunner.RunTestScript("Test-GetCatalog"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestCalculatePrice() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-CalculatePrice"); + TestRunner.RunTestScript("Test-CalculatePrice"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestPurchase() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-Purchase"); + TestRunner.RunTestScript("Test-Purchase"); } } } diff --git a/src/Reservations/Reservations.Test/ScenarioTests/ReservationsTestRunner.cs b/src/Reservations/Reservations.Test/ScenarioTests/ReservationsTestRunner.cs new file mode 100644 index 000000000000..db0ffef29f0b --- /dev/null +++ b/src/Reservations/Reservations.Test/ScenarioTests/ReservationsTestRunner.cs @@ -0,0 +1,51 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Collections.Generic; +using Microsoft.Azure.Commands.TestFx; +using Xunit.Abstractions; + +namespace Microsoft.Azure.Commands.Reservations.Test.ScenarioTests +{ + public class ReservationsTestRunner + { + protected readonly ITestRunner TestRunner; + + protected ReservationsTestRunner(ITestOutputHelper output) + { + TestRunner = TestManager.CreateInstance(output) + .WithNewPsScriptFilename($"{GetType().Name}.ps1") + .WithProjectSubfolderForTests("ScenarioTests") + .WithNewRmModules(helper => new[] + { + helper.RMProfileModule, + helper.GetRMModulePath("Az.Reservations.psd1") + }) + .WithNewRecordMatcherArguments( + userAgentsToIgnore: new Dictionary + { + {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} + }, + resourceProviders: new Dictionary + { + {"Microsoft.Resources", null}, + {"Microsoft.Features", null}, + {"Microsoft.Authorization", null}, + {"Microsoft.Compute", null} + } + ) + .Build(); + } + } +} \ No newline at end of file diff --git a/src/Reservations/Reservations.Test/ScenarioTests/TestController.cs b/src/Reservations/Reservations.Test/ScenarioTests/TestController.cs deleted file mode 100644 index d0334b3b0cc0..000000000000 --- a/src/Reservations/Reservations.Test/ScenarioTests/TestController.cs +++ /dev/null @@ -1,115 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// 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 System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using Microsoft.Azure.Commands.Common.Authentication; -using Microsoft.Azure.Management.Reservations; -using Microsoft.Azure.Test.HttpRecorder; -using Microsoft.Rest.ClientRuntime.Azure.TestFramework; -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; - -namespace Microsoft.Azure.Commands.Reservations.Test.ScenarioTests.ScenarioTest -{ - public class TestController : RMTestBase - { - private readonly EnvironmentSetupHelper _helper; - - public AzureReservationAPIClient AzureReservationAPIClient { get; private set; } - - public static TestController NewInstance => new TestController(); - - protected TestController() - { - _helper = new EnvironmentSetupHelper(); - } - - protected void SetupManagementClients(MockContext context) - { - AzureReservationAPIClient = GetAzureReservationAPIClient(context); - _helper.SetupManagementClients(AzureReservationAPIClient); - } - - public void RunPowerShellTest(ServiceManagement.Common.Models.XunitTracingInterceptor logger, params string[] scripts) - { - var sf = new StackTrace().GetFrame(1); - var callingClassType = sf.GetMethod().ReflectedType?.ToString(); - var mockName = sf.GetMethod().Name; - - _helper.TracingInterceptor = logger; - RunPsTestWorkflow( - () => scripts, - // no custom cleanup - null, - callingClassType, - mockName); - } - - public void RunPsTestWorkflow( - Func scriptBuilder, - Action cleanup, - string callingClassType, - string mockName) - { - - var providers = new Dictionary - { - {"Microsoft.Resources", null}, - {"Microsoft.Features", null}, - {"Microsoft.Authorization", null}, - {"Microsoft.Compute", null} - }; - var providersToIgnore = new Dictionary - { - {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} - }; - HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, providers, providersToIgnore); - HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords"); - - using (var context = MockContext.Start(callingClassType, mockName)) - { - SetupManagementClients(context); - - _helper.SetupEnvironment(AzureModule.AzureResourceManager); - - var callingClassName = callingClassType.Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries).Last(); - _helper.SetupModules(AzureModule.AzureResourceManager, - _helper.RMProfileModule, - _helper.GetRMModulePath(@"AzureRM.Reservations.psd1"), - "ScenarioTests\\" + callingClassName + ".ps1"); - try - { - var psScripts = scriptBuilder?.Invoke(); - if (psScripts != null) - { - _helper.RunPowerShellTest(psScripts); - } - } - finally - { - cleanup?.Invoke(); - } - } - } - - private static AzureReservationAPIClient GetAzureReservationAPIClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - } -} diff --git a/src/ResourceGraph/ResourceGraph.Test/ScenarioTests/ResourceGraphQueryTests.cs b/src/ResourceGraph/ResourceGraph.Test/ScenarioTests/ResourceGraphQueryTests.cs index 387d38f4a410..d8f41b022b89 100644 --- a/src/ResourceGraph/ResourceGraph.Test/ScenarioTests/ResourceGraphQueryTests.cs +++ b/src/ResourceGraph/ResourceGraph.Test/ScenarioTests/ResourceGraphQueryTests.cs @@ -12,71 +12,64 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.ResourceGraph.Test.ScenarioTests { - public class ResourceGraphQueryTests + public class ResourceGraphQueryTests : ResourceGraphTestRunner { - private readonly XunitTracingInterceptor _logger; - - public ResourceGraphQueryTests(Xunit.Abstractions.ITestOutputHelper output) + public ResourceGraphQueryTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Query() { - TestController.NewInstance.RunPowerShellTest(_logger, "Search-AzureRmGraph-Query"); + TestRunner.RunTestScript("Search-AzureRmGraph-Query"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void PagedQuery() { - TestController.NewInstance.RunPowerShellTest(_logger, "Search-AzureRmGraph-PagedQuery"); + TestRunner.RunTestScript("Search-AzureRmGraph-PagedQuery"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Subscriptions() { - TestController.NewInstance.RunPowerShellTest(_logger, "Search-AzureRmGraph-Subscriptions"); + TestRunner.RunTestScript("Search-AzureRmGraph-Subscriptions"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void ManagementGroups() { - TestController.NewInstance.RunPowerShellTest(_logger, "Search-AzureRmGraph-ManagementGroups"); + TestRunner.RunTestScript("Search-AzureRmGraph-ManagementGroups"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SkipTokenQuery() { - TestController.NewInstance.RunPowerShellTest(_logger, "Search-AzureRmGraph-SkipTokenQuery"); + TestRunner.RunTestScript("Search-AzureRmGraph-SkipTokenQuery"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void QueryError() { - TestController.NewInstance.RunPowerShellTest(_logger, "Search-AzureRmGraph-QueryError"); + TestRunner.RunTestScript("Search-AzureRmGraph-QueryError"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SubscriptionAndManagementGroupQueryError() { - TestController.NewInstance.RunPowerShellTest(_logger, "Search-AzureRmGraph-SubscriptionAndManagementGroupQueryError"); + TestRunner.RunTestScript("Search-AzureRmGraph-SubscriptionAndManagementGroupQueryError"); } } } diff --git a/src/ResourceGraph/ResourceGraph.Test/ScenarioTests/ResourceGraphTestRunner.cs b/src/ResourceGraph/ResourceGraph.Test/ScenarioTests/ResourceGraphTestRunner.cs new file mode 100644 index 000000000000..3c6643938624 --- /dev/null +++ b/src/ResourceGraph/ResourceGraph.Test/ScenarioTests/ResourceGraphTestRunner.cs @@ -0,0 +1,52 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Collections.Generic; +using Microsoft.Azure.Commands.TestFx; +using Xunit.Abstractions; + +namespace Microsoft.Azure.Commands.ResourceGraph.Test.ScenarioTests +{ + public class ResourceGraphTestRunner + { + protected readonly ITestRunner TestRunner; + + protected ResourceGraphTestRunner(ITestOutputHelper output) + { + TestRunner = TestManager.CreateInstance(output) + .WithNewPsScriptFilename($"{GetType().Name}.ps1") + .WithProjectSubfolderForTests("ScenarioTests") + .WithCommonPsScripts(new[] + { + @"Common.ps1", + }) + .WithNewRmModules(helper => new[] + { + helper.RMProfileModule, + helper.GetRMModulePath(@"Az.ResourceGraph.psd1") + }) + .WithNewRecordMatcherArguments( + userAgentsToIgnore: new Dictionary(), + resourceProviders: new Dictionary + { + { "Microsoft.Resources", null }, + { "Microsoft.Features", null }, + { "Microsoft.Authorization", null } + } + ) + .Build(); + } + } +} + diff --git a/src/ResourceGraph/ResourceGraph.Test/ScenarioTests/TestController.cs b/src/ResourceGraph/ResourceGraph.Test/ScenarioTests/TestController.cs deleted file mode 100644 index 84a8063b20c7..000000000000 --- a/src/ResourceGraph/ResourceGraph.Test/ScenarioTests/TestController.cs +++ /dev/null @@ -1,98 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// 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.Common.Authentication; -using Microsoft.Azure.Internal.Subscriptions.Version2018_06_01; -using Microsoft.Azure.Management.ResourceGraph; -using Microsoft.Azure.Test.HttpRecorder; -using Microsoft.Rest.ClientRuntime.Azure.TestFramework; -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using TestEnvironmentFactory = Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestEnvironmentFactory; - -namespace Microsoft.Azure.Commands.ResourceGraph.Test.ScenarioTests -{ - public class TestController : RMTestBase - { - private readonly EnvironmentSetupHelper _helper; - - public ResourceGraphClient ResourceGraphClient { get; private set; } - - public SubscriptionClient SubscriptionClient { get; private set; } - - public static TestController NewInstance => new TestController(); - - protected TestController() - { - _helper = new EnvironmentSetupHelper(); - } - - public void RunPowerShellTest(ServiceManagement.Common.Models.XunitTracingInterceptor logger, params string[] scripts) - { - var sf = new StackTrace().GetFrame(1); - var callingClassType = sf.GetMethod().ReflectedType?.ToString(); - var mockName = sf.GetMethod().Name; - - _helper.TracingInterceptor = logger; - var providers = new Dictionary - { - { "Microsoft.Resources", null }, - { "Microsoft.Features", null }, - { "Microsoft.Authorization", null } - }; - var providersToIgnore = new Dictionary(); - HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, providers, providersToIgnore); - HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords"); - - using (var context = MockContext.Start(callingClassType, mockName)) - { - SetupManagementClients(context); - - _helper.SetupEnvironment(AzureModule.AzureResourceManager); - - var callingClassName = callingClassType?.Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries).Last(); - _helper.SetupModules( - AzureModule.AzureResourceManager, - _helper.RMProfileModule, - _helper.GetRMModulePath(@"AzureRM.ResourceGraph.psd1"), - "ScenarioTests\\Common.ps1", - "ScenarioTests\\" + callingClassName + ".ps1"); - - _helper.RunPowerShellTest(scripts); - } - } - - protected void SetupManagementClients(MockContext context) - { - ResourceGraphClient = GetResourceGraphClient(context); - SubscriptionClient = GetSubscriptionClient(context); - _helper.SetupManagementClients(ResourceGraphClient, SubscriptionClient); - } - - private static ResourceGraphClient GetResourceGraphClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static SubscriptionClient GetSubscriptionClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - } -} diff --git a/src/Search/Search.Test/ScenarioTests/SearchServiceTests.cs b/src/Search/Search.Test/ScenarioTests/SearchServiceTests.cs index 50f0cc457e59..a238ef14cf3f 100644 --- a/src/Search/Search.Test/ScenarioTests/SearchServiceTests.cs +++ b/src/Search/Search.Test/ScenarioTests/SearchServiceTests.cs @@ -12,136 +12,128 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; using Xunit.Abstractions; namespace Microsoft.Azure.Commands.Management.Search.Test.ScenarioTests { - public class SearchServiceTests : RMTestBase + public class SearchServiceTests : SearchTestRunner { - private readonly XunitTracingInterceptor traceInterceptor; - - public SearchServiceTests(ITestOutputHelper output) + public SearchServiceTests(ITestOutputHelper output) : base(output) { - traceInterceptor = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(this.traceInterceptor); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestNewSearchService() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-NewAzSearchService"); + TestRunner.RunTestScript("Test-NewAzSearchService"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestNewSearchServiceBasic() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-NewAzSearchServiceBasic"); + TestRunner.RunTestScript("Test-NewAzSearchServiceBasic"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestNewSearchServiceL1() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-NewAzSearchServiceL1"); + TestRunner.RunTestScript("Test-NewAzSearchServiceL1"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestNewSearchServiceIdentity() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-NewAzSearchServiceIdentity"); + TestRunner.RunTestScript("Test-NewAzSearchServiceIdentity"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestNewSearchServicePublicNetworkAccessDisabled() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-NewAzSearchServicePublicNetworkAccessDisabled"); + TestRunner.RunTestScript("Test-NewAzSearchServicePublicNetworkAccessDisabled"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestNewSearchServiceIpRules() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-NewAzSearchServiceIpRules"); + TestRunner.RunTestScript("Test-NewAzSearchServiceIpRules"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetSearchService() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-GetAzSearchService"); + TestRunner.RunTestScript("Test-GetAzSearchService"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRemoveSearchService() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-RemoveAzSearchService"); + TestRunner.RunTestScript("Test-RemoveAzSearchService"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestSetSearchService() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-SetAzSearchService"); + TestRunner.RunTestScript("Test-SetAzSearchService"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestManageSearchServiceAdminKey() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-ManageAzSearchServiceAdminKey"); + TestRunner.RunTestScript("Test-ManageAzSearchServiceAdminKey"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestManageSearchServiceQueryKey() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-ManageAzSearchServiceQueryKey"); + TestRunner.RunTestScript("Test-ManageAzSearchServiceQueryKey"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetPrivateLinkResource() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-GetAzSearchPrivateLinkResource"); + TestRunner.RunTestScript("Test-GetAzSearchPrivateLinkResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetPrivateLinkResourcePipeline() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-GetAzSearchPrivateLinkResourcePipeline"); + TestRunner.RunTestScript("Test-GetAzSearchPrivateLinkResourcePipeline"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestManageSharedPrivateLinkResources() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-ManageAzSearchSharedPrivateLinkResources"); + TestRunner.RunTestScript("Test-ManageAzSearchSharedPrivateLinkResources"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestManageSharedPrivateLinkResourcesPipeline() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-ManageAzSearchSharedPrivateLinkResourcePipeline"); + TestRunner.RunTestScript("Test-ManageAzSearchSharedPrivateLinkResourcePipeline"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestManageSharedPrivateLinkResourcesJob() { - TestController.NewInstance.RunPsTest(traceInterceptor, "Test-ManageAzSearchSharedPrivateLinkResourceJob"); + TestRunner.RunTestScript("Test-ManageAzSearchSharedPrivateLinkResourceJob"); } } } diff --git a/src/Search/Search.Test/ScenarioTests/SearchTestRunner.cs b/src/Search/Search.Test/ScenarioTests/SearchTestRunner.cs new file mode 100644 index 000000000000..0c90dafb6afd --- /dev/null +++ b/src/Search/Search.Test/ScenarioTests/SearchTestRunner.cs @@ -0,0 +1,57 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Collections.Generic; +using Microsoft.Azure.Commands.TestFx; +using Xunit.Abstractions; + +namespace Microsoft.Azure.Commands.Management.Search.Test.ScenarioTests +{ + public class SearchTestRunner + { + protected readonly ITestRunner TestRunner; + + protected SearchTestRunner(ITestOutputHelper output) + { + TestRunner = TestManager.CreateInstance(output) + .WithNewPsScriptFilename($"{GetType().Name}.ps1") + .WithProjectSubfolderForTests("ScenarioTests") + .WithCommonPsScripts(new[] + { + @"Common.ps1", + @"../AzureRM.Resources.ps1", + }) + .WithNewRmModules(helper => new[] + { + helper.RMProfileModule, + helper.GetRMModulePath("Az.Search.psd1"), + helper.GetRMModulePath("Az.Storage.psd1") + }) + .WithNewRecordMatcherArguments( + userAgentsToIgnore: new Dictionary + { + {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} + }, + resourceProviders: new Dictionary + { + {"Microsoft.Resources", null}, + {"Microsoft.Features", null}, + {"Microsoft.Authorization", null}, + {"Microsoft.Storage", null} + } + ) + .Build(); + } + } +} diff --git a/src/Search/Search.Test/TestController.cs b/src/Search/Search.Test/TestController.cs deleted file mode 100644 index 0b519881be53..000000000000 --- a/src/Search/Search.Test/TestController.cs +++ /dev/null @@ -1,139 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// 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.Common.Authentication; -using Microsoft.Azure.Management.Internal.Resources; -using Microsoft.Azure.Management.Search; -using Microsoft.Azure.ServiceManagement.Common.Models; -using Microsoft.Azure.Test.HttpRecorder; -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using Microsoft.Rest.ClientRuntime.Azure.TestFramework; -using Microsoft.Azure.Management.Storage; - -namespace Microsoft.Azure.Commands.Management.Search.Test.ScenarioTests -{ - public class TestController - { - private readonly EnvironmentSetupHelper _helper; - - public ResourceManagementClient ResourceManagementClient { get; private set; } - - public SearchManagementClient SearchClient { get; private set; } - - public StorageManagementClient StorageManagementClient { get; private set; } - - public static TestController NewInstance => new TestController(); - - public TestController() - { - _helper = new EnvironmentSetupHelper(); - } - - public void RunPsTest(XunitTracingInterceptor traceInterceptor, params string[] scripts) - { - _helper.TracingInterceptor = traceInterceptor; - var sf = new StackTrace().GetFrame(1); - var callingClassType = sf.GetMethod().ReflectedType?.ToString(); - var mockName = sf.GetMethod().Name; - - RunPsTestWorkflow( - () => scripts, - // no custom cleanup - null, - callingClassType, - mockName); - } - - public void RunPsTestWorkflow( - Func scriptBuilder, - Action cleanup, - string callingClassType, - string mockName) - { - var providersToInclude = new Dictionary - { - {"Microsoft.Resources", null}, - {"Microsoft.Features", null}, - {"Microsoft.Authorization", null}, - {"Microsoft.Storage", null} - }; - - var providersToIgnore = new Dictionary - { - {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} - }; - HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, providersToInclude, providersToIgnore); - HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords"); - - using (var context = MockContext.Start(callingClassType, mockName)) - { - SetupManagementClients(context); - _helper.SetupEnvironment(AzureModule.AzureResourceManager); - var callingClassName = callingClassType.Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries).Last(); - _helper.SetupModules(AzureModule.AzureResourceManager, - _helper.RMProfileModule, - _helper.GetRMModulePath("AzureRM.Search.psd1"), - _helper.GetRMModulePath("AzureRM.Storage.psd1"), - "ScenarioTests\\Common.ps1", - "ScenarioTests\\" + callingClassName + ".ps1", - "AzureRM.Resources.ps1"); - - try - { - var psScripts = scriptBuilder?.Invoke(); - if (psScripts != null) - { - _helper.RunPowerShellTest(psScripts); - } - } - finally - { - cleanup?.Invoke(); - } - } - } - - private void SetupManagementClients(MockContext context) - { - ResourceManagementClient = GetResourceManagementClient(context); - SearchClient = GetAzureSearchManagementClient(context); - StorageManagementClient = GetStorageManagementClient(context); - - _helper.SetupManagementClients( - ResourceManagementClient, - SearchClient, - StorageManagementClient); - } - - private StorageManagementClient GetStorageManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static ResourceManagementClient GetResourceManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static SearchManagementClient GetAzureSearchManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - } -} diff --git a/src/Security/Security.Test/ScenarioTests/AlertsSuppressionRuleTests.cs b/src/Security/Security.Test/ScenarioTests/AlertsSuppressionRuleTests.cs index 520ea40ecbc6..1568d26b0fb0 100644 --- a/src/Security/Security.Test/ScenarioTests/AlertsSuppressionRuleTests.cs +++ b/src/Security/Security.Test/ScenarioTests/AlertsSuppressionRuleTests.cs @@ -12,36 +12,29 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class AlertsSuppressionRuleTests + public class AlertsSuppressionRuleTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public AlertsSuppressionRuleTests(Xunit.Abstractions.ITestOutputHelper output) + public AlertsSuppressionRuleTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzAlertsSuppressionRule-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzAlertsSuppressionRule-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void CreateAndDeleteAlertsSuppressionRule() { - TestController.NewInstance.RunPowerShellTest(_logger, "CreateAndDelete-AzAlertsSuppressionRule"); + TestRunner.RunTestScript("CreateAndDelete-AzAlertsSuppressionRule"); } } } \ No newline at end of file diff --git a/src/Security/Security.Test/ScenarioTests/AllowedConnectionTests.cs b/src/Security/Security.Test/ScenarioTests/AllowedConnectionTests.cs index 663102f2bb3a..7ca24d378d20 100644 --- a/src/Security/Security.Test/ScenarioTests/AllowedConnectionTests.cs +++ b/src/Security/Security.Test/ScenarioTests/AllowedConnectionTests.cs @@ -1,41 +1,33 @@ -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; -using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class AllowedConnectionTests + public class AllowedConnectionTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public AllowedConnectionTests (Xunit.Abstractions.ITestOutputHelper output) + public AllowedConnectionTests (Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmAllowedConnection-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmAllowedConnection-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmAllowedConnection-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Get-AzureRmAllowedConnection-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmAllowedConnection-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmAllowedConnection-ResourceId"); } } } - diff --git a/src/Security/Security.Test/ScenarioTests/DeviceSecurityGroupsTests.cs b/src/Security/Security.Test/ScenarioTests/DeviceSecurityGroupsTests.cs index 925d5c5c8513..335b64169acb 100644 --- a/src/Security/Security.Test/ScenarioTests/DeviceSecurityGroupsTests.cs +++ b/src/Security/Security.Test/ScenarioTests/DeviceSecurityGroupsTests.cs @@ -12,50 +12,43 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class DeviceSecurityGroupsTests + public class DeviceSecurityGroupsTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public DeviceSecurityGroupsTests(Xunit.Abstractions.ITestOutputHelper output) + public DeviceSecurityGroupsTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceIdScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmDeviceSecurityGroup-ResourceIdScope"); + TestRunner.RunTestScript("Get-AzureRmDeviceSecurityGroup-ResourceIdScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceIdLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmDeviceSecurityGroup-ResourceIdLevelResource"); + TestRunner.RunTestScript("Get-AzureRmDeviceSecurityGroup-ResourceIdLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetResourceIdLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzureRmDeviceSecurityGroup-ResourceIdLevelResource"); + TestRunner.RunTestScript("Set-AzureRmDeviceSecurityGroup-ResourceIdLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void RemoveDeviceSecurityGroups() { - TestController.NewInstance.RunPowerShellTest(_logger, "Remove-AzureRmDeviceSecurityGroup-ResourceIdLevelResource"); + TestRunner.RunTestScript("Remove-AzureRmDeviceSecurityGroup-ResourceIdLevelResource"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/IotSecuritySolutionAnalyticsTests.cs b/src/Security/Security.Test/ScenarioTests/IotSecuritySolutionAnalyticsTests.cs index 8fcd896f7097..43c3567ba0dc 100644 --- a/src/Security/Security.Test/ScenarioTests/IotSecuritySolutionAnalyticsTests.cs +++ b/src/Security/Security.Test/ScenarioTests/IotSecuritySolutionAnalyticsTests.cs @@ -12,50 +12,43 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class IotSecuritySolutionAnalyticsTests + public class IotSecuritySolutionAnalyticsTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public IotSecuritySolutionAnalyticsTests(Xunit.Abstractions.ITestOutputHelper output) + public IotSecuritySolutionAnalyticsTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSolutionScopeSingle() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmIotSecurityAnalytics-SolutionScope-Single"); + TestRunner.RunTestScript("Get-AzureRmIotSecurityAnalytics-SolutionScope-Single"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSolutionScopeList() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmIotSecurityAnalytics-SolutionScope-List"); + TestRunner.RunTestScript("Get-AzureRmIotSecurityAnalytics-SolutionScope-List"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAggregatedAlertSolutionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmIotSecurityAnalyticsAggregatedAlert-SolutionScope"); + TestRunner.RunTestScript("Get-AzureRmIotSecurityAnalyticsAggregatedAlert-SolutionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAggregatedRecommendationSolutionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmIotSecurityAnalyticsAggregatedRecommendation-SolutionScope"); + TestRunner.RunTestScript("Get-AzureRmIotSecurityAnalyticsAggregatedRecommendation-SolutionScope"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/IotSecuritySolutionsTests.cs b/src/Security/Security.Test/ScenarioTests/IotSecuritySolutionsTests.cs index 7b9bdcf57d7c..27a854dfbe07 100644 --- a/src/Security/Security.Test/ScenarioTests/IotSecuritySolutionsTests.cs +++ b/src/Security/Security.Test/ScenarioTests/IotSecuritySolutionsTests.cs @@ -12,106 +12,99 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class IotSecuritySolutionsTests + public class IotSecuritySolutionsTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public IotSecuritySolutionsTests(Xunit.Abstractions.ITestOutputHelper output) + public IotSecuritySolutionsTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmIotSecuritySolution-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmIotSecuritySolution-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceGroupScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmIotSecuritySolution-ResourceGroupScope"); + TestRunner.RunTestScript("Get-AzureRmIotSecuritySolution-ResourceGroupScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmIotSecuritySolution-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Get-AzureRmIotSecuritySolution-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmIotSecuritySolution-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmIotSecuritySolution-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzureRmIotSecuritySolution-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Set-AzureRmIotSecuritySolution-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzureRmIotSecuritySolution-ResourceId"); + TestRunner.RunTestScript("Set-AzureRmIotSecuritySolution-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetInputObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzureRmIotSecuritySolution-InputObject"); + TestRunner.RunTestScript("Set-AzureRmIotSecuritySolution-InputObject"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void RemoveResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Remove-AzureRmIotSecuritySolution-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Remove-AzureRmIotSecuritySolution-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void RemoveResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Remove-AzureRmIotSecuritySolution-ResourceId"); + TestRunner.RunTestScript("Remove-AzureRmIotSecuritySolution-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void UpdateResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzureRmIotSecuritySolution-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Update-AzureRmIotSecuritySolution-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void UpdateResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzureRmIotSecuritySolution-ResourceId"); + TestRunner.RunTestScript("Update-AzureRmIotSecuritySolution-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void UpdateInputObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzureRmIotSecuritySolution-InputObject"); + TestRunner.RunTestScript("Update-AzureRmIotSecuritySolution-InputObject"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityAdaptiveApplicationControlTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityAdaptiveApplicationControlTests.cs index 390a0f1b4d2a..72f6bc95ad7c 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityAdaptiveApplicationControlTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityAdaptiveApplicationControlTests.cs @@ -1,34 +1,26 @@ -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; -using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityAdaptiveApplicationControlTests + public class SecurityAdaptiveApplicationControlTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityAdaptiveApplicationControlTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityAdaptiveApplicationControlTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAdaptiveApplicationControlGroup() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSecurityAdaptiveApplicationControlGroup-ResourceGroupScope"); + TestRunner.RunTestScript("Get-AzSecurityAdaptiveApplicationControlGroup-ResourceGroupScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAdaptiveApplicationControlList() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSecurityAdaptiveApplicationControl-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzSecurityAdaptiveApplicationControl-SubscriptionScope"); } } } - diff --git a/src/Security/Security.Test/ScenarioTests/SecurityAdaptiveNetworkHardeningTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityAdaptiveNetworkHardeningTests.cs index 729da1102bdb..9937cabfbb19 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityAdaptiveNetworkHardeningTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityAdaptiveNetworkHardeningTests.cs @@ -1,34 +1,26 @@ -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; -using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityAdaptiveNetworkHardeningTests + public class SecurityAdaptiveNetworkHardeningTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityAdaptiveNetworkHardeningTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityAdaptiveNetworkHardeningTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void ListByExtendedResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSecurityAdaptiveNetworkHardening-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Get-AzSecurityAdaptiveNetworkHardening-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSingleAdaptiveNetworkHardeningResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSecurityAdaptiveNetworkHardening-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Get-AzSecurityAdaptiveNetworkHardening-ResourceGroupLevelResource"); } } } - diff --git a/src/Security/Security.Test/ScenarioTests/SecurityAdvancedThreatProtectionTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityAdvancedThreatProtectionTests.cs index 8ee612663719..a46b7d7a7297 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityAdvancedThreatProtectionTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityAdvancedThreatProtectionTests.cs @@ -12,30 +12,22 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityAdvancedThreatProtectionTests + public class SecurityAdvancedThreatProtectionTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityAdvancedThreatProtectionTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityAdvancedThreatProtectionTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-AzSecurityAdvancedThreatProtection-ResourceId"); + TestRunner.RunTestScript("Test-AzSecurityAdvancedThreatProtection-ResourceId"); } - } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityAlertTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityAlertTests.cs index b0b34ea4ec93..50fd6f659ca0 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityAlertTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityAlertTests.cs @@ -12,78 +12,71 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityAlertTests + public class SecurityAlertTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityAlertTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityAlertTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityAlert-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmSecurityAlert-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceGroupScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityAlert-ResourceGroupScope"); + TestRunner.RunTestScript("Get-AzureRmSecurityAlert-ResourceGroupScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityAlert-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Get-AzureRmSecurityAlert-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityAlert-SubscriptionLevelResource"); + TestRunner.RunTestScript("Get-AzureRmSecurityAlert-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityAlert-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmSecurityAlert-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzureRmSecurityAlert-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Set-AzureRmSecurityAlert-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzureRmSecurityAlert-SubscriptionLevelResource"); + TestRunner.RunTestScript("Set-AzureRmSecurityAlert-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzureRmSecurityAlert-ResourceId"); + TestRunner.RunTestScript("Set-AzureRmSecurityAlert-ResourceId"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityAssessmentMetadataTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityAssessmentMetadataTests.cs index c4f2cb2dec33..100b386f3df2 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityAssessmentMetadataTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityAssessmentMetadataTests.cs @@ -12,36 +12,29 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityAssessmentMetadataTests + public class SecurityAssessmentMetadataTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityAssessmentMetadataTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityAssessmentMetadataTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAllAssessmentMetadata() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AllSecurityAssessmentMetadata"); + TestRunner.RunTestScript("Get-AllSecurityAssessmentMetadata"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void CreateAndDeleteAssessmentMetadata() { - TestController.NewInstance.RunPowerShellTest(_logger, "CreateAndDelete-AzSecurityAssessmentMetadata"); + TestRunner.RunTestScript("CreateAndDelete-AzSecurityAssessmentMetadata"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityAssessmentTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityAssessmentTests.cs index 69c0c83ddee8..4575c887157a 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityAssessmentTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityAssessmentTests.cs @@ -12,36 +12,29 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityAssessmentTests + public class SecurityAssessmentTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityAssessmentTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityAssessmentTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAllAssessments() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AllSecurityAssessments"); + TestRunner.RunTestScript("Get-AllSecurityAssessments"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void CreateAndDeleteAssessment() { - TestController.NewInstance.RunPowerShellTest(_logger, "CreateAndDelete-AzSecurityAssessment"); + TestRunner.RunTestScript("CreateAndDelete-AzSecurityAssessment"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityAutoProvisioningSettingTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityAutoProvisioningSettingTests.cs index d159431f16d9..4b4ef817a6a9 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityAutoProvisioningSettingTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityAutoProvisioningSettingTests.cs @@ -12,57 +12,50 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityAutoProvisioningSettingTests + public class SecurityAutoProvisioningSettingTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityAutoProvisioningSettingTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityAutoProvisioningSettingTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityAutoProvisioningSetting-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmSecurityAutoProvisioningSetting-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceGroupScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityAutoProvisioningSetting-SubscriptionLevelResource"); + TestRunner.RunTestScript("Get-AzureRmSecurityAutoProvisioningSetting-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityAutoProvisioningSetting-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmSecurityAutoProvisioningSetting-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzureRmSecurityAutoProvisioningSetting-SubscriptionLevelResource"); + TestRunner.RunTestScript("Set-AzureRmSecurityAutoProvisioningSetting-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzureRmSecurityAutoProvisioningSetting-ResourceId"); + TestRunner.RunTestScript("Set-AzureRmSecurityAutoProvisioningSetting-ResourceId"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityAutomationTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityAutomationTests.cs index 415810cbb3e3..58dce816438d 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityAutomationTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityAutomationTests.cs @@ -12,142 +12,134 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityAutomationTests + public class SecurityAutomationTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityAutomationTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityAutomationTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSecurityAutomationSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSecurityAutomation-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzSecurityAutomation-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSecurityAutomationResourceScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSecurityAutomation-ResourceGroupScope"); + TestRunner.RunTestScript("Get-AzSecurityAutomation-ResourceGroupScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSecurityAutomationResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSecurityAutomation-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Get-AzSecurityAutomation-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSecurityAutomationResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSecurityAutomation-ResourceId"); + TestRunner.RunTestScript("Get-AzSecurityAutomation-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void NewSecurityAutomationResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSecurityAutomation-ResourceGroupLevelResource"); + TestRunner.RunTestScript("New-AzSecurityAutomation-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetSecurityAutomationResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzSecurityAutomation-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Set-AzSecurityAutomation-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetSecurityAutomationResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzSecurityAutomation-ResourceId"); + TestRunner.RunTestScript("Set-AzSecurityAutomation-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetSecurityAutomationInputObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzSecurityAutomation-InputObject"); + TestRunner.RunTestScript("Set-AzSecurityAutomation-InputObject"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void ConfirmSecurityAutomationResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Confirm-AzSecurityAutomation-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Confirm-AzSecurityAutomation-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void ConfirmSecurityAutomationResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Confirm-AzSecurityAutomation-ResourceId"); + TestRunner.RunTestScript("Confirm-AzSecurityAutomation-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void ConfirmSecurityAutomationInputObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "Confirm-AzSecurityAutomation-InputObject"); + TestRunner.RunTestScript("Confirm-AzSecurityAutomation-InputObject"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void RemoveSecurityAutomationResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Remove-AzSecurityAutomation-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Remove-AzSecurityAutomation-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void RemoveSecurityAutomationResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Remove-AzSecurityAutomation-ResourceId"); + TestRunner.RunTestScript("Remove-AzSecurityAutomation-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void RemoveSecurityAutomationInputObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "Remove-AzSecurityAutomation-InputObject"); + TestRunner.RunTestScript("Remove-AzSecurityAutomation-InputObject"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void NewSecurityAutomationScopeObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSecurityAutomationScopeObject-Test"); + TestRunner.RunTestScript("New-AzSecurityAutomationScopeObject-Test"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void NewSecurityAutomationSourceObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSecurityAutomationSourceObject-Test"); + TestRunner.RunTestScript("New-AzSecurityAutomationSourceObject-Test"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void NewSecurityAutomationActionObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSecurityAutomationActionObject-Test"); + TestRunner.RunTestScript("New-AzSecurityAutomationActionObject-Test"); } - } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityComplianceTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityComplianceTests.cs index 32d32d6cea80..c4ac70c21682 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityComplianceTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityComplianceTests.cs @@ -12,43 +12,36 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityComplianceTests + public class SecurityComplianceTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityComplianceTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityComplianceTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityCompliance-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmSecurityCompliance-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityCompliance-SubscriptionLevelResource"); + TestRunner.RunTestScript("Get-AzureRmSecurityCompliance-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityCompliance-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmSecurityCompliance-ResourceId"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityContactTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityContactTests.cs index c61ed83727d1..d35e1ea2700f 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityContactTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityContactTests.cs @@ -12,64 +12,57 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityContactTests + public class SecurityContactTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityContactTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityContactTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityContact-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmSecurityContact-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityContact-SubscriptionLevelResource"); + TestRunner.RunTestScript("Get-AzureRmSecurityContact-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityContact-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmSecurityContact-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzureRmSecurityContact-SubscriptionLevelResource"); + TestRunner.RunTestScript("Set-AzureRmSecurityContact-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetSubscriptionLevelResourceSecondary() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzureRmSecurityContact-SubscriptionLevelResource-Secondary"); + TestRunner.RunTestScript("Set-AzureRmSecurityContact-SubscriptionLevelResource-Secondary"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void RemoveSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Remove-AzureRmSecurityContact-SubscriptionLevelResource"); + TestRunner.RunTestScript("Remove-AzureRmSecurityContact-SubscriptionLevelResource"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityDiscoveredSecuritySolutionTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityDiscoveredSecuritySolutionTests.cs index a66ae39a2467..b208b3000c3c 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityDiscoveredSecuritySolutionTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityDiscoveredSecuritySolutionTests.cs @@ -12,43 +12,36 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityDiscoveredSecuritySolutionTests + public class SecurityDiscoveredSecuritySolutionTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityDiscoveredSecuritySolutionTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityDiscoveredSecuritySolutionTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmDiscoveredSecuritySolution-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmDiscoveredSecuritySolution-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmDiscoveredSecuritySolution-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Get-AzureRmDiscoveredSecuritySolution-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmDiscoveredSecuritySolution-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmDiscoveredSecuritySolution-ResourceId"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityExternalSecuritySolutionTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityExternalSecuritySolutionTests.cs index c6bc20b51b4e..4f984812bb10 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityExternalSecuritySolutionTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityExternalSecuritySolutionTests.cs @@ -12,43 +12,36 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityExternalSecuritySolutionTests + public class SecurityExternalSecuritySolutionTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityExternalSecuritySolutionTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityExternalSecuritySolutionTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmExternalSecuritySolution-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmExternalSecuritySolution-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmExternalSecuritySolution-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Get-AzureRmExternalSecuritySolution-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmExternalSecuritySolution-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmExternalSecuritySolution-ResourceId"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityJitNetworkAccessPolicyTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityJitNetworkAccessPolicyTests.cs index 95125db8821c..8ace9252dc96 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityJitNetworkAccessPolicyTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityJitNetworkAccessPolicyTests.cs @@ -12,78 +12,71 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityJitNetworkAccessPolicyTests + public class SecurityJitNetworkAccessPolicyTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityJitNetworkAccessPolicyTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityJitNetworkAccessPolicyTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmJitNetworkAccessPolicy-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmJitNetworkAccessPolicy-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceGroupScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmJitNetworkAccessPolicy-ResourceGroupScope"); + TestRunner.RunTestScript("Get-AzureRmJitNetworkAccessPolicy-ResourceGroupScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmJitNetworkAccessPolicy-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Get-AzureRmJitNetworkAccessPolicy-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmJitNetworkAccessPolicy-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmJitNetworkAccessPolicy-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzureRmJitNetworkAccessPolicy-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Set-AzureRmJitNetworkAccessPolicy-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void RemoveResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Remove-AzureRmJitNetworkAccessPolicy-ResourceId"); + TestRunner.RunTestScript("Remove-AzureRmJitNetworkAccessPolicy-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void RemoveResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Remove-AzureRmJitNetworkAccessPolicy-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Remove-AzureRmJitNetworkAccessPolicy-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void StartResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Start-AzureRmJitNetworkAccessPolicy-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Start-AzureRmJitNetworkAccessPolicy-ResourceGroupLevelResource"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityLocationTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityLocationTests.cs index 5ef9d283ec35..a582a74d482f 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityLocationTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityLocationTests.cs @@ -12,43 +12,36 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityLocationTests + public class SecurityLocationTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityLocationTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityLocationTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityLocation-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmSecurityLocation-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityLocation-SubscriptionLevelResource"); + TestRunner.RunTestScript("Get-AzureRmSecurityLocation-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityLocation-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmSecurityLocation-ResourceId"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityPricingTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityPricingTests.cs index c560a3e90161..890bdf9fbedc 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityPricingTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityPricingTests.cs @@ -12,50 +12,43 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityPricingTests + public class SecurityPricingTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityPricingTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityPricingTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityPricing-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmSecurityPricing-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityPricing-SubscriptionLevelResource"); + TestRunner.RunTestScript("Get-AzureRmSecurityPricing-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityPricing-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmSecurityPricing-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzureRmSecurityPricing-SubscriptionLevelResource"); + TestRunner.RunTestScript("Set-AzureRmSecurityPricing-SubscriptionLevelResource"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityRegulatoryComplinceTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityRegulatoryComplinceTests.cs index 36e9fdafc6e6..ebacb9385ea2 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityRegulatoryComplinceTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityRegulatoryComplinceTests.cs @@ -12,86 +12,78 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityRegulatoryComplinceTests + public class SecurityRegulatoryComplinceTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityRegulatoryComplinceTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityRegulatoryComplinceTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetStandardSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmRegulatoryComplianceStandard-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmRegulatoryComplianceStandard-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetStandardSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmRegulatoryComplianceStandard-SubscriptionLevelResource"); + TestRunner.RunTestScript("Get-AzureRmRegulatoryComplianceStandard-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetStandardResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmRegulatoryComplianceStandard-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmRegulatoryComplianceStandard-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetControlSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmRegulatoryComplianceControl-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmRegulatoryComplianceControl-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetControlSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmRegulatoryComplianceControl-SubscriptionLevelResource"); + TestRunner.RunTestScript("Get-AzureRmRegulatoryComplianceControl-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetControlResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmRegulatoryComplianceControl-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmRegulatoryComplianceControl-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAssessmentSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmRegulatoryComplianceAssessment-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmRegulatoryComplianceAssessment-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAssessmentSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmRegulatoryComplianceAssessment-SubscriptionLevelResource"); + TestRunner.RunTestScript("Get-AzureRmRegulatoryComplianceAssessment-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAssessmentResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmRegulatoryComplianceAssessment-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmRegulatoryComplianceAssessment-ResourceId"); } - } } diff --git a/src/Security/Security.Test/ScenarioTests/SecuritySecureScoreControlDefinitionTests.cs b/src/Security/Security.Test/ScenarioTests/SecuritySecureScoreControlDefinitionTests.cs index cbbb61b26b29..ea42f9d174ed 100644 --- a/src/Security/Security.Test/ScenarioTests/SecuritySecureScoreControlDefinitionTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecuritySecureScoreControlDefinitionTests.cs @@ -12,29 +12,22 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecuritySecureScoreControlDefinitionTests + public class SecuritySecureScoreControlDefinitionTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecuritySecureScoreControlDefinitionTests(Xunit.Abstractions.ITestOutputHelper output) + public SecuritySecureScoreControlDefinitionTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAllSecureScoreControlDefinitions() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AllSecuritySecureScoreControlDefinitions"); + TestRunner.RunTestScript("Get-AllSecuritySecureScoreControlDefinitions"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecuritySecureScoreControlTests.cs b/src/Security/Security.Test/ScenarioTests/SecuritySecureScoreControlTests.cs index 46350dbc3c16..7b8487f2a8c0 100644 --- a/src/Security/Security.Test/ScenarioTests/SecuritySecureScoreControlTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecuritySecureScoreControlTests.cs @@ -12,37 +12,29 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecuritySecureScoreControlTests + public class SecuritySecureScoreControlTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecuritySecureScoreControlTests(Xunit.Abstractions.ITestOutputHelper output) + public SecuritySecureScoreControlTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAllSecureScoreControls() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AllSecuritySecureScoreControls"); + TestRunner.RunTestScript("Get-AllSecuritySecureScoreControls"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAscSecureScoreControls() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AscSecuritySecureScoreControls"); + TestRunner.RunTestScript("Get-AscSecuritySecureScoreControls"); } - } } diff --git a/src/Security/Security.Test/ScenarioTests/SecuritySecureScoreTests.cs b/src/Security/Security.Test/ScenarioTests/SecuritySecureScoreTests.cs index 7816bf261ca3..b6d8844b700f 100644 --- a/src/Security/Security.Test/ScenarioTests/SecuritySecureScoreTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecuritySecureScoreTests.cs @@ -12,40 +12,29 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; -using Microsoft.Azure.Test.HttpRecorder; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using System.Diagnostics; -using System.IO; -using System.Text; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecuritySecureScoreTests + public class SecuritySecureScoreTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecuritySecureScoreTests(Xunit.Abstractions.ITestOutputHelper output) + public SecuritySecureScoreTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAllSecureScores() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AllSecuritySecureScores"); + TestRunner.RunTestScript("Get-AllSecuritySecureScores"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAscSecureScore() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-SecuritySecureScore"); + TestRunner.RunTestScript("Get-SecuritySecureScore"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecuritySettingTests.cs b/src/Security/Security.Test/ScenarioTests/SecuritySettingTests.cs index a4109005ec8b..aabe07f6075f 100644 --- a/src/Security/Security.Test/ScenarioTests/SecuritySettingTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecuritySettingTests.cs @@ -12,43 +12,36 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecuritySettingTests + public class SecuritySettingTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecuritySettingTests(Xunit.Abstractions.ITestOutputHelper output) + public SecuritySettingTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecuritySetting-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmSecuritySetting-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecuritySetting-SubscriptionLevelResource"); + TestRunner.RunTestScript("Get-AzureRmSecuritySetting-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetSettingsScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzureRmSecuritySetting-SettingsScope"); + TestRunner.RunTestScript("Set-AzureRmSecuritySetting-SettingsScope"); } } } \ No newline at end of file diff --git a/src/Security/Security.Test/ScenarioTests/SecuritySolutionTests .cs b/src/Security/Security.Test/ScenarioTests/SecuritySolutionTests .cs index 2d6dfc052060..cbfda38ff408 100644 --- a/src/Security/Security.Test/ScenarioTests/SecuritySolutionTests .cs +++ b/src/Security/Security.Test/ScenarioTests/SecuritySolutionTests .cs @@ -12,29 +12,22 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecuritySolutionTests + public class SecuritySolutionTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecuritySolutionTests(Xunit.Abstractions.ITestOutputHelper output) + public SecuritySolutionTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSecuritySolution-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzSecuritySolution-SubscriptionScope"); } } } \ No newline at end of file diff --git a/src/Security/Security.Test/ScenarioTests/SecuritySolutionsReferenceDataTests.cs b/src/Security/Security.Test/ScenarioTests/SecuritySolutionsReferenceDataTests.cs index e42e10436656..fbdafd2b10bf 100644 --- a/src/Security/Security.Test/ScenarioTests/SecuritySolutionsReferenceDataTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecuritySolutionsReferenceDataTests.cs @@ -12,29 +12,22 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecuritySolutionsReferenceDataTests + public class SecuritySolutionsReferenceDataTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecuritySolutionsReferenceDataTests(Xunit.Abstractions.ITestOutputHelper output) + public SecuritySolutionsReferenceDataTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSecuritySolutionsReferenceData-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzSecuritySolutionsReferenceData-SubscriptionScope"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecuritySubAssessmentTests.cs b/src/Security/Security.Test/ScenarioTests/SecuritySubAssessmentTests.cs index bbbd6793af59..acca9a8d946e 100644 --- a/src/Security/Security.Test/ScenarioTests/SecuritySubAssessmentTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecuritySubAssessmentTests.cs @@ -12,36 +12,29 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecuritySubAssessmentTests + public class SecuritySubAssessmentTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecuritySubAssessmentTests(Xunit.Abstractions.ITestOutputHelper output) + public SecuritySubAssessmentTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAllSubAssessments() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AllSecuritySubAssessments"); + TestRunner.RunTestScript("Get-AllSecuritySubAssessments"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSingleSubAssessments() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-SingleSecuritySubAssessment"); + TestRunner.RunTestScript("Get-SingleSecuritySubAssessment"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityTaskTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityTaskTests.cs index 296a23805882..67f7574b97e3 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityTaskTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityTaskTests.cs @@ -12,57 +12,50 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityTaskTests + public class SecurityTaskTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityTaskTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityTaskTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityTask-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmSecurityTask-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceGroupScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityTask-ResourceGroupScope"); + TestRunner.RunTestScript("Get-AzureRmSecurityTask-ResourceGroupScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityTask-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmSecurityTask-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityTask-SubscriptionLevelResource"); + TestRunner.RunTestScript("Get-AzureRmSecurityTask-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityTask-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Get-AzureRmSecurityTask-ResourceGroupLevelResource"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SecurityTestRunner.cs b/src/Security/Security.Test/ScenarioTests/SecurityTestRunner.cs new file mode 100644 index 000000000000..fe961e39feb7 --- /dev/null +++ b/src/Security/Security.Test/ScenarioTests/SecurityTestRunner.cs @@ -0,0 +1,51 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Collections.Generic; +using Microsoft.Azure.Commands.TestFx; +using Xunit.Abstractions; + +namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests +{ + public class SecurityTestRunner + { + protected readonly ITestRunner TestRunner; + + protected SecurityTestRunner(ITestOutputHelper output) + { + TestRunner = TestManager.CreateInstance(output) + .WithNewPsScriptFilename($"{GetType().Name}.ps1") + .WithProjectSubfolderForTests("ScenarioTests") + .WithCommonPsScripts(new[] + { + @"Common.ps1", + @"../AzureRM.Storage.ps1", + @"../AzureRM.Resources.ps1" + }) + .WithNewRmModules(helper => new[] + { + helper.RMProfileModule, + helper.GetRMModulePath("Az.Security.psd1"), + helper.GetRMModulePath("Az.Compute.psd1"), + helper.GetRMModulePath("Az.Network.psd1"), + helper.GetRMModulePath("Az.OperationalInsights.psd1"), + }) + .WithNewRecordMatcherArguments( + userAgentsToIgnore: new Dictionary(), + resourceProviders: new Dictionary() + ) + .Build(); + } + } +} diff --git a/src/Security/Security.Test/ScenarioTests/SecurityTopologyTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityTopologyTests.cs index 55da88c63999..eb17ae12f56b 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityTopologyTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityTopologyTests.cs @@ -1,41 +1,33 @@ -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; -using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityTopologyTests + public class SecurityTopologyTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityTopologyTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityTopologyTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityTopology-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmSecurityTopology-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceGroupLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityTopology-ResourceGroupLevelResource"); + TestRunner.RunTestScript("Get-AzureRmSecurityTopology-ResourceGroupLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityTopology-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmSecurityTopology-ResourceId"); } } } - diff --git a/src/Security/Security.Test/ScenarioTests/SecurityWorkspaceSettingTests.cs b/src/Security/Security.Test/ScenarioTests/SecurityWorkspaceSettingTests.cs index bee7c1184e61..4c3e0efb4fb3 100644 --- a/src/Security/Security.Test/ScenarioTests/SecurityWorkspaceSettingTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SecurityWorkspaceSettingTests.cs @@ -12,57 +12,50 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SecurityWorkspaceSettingTests + public class SecurityWorkspaceSettingTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SecurityWorkspaceSettingTests(Xunit.Abstractions.ITestOutputHelper output) + public SecurityWorkspaceSettingTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionScope() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityWorkspaceSetting-SubscriptionScope"); + TestRunner.RunTestScript("Get-AzureRmSecurityWorkspaceSetting-SubscriptionScope"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityWorkspaceSetting-SubscriptionLevelResource"); + TestRunner.RunTestScript("Get-AzureRmSecurityWorkspaceSetting-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzureRmSecurityWorkspaceSetting-ResourceId"); + TestRunner.RunTestScript("Get-AzureRmSecurityWorkspaceSetting-ResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void SetSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Set-AzureRmSecurityWorkspaceSetting-SubscriptionLevelResource"); + TestRunner.RunTestScript("Set-AzureRmSecurityWorkspaceSetting-SubscriptionLevelResource"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void RemoveSubscriptionLevelResource() { - TestController.NewInstance.RunPowerShellTest(_logger, "Remove-AzureRmSecurityWorkspaceSetting-SubscriptionLevelResource"); + TestRunner.RunTestScript("Remove-AzureRmSecurityWorkspaceSetting-SubscriptionLevelResource"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/SqlInformationProtectionPolicyTests.cs b/src/Security/Security.Test/ScenarioTests/SqlInformationProtectionPolicyTests.cs index fad93bc6a128..836fcd8b7b91 100644 --- a/src/Security/Security.Test/ScenarioTests/SqlInformationProtectionPolicyTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SqlInformationProtectionPolicyTests.cs @@ -19,27 +19,24 @@ namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SqlInformationProtectionPolicyTests + public class SqlInformationProtectionPolicyTests : SecurityTestRunner { - public SqlInformationProtectionPolicyTests(Xunit.Abstractions.ITestOutputHelper output) + public SqlInformationProtectionPolicyTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestErrorWhenInformationTypeAndSensitivityLabelShareSameId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ErrorWhenInformationTypeAndSensitivityLabelShareSameId"); + TestRunner.RunTestScript("Test-ErrorWhenInformationTypeAndSensitivityLabelShareSameId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestErrorWhenInformationTypeAndSensitivityLabelShareSameDisplayName() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ErrorWhenInformationTypeAndSensitivityLabelShareSameDisplayName"); + TestRunner.RunTestScript("Test-ErrorWhenInformationTypeAndSensitivityLabelShareSameDisplayName"); } @@ -47,51 +44,49 @@ public void TestErrorWhenInformationTypeAndSensitivityLabelShareSameDisplayName( [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestErrorWhenInformationTypesShareSameDisplayName() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ErrorWhenInformationTypesShareSameDisplayName"); + TestRunner.RunTestScript("Test-ErrorWhenInformationTypesShareSameDisplayName"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestErrorWhenInformationTypesShareSameId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ErrorWhenInformationTypesShareSameId"); + TestRunner.RunTestScript("Test-ErrorWhenInformationTypesShareSameId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestErrorWhenSensitivityLabelsShareSameDisplayName() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ErrorWhenSensitivityLabelsShareSameDisplayName"); + TestRunner.RunTestScript("Test-ErrorWhenSensitivityLabelsShareSameDisplayName"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestErrorWhenSensitivityLabelsShareSameId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ErrorWhenSensitivityLabelsShareSameId"); + TestRunner.RunTestScript("Test-ErrorWhenSensitivityLabelsShareSameId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestErrorWhenRankIsInvalid() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ErrorWhenRankIsInvalid"); + TestRunner.RunTestScript("Test-ErrorWhenRankIsInvalid"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestErrorWhenRankIsMissing() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ErrorWhenRankIsMissing"); + TestRunner.RunTestScript("Test-ErrorWhenRankIsMissing"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestErrorWhenSettingAnEmptyPolicy() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ErrorWhenSettingAnEmptyPolicy"); + TestRunner.RunTestScript("Test-ErrorWhenSettingAnEmptyPolicy"); } - - private readonly XunitTracingInterceptor _logger; } } diff --git a/src/Security/Security.Test/ScenarioTests/SqlVulnerabilityAssessmentTests.cs b/src/Security/Security.Test/ScenarioTests/SqlVulnerabilityAssessmentTests.cs index c427232a61bb..9d67d73eaa99 100644 --- a/src/Security/Security.Test/ScenarioTests/SqlVulnerabilityAssessmentTests.cs +++ b/src/Security/Security.Test/ScenarioTests/SqlVulnerabilityAssessmentTests.cs @@ -12,22 +12,15 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests { - public class SqlVulnerabilityAssessmentTests + public class SqlVulnerabilityAssessmentTests : SecurityTestRunner { - private readonly XunitTracingInterceptor _logger; - - public SqlVulnerabilityAssessmentTests(Xunit.Abstractions.ITestOutputHelper output) + public SqlVulnerabilityAssessmentTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } /* @@ -39,7 +32,7 @@ public SqlVulnerabilityAssessmentTests(Xunit.Abstractions.ITestOutputHelper outp [Trait(Category.AcceptanceType, Category.LiveOnly)] public void TestAzSecuritySqlVulnerabilityAssessment() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-AzSecuritySqlVulnerabilityAssessment"); + TestRunner.RunTestScript("Test-AzSecuritySqlVulnerabilityAssessment"); } } } diff --git a/src/Security/Security.Test/ScenarioTests/TestController.cs b/src/Security/Security.Test/ScenarioTests/TestController.cs deleted file mode 100644 index e88fcdf87941..000000000000 --- a/src/Security/Security.Test/ScenarioTests/TestController.cs +++ /dev/null @@ -1,122 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// 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.Common.Authentication; -using Microsoft.Azure.Management.Compute; -using Microsoft.Azure.Management.OperationalInsights; -using Microsoft.Azure.Management.Internal.Network.Version2017_10_01; -using Microsoft.Azure.Management.Internal.Resources; -using Microsoft.Azure.Management.Security; -using Microsoft.Azure.Management.Storage.Version2017_10_01; -using Microsoft.Azure.Test.HttpRecorder; -using Microsoft.Rest.ClientRuntime.Azure.TestFramework; -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; - -namespace Microsoft.Azure.Commands.Security.Test.ScenarioTests -{ - public class TestController : RMTestBase - { - private readonly EnvironmentSetupHelper _helper; - - public static TestController NewInstance => new TestController(); - - protected TestController() - { - _helper = new EnvironmentSetupHelper(); - } - - public void RunPowerShellTest(ServiceManagement.Common.Models.XunitTracingInterceptor logger, params string[] scripts) - { - var sf = new StackTrace().GetFrame(1); - var callingClassType = sf.GetMethod().ReflectedType?.ToString(); - var mockName = sf.GetMethod().Name; - - _helper.TracingInterceptor = logger; - var providers = new Dictionary(); - var providersToIgnore = new Dictionary(); - HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, providers, providersToIgnore); - HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords"); - - using (var context = MockContext.Start(callingClassType, mockName)) - { - SetupManagementClients(context); - - _helper.SetupEnvironment(AzureModule.AzureResourceManager); - var computePath = _helper.GetRMModulePath(@"AzureRM.Compute.psd1"); - var networkPath = _helper.GetRMModulePath(@"AzureRM.Network.psd1"); - var operationalInsightsPath = _helper.GetRMModulePath(@"AzureRM.OperationalInsights.psd1"); - - var callingClassName = callingClassType?.Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries).Last(); - _helper.SetupModules( - AzureModule.AzureResourceManager, - _helper.RMProfileModule, - _helper.GetRMModulePath(@"AzureRM.Security.psd1"), - computePath, - networkPath, - operationalInsightsPath, - "ScenarioTests\\Common.ps1", - "ScenarioTests\\" + callingClassName + ".ps1", - "AzureRM.Storage.ps1", - "AzureRM.Resources.ps1"); - - _helper.RunPowerShellTest(scripts); - } - } - - protected void SetupManagementClients(MockContext context) - { - var resourcesClient = GetResourcesClient(context); - var securityCenterClient = GetSecurityCenterClient(context); - var storageClient = GetStorageManagementClient(context); - var computeClient = GetComputeManagementClient(context); - var networkClient = GetNetworkManagementClient(context); - var operationalInsightsClient = GetOperationalInsightsManagementClient(context); - _helper.SetupManagementClients(securityCenterClient, resourcesClient, storageClient, computeClient, networkClient, operationalInsightsClient); - } - - private static SecurityCenterClient GetSecurityCenterClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - private static ResourceManagementClient GetResourcesClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - private static StorageManagementClient GetStorageManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static ComputeManagementClient GetComputeManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static NetworkManagementClient GetNetworkManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static OperationalInsightsManagementClient GetOperationalInsightsManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - } -} diff --git a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/ActionsTests.cs b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/ActionsTests.cs index 66d8407540ac..6f0929371062 100644 --- a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/ActionsTests.cs +++ b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/ActionsTests.cs @@ -12,57 +12,50 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.SecurityInsights.Test.ScenarioTests { - public class ActionsTests + public class ActionsTests : SecurityInsightsTestRunner { - private readonly XunitTracingInterceptor _logger; - - public ActionsTests(Xunit.Abstractions.ITestOutputHelper output) + public ActionsTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void ListByAlertRule() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSentinelAlertRuleAction-ListByAlertRule"); + TestRunner.RunTestScript("Get-AzSentinelAlertRuleAction-ListByAlertRule"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAction() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSentinelAlertRuleAction-GetAction"); + TestRunner.RunTestScript("Get-AzSentinelAlertRuleAction-GetAction"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void CreateAction() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSentinelAlertRuleAction-Create"); + TestRunner.RunTestScript("New-AzSentinelAlertRuleAction-Create"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void UpdateAction() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSentinelAlertRuleAction-Update"); + TestRunner.RunTestScript("Update-AzSentinelAlertRuleAction-Update"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void RemoveAction() { - TestController.NewInstance.RunPowerShellTest(_logger, "Remove-AzSentinelAlertRuleAction-Delete"); + TestRunner.RunTestScript("Remove-AzSentinelAlertRuleAction-Delete"); } } } diff --git a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/AlertRuleTemplatesTests.cs b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/AlertRuleTemplatesTests.cs index 8f82acd35807..b849adc2425a 100644 --- a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/AlertRuleTemplatesTests.cs +++ b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/AlertRuleTemplatesTests.cs @@ -12,36 +12,29 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.SecurityInsights.Test.ScenarioTests { - public class AlertRuleTemplatesTests + public class AlertRuleTemplatesTests : SecurityInsightsTestRunner { - private readonly XunitTracingInterceptor _logger; - - public AlertRuleTemplatesTests(Xunit.Abstractions.ITestOutputHelper output) + public AlertRuleTemplatesTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void List() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSentinelAlertRuleTemplate-List"); + TestRunner.RunTestScript("Get-AzSentinelAlertRuleTemplate-List"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Get() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSentinelAlertRuleTemplate-Get"); + TestRunner.RunTestScript("Get-AzSentinelAlertRuleTemplate-Get"); } } } diff --git a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/AlertRulesTests.cs b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/AlertRulesTests.cs index 3bf3cd5214bf..0cbe90cff353 100644 --- a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/AlertRulesTests.cs +++ b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/AlertRulesTests.cs @@ -12,78 +12,71 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.SecurityInsights.Test.ScenarioTests { - public class AlertRulesTests + public class AlertRulesTests : SecurityInsightsTestRunner { - private readonly XunitTracingInterceptor _logger; - - public AlertRulesTests(Xunit.Abstractions.ITestOutputHelper output) + public AlertRulesTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void ListAlertRules() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSentinelAlertRule-List"); + TestRunner.RunTestScript("Get-AzSentinelAlertRule-List"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAction() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSentinelAlertRule-Get"); + TestRunner.RunTestScript("Get-AzSentinelAlertRule-Get"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void CreateAlertRuleFusion() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSentinelAlertRule-CreateFusion"); + TestRunner.RunTestScript("New-AzSentinelAlertRule-CreateFusion"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void CreateAlertRuleMSIC() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSentinelAlertRule-CreateMSIC"); + TestRunner.RunTestScript("New-AzSentinelAlertRule-CreateMSIC"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void CreateAlertRuleScheduled() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSentinelAlertRule-CreateScheduled"); + TestRunner.RunTestScript("New-AzSentinelAlertRule-CreateScheduled"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void UpdateAlertRule() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSentinelAlertRule-Update"); + TestRunner.RunTestScript("Update-AzSentinelAlertRule-Update"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void InputObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSentinelAlertRule-InputObject"); + TestRunner.RunTestScript("Update-AzSentinelAlertRule-InputObject"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void RemoveAlertRule() { - TestController.NewInstance.RunPowerShellTest(_logger, "Remove-AzSentinelAlertRule-Delete"); + TestRunner.RunTestScript("Remove-AzSentinelAlertRule-Delete"); } } } diff --git a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/BookmarksTests.cs b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/BookmarksTests.cs index d18d1705fcda..b35e2ad8ac7d 100644 --- a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/BookmarksTests.cs +++ b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/BookmarksTests.cs @@ -12,64 +12,57 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.SecurityInsights.Test.ScenarioTests { - public class BookmarksTests + public class BookmarksTests : SecurityInsightsTestRunner { - private readonly XunitTracingInterceptor _logger; - - public BookmarksTests(Xunit.Abstractions.ITestOutputHelper output) + public BookmarksTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void List() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSentinelBookmark-List"); + TestRunner.RunTestScript("Get-AzSentinelBookmark-List"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Get() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSentinelBookmark-Get"); + TestRunner.RunTestScript("Get-AzSentinelBookmark-Get"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Create() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSentinelBookmark-Create"); + TestRunner.RunTestScript("New-AzSentinelBookmark-Create"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Update() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSentinelBookmark-Update"); + TestRunner.RunTestScript("Update-AzSentinelBookmark-Update"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void InputObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSentinelBookmark-InputObject"); + TestRunner.RunTestScript("Update-AzSentinelBookmark-InputObject"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Remove() { - TestController.NewInstance.RunPowerShellTest(_logger, "Remove-AzSentinelBookmark-Remove"); + TestRunner.RunTestScript("Remove-AzSentinelBookmark-Remove"); } } } diff --git a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/DataConnectorsTests.cs b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/DataConnectorsTests.cs index f2d6ecb2d2c6..227bdee39f88 100644 --- a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/DataConnectorsTests.cs +++ b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/DataConnectorsTests.cs @@ -12,64 +12,57 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.SecurityInsights.Test.ScenarioTests { - public class DataConnectorsTests + public class DataConnectorsTests : SecurityInsightsTestRunner { - private readonly XunitTracingInterceptor _logger; - - public DataConnectorsTests(Xunit.Abstractions.ITestOutputHelper output) + public DataConnectorsTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void List() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSentinelDataConnector-List"); + TestRunner.RunTestScript("Get-AzSentinelDataConnector-List"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Get() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSentinelDataConnector-Get"); + TestRunner.RunTestScript("Get-AzSentinelDataConnector-Get"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Create() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSentinelDataConnector-Create"); + TestRunner.RunTestScript("New-AzSentinelDataConnector-Create"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Update() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSentinelDataConnector-Update"); + TestRunner.RunTestScript("Update-AzSentinelDataConnector-Update"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void InputObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSentinelDataConnector-InputObject"); + TestRunner.RunTestScript("Update-AzSentinelDataConnector-InputObject"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Delete() { - TestController.NewInstance.RunPowerShellTest(_logger, "Remove-AzSentinelDataConnector-Delete"); + TestRunner.RunTestScript("Remove-AzSentinelDataConnector-Delete"); } } } diff --git a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/IncidentCommentsTests.cs b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/IncidentCommentsTests.cs index 9750c1515693..5a6a187a87fb 100644 --- a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/IncidentCommentsTests.cs +++ b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/IncidentCommentsTests.cs @@ -12,43 +12,36 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.SecurityInsights.Test.ScenarioTests { - public class IncidentCommentsTests + public class IncidentCommentsTests : SecurityInsightsTestRunner { - private readonly XunitTracingInterceptor _logger; - - public IncidentCommentsTests(Xunit.Abstractions.ITestOutputHelper output) + public IncidentCommentsTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void List() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSentinelIncidentComment-ListByIncident"); + TestRunner.RunTestScript("Get-AzSentinelIncidentComment-ListByIncident"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Get() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSentinelIncidentComment-Get"); + TestRunner.RunTestScript("Get-AzSentinelIncidentComment-Get"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Create() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSentinelIncidentComment-Create"); + TestRunner.RunTestScript("New-AzSentinelIncidentComment-Create"); } } } diff --git a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/IncidentsTests.cs b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/IncidentsTests.cs index 65a51efe42dc..fcc811d8a01d 100644 --- a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/IncidentsTests.cs +++ b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/IncidentsTests.cs @@ -12,64 +12,57 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.SecurityInsights.Test.ScenarioTests { - public class IncidentsTests + public class IncidentsTests : SecurityInsightsTestRunner { - private readonly XunitTracingInterceptor _logger; - - public IncidentsTests(Xunit.Abstractions.ITestOutputHelper output) + public IncidentsTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void List() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSentinelIncident-List"); + TestRunner.RunTestScript("Get-AzSentinelIncident-List"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Get() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSentinelIncident-Get"); + TestRunner.RunTestScript("Get-AzSentinelIncident-Get"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Create() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSentinelIncident-Create"); + TestRunner.RunTestScript("New-AzSentinelIncident-Create"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Update() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSentinelIncident-Update"); + TestRunner.RunTestScript("Update-AzSentinelIncident-Update"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void InputObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSentinelIncident-InputObject"); + TestRunner.RunTestScript("Update-AzSentinelIncident-InputObject"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void Remove() { - TestController.NewInstance.RunPowerShellTest(_logger, "Remove-AzSentinelIncident-Delete"); + TestRunner.RunTestScript("Remove-AzSentinelIncident-Delete"); } } } diff --git a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/SecurityInsightsTestRunner.cs b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/SecurityInsightsTestRunner.cs new file mode 100644 index 000000000000..86672ec7d243 --- /dev/null +++ b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/SecurityInsightsTestRunner.cs @@ -0,0 +1,57 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Collections.Generic; +using Microsoft.Azure.Commands.TestFx; +using Xunit.Abstractions; + +namespace Microsoft.Azure.Commands.SecurityInsights.Test.ScenarioTests +{ + public class SecurityInsightsTestRunner + { + protected readonly ITestRunner TestRunner; + + protected SecurityInsightsTestRunner(ITestOutputHelper output) + { + TestRunner = TestManager.CreateInstance(output) + .WithNewPsScriptFilename($"{GetType().Name}.ps1") + .WithProjectSubfolderForTests("ScenarioTests") + .WithCommonPsScripts(new[] + { + @"Common.ps1", + @"../AzureRM.Resources.ps1", + @"../AzureRM.Storage.ps1" + }) + .WithNewRmModules(helper => new[] + { + helper.RMProfileModule, + helper.GetRMModulePath("Az.SecurityInsights.psd1") + }) + .WithNewRecordMatcherArguments( + userAgentsToIgnore: new Dictionary + { + {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} + }, + resourceProviders: new Dictionary + { + {"Microsoft.Resources", null}, + {"Microsoft.Features", null}, + {"Microsoft.Authorization", null}, + {"Microsoft.Compute", null} + } + ) + .Build(); + } + } +} \ No newline at end of file diff --git a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/TestController.cs b/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/TestController.cs deleted file mode 100644 index 20d001a7e242..000000000000 --- a/src/SecurityInsights/SecurityInsights.Test/ScenarioTests/TestController.cs +++ /dev/null @@ -1,136 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// 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 System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using Microsoft.Azure.Commands.Common.Authentication; -using Microsoft.Azure.Management.SecurityInsights; -using Microsoft.Azure.Management.Storage.Version2017_10_01; -using Microsoft.Azure.Test.HttpRecorder; -using Microsoft.Rest.ClientRuntime.Azure.TestFramework; -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; -using TestEnvironmentFactory = Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestEnvironmentFactory; -using Microsoft.Azure.Management.Internal.Resources; -using Microsoft.Azure.Commands.TestFx; - -namespace Microsoft.Azure.Commands.SecurityInsights.Test.ScenarioTests -{ - /// - /// Setup for Scenario Tests - /// - public class TestController : RMTestBase - { - private readonly EnvironmentSetupHelper _helper; - - public ResourceManagementClient ResourceManagementClient { get; private set; } - - public SecurityInsightsClient SecurityInsightsClient { get; private set; } - - public StorageManagementClient StorageManagementClient { get; private set; } - - public static TestController NewInstance => new TestController(); - - protected TestController() - { - _helper = new EnvironmentSetupHelper(); - } - - protected void SetupManagementClients(MockContext context) - { - ResourceManagementClient = context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - SecurityInsightsClient = context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - StorageManagementClient = context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - - _helper.SetupManagementClients( - ResourceManagementClient, - StorageManagementClient, - SecurityInsightsClient); - } - - /// - /// Methods for invoking PowerShell scripts - /// - /// - /// - public void RunPowerShellTest(ServiceManagement.Common.Models.XunitTracingInterceptor logger, params string[] scripts) - { - var sf = new StackTrace().GetFrame(1); - var callingClassType = sf.GetMethod().ReflectedType?.ToString(); - var mockName = sf.GetMethod().Name; - - _helper.TracingInterceptor = logger; - RunPsTestWorkflow( - () => scripts, - // no custom cleanup - null, - callingClassType, - mockName); - } - - private void RunPsTestWorkflow( - Func scriptBuilder, - Action cleanup, - string callingClassType, - string mockName) - { - - var d = new Dictionary - { - {"Microsoft.Resources", null}, - {"Microsoft.Features", null}, - {"Microsoft.Authorization", null}, - {"Microsoft.Compute", null} - }; - var providersToIgnore = new Dictionary - { - {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} - }; - HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore); - - HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords"); - - using (var context = MockContext.Start(callingClassType, mockName)) - { - SetupManagementClients(context); - - _helper.SetupEnvironment(AzureModule.AzureResourceManager); - - var callingClassName = callingClassType.Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries).Last(); - _helper.SetupModules(AzureModule.AzureResourceManager, - "ScenarioTests\\Common.ps1", - "ScenarioTests\\" + callingClassName + ".ps1", - _helper.RMProfileModule, - _helper.GetRMModulePath("AzureRM.SecurityInsights.psd1"), - "AzureRM.Resources.ps1", - "AzureRM.Storage.ps1"); - try - { - var psScripts = scriptBuilder?.Invoke(); - if (psScripts != null) - { - _helper.RunPowerShellTest(psScripts); - } - } - finally - { - cleanup?.Invoke(); - } - } - } - } -} \ No newline at end of file diff --git a/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricApplicationTests.cs b/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricApplicationTests.cs index 30597c583537..a02d7a95331b 100644 --- a/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricApplicationTests.cs +++ b/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricApplicationTests.cs @@ -13,24 +13,17 @@ // ---------------------------------------------------------------------------------- using Microsoft.Azure.Commands.ServiceFabric.Commands; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; using Xunit.Abstractions; namespace Microsoft.Azure.Commands.ServiceFabric.Test.ScenarioTests { - public class ServiceFabricApplicationTests : RMTestBase + public class ServiceFabricApplicationTests : ServiceFabricTestRunner { - public XunitTracingInterceptor _logger; - - public ServiceFabricApplicationTests(ITestOutputHelper output) + public ServiceFabricApplicationTests(ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - - ServiceFabricManagedCmdletBase.WriteVerboseIntervalInSec = 0; + ServiceFabricCommonCmdletBase.WriteVerboseIntervalInSec = 0; ServiceFabricCmdletBase.RunningTest = true; } @@ -38,28 +31,28 @@ public ServiceFabricApplicationTests(ITestOutputHelper output) [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAppType() { - TestController.NewInstance.RunPsTest(_logger, "Test-AppType"); + TestRunner.RunTestScript("Test-AppType"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAppTypeVersion() { - TestController.NewInstance.RunPsTest(_logger, "Test-AppTypeVersion"); + TestRunner.RunTestScript("Test-AppTypeVersion"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestApp() { - TestController.NewInstance.RunPsTest(_logger, "Test-App"); + TestRunner.RunTestScript("Test-App"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestService() { - TestController.NewInstance.RunPsTest(_logger, "Test-Service"); + TestRunner.RunTestScript("Test-Service"); } } } diff --git a/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricManagedClustersApplicationTests.cs b/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricManagedClustersApplicationTests.cs index d932963b7ca0..ceecaacedc46 100644 --- a/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricManagedClustersApplicationTests.cs +++ b/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricManagedClustersApplicationTests.cs @@ -13,23 +13,16 @@ // ---------------------------------------------------------------------------------- using Microsoft.Azure.Commands.ServiceFabric.Commands; -using Microsoft.Azure.ServiceManagement.Common.Models; -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; +using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; using Xunit.Abstractions; namespace Microsoft.Azure.Commands.ServiceFabric.Test.ScenarioTests { - public class ServiceFabricManagedClustersApplicationTests : RMTestBase + public class ServiceFabricManagedClustersApplicationTests : ServiceFabricTestRunner { - public XunitTracingInterceptor _logger; - - public ServiceFabricManagedClustersApplicationTests(ITestOutputHelper output) + public ServiceFabricManagedClustersApplicationTests(ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - ServiceFabricCommonCmdletBase.WriteVerboseIntervalInSec = 0; ServiceFabricCmdletBase.RunningTest = true; } @@ -38,28 +31,28 @@ public ServiceFabricManagedClustersApplicationTests(ITestOutputHelper output) [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestManagedAppType() { - TestController.NewInstance.RunPsTest(_logger, "Test-ManagedAppType"); + TestRunner.RunTestScript("Test-ManagedAppType"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestManagedAppTypeVersion() { - TestController.NewInstance.RunPsTest(_logger, "Test-ManagedAppTypeVersion"); + TestRunner.RunTestScript("Test-ManagedAppTypeVersion"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestManagedApp() { - TestController.NewInstance.RunPsTest(_logger, "Test-ManagedApp"); + TestRunner.RunTestScript("Test-ManagedApp"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestManagedService() { - TestController.NewInstance.RunPsTest(_logger, "Test-ManagedService"); + TestRunner.RunTestScript("Test-ManagedService"); } } } diff --git a/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricManagedClustersTests.cs b/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricManagedClustersTests.cs index 5ca351f0b601..6f210c8f4754 100644 --- a/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricManagedClustersTests.cs +++ b/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricManagedClustersTests.cs @@ -13,23 +13,16 @@ // ---------------------------------------------------------------------------------- using Microsoft.Azure.Commands.ServiceFabric.Commands; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; using Xunit.Abstractions; namespace Microsoft.Azure.Commands.ServiceFabric.Test.ScenarioTests { - public class ServiceFabricManagedClustersTests : RMTestBase + public class ServiceFabricManagedClustersTests : ServiceFabricTestRunner { - public XunitTracingInterceptor _logger; - - public ServiceFabricManagedClustersTests(ITestOutputHelper output) + public ServiceFabricManagedClustersTests(ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - ServiceFabricCommonCmdletBase.WriteVerboseIntervalInSec = 0; ServiceFabricCmdletBase.RunningTest = true; } @@ -38,21 +31,21 @@ public ServiceFabricManagedClustersTests(ITestOutputHelper output) [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestCreateBasicCluster() { - TestController.NewInstance.RunPsTest(_logger, "Test-CreateBasicCluster"); + TestRunner.RunTestScript("Test-CreateBasicCluster"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestNodeTypeOperations() { - TestController.NewInstance.RunPsTest(_logger, "Test-NodeTypeOperations"); + TestRunner.RunTestScript("Test-NodeTypeOperations"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestCertAndExtension() { - TestController.NewInstance.RunPsTest(_logger, "Test-CertAndExtension"); + TestRunner.RunTestScript("Test-CertAndExtension"); } } } diff --git a/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricTestRunner.cs b/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricTestRunner.cs new file mode 100644 index 000000000000..17104687332f --- /dev/null +++ b/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/ServiceFabricTestRunner.cs @@ -0,0 +1,56 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Collections.Generic; +using Microsoft.Azure.Commands.TestFx; +using Xunit.Abstractions; + +namespace Microsoft.Azure.Commands.ServiceFabric.Test.ScenarioTests +{ + public class ServiceFabricTestRunner + { + protected readonly ITestRunner TestRunner; + + protected ServiceFabricTestRunner(ITestOutputHelper output) + { + TestRunner = TestManager.CreateInstance(output) + .WithNewPsScriptFilename($"{GetType().Name}.ps1") + .WithProjectSubfolderForTests("ScenarioTests") + .WithCommonPsScripts(new[] + { + @"Common.ps1", + @"../AzureRM.Resources.ps1" + }) + .WithNewRmModules(helper => new[] + { + helper.RMProfileModule, + helper.GetRMModulePath("Az.ServiceFabric.psd1") + }) + .WithNewRecordMatcherArguments( + userAgentsToIgnore: new Dictionary + { + {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} + }, + resourceProviders: new Dictionary + { + {"Microsoft.Resources", null}, + {"Microsoft.Features", null}, + {"Microsoft.Authorization", null}, + {"Microsoft.KeyVault", null} + } + ) + .Build(); + } + } +} \ No newline at end of file diff --git a/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestController.cs b/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestController.cs deleted file mode 100644 index 70d74e968d30..000000000000 --- a/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestController.cs +++ /dev/null @@ -1,193 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// 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.Common.Authentication; -using Microsoft.Azure.Test.HttpRecorder; -using Microsoft.Rest.ClientRuntime.Azure.TestFramework; -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using Microsoft.Azure.Commands.Common.Compute.Version_2018_04; -using Microsoft.Azure.Commands.Common.KeyVault.Version2016_10_1; -using Microsoft.Azure.Commands.ServiceFabric.Commands; -using Microsoft.Azure.Management.Internal.Network.Version2017_10_01; -using Microsoft.Azure.Management.Internal.Resources; -using Microsoft.Azure.Management.ServiceFabric; -using Microsoft.Azure.Management.ServiceFabricManagedClusters; -using Microsoft.Azure.Management.Storage.Version2017_10_01; -using Microsoft.Azure.ServiceManagement.Common.Models; - -namespace Microsoft.Azure.Commands.ServiceFabric.Test.ScenarioTests -{ - public class TestController - { - private readonly EnvironmentSetupHelper _helper; - - public ResourceManagementClient NewResourceManagementClient { get; private set; } - - public ServiceFabricManagementClient ServiceFabricClient { get; private set; } - - public ServiceFabricManagedClustersManagementClient ServiceFabricManagedClustersClient { get; private set; } - - public ComputeManagementClient ComputeManagementClient { get; private set; } - - public KeyVaultManagementClient KeyVaultManagementClient { get; private set; } - - public StorageManagementClient StorageManagementClient { get; private set; } - - public NetworkManagementClient NetworkManagementClient { get; private set; } - - public static TestController NewInstance => new TestController(); - - public TestController() - { - _helper = new EnvironmentSetupHelper(); - } - - public void RunPsTest(XunitTracingInterceptor logger, params string[] scripts) - { - var sf = new StackTrace().GetFrame(1); - var callingClassType = sf.GetMethod().ReflectedType?.ToString(); - var mockName = sf.GetMethod().Name; - - _helper.TracingInterceptor = logger; - - RunPsTestWorkflow( - () => scripts, - // no custom cleanup - null, - callingClassType, - mockName); - } - - public void RunPsTestWorkflow( - Func scriptBuilder, - Action cleanup, - string callingClassType, - string mockName) - { - var d = new Dictionary - { - {"Microsoft.Resources", null}, - {"Microsoft.Features", null}, - {"Microsoft.Authorization", null}, - {"Microsoft.KeyVault", null} - }; - var providersToIgnore = new Dictionary - { - {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} - }; - HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore); - HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords"); - - using (var context = MockContext.Start(callingClassType, mockName)) - { - SetupManagementClients(context); - - _helper.SetupEnvironment(AzureModule.AzureResourceManager); - - var callingClassName = callingClassType.Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries).Last(); - - _helper.SetupModules(AzureModule.AzureResourceManager, - _helper.RMProfileModule, - "ScenarioTests\\Common.ps1", - "ScenarioTests\\" + callingClassName + ".ps1", - "AzureRM.Resources.ps1", - _helper.GetRMModulePath("AzureRM.ServiceFabric.psd1")); - - try - { - var psScripts = scriptBuilder?.Invoke(); - if (psScripts != null) - { - _helper.RunPowerShellTest(psScripts); - } - } - finally - { - ServiceFabricCmdletBase.TestAppCert = false; - cleanup?.Invoke(); - } - } - } - - private void SetupManagementClients(MockContext context) - { - ServiceFabricClient = GetServiceFabricManagementClient(context); - if (HttpMockServer.Mode == HttpRecorderMode.Record) - { - ServiceFabricClient.LongRunningOperationRetryTimeout = 20; - } - - ServiceFabricManagedClustersClient = GetServiceFabricManagedClustersManagementClient(context); - if (HttpMockServer.Mode == HttpRecorderMode.Record) - { - ServiceFabricManagedClustersClient.LongRunningOperationRetryTimeout = 20; - } - - ComputeManagementClient = GetComputeManagementClient(context); - KeyVaultManagementClient = GetKeyVaultManagementClient(context); - StorageManagementClient = GetStorageManagementClient(context); - NetworkManagementClient = GetNetworkManagementClient(context); - NewResourceManagementClient = GetNewResourceManagementClient(context); - - _helper.SetupManagementClients( - ServiceFabricClient, - ServiceFabricManagedClustersClient, - ComputeManagementClient, - KeyVaultManagementClient, - StorageManagementClient, - NetworkManagementClient, - NewResourceManagementClient); - } - - private static ServiceFabricManagementClient GetServiceFabricManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static ServiceFabricManagedClustersManagementClient GetServiceFabricManagedClustersManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static ComputeManagementClient GetComputeManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static KeyVaultManagementClient GetKeyVaultManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static StorageManagementClient GetStorageManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static NetworkManagementClient GetNetworkManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static ResourceManagementClient GetNewResourceManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - } -} \ No newline at end of file diff --git a/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs b/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs index 2f38c388de67..5f12bcc27130 100644 --- a/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs +++ b/src/ServiceFabric/ServiceFabric.Test/ScenarioTests/TestServiceFabric.cs @@ -16,25 +16,17 @@ using System.IO; using Microsoft.Azure.Commands.ServiceFabric.Commands; using Microsoft.Azure.Commands.ServiceFabric.Common; -using Microsoft.Azure.ServiceManagement.Common.Models; -using Microsoft.WindowsAzure.Commands.Common; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; using Xunit.Abstractions; namespace Microsoft.Azure.Commands.ServiceFabric.Test.ScenarioTests { [TestCaseOrderer("Microsoft.Azure.Commands.ServiceFabric.Test.ScenarioTests.PriorityOrderer", "Microsoft.Azure.Commands.ServiceFabric.Test")] - public class TestServiceFabric : RMTestBase + public class TestServiceFabric : ServiceFabricTestRunner { - public XunitTracingInterceptor _logger; - - public TestServiceFabric(ITestOutputHelper output) + public TestServiceFabric(ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - AddAzureRmServiceFabricNodeType.dontRandom = true; ServiceFabricCommonCmdletBase.WriteVerboseIntervalInSec = 0; ServiceFabricCmdletBase.RunningTest = true; @@ -51,84 +43,84 @@ public TestServiceFabric(ITestOutputHelper output) [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestUpdateAzureRmServiceFabricDurability() { - TestController.NewInstance.RunPsTest(_logger, "Test-UpdateAzureRmServiceFabricDurability"); + TestRunner.RunTestScript("Test-UpdateAzureRmServiceFabricDurability"); } [Fact, TestPriority(0)] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestUpdateAzureRmServiceFabricReliability() { - TestController.NewInstance.RunPsTest(_logger, "Test-UpdateAzureRmServiceFabricReliability"); + TestRunner.RunTestScript("Test-UpdateAzureRmServiceFabricReliability"); } [Fact, TestPriority(0)] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestSetAzureRmServiceFabricUpgradeType() { - TestController.NewInstance.RunPsTest(_logger, "Test-SetAzureRmServiceFabricUpgradeType"); + TestRunner.RunTestScript("Test-SetAzureRmServiceFabricUpgradeType"); } [Fact, TestPriority(0)] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestSetAzureRmServiceFabricSettings() { - TestController.NewInstance.RunPsTest(_logger, "Test-SetAzureRmServiceFabricSettings"); + TestRunner.RunTestScript("Test-SetAzureRmServiceFabricSettings"); } [Fact, TestPriority(1)] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRemoveAzureRmServiceFabricSettings() { - TestController.NewInstance.RunPsTest(_logger, "Test-RemoveAzureRmServiceFabricSettings"); + TestRunner.RunTestScript("Test-RemoveAzureRmServiceFabricSettings"); } [Fact, TestPriority(0)] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAzureRmServiceFabricClientCertificate() { - TestController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmServiceFabricClientCertificate"); + TestRunner.RunTestScript("Test-AddAzureRmServiceFabricClientCertificate"); } [Fact, TestPriority(1)] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRemoveAzureRmServiceFabricClientCertificate() { - TestController.NewInstance.RunPsTest(_logger, "Test-RemoveAzureRmServiceFabricClientCertificate"); + TestRunner.RunTestScript("Test-RemoveAzureRmServiceFabricClientCertificate"); } [Fact, TestPriority(0)] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestNewAzureRmServiceFabricCluster() { - TestController.NewInstance.RunPsTest(_logger, "Test-NewAzureRmServiceFabricCluster"); + TestRunner.RunTestScript("Test-NewAzureRmServiceFabricCluster"); } [Fact, TestPriority(0)] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestNewAzureRmServiceFabricClusterCNCert() { - TestController.NewInstance.RunPsTest(_logger, "Test-NewAzureRmServiceFabricClusterCNCert"); + TestRunner.RunTestScript("Test-NewAzureRmServiceFabricClusterCNCert"); } [Fact, TestPriority(4)] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAzureRmServiceFabricNode() { - TestController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmServiceFabricNode"); + TestRunner.RunTestScript("Test-AddAzureRmServiceFabricNode"); } [Fact, TestPriority(5)] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRemoveAzureRmServiceFabricNode() { - TestController.NewInstance.RunPsTest(_logger, "Test-RemoveAzureRmServiceFabricNode"); + TestRunner.RunTestScript("Test-RemoveAzureRmServiceFabricNode"); } [Fact, TestPriority(2)] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAzureRmServiceFabricNodeType() { - TestController.NewInstance.RunPsTest(_logger, "Test-AddAzureRmServiceFabricNodeType"); + TestRunner.RunTestScript("Test-AddAzureRmServiceFabricNodeType"); } [Fact, TestPriority(6)] @@ -136,14 +128,14 @@ public void TestAddAzureRmServiceFabricNodeType() [Trait("Re-record", "ClientRuntime changes")] public void TestRemoveAzureRmServiceFabricNodeType() { - TestController.NewInstance.RunPsTest(_logger, "Test-RemoveAzureRmServiceFabricNodeType"); + TestRunner.RunTestScript("Test-RemoveAzureRmServiceFabricNodeType"); } [Fact, TestPriority(0)] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestUpdateAzureRmServiceFabricVmImage() { - TestController.NewInstance.RunPsTest(_logger, "Test-UpdateAzureRmServiceFabricVmImage"); + TestRunner.RunTestScript("Test-UpdateAzureRmServiceFabricVmImage"); } [Fact, TestPriority(0)] diff --git a/src/SignalR/SignalR.Test/ScenarioTests/AzureRmSignalRTests.cs b/src/SignalR/SignalR.Test/ScenarioTests/AzureRmSignalRTests.cs index 4ecdd07ad655..c53de65aaab0 100644 --- a/src/SignalR/SignalR.Test/ScenarioTests/AzureRmSignalRTests.cs +++ b/src/SignalR/SignalR.Test/ScenarioTests/AzureRmSignalRTests.cs @@ -12,48 +12,41 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; using Xunit; namespace Microsoft.Azure.Commands.SignalR.Test.ScenarioTests { - public class AzureRmSignalRTests : RMTestBase + public class AzureRmSignalRTests : SignalRTestRunner { - private readonly ServiceManagement.Common.Models.XunitTracingInterceptor _logger; - - public AzureRmSignalRTests(Xunit.Abstractions.ITestOutputHelper output) + public AzureRmSignalRTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new ServiceManagement.Common.Models.XunitTracingInterceptor(output); - ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAzureRmSignalR() => - TestController.NewInstance.RunPowerShellTest(_logger, "Test-AzureRmSignalR"); + TestRunner.RunTestScript("Test-AzureRmSignalR"); [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAzureRmSignalRWithDefaultArgs() => - TestController.NewInstance.RunPowerShellTest(_logger, "Test-AzureRmSignalRWithDefaultArgs"); + TestRunner.RunTestScript("Test-AzureRmSignalRWithDefaultArgs"); [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAzureRmSignalRUpdateNetworkAcl() => - TestController.NewInstance.RunPowerShellTest(_logger, "Test-AzureRmSignalRUpdateNetworkAcl"); + TestRunner.RunTestScript("Test-AzureRmSignalRUpdateNetworkAcl"); [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAzureRmSignalRSetUpstream() => - TestController.NewInstance.RunPowerShellTest(_logger, "Test-AzureRmSignalRSetUpstream"); + TestRunner.RunTestScript("Test-AzureRmSignalRSetUpstream"); [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAzureRmSignalRUpdate() => - TestController.NewInstance.RunPowerShellTest(_logger, "Test-AzureRmSignalRUpdate"); + TestRunner.RunTestScript("Test-AzureRmSignalRUpdate"); } } diff --git a/src/SignalR/SignalR.Test/ScenarioTests/SignalRTestRunner.cs b/src/SignalR/SignalR.Test/ScenarioTests/SignalRTestRunner.cs new file mode 100644 index 000000000000..41cd1cfbdfa9 --- /dev/null +++ b/src/SignalR/SignalR.Test/ScenarioTests/SignalRTestRunner.cs @@ -0,0 +1,59 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Collections.Generic; +using Microsoft.Azure.Commands.TestFx; +using Xunit.Abstractions; + +namespace Microsoft.Azure.Commands.SignalR.Test +{ + public class SignalRTestRunner + { + protected readonly ITestRunner TestRunner; + + protected SignalRTestRunner(ITestOutputHelper output) + { + TestRunner = TestManager.CreateInstance(output) + .WithNewPsScriptFilename($"{GetType().Name}.ps1") + .WithProjectSubfolderForTests("ScenarioTests") + .WithCommonPsScripts(new[] + { + @"Common.ps1", + @"../AzureRM.Resources.ps1", + }) + .WithNewRmModules(helper => new[] + { + helper.RMProfileModule, + helper.RMNetworkModule, + helper.GetRMModulePath("Az.SignalR.psd1"), + helper.GetRMModulePath("Az.PrivateDns.psd1") + }) + .WithNewRecordMatcherArguments( + userAgentsToIgnore: new Dictionary + { + {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} + }, + resourceProviders: new Dictionary + { + {"Microsoft.Resources", null}, + {"Microsoft.Features", null}, + {"Microsoft.Authorization", null}, + {"Microsoft.PrivateDns", null}, + {"Microsoft.Network", null} + } + ) + .Build(); + } + } +} diff --git a/src/SignalR/SignalR.Test/TestController.cs b/src/SignalR/SignalR.Test/TestController.cs deleted file mode 100644 index 460cc125186d..000000000000 --- a/src/SignalR/SignalR.Test/TestController.cs +++ /dev/null @@ -1,135 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// 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.Common.Authentication; -using Microsoft.Azure.Test.HttpRecorder; -using Microsoft.Rest.ClientRuntime.Azure.TestFramework; -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using Microsoft.Azure.Management.SignalR; -using Microsoft.Azure.Management.Internal.Resources; -using Microsoft.Azure.Management.Network; -using Microsoft.Azure.Management.PrivateDns; - -namespace Microsoft.Azure.Commands.SignalR.Test -{ - internal class TestController : RMTestBase - { - public static TestController NewInstance => new TestController(); - - private readonly EnvironmentSetupHelper _helper = new EnvironmentSetupHelper(); - - public ResourceManagementClient InternalResourceManagementClient { get; private set; } - - public SignalRManagementClient SignalRManagementClient { get; private set; } - - public NetworkManagementClient NetworkManagementClient { get; private set; } - - public PrivateDnsManagementClient PrivateDnsManagementClient { get; private set; } - - public void RunPowerShellTest(ServiceManagement.Common.Models.XunitTracingInterceptor logger, params string[] scripts) - { - var sf = new StackTrace().GetFrame(1); - var callingClassType = sf.GetMethod().ReflectedType?.ToString(); - var mockName = sf.GetMethod().Name; - - _helper.TracingInterceptor = logger; - RunPsTestWorkflow( - () => scripts, - // no custom cleanup - null, - callingClassType, - mockName); - } - - public void RunPsTestWorkflow( - Func scriptBuilder, - Action cleanup, - string callingClassType, - string mockName) - { - - var providers = new Dictionary - { - {"Microsoft.Resources", null}, - {"Microsoft.Features", null}, - {"Microsoft.Authorization", null}, - {"Microsoft.PrivateDns", null}, - {"Microsoft.Network", null} - }; - var providersToIgnore = new Dictionary - { - {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} - }; - HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, providers, providersToIgnore); - - HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords"); - - using (var context = MockContext.Start(callingClassType, mockName)) - { - SetupManagementClients(context); - _helper.SetupEnvironment(AzureModule.AzureResourceManager); - var callingClassName = callingClassType.Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries).Last(); - _helper.SetupModules( - AzureModule.AzureResourceManager, - _helper.RMProfileModule, - _helper.RMNetworkModule, - _helper.GetRMModulePath("AzureRM.SignalR.psd1"), - _helper.GetRMModulePath("AzureRM.PrivateDns.psd1"), - "ScenarioTests\\" + callingClassName + ".ps1", - "AzureRM.Resources.ps1", - "ScenarioTests\\Common.ps1"); ; - try - { - var psScripts = scriptBuilder?.Invoke(); - if (psScripts != null) - { - _helper.RunPowerShellTest(psScripts); - } - } - finally - { - cleanup?.Invoke(); - } - } - } - - protected void SetupManagementClients(MockContext context) - { - InternalResourceManagementClient = GetResourceManagementClientInternal(context); - SignalRManagementClient = GetSignalRManagementClient(context); - NetworkManagementClient = GetNetworkManagementClient(context); - PrivateDnsManagementClient = GetPrivateDnsManagementClient(context); - _helper.SetupManagementClients(InternalResourceManagementClient, SignalRManagementClient, - NetworkManagementClient,PrivateDnsManagementClient); - } - - private static ResourceManagementClient GetResourceManagementClientInternal(MockContext context) - => context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - - private static SignalRManagementClient GetSignalRManagementClient(MockContext context) - => context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - - private static NetworkManagementClient GetNetworkManagementClient(MockContext context) - => context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - - private static PrivateDnsManagementClient GetPrivateDnsManagementClient(MockContext context) - => context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } -} diff --git a/src/Support/Support.Test/ScenarioTests/CommunicationTests.cs b/src/Support/Support.Test/ScenarioTests/CommunicationTests.cs index 568b7ea8969b..316caf5b38a1 100644 --- a/src/Support/Support.Test/ScenarioTests/CommunicationTests.cs +++ b/src/Support/Support.Test/ScenarioTests/CommunicationTests.cs @@ -12,64 +12,57 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Support.Test.ScenarioTests { - public class CommunicationTests + public class CommunicationTests : SupportTestRunner { - private XunitTracingInterceptor _logger; - - public CommunicationTests(Xunit.Abstractions.ITestOutputHelper output) + public CommunicationTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void NewAzSupportTicketCommunicationNameParameterSet() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSupportTicketCommunicationNameParameterSet"); + TestRunner.RunTestScript("New-AzSupportTicketCommunicationNameParameterSet"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void NewAzSupportTicketCommunicationParentObjectParameterSet() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSupportTicketCommunicationParentObjectParameterSet"); + TestRunner.RunTestScript("New-AzSupportTicketCommunicationParentObjectParameterSet"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportTicketCommunicationByNameParameterSet() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportTicketCommunicationByNameParameterSet"); + TestRunner.RunTestScript("Get-AzSupportTicketCommunicationByNameParameterSet"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportTicketCommunicationFilterByCommunicationType() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportTicketCommunicationFilterByCommunicationType"); + TestRunner.RunTestScript("Get-AzSupportTicketCommunicationFilterByCommunicationType"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportTicketCommunicationPagingParameters() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportTicketCommunicationPagingParameters"); + TestRunner.RunTestScript("Get-AzSupportTicketCommunicationPagingParameters"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportTicketCommunicationByParentObjectParameterSet() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportTicketCommunicationByParentObjectParameterSet"); + TestRunner.RunTestScript("Get-AzSupportTicketCommunicationByParentObjectParameterSet"); } } } diff --git a/src/Support/Support.Test/ScenarioTests/ProblemClassificationTests.cs b/src/Support/Support.Test/ScenarioTests/ProblemClassificationTests.cs index 05f96ca80bdd..dc51a55a155b 100644 --- a/src/Support/Support.Test/ScenarioTests/ProblemClassificationTests.cs +++ b/src/Support/Support.Test/ScenarioTests/ProblemClassificationTests.cs @@ -12,64 +12,57 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Support.Test.ScenarioTests { - public class ProblemClassificationTests + public class ProblemClassificationTests : SupportTestRunner { - private XunitTracingInterceptor _logger; - - public ProblemClassificationTests(Xunit.Abstractions.ITestOutputHelper output) + public ProblemClassificationTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportProblemClassificationServiceName() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportProblemClassificationServiceName"); + TestRunner.RunTestScript("Get-AzSupportProblemClassificationServiceName"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportProblemClassificationAllParametersNameAlias() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportProblemClassificationAllParametersNameAlias"); + TestRunner.RunTestScript("Get-AzSupportProblemClassificationAllParametersNameAlias"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportProblemClassificationAllParametersId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportProblemClassificationAllParametersId"); + TestRunner.RunTestScript("Get-AzSupportProblemClassificationAllParametersId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportProblemClassificationAllParametersResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportProblemClassificationAllParametersResourceId"); + TestRunner.RunTestScript("Get-AzSupportProblemClassificationAllParametersResourceId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportProblemClassificationParentObjectServiceName() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportProblemClassificationParentObjectServiceName"); + TestRunner.RunTestScript("Get-AzSupportProblemClassificationParentObjectServiceName"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportProblemClassificationParentObjectAllParameters() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportProblemClassificationParentObjectAllParameters"); + TestRunner.RunTestScript("Get-AzSupportProblemClassificationParentObjectAllParameters"); } } } \ No newline at end of file diff --git a/src/Support/Support.Test/ScenarioTests/ServiceTests.cs b/src/Support/Support.Test/ScenarioTests/ServiceTests.cs index 71d287c76175..b8f8039dd189 100644 --- a/src/Support/Support.Test/ScenarioTests/ServiceTests.cs +++ b/src/Support/Support.Test/ScenarioTests/ServiceTests.cs @@ -12,50 +12,43 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Support.Test.ScenarioTests { - public class ServiceTests + public class ServiceTests : SupportTestRunner { - private ServiceManagement.Common.Models.XunitTracingInterceptor _logger; - - public ServiceTests(Xunit.Abstractions.ITestOutputHelper output) + public ServiceTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportServiceNoParameter() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportServiceNoParameter"); + TestRunner.RunTestScript("Get-AzSupportServiceNoParameter"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportServiceByNameParameterSetUsingNameAlias() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportServiceByNameParameterSetUsingNameAlias"); + TestRunner.RunTestScript("Get-AzSupportServiceByNameParameterSetUsingNameAlias"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportServiceByNameParameterSetUsingId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportServiceByNameParameterSetUsingId"); + TestRunner.RunTestScript("Get-AzSupportServiceByNameParameterSetUsingId"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportServiceByNameParameterSetUsingCompleteResourceId() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportServiceByNameParameterSetUsingCompleteResourceId"); + TestRunner.RunTestScript("Get-AzSupportServiceByNameParameterSetUsingCompleteResourceId"); } } } \ No newline at end of file diff --git a/src/Support/Support.Test/ScenarioTests/SupportTestRunner.cs b/src/Support/Support.Test/ScenarioTests/SupportTestRunner.cs new file mode 100644 index 000000000000..39f83f3e11ab --- /dev/null +++ b/src/Support/Support.Test/ScenarioTests/SupportTestRunner.cs @@ -0,0 +1,55 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Collections.Generic; +using Microsoft.Azure.Commands.TestFx; +using Xunit.Abstractions; + +namespace Microsoft.Azure.Commands.Support.Test.ScenarioTests +{ + public class SupportTestRunner + { + protected readonly ITestRunner TestRunner; + + protected SupportTestRunner(ITestOutputHelper output) + { + TestRunner = TestManager.CreateInstance(output) + .WithNewPsScriptFilename($"{GetType().Name}.ps1") + .WithProjectSubfolderForTests("ScenarioTests") + .WithCommonPsScripts(new[] + { + @"Common.ps1", + @"../AzureRM.Resources.ps1" + }) + .WithNewRmModules(helper => new[] + { + helper.RMProfileModule, + helper.GetRMModulePath("Az.Support.psd1") + }) + .WithNewRecordMatcherArguments( + userAgentsToIgnore: new Dictionary + { + {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} + }, + resourceProviders: new Dictionary + { + {"Microsoft.Resources", null}, + {"Microsoft.Features", null}, + {"Microsoft.Authorization", null} + } + ) + .Build(); + } + } +} diff --git a/src/Support/Support.Test/ScenarioTests/SupportTicketTests.cs b/src/Support/Support.Test/ScenarioTests/SupportTicketTests.cs index 933bdd5b11b8..e60e7304bf91 100644 --- a/src/Support/Support.Test/ScenarioTests/SupportTicketTests.cs +++ b/src/Support/Support.Test/ScenarioTests/SupportTicketTests.cs @@ -12,141 +12,134 @@ // limitations under the License. // ---------------------------------------------------------------------------------- -using Microsoft.Azure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; using Microsoft.WindowsAzure.Commands.ScenarioTest; using Xunit; namespace Microsoft.Azure.Commands.Support.Test.ScenarioTests { - public class SupportTicketTests + public class SupportTicketTests : SupportTestRunner { - private ServiceManagement.Common.Models.XunitTracingInterceptor _logger; - - public SupportTicketTests(Xunit.Abstractions.ITestOutputHelper output) + public SupportTicketTests(Xunit.Abstractions.ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); - TestExecutionHelpers.SetUpSessionAndProfile(); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportTicketByNameParameterSet() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportTicketByNameParameterSet"); + TestRunner.RunTestScript("Get-AzSupportTicketByNameParameterSet"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportTicketFilterByStatus() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportTicketFilterByStatus"); + TestRunner.RunTestScript("Get-AzSupportTicketFilterByStatus"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void GetAzSupportTicketPagingParameters() { - TestController.NewInstance.RunPowerShellTest(_logger, "Get-AzSupportTicketPagingParameters"); + TestRunner.RunTestScript("Get-AzSupportTicketPagingParameters"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void NewAzSupportTicketWithContactObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSupportTicketWithContactObject"); + TestRunner.RunTestScript("New-AzSupportTicketWithContactObject"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void NewAzSupportTicketQuotaWithContactObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSupportTicketQuotaWithContactObject"); + TestRunner.RunTestScript("New-AzSupportTicketQuotaWithContactObject"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void NewAzSupportTicketTechnicalWithContactObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSupportTicketTechnicalWithContactObject"); + TestRunner.RunTestScript("New-AzSupportTicketTechnicalWithContactObject"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void NewAzSupportTicketWithContactDetail() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSupportTicketWithContactDetail"); + TestRunner.RunTestScript("New-AzSupportTicketWithContactDetail"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void NewAzSupportTicketQuotaWithContactDetail() { - TestController.NewInstance.RunPowerShellTest(_logger, "New-AzSupportTicketQuotaWithContactDetail"); + TestRunner.RunTestScript("New-AzSupportTicketQuotaWithContactDetail"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void NewAzSupportTicketTechnicalWithContactDetail() { - TestController.NewInstance.RunPowerShellTest(_logger, string.Format("New-AzSupportTicketTechnicalWithContactDetail")); + TestRunner.RunTestScript(string.Format("New-AzSupportTicketTechnicalWithContactDetail")); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void UpdateAzSupportTicketParentObjectParameterSetWithContactObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSupportTicketParentObjectParameterSetWithContactObject"); + TestRunner.RunTestScript("Update-AzSupportTicketParentObjectParameterSetWithContactObject"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void UpdateAzSupportTicketNameParameterSetWithContactObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSupportTicketNameParameterSetWithContactObject"); + TestRunner.RunTestScript("Update-AzSupportTicketNameParameterSetWithContactObject"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void UpdateAzSupportTicketParentObjectParameterSetWithContactDetail() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSupportTicketParentObjectParameterSetWithContactDetail"); + TestRunner.RunTestScript("Update-AzSupportTicketParentObjectParameterSetWithContactDetail"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void UpdateAzSupportTicketNameParameterSetWithContactDetail() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSupportTicketNameParameterSetWithContactDetail"); + TestRunner.RunTestScript("Update-AzSupportTicketNameParameterSetWithContactDetail"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void UpdateAzSupportTicketParentObjectParameterSetUpdateSeverity() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSupportTicketParentObjectParameterSetUpdateSeverity"); + TestRunner.RunTestScript("Update-AzSupportTicketParentObjectParameterSetUpdateSeverity"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void UpdateAzSupportTicketNameParameterSetUpdateSeverity() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSupportTicketNameParameterSetUpdateSeverity"); + TestRunner.RunTestScript("Update-AzSupportTicketNameParameterSetUpdateSeverity"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void UpdateAzSupportTicketParentObjectParameterSetUpdateStatus() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSupportTicketParentObjectParameterSetUpdateStatus"); + TestRunner.RunTestScript("Update-AzSupportTicketParentObjectParameterSetUpdateStatus"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void UpdateAzSupportTicketNameParameterSetUpdateStatus() { - TestController.NewInstance.RunPowerShellTest(_logger, "Update-AzSupportTicketNameParameterSetUpdateStatus"); + TestRunner.RunTestScript("Update-AzSupportTicketNameParameterSetUpdateStatus"); } } } \ No newline at end of file diff --git a/src/Support/Support.Test/ScenarioTests/TestController.cs b/src/Support/Support.Test/ScenarioTests/TestController.cs deleted file mode 100644 index 304a5e34f471..000000000000 --- a/src/Support/Support.Test/ScenarioTests/TestController.cs +++ /dev/null @@ -1,112 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// 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.Common.Authentication; -using Microsoft.Azure.Internal.Subscriptions; -using Microsoft.Azure.Management.Internal.Resources; -using Microsoft.Azure.Management.Support; -using Microsoft.Azure.ServiceManagement.Common.Models; -using Microsoft.Azure.Test.HttpRecorder; -using Microsoft.Rest.ClientRuntime.Azure.TestFramework; -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using TestEnvironmentFactory = Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestEnvironmentFactory; - -namespace Microsoft.Azure.Commands.Support.Test.ScenarioTests -{ - public class TestController : RMTestBase - { - private readonly EnvironmentSetupHelper _helper; - - public IMicrosoftSupportClient SupportClient { get; private set; } - - public SubscriptionClient SubscriptionClient { get; private set; } - - public ResourceManagementClient ResourceManagementClient { get; private set; } - - public static TestController NewInstance => new TestController(); - - protected TestController() - { - _helper = new EnvironmentSetupHelper(); - } - - public void RunPowerShellTest(XunitTracingInterceptor logger, params string[] scripts) - { - var sf = new StackTrace().GetFrame(1); - var callingClassType = sf.GetMethod().ReflectedType?.ToString(); - var mockName = sf.GetMethod().Name; - - _helper.TracingInterceptor = logger; - var providers = new Dictionary - { - { "Microsoft.Resources", null }, - { "Microsoft.Features", null }, - { "Microsoft.Authorization", null } - }; - var providersToIgnore = new Dictionary - { - {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} - }; - HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, providers, providersToIgnore); - HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords"); - - using (var context = MockContext.Start(callingClassType, mockName)) - { - SetupManagementClients(context); - - _helper.SetupEnvironment(AzureModule.AzureResourceManager); - - var callingClassName = callingClassType?.Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries).Last(); - _helper.SetupModules( - AzureModule.AzureResourceManager, - _helper.RMProfileModule, - _helper.GetRMModulePath(@"Az.Support.psd1"), - "ScenarioTests\\Common.ps1", - "ScenarioTests\\" + callingClassName + ".ps1", - "AzureRM.Resources.ps1"); - - _helper.RunPowerShellTest(scripts); - } - } - - protected void SetupManagementClients(MockContext context) - { - SupportClient = GetResourceGraphClient(context); - SubscriptionClient = GetSubscriptionClient(context); - ResourceManagementClient = GetResourceManagementClient(context); - _helper.SetupManagementClients(SupportClient, SubscriptionClient, ResourceManagementClient); - } - - private static IMicrosoftSupportClient GetResourceGraphClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static SubscriptionClient GetSubscriptionClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - - private static ResourceManagementClient GetResourceManagementClient(MockContext context) - { - return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); - } - } -} diff --git a/src/TrafficManager/TrafficManager.Test/ScenarioTests/EndpointTests.cs b/src/TrafficManager/TrafficManager.Test/ScenarioTests/EndpointTests.cs index 522fbcbee394..19b7aa8413f6 100644 --- a/src/TrafficManager/TrafficManager.Test/ScenarioTests/EndpointTests.cs +++ b/src/TrafficManager/TrafficManager.Test/ScenarioTests/EndpointTests.cs @@ -15,164 +15,159 @@ namespace Microsoft.Azure.Commands.TrafficManager.Test.ScenarioTests { using Microsoft.WindowsAzure.Commands.ScenarioTest; - using ServiceManagement.Common.Models; using Xunit; using Xunit.Abstractions; - public class EndpointTests + public class EndpointTests : TrafficManagerTestRunner { - public XunitTracingInterceptor _logger; - - public EndpointTests(ITestOutputHelper output) + public EndpointTests(ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddEndpoint() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-AddEndpoint"); + TestRunner.RunTestScript("Test-AddEndpoint"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestDeleteEndpoint() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-DeleteEndpoint"); + TestRunner.RunTestScript("Test-DeleteEndpoint"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestEndpointCrud() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-EndpointCrud"); + TestRunner.RunTestScript("Test-EndpointCrud"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestEndpointCrudGeo() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-EndpointCrudGeo"); + TestRunner.RunTestScript("Test-EndpointCrudGeo"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestEndpointCrudPiping() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-EndpointCrudPiping"); + TestRunner.RunTestScript("Test-EndpointCrudPiping"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestCreateExistingEndpoint() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-CreateExistingEndpoint"); + TestRunner.RunTestScript("Test-CreateExistingEndpoint"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestCreateExistingEndpointFromNonExistingProfile() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-CreateExistingEndpointFromNonExistingProfile"); + TestRunner.RunTestScript("Test-CreateExistingEndpointFromNonExistingProfile"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRemoveExistingEndpointFromNonExistingProfile() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-RemoveExistingEndpointFromNonExistingProfile"); + TestRunner.RunTestScript("Test-RemoveExistingEndpointFromNonExistingProfile"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestGetExistingEndpointFromNonExistingProfile() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-GetExistingEndpointFromNonExistingProfile"); + TestRunner.RunTestScript("Test-GetExistingEndpointFromNonExistingProfile"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestRemoveNonExistingEndpointFromProfile() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-RemoveNonExistingEndpointFromProfile"); + TestRunner.RunTestScript("Test-RemoveNonExistingEndpointFromProfile"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestEnableEndpoint() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-EnableEndpoint"); + TestRunner.RunTestScript("Test-EnableEndpoint"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestDisableEndpoint() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-DisableEndpoint"); + TestRunner.RunTestScript("Test-DisableEndpoint"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestEnableEndpointUsingPiping() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-EnableEndpointUsingPiping"); + TestRunner.RunTestScript("Test-EnableEndpointUsingPiping"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestEnableEndpointUsingPipingFromGetProfile() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-EnableEndpointUsingPipingFromGetProfile"); + TestRunner.RunTestScript("Test-EnableEndpointUsingPipingFromGetProfile"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestDisableEndpointUsingPiping() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-DisableEndpointUsingPiping"); + TestRunner.RunTestScript("Test-DisableEndpointUsingPiping"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestEnableNonExistingEndpoint() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-EnableNonExistingEndpoint"); + TestRunner.RunTestScript("Test-EnableNonExistingEndpoint"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestDisableNonExistingEndpoint() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-DisableNonExistingEndpoint"); + TestRunner.RunTestScript("Test-DisableNonExistingEndpoint"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestEndpointTypeCaseInsensitive() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-EndpointTypeCaseInsensitive"); + TestRunner.RunTestScript("Test-EndpointTypeCaseInsensitive"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestPipeEndpointFromGetEndpoint() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-PipeEndpointFromGetEndpoint"); + TestRunner.RunTestScript("Test-PipeEndpointFromGetEndpoint"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestPipeEndpointFromGetProfile() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-PipeEndpointFromGetProfile"); + TestRunner.RunTestScript("Test-PipeEndpointFromGetProfile"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAndRemoveCustomHeadersFromEndpoint() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-AddAndRemoveCustomHeadersFromEndpoint"); + TestRunner.RunTestScript("Test-AddAndRemoveCustomHeadersFromEndpoint"); } // This scenario is not supported with current API specs. Commenting this test. diff --git a/src/TrafficManager/TrafficManager.Test/ScenarioTests/NestedEndpointsTests.cs b/src/TrafficManager/TrafficManager.Test/ScenarioTests/NestedEndpointsTests.cs index 41ffd9797dbf..40a0a4fe3b92 100644 --- a/src/TrafficManager/TrafficManager.Test/ScenarioTests/NestedEndpointsTests.cs +++ b/src/TrafficManager/TrafficManager.Test/ScenarioTests/NestedEndpointsTests.cs @@ -15,31 +15,26 @@ namespace Microsoft.Azure.Commands.TrafficManager.Test.ScenarioTests { using Microsoft.WindowsAzure.Commands.ScenarioTest; - using ServiceManagement.Common.Models; using Xunit; using Xunit.Abstractions; - public class NestedEndpointsTests + public class NestedEndpointsTests : TrafficManagerTestRunner { - public XunitTracingInterceptor _logger; - - public NestedEndpointsTests(ITestOutputHelper output) + public NestedEndpointsTests(ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestNestedEndpointsCreateUpdate() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-NestedEndpointsCreateUpdate"); + TestRunner.RunTestScript("Test-NestedEndpointsCreateUpdate"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestProfileWithNestedEndpointsGetPut() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ProfileWithNestedEndpointsGetPut"); + TestRunner.RunTestScript("Test-ProfileWithNestedEndpointsGetPut"); } } } diff --git a/src/TrafficManager/TrafficManager.Test/ScenarioTests/ProfileTests.cs b/src/TrafficManager/TrafficManager.Test/ScenarioTests/ProfileTests.cs index 12bde5095091..5d220be984e1 100644 --- a/src/TrafficManager/TrafficManager.Test/ScenarioTests/ProfileTests.cs +++ b/src/TrafficManager/TrafficManager.Test/ScenarioTests/ProfileTests.cs @@ -15,171 +15,166 @@ namespace Microsoft.Azure.Commands.TrafficManager.Test.ScenarioTests { using Microsoft.WindowsAzure.Commands.ScenarioTest; - using ServiceManagement.Common.Models; using Xunit; using Xunit.Abstractions; - public class ProfileTests + public class ProfileTests : TrafficManagerTestRunner { - public XunitTracingInterceptor _logger; - - public ProfileTests(ITestOutputHelper output) + public ProfileTests(ITestOutputHelper output) : base(output) { - _logger = new XunitTracingInterceptor(output); - XunitTracingInterceptor.AddToContext(_logger); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestProfileCrud() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ProfileCrud"); + TestRunner.RunTestScript("Test-ProfileCrud"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestProfileCrudWithPiping() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ProfileCrudWithPiping"); + TestRunner.RunTestScript("Test-ProfileCrudWithPiping"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestCreateDeleteUsingProfile() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-CreateDeleteUsingProfile"); + TestRunner.RunTestScript("Test-CreateDeleteUsingProfile"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestCrudWithEndpoint() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-CrudWithEndpoint"); + TestRunner.RunTestScript("Test-CrudWithEndpoint"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestCrudWithEndpointGeo() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-CrudWithEndpointGeo"); + TestRunner.RunTestScript("Test-CrudWithEndpointGeo"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestListProfilesInResourceGroup() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListProfilesInResourceGroup"); + TestRunner.RunTestScript("Test-ListProfilesInResourceGroup"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestListProfilesInSubscription() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListProfilesInSubscription"); + TestRunner.RunTestScript("Test-ListProfilesInSubscription"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestListProfilesWhereObject() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListProfilesWhereObject"); + TestRunner.RunTestScript("Test-ListProfilesWhereObject"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestProfileNewAlreadyExists() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ProfileNewAlreadyExists"); + TestRunner.RunTestScript("Test-ProfileNewAlreadyExists"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestProfileRemoveNonExisting() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ProfileRemoveNonExisting"); + TestRunner.RunTestScript("Test-ProfileRemoveNonExisting"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestProfileEnable() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ProfileEnable"); + TestRunner.RunTestScript("Test-ProfileEnable"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestProfileEnablePipeline() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ProfileEnablePipeline"); + TestRunner.RunTestScript("Test-ProfileEnablePipeline"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestProfileEnableNonExisting() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ProfileEnableNonExisting"); + TestRunner.RunTestScript("Test-ProfileEnableNonExisting"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestProfileDisable() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ProfileDisable"); + TestRunner.RunTestScript("Test-ProfileDisable"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestProfileDisablePipeline() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ProfileDisablePipeline"); + TestRunner.RunTestScript("Test-ProfileDisablePipeline"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestProfileDisableNonExisting() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ProfileDisableNonExisting"); + TestRunner.RunTestScript("Test-ProfileDisableNonExisting"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestProfileMonitorDefault() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ProfileMonitorDefaults"); + TestRunner.RunTestScript("Test-ProfileMonitorDefaults"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestProfileMonitorCustom() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ProfileMonitorCustom"); + TestRunner.RunTestScript("Test-ProfileMonitorCustom"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestProfileMonitorProtocol() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ProfileMonitorProtocol"); + TestRunner.RunTestScript("Test-ProfileMonitorProtocol"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestProfileMonitorParameterAliases() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-ProfileMonitorParameterAliases"); + TestRunner.RunTestScript("Test-ProfileMonitorParameterAliases"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAndRemoveCustomHeadersFromProfile() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-AddAndRemoveCustomHeadersFromProfile"); + TestRunner.RunTestScript("Test-AddAndRemoveCustomHeadersFromProfile"); } [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestAddAndRemoveExpectedStatusCodeRanges() { - TestController.NewInstance.RunPowerShellTest(_logger, "Test-AddAndRemoveExpectedStatusCodeRanges"); + TestRunner.RunTestScript("Test-AddAndRemoveExpectedStatusCodeRanges"); } } } diff --git a/src/TrafficManager/TrafficManager.Test/ScenarioTests/TestController.cs b/src/TrafficManager/TrafficManager.Test/ScenarioTests/TestController.cs deleted file mode 100644 index 78def7d7077b..000000000000 --- a/src/TrafficManager/TrafficManager.Test/ScenarioTests/TestController.cs +++ /dev/null @@ -1,131 +0,0 @@ -// ---------------------------------------------------------------------------------- -// -// 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.Common.Authentication; -using Microsoft.Azure.Test.HttpRecorder; -using System.Collections.Generic; -using System.Diagnostics; -using Microsoft.Azure.Management.Internal.Resources; -using Microsoft.Azure.Management.TrafficManager; -using Microsoft.WindowsAzure.Commands.ScenarioTest; -using Microsoft.Azure.ServiceManagement.Common.Models; -using System; -using System.IO; -using System.Linq; -using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; -using RestTestFramework = Microsoft.Rest.ClientRuntime.Azure.TestFramework; - -namespace Microsoft.Azure.Commands.TrafficManager.Test.ScenarioTests -{ - public class TestController : RMTestBase - { - private readonly EnvironmentSetupHelper _helper; - - public ResourceManagementClient ResourceManagementClient { get; private set; } - - public TrafficManagerManagementClient TrafficManagerManagementClient { get; private set; } - - public static TestController NewInstance => new TestController(); - - protected TestController() - { - _helper = new EnvironmentSetupHelper(); - } - - protected void SetupManagementClients(RestTestFramework.MockContext context) - { - ResourceManagementClient = GetResourceManagementClient(context); - TrafficManagerManagementClient = GetFeatureClient(context); - - _helper.SetupManagementClients( - ResourceManagementClient, - TrafficManagerManagementClient); - } - - public void RunPowerShellTest(XunitTracingInterceptor logger, params string[] scripts) - { - var sf = new StackTrace().GetFrame(1); - var callingClassType = sf.GetMethod().ReflectedType?.ToString(); - var mockName = sf.GetMethod().Name; - - _helper.TracingInterceptor = logger; - - RunPsTestWorkflow( - () => scripts, - // no custom cleanup - null, - callingClassType, - mockName); - } - - public void RunPsTestWorkflow( - Func scriptBuilder, - Action cleanup, - string callingClassType, - string mockName) - { - var d = new Dictionary - { - {"Microsoft.Resources", null}, - {"Microsoft.Features", null}, - {"Microsoft.Authorization", null} - }; - var providersToIgnore = new Dictionary - { - {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} - }; - HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore); - - HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords"); - using (var context = RestTestFramework.MockContext.Start(callingClassType, mockName)) - { - _helper.SetupEnvironment(AzureModule.AzureResourceManager); - - SetupManagementClients(context); - - var callingClassName = callingClassType.Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries).Last(); - - _helper.SetupModules(AzureModule.AzureResourceManager, - "ScenarioTests\\Common.ps1", - "ScenarioTests\\" + callingClassName + ".ps1", - _helper.RMProfileModule, - _helper.GetRMModulePath(@"AzureRM.TrafficManager.psd1"), - "AzureRM.Resources.ps1"); - - try - { - var psScripts = scriptBuilder?.Invoke(); - if (psScripts != null) - { - _helper.RunPowerShellTest(psScripts); - } - } - finally - { - cleanup?.Invoke(); - } - } - } - - protected ResourceManagementClient GetResourceManagementClient(RestTestFramework.MockContext context) - { - return context.GetServiceClient(RestTestFramework.TestEnvironmentFactory.GetTestEnvironment()); - } - - private static TrafficManagerManagementClient GetFeatureClient(RestTestFramework.MockContext context) - { - return context.GetServiceClient(RestTestFramework.TestEnvironmentFactory.GetTestEnvironment()); - } - } -} diff --git a/src/TrafficManager/TrafficManager.Test/ScenarioTests/TrafficManagerTestRunner.cs b/src/TrafficManager/TrafficManager.Test/ScenarioTests/TrafficManagerTestRunner.cs new file mode 100644 index 000000000000..89faf38abab1 --- /dev/null +++ b/src/TrafficManager/TrafficManager.Test/ScenarioTests/TrafficManagerTestRunner.cs @@ -0,0 +1,55 @@ +// ---------------------------------------------------------------------------------- +// +// 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.Collections.Generic; +using Microsoft.Azure.Commands.TestFx; +using Xunit.Abstractions; + +namespace Microsoft.Azure.Commands.TrafficManager.Test.ScenarioTests +{ + public class TrafficManagerTestRunner + { + protected readonly ITestRunner TestRunner; + + protected TrafficManagerTestRunner(ITestOutputHelper output) + { + TestRunner = TestManager.CreateInstance(output) + .WithNewPsScriptFilename($"{GetType().Name}.ps1") + .WithProjectSubfolderForTests("ScenarioTests") + .WithCommonPsScripts(new[] + { + @"Common.ps1", + @"../AzureRM.Resources.ps1", + }) + .WithNewRmModules(helper => new[] + { + helper.RMProfileModule, + helper.GetRMModulePath(@"Az.TrafficManager.psd1") + }) + .WithNewRecordMatcherArguments( + userAgentsToIgnore: new Dictionary + { + {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} + }, + resourceProviders: new Dictionary + { + {"Microsoft.Resources", null}, + {"Microsoft.Features", null}, + {"Microsoft.Authorization", null} + } + ) + .Build(); + } + } +} diff --git a/tools/StaticAnalysis/Exceptions/Az.CosmosDB/SignatureIssues.csv b/tools/StaticAnalysis/Exceptions/Az.CosmosDB/SignatureIssues.csv index e360a0ad6456..db55a2991bf3 100644 --- a/tools/StaticAnalysis/Exceptions/Az.CosmosDB/SignatureIssues.csv +++ b/tools/StaticAnalysis/Exceptions/Az.CosmosDB/SignatureIssues.csv @@ -36,4 +36,10 @@ "Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll","Microsoft.Azure.Commands.CosmosDB.RemoveAzCosmosDBTable","Remove-AzCosmosDBTable","1","8510","Cmdlet 'Remove-AzCosmosDBTable' has multiple parameter sets, but no defined default parameter set.","Define a default parameter set in the cmdlet attribute." "Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll","Microsoft.Azure.Commands.CosmosDB.NewAzCosmosDBAccount","New-AzCosmosDBAccount","1","8410","Parameter NetworkAclBypass of cmdlet New-AzCosmosDBAccount does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." "Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll","Microsoft.Azure.Commands.CosmosDB.UpdateAzCosmosDBAccount","Update-AzCosmosDBAccount","1","8410","Parameter NetworkAclBypass of cmdlet Update-AzCosmosDBAccount does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." -"Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll","Microsoft.Azure.Commands.CosmosDB.NewAzCosmosDBDatabaseToRestore","New-AzCosmosDBDatabaseToRestore","1","8100","New-AzCosmosDBDatabaseToRestore Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" \ No newline at end of file +"Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll","Microsoft.Azure.Commands.CosmosDB.NewAzCosmosDBDatabaseToRestore","New-AzCosmosDBDatabaseToRestore","1","8100","New-AzCosmosDBDatabaseToRestore Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" +"Az.CosmosDB","Microsoft.Azure.Commands.CosmosDB.GetAzCosmosDBMongoDBCollectionPerPartitionThroughput","Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput","1","8410","Parameter PhysicalPartitionIds of cmdlet Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.CosmosDB","Microsoft.Azure.Commands.CosmosDB.GetAzCosmosDBMongoDBCollectionPerPartitionThroughput","Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput","1","8410","Parameter AllPartitions of cmdlet Get-AzCosmosDBMongoDBCollectionPerPartitionThroughput does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.CosmosDB","Microsoft.Azure.Commands.CosmosDB.GetAzCosmosDBSqlContainerPerPartitionThroughput","Get-AzCosmosDBSqlContainerPerPartitionThroughput","1","8410","Parameter PhysicalPartitionIds of cmdlet Get-AzCosmosDBSqlContainerPerPartitionThroughput does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.CosmosDB","Microsoft.Azure.Commands.CosmosDB.GetAzCosmosDBSqlContainerPerPartitionThroughput","Get-AzCosmosDBSqlContainerPerPartitionThroughput","1","8410","Parameter AllPartitions of cmdlet Get-AzCosmosDBSqlContainerPerPartitionThroughput does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.CosmosDB","Microsoft.Azure.Commands.CosmosDB.NewAzCosmosDBPhysicalPartitionThroughputObject","New-AzCosmosDBPhysicalPartitionThroughputObject","1","8100","New-AzCosmosDBPhysicalPartitionThroughputObject Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" +"Az.CosmosDB","Microsoft.Azure.Commands.CosmosDB.NewAzCosmosDBPhysicalPartitionThroughputObject","New-AzCosmosDBPhysicalPartitionThroughputObject","1","8600","Cmdlet 'New-AzCosmosDBPhysicalPartitionThroughputObject' has no defined output type.","Add an OutputType attribute that declares the type of the object(s) returned by this cmdlet. If this cmdlet returns no output, please set the output type to 'bool' and make sure to implement the 'PassThru' parameter." \ No newline at end of file