diff --git a/src/Sql/Sql.Test/ScenarioTests/DataSyncTests.cs b/src/Sql/Sql.Test/ScenarioTests/DataSyncTests.cs
index e1293a169d65..bccee04301d8 100644
--- a/src/Sql/Sql.Test/ScenarioTests/DataSyncTests.cs
+++ b/src/Sql/Sql.Test/ScenarioTests/DataSyncTests.cs
@@ -28,7 +28,7 @@ public DataSyncTests(ITestOutputHelper output) : base(output)
base.resourceTypesToIgnoreApiVersion = new string[] {
"Microsoft.Sql/servers",
- "Microsoft.Sql/managedInstances/databases"
+ "Microsoft.Sql/managedInstances/databases"
};
}
@@ -135,6 +135,6 @@ public void TestSyncMemberSchemaRefreshAndGet()
public void TestSyncMemberRemove()
{
RunPowerShellTest("Test-RemoveSyncMember");
- }
+ }
}
}
diff --git a/src/Sql/Sql.Test/ScenarioTests/ManagedDatabaseBackupTests.cs b/src/Sql/Sql.Test/ScenarioTests/ManagedDatabaseBackupTests.cs
index 2127cc4ec3f5..ed24b2f2fb0e 100644
--- a/src/Sql/Sql.Test/ScenarioTests/ManagedDatabaseBackupTests.cs
+++ b/src/Sql/Sql.Test/ScenarioTests/ManagedDatabaseBackupTests.cs
@@ -52,5 +52,26 @@ public void ManagedDeletedDatabaseShortTermRetentionPolicy()
{
RunPowerShellTest("Test-ManagedDeletedDatabaseShortTermRetentionPolicy");
}
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestManagedInstanceLongTermRetentionPolicy()
+ {
+ RunPowerShellTest("Test-ManagedInstanceLongTermRetentionPolicy");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestManagedInstanceLongTermRetentionBackup()
+ {
+ RunPowerShellTest("Test-ManagedInstanceLongTermRetentionBackup");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestManagedInstanceLongTermRetentionResourceGroupBasedBackup()
+ {
+ RunPowerShellTest("Test-ManagedInstanceLongTermRetentionResourceGroupBasedBackup");
+ }
}
}
diff --git a/src/Sql/Sql.Test/ScenarioTests/ManagedDatabaseBackupTests.ps1 b/src/Sql/Sql.Test/ScenarioTests/ManagedDatabaseBackupTests.ps1
index 400a360840f2..2a50e5ff36be 100644
--- a/src/Sql/Sql.Test/ScenarioTests/ManagedDatabaseBackupTests.ps1
+++ b/src/Sql/Sql.Test/ScenarioTests/ManagedDatabaseBackupTests.ps1
@@ -23,7 +23,7 @@ function Test-ManagedLiveDatabaseShortTermRetentionPolicy
$vnetName = "cl_initial"
$subnetName = "Cool"
- # Setup VNET
+ # Setup VNET
$virtualNetwork1 = CreateAndGetVirtualNetworkForManagedInstance $vnetName $subnetName $rg.Location
$subnetId = $virtualNetwork1.Subnets.where({ $_.Name -eq $subnetName })[0].Id
@@ -88,6 +88,10 @@ function Test-ManagedLiveDatabaseShortTermRetentionPolicy
}
}
+<#
+ .SYNOPSIS
+ Test LTR Policy functions for MI
+#>
function Test-ManagedDeletedDatabaseShortTermRetentionPolicy
{
# Setup
@@ -95,7 +99,7 @@ function Test-ManagedDeletedDatabaseShortTermRetentionPolicy
$vnetName = "cl_initial"
$subnetName = "Cool"
- # Setup VNET
+ # Setup VNET
$virtualNetwork1 = CreateAndGetVirtualNetworkForManagedInstance $vnetName $subnetName $rg.Location
$subnetId = $virtualNetwork1.Subnets.where({ $_.Name -eq $subnetName })[0].Id
@@ -130,7 +134,7 @@ function Test-ManagedDeletedDatabaseShortTermRetentionPolicy
Remove-AzSqlInstanceDatabase -ResourceGroupName $rg.ResourceGroupName -InstanceName $managedInstance.ManagedInstanceName -Name $managedDatabaseName -Force
# Get deleted database
- $deletedDatabases = Get-AzSqlDeletedInstanceDatabaseBackup -ResourceGroupName $rg.ResourceGroupName -InstanceName $managedInstance.ManagedInstanceName -DatabaseName $managedDatabaseName
+ $deletedDatabases = Get-AzSqlDeletedInstanceDatabaseBackup -ResourceGroupName $rg.ResourceGroupName -InstanceName $managedInstance.ManagedInstanceName -DatabaseName $managedDatabaseName
# Set retention to 29, test default parameter providing.
$retention = 29
@@ -173,4 +177,143 @@ function Test-ManagedDeletedDatabaseShortTermRetentionPolicy
{
Remove-ResourceGroupForTest $rg
}
-}
\ No newline at end of file
+}
+<#
+ .SYNOPSIS
+ Test long term retention for managed databases.
+#>
+function Test-ManagedInstanceLongTermRetentionPolicy()
+{
+ # Setup
+ $resourceGroupName = "cl_stage_sea_cv"
+ $managedInstanceName = "seageodr-gen5-gp"
+ $weeklyRetention = "P1W"
+ $zeroRetention = "PT0S"
+
+ try
+ {
+ # create test database
+ $databaseName = "ps-ltr-policy-test-1"
+ $database = New-AzSqlInstanceDatabase -ResourceGroupName $resourceGroupName -InstanceName $managedInstanceName -Name $databaseName
+
+ Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy -ResourceGroupName $resourceGroupName -InstanceName $managedInstanceName -DatabaseName $databaseName -WeeklyRetention $weeklyRetention
+ $policy = Get-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy -ResourceGroup $resourceGroupName -InstanceName $managedInstanceName -DatabaseName $databaseName
+ Assert-AreEqual $policy.WeeklyRetention $weeklyRetention
+ Assert-AreEqual $policy.MonthlyRetention $zeroRetention
+ Assert-AreEqual $policy.YearlyRetention $zeroRetention
+ }
+ finally
+ {
+ Remove-ResourceGroupForTest $resourceGroup
+ }
+}
+
+<#
+ .SYNOPSIS
+ Test long term retention backup commands for managed databases.
+#>
+function Test-ManagedInstanceLongTermRetentionBackup
+{
+
+ # MANUAL INSTRUCTIONS
+ # Create a server and database and fill in the appropriate information below
+ # Set the weekly retention on the database so that the first backup gets picked up, for example:
+ # Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy -ResourceGroup $resourceGroup -ServerName $serverName -DatabaseName $databaseName -WeeklyRetention P1W
+ # Wait about 18 hours until it gets properly copied and you see the backup when run get backups, for example:
+ # Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -InstanceName $managedInstanceName -DatabaeName $databaseName
+ $resourceGroup = "cl_stage_sea_cv"
+ $locationName = "southeastasia"
+ $managedInstanceName = "seageodr-gen5-gp"
+ $databaseName = "ps-test-1"
+ $databaseWithRemovableBackup = "ps-test-2";
+
+ # Basic Get Tests
+ $backups = Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName
+ Assert-AreNotEqual $backups.Count 0
+ $backups = Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -InstanceName $managedInstanceName
+ Assert-AreNotEqual $backups.Count 0
+ $backups = Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -InstanceName $managedInstanceName -DatabaseName $databaseName
+ Assert-AreNotEqual $backups.Count 0
+ $backups = Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -InstanceName $managedInstanceName -DatabaseName $databaseName -BackupName $backups[0].BackupName
+ Assert-AreNotEqual $backups.Count 0
+
+ # Test Get Optional Parameters
+ $backups = Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -InstanceName $managedInstanceName -DatabaseName $databaseName -OnlyLatestPerDatabase
+ Assert-AreNotEqual $backups.Count 0
+ $backups = Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -InstanceName $managedInstanceName -OnlyLatestPerDatabase -DatabaseState All
+ Assert-AreNotEqual $backups.Count 0
+
+ # Test Get Piping with Optional Parameters
+ $backups = Get-AzSqlInstanceDatabase -ResourceGroup $resourceGroup -InstanceName $managedInstanceName -Name $databaseName | Get-AzSqlInstanceDatabaseLongTermRetentionBackup -OnlyLatestPerDatabase
+ Assert-AreNotEqual $backups.Count 0
+
+ # Restore Test
+ $backups = Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName
+ $restoredDatabase = "ps-test-restore-2"
+ $db = Restore-AzSqlInstanceDatabase -FromLongTermRetentionBackup -ResourceId $backups[0].ResourceId -TargetResourceGroupName $resourceGroup -TargetInstanceName $managedInstanceName -TargetInstanceDatabaseName $restoredDatabase
+ Assert-AreEqual $db.Name $restoredDatabase
+
+ # Test Remove Backup
+ $backups = Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -InstanceName $managedInstanceName -DatabaseName $databaseWithRemovableBackup
+ $initialBackups = $backups.Count
+ Remove-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -InstanceName $managedInstanceName -DatabaseName $databaseWithRemovableBackup -BackupName $backups[0].BackupName -Force
+ $backups = Get-AzSqlInstanceDatabase -ResourceGroup $resourceGroup -InstanceName $managedInstanceName -Name $databaseWithRemovableBackup | Get-AzSqlInstanceDatabaseLongTermRetentionBackup
+ $expectedBackups = $initialBackups-1
+ Assert-AreEqual $expectedBackups $backups.Count
+
+ # drop the restored db
+ Remove-AzSqlInstanceDatabase -ResourceGroupName $resourceGroup -InstanceName $managedInstanceName -Name $restoredDatabase -Force
+}
+
+<#
+ .SYNOPSIS
+ Test long term retention backup commands for managed databases (using resource group).
+#>
+function Test-ManagedInstanceLongTermRetentionResourceGroupBasedBackup
+{
+ # MANUAL INSTRUCTIONS
+ # Create a server and database and fill in the appropriate information below
+ # Set the weekly retention on the database so that the first backup gets picked up, for example:
+ # Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy -ResourceGroup $resourceGroup -ServerName $serverName -DatabaseName $databaseName -WeeklyRetention P1W
+ # Wait about 18 hours until it gets properly copied and you see the backup when run get backups, for example:
+ # Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -ServerName $serverName -DatabaeName $databaseName -ResourceGroupName $resourceGroup
+ $resourceGroup = "cl_stage_sea_cv"
+ $locationName = "southeastasia"
+ $managedInstanceName = "seageodr-gen5-gp"
+ $databaseName = "ps-test-3"
+
+ # Basic Get Tests
+ $backups = Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -ResourceGroupName $resourceGroup
+ Assert-AreNotEqual $backups.Count 0
+ $backups = Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -InstanceName $managedInstanceName -ResourceGroupName $resourceGroup
+ Assert-AreNotEqual $backups.Count 0
+ $backups = Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -InstanceName $managedInstanceName -DatabaseName $databaseName -ResourceGroupName $resourceGroup
+ Assert-AreNotEqual $backups.Count 0
+ $backups = Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -InstanceName $managedInstanceName -DatabaseName $databaseName -BackupName $backups[0].BackupName -ResourceGroupName $resourceGroup
+ Assert-AreNotEqual $backups.Count 0
+
+ # Test Get Piping
+ $backups = Get-AzSqlInstanceDatabase -ResourceGroup $resourceGroup -InstanceName $managedInstanceName -Name $databaseName | Get-AzSqlInstanceDatabaseLongTermRetentionBackup
+ Assert-AreNotEqual $backups.Count 0
+ $backups = Get-AzSqlInstanceDatabase -ResourceGroup $resourceGroup -InstanceName $managedInstanceName -Name $databaseName | Get-AzSqlInstanceDatabaseLongTermRetentionBackup -BackupName $backups[0].BackupName
+ Assert-AreNotEqual $backups.Count 0
+
+ # Test Get Optional Parameters
+ $backups = Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -InstanceName $managedInstanceName -DatabaseName $databaseName -ResourceGroupName $resourceGroup -OnlyLatestPerDatabase
+ $backups = Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -InstanceName $managedInstanceName -ResourceGroupName $resourceGroup -DatabaseState All
+ Assert-AreNotEqual $backups.Count 0
+
+ # Test Get Piping with Optional Parameters
+ $backups = Get-AzSqlInstanceDatabase -ResourceGroup $resourceGroup -InstanceName $managedInstanceName -Name $databaseName | Get-AzSqlInstanceDatabaseLongTermRetentionBackup -OnlyLatestPerDatabase
+ Assert-AreNotEqual $backups.Count 0
+
+ # Restore Test
+ $restoredDatabase = "ps-test-restore-with-rg-2"
+ $backups = Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location $locationName -ResourceGroupName $resourceGroup
+ $db = Restore-AzSqlInstanceDatabase -FromLongTermRetentionBackup -ResourceId $backups[0].ResourceId -TargetResourceGroupName $resourceGroup -TargetInstanceName $managedInstanceName -TargetInstanceDatabaseName $restoredDatabase
+ Assert-AreEqual $db.Name $restoredDatabase
+
+ # drop the restored db
+ Remove-AzSqlInstanceDatabase -ResourceGroupName $resourceGroup -InstanceName $managedInstanceName -Name $restoredDatabase -Force
+}
+
diff --git a/src/Sql/Sql.Test/ScenarioTests/ManagedDatabaseCrudScenarioTests.cs b/src/Sql/Sql.Test/ScenarioTests/ManagedDatabaseCrudScenarioTests.cs
index 04e61d1acf6f..87fd8d8169c4 100644
--- a/src/Sql/Sql.Test/ScenarioTests/ManagedDatabaseCrudScenarioTests.cs
+++ b/src/Sql/Sql.Test/ScenarioTests/ManagedDatabaseCrudScenarioTests.cs
@@ -62,7 +62,7 @@ public void TestRemoveManagedDatabase()
RunPowerShellTest("Test-RemoveManagedDatabase");
}
- [Fact]
+ [Fact(Skip = "Skip due to long setup time for managed instance")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestRestoreManagedDatabase()
{
diff --git a/src/Sql/Sql.Test/ScenarioTests/VulnerabilityAssessmentTests.cs b/src/Sql/Sql.Test/ScenarioTests/VulnerabilityAssessmentTests.cs
index be4c946b6621..31e95c0abc5c 100644
--- a/src/Sql/Sql.Test/ScenarioTests/VulnerabilityAssessmentTests.cs
+++ b/src/Sql/Sql.Test/ScenarioTests/VulnerabilityAssessmentTests.cs
@@ -33,7 +33,9 @@ protected override void SetupManagementClients(RestTestFramework.MockContext con
public VulnerabilityAssessmentTests(ITestOutputHelper output) : base(output)
{
base.resourceTypesToIgnoreApiVersion = new string[] {
- "Microsoft.Sql/servers"
+ "Microsoft.Sql/servers",
+ "Microsoft.Sql/managedInstances",
+ "Microsoft.Sql/managedInstances/databases"
};
}
@@ -95,4 +97,4 @@ public void VulnerabilityAssessmentScanConvertTest()
#endregion
}
-}
\ No newline at end of file
+}
diff --git a/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.ManagedDatabaseBackupTests/TestManagedInstanceLongTermRetentionBackup.json b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.ManagedDatabaseBackupTests/TestManagedInstanceLongTermRetentionBackup.json
new file mode 100644
index 000000000000..58ad81355e35
--- /dev/null
+++ b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.ManagedDatabaseBackupTests/TestManagedInstanceLongTermRetentionBackup.json
@@ -0,0 +1,1937 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=false&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2xvbmdUZXJtUmV0ZW50aW9uTWFuYWdlZEluc3RhbmNlQmFja3Vwcz9vbmx5TGF0ZXN0UGVyRGF0YWJhc2U9ZmFsc2UmYXBpLXZlcnNpb249MjAxOC0wNi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4d3b2bc4-3c49-415c-b873-18f7d90acc57"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "9e67f48d-4e27-4888-8972-75c637977b51"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "aafa479d-0e7b-4b95-abd1-5f22d96f265c"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193627Z:aafa479d-0e7b-4b95-abd1-5f22d96f265c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:36:27 GMT"
+ ],
+ "Content-Length": [
+ "10541"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"target1\",\r\n \"backupTime\": \"2020-02-25T00:33:48Z\",\r\n \"backupExpirationTime\": \"2020-03-10T00:33:48Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132270644280000000\",\r\n \"name\": \"ae1ea149-d5ff-4554-9333-33debe0b92ff;132270644280000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"target1\",\r\n \"backupTime\": \"2020-03-02T20:01:47Z\",\r\n \"backupExpirationTime\": \"2020-03-16T20:01:47Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"name\": \"ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-5\",\r\n \"backupTime\": \"2020-03-03T14:16:38Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:38Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-5/longTermRetentionManagedInstanceBackups/151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"name\": \"151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-1\",\r\n \"backupTime\": \"2020-03-03T14:06:27Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:06:27Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups/0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"name\": \"0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-2\",\r\n \"backupTime\": \"2020-03-03T14:11:22Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:22Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-2/longTermRetentionManagedInstanceBackups/a2a0bd4a-5dab-4907-a0f1-5bcfe9053e47;132277182820000000\",\r\n \"name\": \"a2a0bd4a-5dab-4907-a0f1-5bcfe9053e47;132277182820000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-ltr-policy-test\",\r\n \"backupTime\": \"2020-03-04T01:25:46Z\",\r\n \"backupExpirationTime\": \"2020-03-11T01:25:46Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-ltr-policy-test/longTermRetentionManagedInstanceBackups/f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"name\": \"f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-4\",\r\n \"backupTime\": \"2020-03-03T14:16:35Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:35Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-4/longTermRetentionManagedInstanceBackups/3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"name\": \"3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8305\",\r\n \"backupTime\": \"2020-02-27T23:09:39Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:59:29.7608268Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8305/longTermRetentionManagedInstanceBackups/5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"name\": \"5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-3\",\r\n \"backupTime\": \"2020-03-03T14:11:24Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:24Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"name\": \"f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-b083bf22-b64c-42ee-958f-a5ee0a512f75\",\r\n \"backupTime\": \"2020-03-03T13:51:21Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:51:21Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-b083bf22-b64c-42ee-958f-a5ee0a512f75/longTermRetentionManagedInstanceBackups/91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"name\": \"91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8750\",\r\n \"backupTime\": \"2020-02-25T19:33:51Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:55:06.3032425Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8750/longTermRetentionManagedInstanceBackups/869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"name\": \"869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test\",\r\n \"backupTime\": \"2020-03-03T14:01:29Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:01:29Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test/longTermRetentionManagedInstanceBackups/723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"name\": \"723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-5830\",\r\n \"backupTime\": \"2020-03-03T02:26:49Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:01:51.29337Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-5830/longTermRetentionManagedInstanceBackups/733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"name\": \"733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-j\",\r\n \"backupTime\": \"2020-03-03T06:56:52Z\",\r\n \"backupExpirationTime\": \"2020-03-10T06:56:52Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-j/longTermRetentionManagedInstanceBackups/d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"name\": \"d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=false&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2xvbmdUZXJtUmV0ZW50aW9uTWFuYWdlZEluc3RhbmNlQmFja3Vwcz9vbmx5TGF0ZXN0UGVyRGF0YWJhc2U9ZmFsc2UmYXBpLXZlcnNpb249MjAxOC0wNi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1863aaa3-0293-4fb2-86ce-16c0fecdab85"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "0d7e0da6-d577-4408-afbe-b73b7b96cd22"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-correlation-request-id": [
+ "37fa1956-30bc-4f9e-a8ad-6adb056a1b65"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193630Z:37fa1956-30bc-4f9e-a8ad-6adb056a1b65"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:36:30 GMT"
+ ],
+ "Content-Length": [
+ "10541"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"target1\",\r\n \"backupTime\": \"2020-02-25T00:33:48Z\",\r\n \"backupExpirationTime\": \"2020-03-10T00:33:48Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132270644280000000\",\r\n \"name\": \"ae1ea149-d5ff-4554-9333-33debe0b92ff;132270644280000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"target1\",\r\n \"backupTime\": \"2020-03-02T20:01:47Z\",\r\n \"backupExpirationTime\": \"2020-03-16T20:01:47Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"name\": \"ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-5\",\r\n \"backupTime\": \"2020-03-03T14:16:38Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:38Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-5/longTermRetentionManagedInstanceBackups/151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"name\": \"151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-1\",\r\n \"backupTime\": \"2020-03-03T14:06:27Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:06:27Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups/0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"name\": \"0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-2\",\r\n \"backupTime\": \"2020-03-03T14:11:22Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:22Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-2/longTermRetentionManagedInstanceBackups/a2a0bd4a-5dab-4907-a0f1-5bcfe9053e47;132277182820000000\",\r\n \"name\": \"a2a0bd4a-5dab-4907-a0f1-5bcfe9053e47;132277182820000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-ltr-policy-test\",\r\n \"backupTime\": \"2020-03-04T01:25:46Z\",\r\n \"backupExpirationTime\": \"2020-03-11T01:25:46Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-ltr-policy-test/longTermRetentionManagedInstanceBackups/f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"name\": \"f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-4\",\r\n \"backupTime\": \"2020-03-03T14:16:35Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:35Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-4/longTermRetentionManagedInstanceBackups/3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"name\": \"3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8305\",\r\n \"backupTime\": \"2020-02-27T23:09:39Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:59:29.7608268Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8305/longTermRetentionManagedInstanceBackups/5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"name\": \"5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-3\",\r\n \"backupTime\": \"2020-03-03T14:11:24Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:24Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"name\": \"f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-b083bf22-b64c-42ee-958f-a5ee0a512f75\",\r\n \"backupTime\": \"2020-03-03T13:51:21Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:51:21Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-b083bf22-b64c-42ee-958f-a5ee0a512f75/longTermRetentionManagedInstanceBackups/91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"name\": \"91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8750\",\r\n \"backupTime\": \"2020-02-25T19:33:51Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:55:06.3032425Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8750/longTermRetentionManagedInstanceBackups/869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"name\": \"869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test\",\r\n \"backupTime\": \"2020-03-03T14:01:29Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:01:29Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test/longTermRetentionManagedInstanceBackups/723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"name\": \"723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-5830\",\r\n \"backupTime\": \"2020-03-03T02:26:49Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:01:51.29337Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-5830/longTermRetentionManagedInstanceBackups/733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"name\": \"733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-j\",\r\n \"backupTime\": \"2020-03-03T06:56:52Z\",\r\n \"backupExpirationTime\": \"2020-03-10T06:56:52Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-j/longTermRetentionManagedInstanceBackups/d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"name\": \"d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=false&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2xvbmdUZXJtUmV0ZW50aW9uTWFuYWdlZEluc3RhbmNlcy9zZWFnZW9kci1nZW41LWdwL2xvbmdUZXJtUmV0ZW50aW9uTWFuYWdlZEluc3RhbmNlQmFja3Vwcz9vbmx5TGF0ZXN0UGVyRGF0YWJhc2U9ZmFsc2UmYXBpLXZlcnNpb249MjAxOC0wNi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5cb9836b-e490-420f-aa95-5f2e24517e10"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "d04e20f0-552e-4b69-86e6-513fdc9abde3"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14998"
+ ],
+ "x-ms-correlation-request-id": [
+ "dbdb75c6-5de3-41db-b689-4621592ef56b"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193627Z:dbdb75c6-5de3-41db-b689-4621592ef56b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:36:27 GMT"
+ ],
+ "Content-Length": [
+ "10541"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"target1\",\r\n \"backupTime\": \"2020-02-25T00:33:48Z\",\r\n \"backupExpirationTime\": \"2020-03-10T00:33:48Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132270644280000000\",\r\n \"name\": \"ae1ea149-d5ff-4554-9333-33debe0b92ff;132270644280000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"target1\",\r\n \"backupTime\": \"2020-03-02T20:01:47Z\",\r\n \"backupExpirationTime\": \"2020-03-16T20:01:47Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"name\": \"ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-5\",\r\n \"backupTime\": \"2020-03-03T14:16:38Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:38Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-5/longTermRetentionManagedInstanceBackups/151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"name\": \"151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-1\",\r\n \"backupTime\": \"2020-03-03T14:06:27Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:06:27Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups/0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"name\": \"0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-2\",\r\n \"backupTime\": \"2020-03-03T14:11:22Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:22Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-2/longTermRetentionManagedInstanceBackups/a2a0bd4a-5dab-4907-a0f1-5bcfe9053e47;132277182820000000\",\r\n \"name\": \"a2a0bd4a-5dab-4907-a0f1-5bcfe9053e47;132277182820000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-ltr-policy-test\",\r\n \"backupTime\": \"2020-03-04T01:25:46Z\",\r\n \"backupExpirationTime\": \"2020-03-11T01:25:46Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-ltr-policy-test/longTermRetentionManagedInstanceBackups/f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"name\": \"f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-4\",\r\n \"backupTime\": \"2020-03-03T14:16:35Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:35Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-4/longTermRetentionManagedInstanceBackups/3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"name\": \"3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8305\",\r\n \"backupTime\": \"2020-02-27T23:09:39Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:59:29.7608268Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8305/longTermRetentionManagedInstanceBackups/5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"name\": \"5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-3\",\r\n \"backupTime\": \"2020-03-03T14:11:24Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:24Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"name\": \"f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-b083bf22-b64c-42ee-958f-a5ee0a512f75\",\r\n \"backupTime\": \"2020-03-03T13:51:21Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:51:21Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-b083bf22-b64c-42ee-958f-a5ee0a512f75/longTermRetentionManagedInstanceBackups/91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"name\": \"91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8750\",\r\n \"backupTime\": \"2020-02-25T19:33:51Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:55:06.3032425Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8750/longTermRetentionManagedInstanceBackups/869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"name\": \"869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test\",\r\n \"backupTime\": \"2020-03-03T14:01:29Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:01:29Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test/longTermRetentionManagedInstanceBackups/723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"name\": \"723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-5830\",\r\n \"backupTime\": \"2020-03-03T02:26:49Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:01:51.29337Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-5830/longTermRetentionManagedInstanceBackups/733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"name\": \"733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-j\",\r\n \"backupTime\": \"2020-03-03T06:56:52Z\",\r\n \"backupExpirationTime\": \"2020-03-10T06:56:52Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-j/longTermRetentionManagedInstanceBackups/d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"name\": \"d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=false&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2xvbmdUZXJtUmV0ZW50aW9uTWFuYWdlZEluc3RhbmNlcy9zZWFnZW9kci1nZW41LWdwL2xvbmdUZXJtUmV0ZW50aW9uRGF0YWJhc2VzL3BzLXRlc3QtMS9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZUJhY2t1cHM/b25seUxhdGVzdFBlckRhdGFiYXNlPWZhbHNlJmFwaS12ZXJzaW9uPTIwMTgtMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1f1f1879-e3ce-4c76-b586-4ed378b8379f"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "f0826be7-ff80-442c-bea7-f7d1c0f2eee5"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14997"
+ ],
+ "x-ms-correlation-request-id": [
+ "c2bdba37-e90f-4f59-bc57-cb75a999620f"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193628Z:c2bdba37-e90f-4f59-bc57-cb75a999620f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:36:28 GMT"
+ ],
+ "Content-Length": [
+ "754"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-1\",\r\n \"backupTime\": \"2020-03-03T14:06:27Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:06:27Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups/0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"name\": \"0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups/0cf6fbbd-0040-4a2b-b95d-591eba358931%3B132277179870000000?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2xvbmdUZXJtUmV0ZW50aW9uTWFuYWdlZEluc3RhbmNlcy9zZWFnZW9kci1nZW41LWdwL2xvbmdUZXJtUmV0ZW50aW9uRGF0YWJhc2VzL3BzLXRlc3QtMS9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZUJhY2t1cHMvMGNmNmZiYmQtMDA0MC00YTJiLWI5NWQtNTkxZWJhMzU4OTMxJTNCMTMyMjc3MTc5ODcwMDAwMDAwP2FwaS12ZXJzaW9uPTIwMTgtMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5259916c-43fb-470b-ba7d-5e8fb81ed569"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "dfc87066-c3ce-4b89-84d6-2925ae391ff3"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14996"
+ ],
+ "x-ms-correlation-request-id": [
+ "3ba204b7-8856-4308-bed2-cc7d3428f102"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193628Z:3ba204b7-8856-4308-bed2-cc7d3428f102"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:36:28 GMT"
+ ],
+ "Content-Length": [
+ "742"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-1\",\r\n \"backupTime\": \"2020-03-03T14:06:27Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:06:27Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups/0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"name\": \"0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=true&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2xvbmdUZXJtUmV0ZW50aW9uTWFuYWdlZEluc3RhbmNlcy9zZWFnZW9kci1nZW41LWdwL2xvbmdUZXJtUmV0ZW50aW9uRGF0YWJhc2VzL3BzLXRlc3QtMS9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZUJhY2t1cHM/b25seUxhdGVzdFBlckRhdGFiYXNlPXRydWUmYXBpLXZlcnNpb249MjAxOC0wNi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0fbc1e5c-d4a8-4f03-b6e3-23cb5a878bc9"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "1dd4ea71-e8fa-4c67-8696-5f076c9eddf4"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "28c87417-d7d7-4875-9c76-8668a0f1f3a5"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193628Z:28c87417-d7d7-4875-9c76-8668a0f1f3a5"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:36:28 GMT"
+ ],
+ "Content-Length": [
+ "754"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-1\",\r\n \"backupTime\": \"2020-03-03T14:06:27Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:06:27Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups/0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"name\": \"0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=true&databaseState=All&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2xvbmdUZXJtUmV0ZW50aW9uTWFuYWdlZEluc3RhbmNlcy9zZWFnZW9kci1nZW41LWdwL2xvbmdUZXJtUmV0ZW50aW9uTWFuYWdlZEluc3RhbmNlQmFja3Vwcz9vbmx5TGF0ZXN0UGVyRGF0YWJhc2U9dHJ1ZSZkYXRhYmFzZVN0YXRlPUFsbCZhcGktdmVyc2lvbj0yMDE4LTA2LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "cc8c89b1-9e0a-457d-8a43-c7ee5bf0432b"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "06c8035e-55ad-4826-8e3e-6fad52fb1742"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14994"
+ ],
+ "x-ms-correlation-request-id": [
+ "86bcc537-9a7a-46f5-99f8-c4502f8e4b94"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193629Z:86bcc537-9a7a-46f5-99f8-c4502f8e4b94"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:36:29 GMT"
+ ],
+ "Content-Length": [
+ "9802"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"target1\",\r\n \"backupTime\": \"2020-03-02T20:01:47Z\",\r\n \"backupExpirationTime\": \"2020-03-16T20:01:47Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"name\": \"ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-5\",\r\n \"backupTime\": \"2020-03-03T14:16:38Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:38Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-5/longTermRetentionManagedInstanceBackups/151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"name\": \"151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-1\",\r\n \"backupTime\": \"2020-03-03T14:06:27Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:06:27Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups/0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"name\": \"0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-2\",\r\n \"backupTime\": \"2020-03-03T14:11:22Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:22Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-2/longTermRetentionManagedInstanceBackups/a2a0bd4a-5dab-4907-a0f1-5bcfe9053e47;132277182820000000\",\r\n \"name\": \"a2a0bd4a-5dab-4907-a0f1-5bcfe9053e47;132277182820000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-ltr-policy-test\",\r\n \"backupTime\": \"2020-03-04T01:25:46Z\",\r\n \"backupExpirationTime\": \"2020-03-11T01:25:46Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-ltr-policy-test/longTermRetentionManagedInstanceBackups/f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"name\": \"f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-4\",\r\n \"backupTime\": \"2020-03-03T14:16:35Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:35Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-4/longTermRetentionManagedInstanceBackups/3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"name\": \"3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8305\",\r\n \"backupTime\": \"2020-02-27T23:09:39Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:59:29.7608268Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8305/longTermRetentionManagedInstanceBackups/5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"name\": \"5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-3\",\r\n \"backupTime\": \"2020-03-03T14:11:24Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:24Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"name\": \"f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-b083bf22-b64c-42ee-958f-a5ee0a512f75\",\r\n \"backupTime\": \"2020-03-03T13:51:21Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:51:21Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-b083bf22-b64c-42ee-958f-a5ee0a512f75/longTermRetentionManagedInstanceBackups/91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"name\": \"91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8750\",\r\n \"backupTime\": \"2020-02-25T19:33:51Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:55:06.3032425Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8750/longTermRetentionManagedInstanceBackups/869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"name\": \"869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test\",\r\n \"backupTime\": \"2020-03-03T14:01:29Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:01:29Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test/longTermRetentionManagedInstanceBackups/723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"name\": \"723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-5830\",\r\n \"backupTime\": \"2020-03-03T02:26:49Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:01:51.29337Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-5830/longTermRetentionManagedInstanceBackups/733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"name\": \"733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-j\",\r\n \"backupTime\": \"2020-03-03T06:56:52Z\",\r\n \"backupExpirationTime\": \"2020-03-10T06:56:52Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-j/longTermRetentionManagedInstanceBackups/d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"name\": \"d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-1?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLXRlc3QtMT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3eb446d4-e18e-4b52-8e9f-569782293cf9"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "6d5bdca9-725e-4ccc-a588-03ea3960e119"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14993"
+ ],
+ "x-ms-correlation-request-id": [
+ "b4776bb7-5c1e-45c2-99e5-07214db52ee3"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193629Z:b4776bb7-5c1e-45c2-99e5-07214db52ee3"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:36:29 GMT"
+ ],
+ "Content-Length": [
+ "474"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2020-03-03T14:04:06.987Z\",\r\n \"earliestRestorePoint\": \"2020-03-03T14:06:29.743Z\",\r\n \"defaultSecondaryLocation\": \"northeurope\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-1\",\r\n \"name\": \"ps-test-1\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=true&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZXMvc2VhZ2VvZHItZ2VuNS1ncC9sb25nVGVybVJldGVudGlvbkRhdGFiYXNlcy9wcy10ZXN0LTEvbG9uZ1Rlcm1SZXRlbnRpb25NYW5hZ2VkSW5zdGFuY2VCYWNrdXBzP29ubHlMYXRlc3RQZXJEYXRhYmFzZT10cnVlJmFwaS12ZXJzaW9uPTIwMTgtMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "2ce793f5-50f8-4805-baef-309941501e7e"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "b13d064e-5b87-40ce-8010-637a9ed4bc39"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "7c556c73-abe7-472c-af5c-179135079936"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193630Z:7c556c73-abe7-472c-af5c-179135079936"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:36:29 GMT"
+ ],
+ "Content-Length": [
+ "754"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-1\",\r\n \"backupTime\": \"2020-03-03T14:06:27Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:06:27Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups/0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"name\": \"0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3A/YXBpLXZlcnNpb249MjAxOC0wNi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "196a90fb-d53c-45e3-949f-efc0864c62bc"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "35dd4c13-00cc-4442-8232-7aeda3c5dc01"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14990"
+ ],
+ "x-ms-correlation-request-id": [
+ "c30d0398-5a98-4f9b-9c7a-29bc1f213c56"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193631Z:c30d0398-5a98-4f9b-9c7a-29bc1f213c56"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:36:31 GMT"
+ ],
+ "Content-Length": [
+ "873"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 8\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"seageodr-gen5-gp.lkgt1aeda54f909eb.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"cloudSA\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloudlifter-runners-stage-sea/subnets/Gen5GeoDR\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 8,\r\n \"storageSizeInGB\": 256,\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"dnsZone\": \"lkgt1aeda54f909eb\",\r\n \"publicDataEndpointEnabled\": true,\r\n \"proxyOverride\": \"Proxy\",\r\n \"timezoneId\": \"UTC\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp\",\r\n \"name\": \"seageodr-gen5-gp\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-restore-2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLXRlc3QtcmVzdG9yZS0yP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"createMode\": \"RestoreLongTermRetentionBackup\",\r\n \"longTermRetentionBackupResourceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132270644280000000\"\r\n },\r\n \"location\": \"southeastasia\"\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "35beac5c-97c5-4b04-ad8a-972d6db8b36f"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "470"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/f58c3fd7-fa3f-44ae-be56-812155ee7cf2?api-version=2019-06-01-preview"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f58c3fd7-fa3f-44ae-be56-812155ee7cf2?api-version=2019-06-01-preview"
+ ],
+ "x-ms-request-id": [
+ "f58c3fd7-fa3f-44ae-be56-812155ee7cf2"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "1cc05d76-85d1-4829-a178-24d190f529c7"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193633Z:1cc05d76-85d1-4829-a178-24d190f529c7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:36:32 GMT"
+ ],
+ "Content-Length": [
+ "94"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"CreateManagedRestoreFromLtrBackupRequest\",\r\n \"startTime\": \"2020-03-04T19:36:33.17Z\"\r\n}",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f58c3fd7-fa3f-44ae-be56-812155ee7cf2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjU4YzNmZDctZmEzZi00NGFlLWJlNTYtODEyMTU1ZWU3Y2YyP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "4f0c9f75-feea-4e92-91fc-2003924ebb16"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14989"
+ ],
+ "x-ms-correlation-request-id": [
+ "6be84457-71d2-4553-85c1-b61a2fe3cf08"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193648Z:6be84457-71d2-4553-85c1-b61a2fe3cf08"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:36:48 GMT"
+ ],
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f58c3fd7-fa3f-44ae-be56-812155ee7cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:36:33.17Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f58c3fd7-fa3f-44ae-be56-812155ee7cf2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjU4YzNmZDctZmEzZi00NGFlLWJlNTYtODEyMTU1ZWU3Y2YyP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "2d9cabb9-4248-439b-8052-2e3364b5e530"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14988"
+ ],
+ "x-ms-correlation-request-id": [
+ "2849557b-7f5d-46a6-ab7b-d966f7fd2df0"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193704Z:2849557b-7f5d-46a6-ab7b-d966f7fd2df0"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:37:03 GMT"
+ ],
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f58c3fd7-fa3f-44ae-be56-812155ee7cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:36:33.17Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f58c3fd7-fa3f-44ae-be56-812155ee7cf2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjU4YzNmZDctZmEzZi00NGFlLWJlNTYtODEyMTU1ZWU3Y2YyP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "236cc9c5-a829-49a7-9d21-f55ffe747dd6"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14987"
+ ],
+ "x-ms-correlation-request-id": [
+ "e626da9f-4d20-46cc-b92d-9ac98659af55"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193719Z:e626da9f-4d20-46cc-b92d-9ac98659af55"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:37:18 GMT"
+ ],
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f58c3fd7-fa3f-44ae-be56-812155ee7cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:36:33.17Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f58c3fd7-fa3f-44ae-be56-812155ee7cf2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjU4YzNmZDctZmEzZi00NGFlLWJlNTYtODEyMTU1ZWU3Y2YyP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "7f1c2ac3-112f-4bef-9d49-d3950dc0679d"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14986"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-correlation-request-id": [
+ "a4b340ca-1286-4b2b-a8dd-2c8c08eaffff"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193734Z:a4b340ca-1286-4b2b-a8dd-2c8c08eaffff"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:37:34 GMT"
+ ],
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f58c3fd7-fa3f-44ae-be56-812155ee7cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:36:33.17Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f58c3fd7-fa3f-44ae-be56-812155ee7cf2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjU4YzNmZDctZmEzZi00NGFlLWJlNTYtODEyMTU1ZWU3Y2YyP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "eb489ad5-b0b1-470e-a52e-42644e3fe7c3"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14985"
+ ],
+ "x-ms-correlation-request-id": [
+ "ef333b67-e438-46d7-a3fc-4a919bd5ff8f"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193750Z:ef333b67-e438-46d7-a3fc-4a919bd5ff8f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:37:50 GMT"
+ ],
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f58c3fd7-fa3f-44ae-be56-812155ee7cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:36:33.17Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f58c3fd7-fa3f-44ae-be56-812155ee7cf2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjU4YzNmZDctZmEzZi00NGFlLWJlNTYtODEyMTU1ZWU3Y2YyP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "ba96c546-2ca6-42cc-8173-df5d6accaa1c"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-correlation-request-id": [
+ "5a92631c-c99f-46eb-bb2e-ae90bca3497d"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193805Z:5a92631c-c99f-46eb-bb2e-ae90bca3497d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:38:05 GMT"
+ ],
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f58c3fd7-fa3f-44ae-be56-812155ee7cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:36:33.17Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f58c3fd7-fa3f-44ae-be56-812155ee7cf2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjU4YzNmZDctZmEzZi00NGFlLWJlNTYtODEyMTU1ZWU3Y2YyP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "88ac18a6-21b3-4ec1-b901-4629fb9da01c"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14983"
+ ],
+ "x-ms-correlation-request-id": [
+ "5035108c-d654-48eb-b9d0-02b20f9185bb"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193821Z:5035108c-d654-48eb-b9d0-02b20f9185bb"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:38:21 GMT"
+ ],
+ "Content-Length": [
+ "106"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f58c3fd7-fa3f-44ae-be56-812155ee7cf2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-03-04T19:36:33.17Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-restore-2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLXRlc3QtcmVzdG9yZS0yP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "ceb2a956-1a50-4d67-a960-99729c7ba86d"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14982"
+ ],
+ "x-ms-correlation-request-id": [
+ "a686bcef-a105-4e05-a729-0f03dc5d1036"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193821Z:a686bcef-a105-4e05-a729-0f03dc5d1036"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:38:21 GMT"
+ ],
+ "Content-Length": [
+ "439"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2020-03-04T19:36:34.06Z\",\r\n \"defaultSecondaryLocation\": \"northeurope\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-restore-2\",\r\n \"name\": \"ps-test-restore-2\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-restore-2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLXRlc3QtcmVzdG9yZS0yP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d9a1b712-a717-4a6c-9ccc-e47f67a9001c"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "d60b0035-4769-4f4e-99be-ae32e8357ff9"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14975"
+ ],
+ "x-ms-correlation-request-id": [
+ "055dc5df-22c6-400b-98fd-f5ae4da0259c"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193840Z:055dc5df-22c6-400b-98fd-f5ae4da0259c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:38:39 GMT"
+ ],
+ "Content-Length": [
+ "439"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2020-03-04T19:36:34.06Z\",\r\n \"defaultSecondaryLocation\": \"northeurope\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-restore-2\",\r\n \"name\": \"ps-test-restore-2\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-2/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=false&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2xvbmdUZXJtUmV0ZW50aW9uTWFuYWdlZEluc3RhbmNlcy9zZWFnZW9kci1nZW41LWdwL2xvbmdUZXJtUmV0ZW50aW9uRGF0YWJhc2VzL3BzLXRlc3QtMi9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZUJhY2t1cHM/b25seUxhdGVzdFBlckRhdGFiYXNlPWZhbHNlJmFwaS12ZXJzaW9uPTIwMTgtMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "e49affdc-e178-42a3-b2b6-48f7574b7cf3"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "7c3a4203-2e88-4509-86ec-e1e67b079ba8"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "e3b9d7b5-d562-471e-a0b8-805c45051fda"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193822Z:e3b9d7b5-d562-471e-a0b8-805c45051fda"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:38:21 GMT"
+ ],
+ "Content-Length": [
+ "754"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-2\",\r\n \"backupTime\": \"2020-03-03T14:11:22Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:22Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-2/longTermRetentionManagedInstanceBackups/a2a0bd4a-5dab-4907-a0f1-5bcfe9053e47;132277182820000000\",\r\n \"name\": \"a2a0bd4a-5dab-4907-a0f1-5bcfe9053e47;132277182820000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-2/longTermRetentionManagedInstanceBackups/a2a0bd4a-5dab-4907-a0f1-5bcfe9053e47%3B132277182820000000?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2xvbmdUZXJtUmV0ZW50aW9uTWFuYWdlZEluc3RhbmNlcy9zZWFnZW9kci1nZW41LWdwL2xvbmdUZXJtUmV0ZW50aW9uRGF0YWJhc2VzL3BzLXRlc3QtMi9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZUJhY2t1cHMvYTJhMGJkNGEtNWRhYi00OTA3LWEwZjEtNWJjZmU5MDUzZTQ3JTNCMTMyMjc3MTgyODIwMDAwMDAwP2FwaS12ZXJzaW9uPTIwMTgtMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "24db0d2e-d970-467f-b5b9-60781d3bc3b3"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "526a9a99-a6e8-4d97-9f5f-25ef01c0655b"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14980"
+ ],
+ "x-ms-correlation-request-id": [
+ "9e60a198-0b7e-45d6-9534-03761cca51a0"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193822Z:9e60a198-0b7e-45d6-9534-03761cca51a0"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:38:22 GMT"
+ ],
+ "Content-Length": [
+ "742"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-2\",\r\n \"backupTime\": \"2020-03-03T14:11:22Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:22Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-2/longTermRetentionManagedInstanceBackups/a2a0bd4a-5dab-4907-a0f1-5bcfe9053e47;132277182820000000\",\r\n \"name\": \"a2a0bd4a-5dab-4907-a0f1-5bcfe9053e47;132277182820000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-2/longTermRetentionManagedInstanceBackups/a2a0bd4a-5dab-4907-a0f1-5bcfe9053e47%3B132277182820000000?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2xvbmdUZXJtUmV0ZW50aW9uTWFuYWdlZEluc3RhbmNlcy9zZWFnZW9kci1nZW41LWdwL2xvbmdUZXJtUmV0ZW50aW9uRGF0YWJhc2VzL3BzLXRlc3QtMi9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZUJhY2t1cHMvYTJhMGJkNGEtNWRhYi00OTA3LWEwZjEtNWJjZmU5MDUzZTQ3JTNCMTMyMjc3MTgyODIwMDAwMDAwP2FwaS12ZXJzaW9uPTIwMTgtMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6281b72d-ad65-4bb4-9f93-101ad57a4c3a"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstanceBackupOperationResults/1d23ecc2-3d38-419e-b02d-b859083ba00d?api-version=2018-06-01-preview"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstanceBackupAzureAsyncOperation/1d23ecc2-3d38-419e-b02d-b859083ba00d?api-version=2018-06-01-preview"
+ ],
+ "x-ms-request-id": [
+ "1d23ecc2-3d38-419e-b02d-b859083ba00d"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-deletes": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "63512286-aeb0-4b28-930a-e4c304c699c2"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193822Z:63512286-aeb0-4b28-930a-e4c304c699c2"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:38:22 GMT"
+ ],
+ "Content-Length": [
+ "70"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"DeleteLTRBackup\",\r\n \"startTime\": \"2020-03-04T19:38:22.743Z\"\r\n}",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstanceBackupAzureAsyncOperation/1d23ecc2-3d38-419e-b02d-b859083ba00d?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2xvbmdUZXJtUmV0ZW50aW9uTWFuYWdlZEluc3RhbmNlQmFja3VwQXp1cmVBc3luY09wZXJhdGlvbi8xZDIzZWNjMi0zZDM4LTQxOWUtYjAyZC1iODU5MDgzYmEwMGQ/YXBpLXZlcnNpb249MjAxOC0wNi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "c4d9dc89-5747-4aab-b230-a00ff8c502b7"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14979"
+ ],
+ "x-ms-correlation-request-id": [
+ "bb407d5d-f934-45dd-bbad-46135d40e5de"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193838Z:bb407d5d-f934-45dd-bbad-46135d40e5de"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:38:38 GMT"
+ ],
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"1d23ecc2-3d38-419e-b02d-b859083ba00d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-03-04T19:38:22.743Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstanceBackupOperationResults/1d23ecc2-3d38-419e-b02d-b859083ba00d?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL2xvbmdUZXJtUmV0ZW50aW9uTWFuYWdlZEluc3RhbmNlQmFja3VwT3BlcmF0aW9uUmVzdWx0cy8xZDIzZWNjMi0zZDM4LTQxOWUtYjAyZC1iODU5MDgzYmEwMGQ/YXBpLXZlcnNpb249MjAxOC0wNi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e6a4a52c-9289-4803-b2c7-0fc92469c85c"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14978"
+ ],
+ "x-ms-correlation-request-id": [
+ "d936fbb5-7700-4e90-b4da-4853a4b0df3f"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193839Z:d936fbb5-7700-4e90-b4da-4853a4b0df3f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:38:39 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLXRlc3QtMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "c3abf6ea-40f0-4906-ba2f-04dba2b55dd4"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "41a1c1b1-d733-471f-a7c8-6fda0759f6d3"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14977"
+ ],
+ "x-ms-correlation-request-id": [
+ "e2f73603-3ba9-4810-870a-347d0a8f91af"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193839Z:e2f73603-3ba9-4810-870a-347d0a8f91af"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:38:39 GMT"
+ ],
+ "Content-Length": [
+ "471"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2020-03-03T14:09:56.2Z\",\r\n \"earliestRestorePoint\": \"2020-03-03T14:11:24.56Z\",\r\n \"defaultSecondaryLocation\": \"northeurope\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-2\",\r\n \"name\": \"ps-test-2\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-2/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=false&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZXMvc2VhZ2VvZHItZ2VuNS1ncC9sb25nVGVybVJldGVudGlvbkRhdGFiYXNlcy9wcy10ZXN0LTIvbG9uZ1Rlcm1SZXRlbnRpb25NYW5hZ2VkSW5zdGFuY2VCYWNrdXBzP29ubHlMYXRlc3RQZXJEYXRhYmFzZT1mYWxzZSZhcGktdmVyc2lvbj0yMDE4LTA2LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4bea662e-fe39-4e80-8ea5-2e33e6be3467"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "272f540b-ebc9-41d6-a713-57c713aae3d1"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14976"
+ ],
+ "x-ms-correlation-request-id": [
+ "337c8ac2-909d-4ff4-a01b-aceb8599c178"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193839Z:337c8ac2-909d-4ff4-a01b-aceb8599c178"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:38:39 GMT"
+ ],
+ "Content-Length": [
+ "12"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": []\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-restore-2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLXRlc3QtcmVzdG9yZS0yP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1b724fb3-2302-4a5b-8ceb-138cfcc76ce7"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/648619f7-20a1-4159-a609-368ac888ea50?api-version=2019-06-01-preview"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/648619f7-20a1-4159-a609-368ac888ea50?api-version=2019-06-01-preview"
+ ],
+ "x-ms-request-id": [
+ "648619f7-20a1-4159-a609-368ac888ea50"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-deletes": [
+ "14998"
+ ],
+ "x-ms-correlation-request-id": [
+ "c8f9bfee-f0bd-4eef-80ab-763f784afd61"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193840Z:c8f9bfee-f0bd-4eef-80ab-763f784afd61"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:38:40 GMT"
+ ],
+ "Content-Length": [
+ "74"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2020-03-04T19:38:40.543Z\"\r\n}",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/648619f7-20a1-4159-a609-368ac888ea50?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNjQ4NjE5ZjctMjBhMS00MTU5LWE2MDktMzY4YWM4ODhlYTUwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "8ee37258-b3f0-43a6-ad0e-4d2bb0dd536e"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14974"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-correlation-request-id": [
+ "748155b9-8b64-4a42-af27-bc2701e12193"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193856Z:748155b9-8b64-4a42-af27-bc2701e12193"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:38:55 GMT"
+ ],
+ "Content-Length": [
+ "108"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"648619f7-20a1-4159-a609-368ac888ea50\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:38:40.543Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/648619f7-20a1-4159-a609-368ac888ea50?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNjQ4NjE5ZjctMjBhMS00MTU5LWE2MDktMzY4YWM4ODhlYTUwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "cf9db10f-fed9-48ed-8008-4ca6148c605b"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14973"
+ ],
+ "x-ms-correlation-request-id": [
+ "bfa10d35-e59d-4af7-a8a2-4be6ce6ae2a6"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193912Z:bfa10d35-e59d-4af7-a8a2-4be6ce6ae2a6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:11 GMT"
+ ],
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"648619f7-20a1-4159-a609-368ac888ea50\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-03-04T19:38:40.543Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/648619f7-20a1-4159-a609-368ac888ea50?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvNjQ4NjE5ZjctMjBhMS00MTU5LWE2MDktMzY4YWM4ODhlYTUwP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "4d717a15-bfa6-4803-8928-c09c9c16650b"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14972"
+ ],
+ "x-ms-correlation-request-id": [
+ "b133f4bf-bef7-4f47-9bc6-fbf8c3c78d93"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193912Z:b133f4bf-bef7-4f47-9bc6-fbf8c3c78d93"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:11 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 204
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "8cfb8b62-bcd6-4713-89ad-18097f75cc5b"
+ }
+}
\ No newline at end of file
diff --git a/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.ManagedDatabaseBackupTests/TestManagedInstanceLongTermRetentionPolicy.json b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.ManagedDatabaseBackupTests/TestManagedInstanceLongTermRetentionPolicy.json
new file mode 100644
index 000000000000..3b9c51f040f5
--- /dev/null
+++ b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.ManagedDatabaseBackupTests/TestManagedInstanceLongTermRetentionPolicy.json
@@ -0,0 +1,827 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-ltr-policy-test-1?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLWx0ci1wb2xpY3ktdGVzdC0xP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "e049b200-643a-4336-92f0-956311b1b7e0"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-failure-cause": [
+ "gateway"
+ ],
+ "x-ms-request-id": [
+ "06f30a3b-f1dd-4c3e-af49-2ebb8b7097b7"
+ ],
+ "x-ms-correlation-request-id": [
+ "06f30a3b-f1dd-4c3e-af49-2ebb8b7097b7"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T191639Z:06f30a3b-f1dd-4c3e-af49-2ebb8b7097b7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:16:39 GMT"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "197"
+ ]
+ },
+ "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-ltr-policy-test-1' under resource group 'cl_stage_sea_cv' was not found.\"\r\n }\r\n}",
+ "StatusCode": 404
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-ltr-policy-test-1?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLWx0ci1wb2xpY3ktdGVzdC0xP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "732665ff-ada0-45ae-8a59-1d82148d5dbc"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "bede4fd9-87ff-4e9b-84ee-74f19086b690"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T191715Z:bede4fd9-87ff-4e9b-84ee-74f19086b690"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:17:14 GMT"
+ ],
+ "Content-Length": [
+ "446"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2020-03-04T19:16:44.263Z\",\r\n \"defaultSecondaryLocation\": \"northeurope\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-ltr-policy-test-1\",\r\n \"name\": \"ps-ltr-policy-test-1\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3A/YXBpLXZlcnNpb249MjAxOC0wNi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d4850dc5-1966-4e57-a256-2418b68c9013"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "69997fc0-b685-4845-b976-f4e13e409f99"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14998"
+ ],
+ "x-ms-correlation-request-id": [
+ "30ea4aaf-6ce4-4d77-b12e-dee0a24cb598"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T191640Z:30ea4aaf-6ce4-4d77-b12e-dee0a24cb598"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:16:40 GMT"
+ ],
+ "Content-Length": [
+ "873"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 8\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"seageodr-gen5-gp.lkgt1aeda54f909eb.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"cloudSA\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloudlifter-runners-stage-sea/subnets/Gen5GeoDR\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 8,\r\n \"storageSizeInGB\": 256,\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"dnsZone\": \"lkgt1aeda54f909eb\",\r\n \"publicDataEndpointEnabled\": true,\r\n \"proxyOverride\": \"Proxy\",\r\n \"timezoneId\": \"UTC\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp\",\r\n \"name\": \"seageodr-gen5-gp\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-ltr-policy-test-1?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLWx0ci1wb2xpY3ktdGVzdC0xP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"southeastasia\"\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "950ca21d-d61e-4585-910b-705763089359"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "35"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/a5d58d95-42f3-495c-bb08-1c7cf947facd?api-version=2019-06-01-preview"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/a5d58d95-42f3-495c-bb08-1c7cf947facd?api-version=2019-06-01-preview"
+ ],
+ "x-ms-request-id": [
+ "a5d58d95-42f3-495c-bb08-1c7cf947facd"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "f6fe47ac-89bd-4f63-a71a-187bf68cf89e"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T191644Z:f6fe47ac-89bd-4f63-a71a-187bf68cf89e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:16:43 GMT"
+ ],
+ "Content-Length": [
+ "76"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"CreateManagedDatabase\",\r\n \"startTime\": \"2020-03-04T19:16:43.983Z\"\r\n}",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/a5d58d95-42f3-495c-bb08-1c7cf947facd?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vYTVkNThkOTUtNDJmMy00OTVjLWJiMDgtMWM3Y2Y5NDdmYWNkP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "23612cb5-4c2e-443a-a319-2700bb78ec39"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14997"
+ ],
+ "x-ms-correlation-request-id": [
+ "be99518c-f2fb-4ec0-870d-bbcfae5e05ce"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T191659Z:be99518c-f2fb-4ec0-870d-bbcfae5e05ce"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:16:59 GMT"
+ ],
+ "Content-Length": [
+ "108"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"a5d58d95-42f3-495c-bb08-1c7cf947facd\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:16:43.983Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/a5d58d95-42f3-495c-bb08-1c7cf947facd?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vYTVkNThkOTUtNDJmMy00OTVjLWJiMDgtMWM3Y2Y5NDdmYWNkP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "b061a063-a496-450a-882e-1cdcd59aaf33"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14996"
+ ],
+ "x-ms-correlation-request-id": [
+ "3fbd05ce-b723-44bf-a52a-8044e1988446"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T191714Z:3fbd05ce-b723-44bf-a52a-8044e1988446"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:17:14 GMT"
+ ],
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"a5d58d95-42f3-495c-bb08-1c7cf947facd\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-03-04T19:16:43.983Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-ltr-policy-test-1/backupLongTermRetentionPolicies/default?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLWx0ci1wb2xpY3ktdGVzdC0xL2JhY2t1cExvbmdUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE4LTA2LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "e0632be1-1a87-4d4c-9117-1ff69219825f"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "eab10148-4dc8-4e23-afff-8af1efd465e0"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14994"
+ ],
+ "x-ms-correlation-request-id": [
+ "1d815f61-4f5a-4081-a293-efbcde341fe5"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T191715Z:1d815f61-4f5a-4081-a293-efbcde341fe5"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:17:14 GMT"
+ ],
+ "Content-Length": [
+ "423"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"weeklyRetention\": \"PT0S\",\r\n \"monthlyRetention\": \"PT0S\",\r\n \"yearlyRetention\": \"PT0S\",\r\n \"weekOfYear\": 0\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-ltr-policy-test-1/backupLongTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases/backupLongTermRetentionPolicy\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-ltr-policy-test-1/backupLongTermRetentionPolicies/default?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLWx0ci1wb2xpY3ktdGVzdC0xL2JhY2t1cExvbmdUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE4LTA2LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a4a548fc-15df-447c-8556-482a5c8c6bf9"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14990"
+ ],
+ "x-ms-correlation-request-id": [
+ "98a560ac-333b-490f-b9e0-3a76f14447bf"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T191803Z:98a560ac-333b-490f-b9e0-3a76f14447bf"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:18:02 GMT"
+ ],
+ "Content-Length": [
+ "422"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"weeklyRetention\": \"P1W\",\r\n \"monthlyRetention\": \"PT0S\",\r\n \"yearlyRetention\": \"PT0S\",\r\n \"weekOfYear\": 0\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-ltr-policy-test-1/backupLongTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases/backupLongTermRetentionPolicy\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-ltr-policy-test-1/backupLongTermRetentionPolicies/default?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLWx0ci1wb2xpY3ktdGVzdC0xL2JhY2t1cExvbmdUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE4LTA2LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "9f35cbb1-f67d-4a02-b63b-f4ae10f85dee"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "c25ac84e-2082-4448-a179-2eea6832a68b"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14989"
+ ],
+ "x-ms-correlation-request-id": [
+ "2544eec2-5b74-4095-a5a6-8958732baab8"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T191803Z:2544eec2-5b74-4095-a5a6-8958732baab8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:18:02 GMT"
+ ],
+ "Content-Length": [
+ "422"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"weeklyRetention\": \"P1W\",\r\n \"monthlyRetention\": \"PT0S\",\r\n \"yearlyRetention\": \"PT0S\",\r\n \"weekOfYear\": 0\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-ltr-policy-test-1/backupLongTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases/backupLongTermRetentionPolicy\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-ltr-policy-test-1/backupLongTermRetentionPolicies/default?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLWx0ci1wb2xpY3ktdGVzdC0xL2JhY2t1cExvbmdUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE4LTA2LTAxLXByZXZpZXc=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"weeklyRetention\": \"P1W\",\r\n \"weekOfYear\": 0\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "259caad9-f291-48c2-ac69-da3cc711e201"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "80"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/managedInstanceLongTermRetentionPolicyOperationResults/fa30e18a-ab3b-499a-902a-c6f59e8f10e5?api-version=2018-06-01-preview"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/managedInstanceLongTermRetentionPolicyAzureAsyncOperation/fa30e18a-ab3b-499a-902a-c6f59e8f10e5?api-version=2018-06-01-preview"
+ ],
+ "x-ms-request-id": [
+ "fa30e18a-ab3b-499a-902a-c6f59e8f10e5"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "67d26423-ebd2-4ce8-ab19-1e8f1ddaa305"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T191716Z:67d26423-ebd2-4ce8-ab19-1e8f1ddaa305"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:17:16 GMT"
+ ],
+ "Content-Length": [
+ "91"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"UpsertDatabaseBackupArchivalPolicyV2\",\r\n \"startTime\": \"2020-03-04T19:17:16.073Z\"\r\n}",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/managedInstanceLongTermRetentionPolicyAzureAsyncOperation/fa30e18a-ab3b-499a-902a-c6f59e8f10e5?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9tYW5hZ2VkSW5zdGFuY2VMb25nVGVybVJldGVudGlvblBvbGljeUF6dXJlQXN5bmNPcGVyYXRpb24vZmEzMGUxOGEtYWIzYi00OTlhLTkwMmEtYzZmNTllOGYxMGU1P2FwaS12ZXJzaW9uPTIwMTgtMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "ce33f8e0-b260-48dc-9204-e9bf712eec4a"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14993"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-correlation-request-id": [
+ "47373787-c3da-48a7-8491-5327770c86b5"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T191731Z:47373787-c3da-48a7-8491-5327770c86b5"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:17:31 GMT"
+ ],
+ "Content-Length": [
+ "108"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"fa30e18a-ab3b-499a-902a-c6f59e8f10e5\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:17:16.073Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/managedInstanceLongTermRetentionPolicyAzureAsyncOperation/fa30e18a-ab3b-499a-902a-c6f59e8f10e5?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9tYW5hZ2VkSW5zdGFuY2VMb25nVGVybVJldGVudGlvblBvbGljeUF6dXJlQXN5bmNPcGVyYXRpb24vZmEzMGUxOGEtYWIzYi00OTlhLTkwMmEtYzZmNTllOGYxMGU1P2FwaS12ZXJzaW9uPTIwMTgtMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "a49a58c8-eb27-43dc-bce7-8ccac1ae4bd6"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "b04d670d-737d-46b3-b306-cf37d0f27751"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T191747Z:b04d670d-737d-46b3-b306-cf37d0f27751"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:17:47 GMT"
+ ],
+ "Content-Length": [
+ "108"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"fa30e18a-ab3b-499a-902a-c6f59e8f10e5\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:17:16.073Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/managedInstanceLongTermRetentionPolicyAzureAsyncOperation/fa30e18a-ab3b-499a-902a-c6f59e8f10e5?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9tYW5hZ2VkSW5zdGFuY2VMb25nVGVybVJldGVudGlvblBvbGljeUF6dXJlQXN5bmNPcGVyYXRpb24vZmEzMGUxOGEtYWIzYi00OTlhLTkwMmEtYzZmNTllOGYxMGU1P2FwaS12ZXJzaW9uPTIwMTgtMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "f741c666-fec3-4806-a861-31392d71cb42"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-correlation-request-id": [
+ "74cb7d85-865f-49d6-b6fe-ae42f43110e2"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T191802Z:74cb7d85-865f-49d6-b6fe-ae42f43110e2"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:18:02 GMT"
+ ],
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"fa30e18a-ab3b-499a-902a-c6f59e8f10e5\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-03-04T19:17:16.073Z\"\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "8cfb8b62-bcd6-4713-89ad-18097f75cc5b"
+ }
+}
\ No newline at end of file
diff --git a/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.ManagedDatabaseBackupTests/TestManagedInstanceLongTermRetentionResourceGroupBasedBackup.json b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.ManagedDatabaseBackupTests/TestManagedInstanceLongTermRetentionResourceGroupBasedBackup.json
new file mode 100644
index 000000000000..7b07154d2a82
--- /dev/null
+++ b/src/Sql/Sql.Test/SessionRecords/Microsoft.Azure.Commands.Sql.Test.ScenarioTests.ManagedDatabaseBackupTests/TestManagedInstanceLongTermRetentionResourceGroupBasedBackup.json
@@ -0,0 +1,1751 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=false&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZUJhY2t1cHM/b25seUxhdGVzdFBlckRhdGFiYXNlPWZhbHNlJmFwaS12ZXJzaW9uPTIwMTgtMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "cee96e63-05dd-4c99-9f23-08f55729f37c"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "383d731e-ad86-4c38-bb66-c580ef03cb3b"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "cff22b3c-1b76-403d-9437-1ef70f735287"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193925Z:cff22b3c-1b76-403d-9437-1ef70f735287"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:24 GMT"
+ ],
+ "Content-Length": [
+ "12900"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-e18652d0-99a7-4bc7-9eb3-733ae3dae337\",\r\n \"backupTime\": \"2020-03-03T07:01:59Z\",\r\n \"backupExpirationTime\": \"2020-03-10T07:01:59Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-e18652d0-99a7-4bc7-9eb3-733ae3dae337/longTermRetentionManagedInstanceBackups/378455bf-dba5-4948-bfee-072c9223a4ed;132276925190000000\",\r\n \"name\": \"378455bf-dba5-4948-bfee-072c9223a4ed;132276925190000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"target1\",\r\n \"backupTime\": \"2020-02-25T00:33:48Z\",\r\n \"backupExpirationTime\": \"2020-03-10T00:33:48Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132270644280000000\",\r\n \"name\": \"ae1ea149-d5ff-4554-9333-33debe0b92ff;132270644280000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"target1\",\r\n \"backupTime\": \"2020-03-02T20:01:47Z\",\r\n \"backupExpirationTime\": \"2020-03-16T20:01:47Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"name\": \"ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test\",\r\n \"backupTime\": \"2020-02-26T04:48:57Z\",\r\n \"backupExpirationTime\": \"2020-03-10T12:37:13.9382803Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test/longTermRetentionManagedInstanceBackups/4923a0c1-bfc4-44e3-bf83-3ea3fc741d94;132271661370000000\",\r\n \"name\": \"4923a0c1-bfc4-44e3-bf83-3ea3fc741d94;132271661370000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-5\",\r\n \"backupTime\": \"2020-03-03T14:16:38Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:38Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-5/longTermRetentionManagedInstanceBackups/151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"name\": \"151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-455\",\r\n \"backupTime\": \"2020-02-27T20:49:41Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:23:48.8462413Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-455/longTermRetentionManagedInstanceBackups/af08281c-d084-4ba6-accd-506843f03e87;132273101810000000\",\r\n \"name\": \"af08281c-d084-4ba6-accd-506843f03e87;132273101810000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-1\",\r\n \"backupTime\": \"2020-03-03T14:06:27Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:06:27Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups/0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"name\": \"0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-ltr-policy-test\",\r\n \"backupTime\": \"2020-03-04T01:25:46Z\",\r\n \"backupExpirationTime\": \"2020-03-11T01:25:46Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-ltr-policy-test/longTermRetentionManagedInstanceBackups/f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"name\": \"f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-4\",\r\n \"backupTime\": \"2020-03-03T14:16:35Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:35Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-4/longTermRetentionManagedInstanceBackups/3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"name\": \"3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test\",\r\n \"databaseDeletionTime\": \"2020-02-24T14:56:44.717Z\",\r\n \"backupTime\": \"2020-02-22T06:04:15Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:10:45.6385112Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test/longTermRetentionManagedInstanceBackups/5e3f5f6c-df6f-4c82-a447-740ee7153b2b;132268250550000000\",\r\n \"name\": \"5e3f5f6c-df6f-4c82-a447-740ee7153b2b;132268250550000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8305\",\r\n \"backupTime\": \"2020-02-27T23:09:39Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:59:29.7608268Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8305/longTermRetentionManagedInstanceBackups/5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"name\": \"5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-3\",\r\n \"backupTime\": \"2020-03-03T14:11:24Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:24Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"name\": \"f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-b083bf22-b64c-42ee-958f-a5ee0a512f75\",\r\n \"backupTime\": \"2020-03-03T13:51:21Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:51:21Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-b083bf22-b64c-42ee-958f-a5ee0a512f75/longTermRetentionManagedInstanceBackups/91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"name\": \"91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8750\",\r\n \"backupTime\": \"2020-02-25T19:33:51Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:55:06.3032425Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8750/longTermRetentionManagedInstanceBackups/869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"name\": \"869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test\",\r\n \"backupTime\": \"2020-03-03T14:01:29Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:01:29Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test/longTermRetentionManagedInstanceBackups/723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"name\": \"723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-5830\",\r\n \"backupTime\": \"2020-03-03T02:26:49Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:01:51.29337Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-5830/longTermRetentionManagedInstanceBackups/733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"name\": \"733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-j\",\r\n \"backupTime\": \"2020-03-03T06:56:52Z\",\r\n \"backupExpirationTime\": \"2020-03-10T06:56:52Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-j/longTermRetentionManagedInstanceBackups/d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"name\": \"d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=false&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZUJhY2t1cHM/b25seUxhdGVzdFBlckRhdGFiYXNlPWZhbHNlJmFwaS12ZXJzaW9uPTIwMTgtMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "ee76853e-3301-4e45-b865-28c426ca2da7"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "f1a1f3f3-62bd-4449-afb5-71ac9212f2ca"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14987"
+ ],
+ "x-ms-correlation-request-id": [
+ "542f7c67-073e-4076-b25f-9f5b84646221"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193929Z:542f7c67-073e-4076-b25f-9f5b84646221"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:28 GMT"
+ ],
+ "Content-Length": [
+ "12900"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-e18652d0-99a7-4bc7-9eb3-733ae3dae337\",\r\n \"backupTime\": \"2020-03-03T07:01:59Z\",\r\n \"backupExpirationTime\": \"2020-03-10T07:01:59Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-e18652d0-99a7-4bc7-9eb3-733ae3dae337/longTermRetentionManagedInstanceBackups/378455bf-dba5-4948-bfee-072c9223a4ed;132276925190000000\",\r\n \"name\": \"378455bf-dba5-4948-bfee-072c9223a4ed;132276925190000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"target1\",\r\n \"backupTime\": \"2020-02-25T00:33:48Z\",\r\n \"backupExpirationTime\": \"2020-03-10T00:33:48Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132270644280000000\",\r\n \"name\": \"ae1ea149-d5ff-4554-9333-33debe0b92ff;132270644280000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"target1\",\r\n \"backupTime\": \"2020-03-02T20:01:47Z\",\r\n \"backupExpirationTime\": \"2020-03-16T20:01:47Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"name\": \"ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test\",\r\n \"backupTime\": \"2020-02-26T04:48:57Z\",\r\n \"backupExpirationTime\": \"2020-03-10T12:37:13.9382803Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test/longTermRetentionManagedInstanceBackups/4923a0c1-bfc4-44e3-bf83-3ea3fc741d94;132271661370000000\",\r\n \"name\": \"4923a0c1-bfc4-44e3-bf83-3ea3fc741d94;132271661370000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-5\",\r\n \"backupTime\": \"2020-03-03T14:16:38Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:38Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-5/longTermRetentionManagedInstanceBackups/151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"name\": \"151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-455\",\r\n \"backupTime\": \"2020-02-27T20:49:41Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:23:48.8462413Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-455/longTermRetentionManagedInstanceBackups/af08281c-d084-4ba6-accd-506843f03e87;132273101810000000\",\r\n \"name\": \"af08281c-d084-4ba6-accd-506843f03e87;132273101810000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-1\",\r\n \"backupTime\": \"2020-03-03T14:06:27Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:06:27Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups/0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"name\": \"0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-ltr-policy-test\",\r\n \"backupTime\": \"2020-03-04T01:25:46Z\",\r\n \"backupExpirationTime\": \"2020-03-11T01:25:46Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-ltr-policy-test/longTermRetentionManagedInstanceBackups/f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"name\": \"f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-4\",\r\n \"backupTime\": \"2020-03-03T14:16:35Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:35Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-4/longTermRetentionManagedInstanceBackups/3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"name\": \"3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test\",\r\n \"databaseDeletionTime\": \"2020-02-24T14:56:44.717Z\",\r\n \"backupTime\": \"2020-02-22T06:04:15Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:10:45.6385112Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test/longTermRetentionManagedInstanceBackups/5e3f5f6c-df6f-4c82-a447-740ee7153b2b;132268250550000000\",\r\n \"name\": \"5e3f5f6c-df6f-4c82-a447-740ee7153b2b;132268250550000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8305\",\r\n \"backupTime\": \"2020-02-27T23:09:39Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:59:29.7608268Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8305/longTermRetentionManagedInstanceBackups/5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"name\": \"5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-3\",\r\n \"backupTime\": \"2020-03-03T14:11:24Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:24Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"name\": \"f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-b083bf22-b64c-42ee-958f-a5ee0a512f75\",\r\n \"backupTime\": \"2020-03-03T13:51:21Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:51:21Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-b083bf22-b64c-42ee-958f-a5ee0a512f75/longTermRetentionManagedInstanceBackups/91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"name\": \"91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8750\",\r\n \"backupTime\": \"2020-02-25T19:33:51Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:55:06.3032425Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8750/longTermRetentionManagedInstanceBackups/869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"name\": \"869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test\",\r\n \"backupTime\": \"2020-03-03T14:01:29Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:01:29Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test/longTermRetentionManagedInstanceBackups/723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"name\": \"723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-5830\",\r\n \"backupTime\": \"2020-03-03T02:26:49Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:01:51.29337Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-5830/longTermRetentionManagedInstanceBackups/733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"name\": \"733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-j\",\r\n \"backupTime\": \"2020-03-03T06:56:52Z\",\r\n \"backupExpirationTime\": \"2020-03-10T06:56:52Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-j/longTermRetentionManagedInstanceBackups/d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"name\": \"d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=false&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZXMvc2VhZ2VvZHItZ2VuNS1ncC9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZUJhY2t1cHM/b25seUxhdGVzdFBlckRhdGFiYXNlPWZhbHNlJmFwaS12ZXJzaW9uPTIwMTgtMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "54ee8f2b-f90c-4253-9297-0a35bc584d15"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "6c3bf7d3-a2de-4eea-870c-5eae697ad83f"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14998"
+ ],
+ "x-ms-correlation-request-id": [
+ "5e7c933e-e056-43e8-89a5-f2dcb79ba8ab"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193925Z:5e7c933e-e056-43e8-89a5-f2dcb79ba8ab"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:25 GMT"
+ ],
+ "Content-Length": [
+ "12900"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-e18652d0-99a7-4bc7-9eb3-733ae3dae337\",\r\n \"backupTime\": \"2020-03-03T07:01:59Z\",\r\n \"backupExpirationTime\": \"2020-03-10T07:01:59Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-e18652d0-99a7-4bc7-9eb3-733ae3dae337/longTermRetentionManagedInstanceBackups/378455bf-dba5-4948-bfee-072c9223a4ed;132276925190000000\",\r\n \"name\": \"378455bf-dba5-4948-bfee-072c9223a4ed;132276925190000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"target1\",\r\n \"backupTime\": \"2020-02-25T00:33:48Z\",\r\n \"backupExpirationTime\": \"2020-03-10T00:33:48Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132270644280000000\",\r\n \"name\": \"ae1ea149-d5ff-4554-9333-33debe0b92ff;132270644280000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"target1\",\r\n \"backupTime\": \"2020-03-02T20:01:47Z\",\r\n \"backupExpirationTime\": \"2020-03-16T20:01:47Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"name\": \"ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test\",\r\n \"backupTime\": \"2020-02-26T04:48:57Z\",\r\n \"backupExpirationTime\": \"2020-03-10T12:37:13.9382803Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test/longTermRetentionManagedInstanceBackups/4923a0c1-bfc4-44e3-bf83-3ea3fc741d94;132271661370000000\",\r\n \"name\": \"4923a0c1-bfc4-44e3-bf83-3ea3fc741d94;132271661370000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-5\",\r\n \"backupTime\": \"2020-03-03T14:16:38Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:38Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-5/longTermRetentionManagedInstanceBackups/151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"name\": \"151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-455\",\r\n \"backupTime\": \"2020-02-27T20:49:41Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:23:48.8462413Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-455/longTermRetentionManagedInstanceBackups/af08281c-d084-4ba6-accd-506843f03e87;132273101810000000\",\r\n \"name\": \"af08281c-d084-4ba6-accd-506843f03e87;132273101810000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-1\",\r\n \"backupTime\": \"2020-03-03T14:06:27Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:06:27Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups/0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"name\": \"0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-ltr-policy-test\",\r\n \"backupTime\": \"2020-03-04T01:25:46Z\",\r\n \"backupExpirationTime\": \"2020-03-11T01:25:46Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-ltr-policy-test/longTermRetentionManagedInstanceBackups/f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"name\": \"f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-4\",\r\n \"backupTime\": \"2020-03-03T14:16:35Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:35Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-4/longTermRetentionManagedInstanceBackups/3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"name\": \"3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test\",\r\n \"databaseDeletionTime\": \"2020-02-24T14:56:44.717Z\",\r\n \"backupTime\": \"2020-02-22T06:04:15Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:10:45.6385112Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test/longTermRetentionManagedInstanceBackups/5e3f5f6c-df6f-4c82-a447-740ee7153b2b;132268250550000000\",\r\n \"name\": \"5e3f5f6c-df6f-4c82-a447-740ee7153b2b;132268250550000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8305\",\r\n \"backupTime\": \"2020-02-27T23:09:39Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:59:29.7608268Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8305/longTermRetentionManagedInstanceBackups/5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"name\": \"5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-3\",\r\n \"backupTime\": \"2020-03-03T14:11:24Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:24Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"name\": \"f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-b083bf22-b64c-42ee-958f-a5ee0a512f75\",\r\n \"backupTime\": \"2020-03-03T13:51:21Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:51:21Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-b083bf22-b64c-42ee-958f-a5ee0a512f75/longTermRetentionManagedInstanceBackups/91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"name\": \"91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8750\",\r\n \"backupTime\": \"2020-02-25T19:33:51Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:55:06.3032425Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8750/longTermRetentionManagedInstanceBackups/869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"name\": \"869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test\",\r\n \"backupTime\": \"2020-03-03T14:01:29Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:01:29Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test/longTermRetentionManagedInstanceBackups/723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"name\": \"723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-5830\",\r\n \"backupTime\": \"2020-03-03T02:26:49Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:01:51.29337Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-5830/longTermRetentionManagedInstanceBackups/733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"name\": \"733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-j\",\r\n \"backupTime\": \"2020-03-03T06:56:52Z\",\r\n \"backupExpirationTime\": \"2020-03-10T06:56:52Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-j/longTermRetentionManagedInstanceBackups/d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"name\": \"d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=false&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZXMvc2VhZ2VvZHItZ2VuNS1ncC9sb25nVGVybVJldGVudGlvbkRhdGFiYXNlcy9wcy10ZXN0LTMvbG9uZ1Rlcm1SZXRlbnRpb25NYW5hZ2VkSW5zdGFuY2VCYWNrdXBzP29ubHlMYXRlc3RQZXJEYXRhYmFzZT1mYWxzZSZhcGktdmVyc2lvbj0yMDE4LTA2LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "ff27a4b3-7fa3-45a4-9429-918a09736c11"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "0876cd22-3972-4736-a7e3-0266e09801f7"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14997"
+ ],
+ "x-ms-correlation-request-id": [
+ "e18418aa-e01f-4fd7-b485-990fa39625fe"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193926Z:e18418aa-e01f-4fd7-b485-990fa39625fe"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:25 GMT"
+ ],
+ "Content-Length": [
+ "754"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-3\",\r\n \"backupTime\": \"2020-03-03T14:11:24Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:24Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"name\": \"f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=false&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZXMvc2VhZ2VvZHItZ2VuNS1ncC9sb25nVGVybVJldGVudGlvbkRhdGFiYXNlcy9wcy10ZXN0LTMvbG9uZ1Rlcm1SZXRlbnRpb25NYW5hZ2VkSW5zdGFuY2VCYWNrdXBzP29ubHlMYXRlc3RQZXJEYXRhYmFzZT1mYWxzZSZhcGktdmVyc2lvbj0yMDE4LTA2LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "acbbec82-5487-4a16-8520-d90fc8af2200"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "f179c285-fcf6-4f14-9dec-facf126087b0"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14994"
+ ],
+ "x-ms-correlation-request-id": [
+ "3e24c610-b2a6-4161-9ad2-9cfb08473ad4"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193927Z:3e24c610-b2a6-4161-9ad2-9cfb08473ad4"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:26 GMT"
+ ],
+ "Content-Length": [
+ "754"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-3\",\r\n \"backupTime\": \"2020-03-03T14:11:24Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:24Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"name\": \"f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911%3B132277182840000000?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZXMvc2VhZ2VvZHItZ2VuNS1ncC9sb25nVGVybVJldGVudGlvbkRhdGFiYXNlcy9wcy10ZXN0LTMvbG9uZ1Rlcm1SZXRlbnRpb25NYW5hZ2VkSW5zdGFuY2VCYWNrdXBzL2YxYTQ2MjViLTVmZmMtNDBmNy1hZDE2LWI0ZDI0YmM3ZTkxMSUzQjEzMjI3NzE4Mjg0MDAwMDAwMD9hcGktdmVyc2lvbj0yMDE4LTA2LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "0d068382-939d-42cd-9f36-efd8b60af6da"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "2ed76380-404b-490e-9119-c678fcfcf05e"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14996"
+ ],
+ "x-ms-correlation-request-id": [
+ "64c03578-d7a5-4400-b84d-7901cecd70b5"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193926Z:64c03578-d7a5-4400-b84d-7901cecd70b5"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:25 GMT"
+ ],
+ "Content-Length": [
+ "742"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-3\",\r\n \"backupTime\": \"2020-03-03T14:11:24Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:24Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"name\": \"f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911%3B132277182840000000?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZXMvc2VhZ2VvZHItZ2VuNS1ncC9sb25nVGVybVJldGVudGlvbkRhdGFiYXNlcy9wcy10ZXN0LTMvbG9uZ1Rlcm1SZXRlbnRpb25NYW5hZ2VkSW5zdGFuY2VCYWNrdXBzL2YxYTQ2MjViLTVmZmMtNDBmNy1hZDE2LWI0ZDI0YmM3ZTkxMSUzQjEzMjI3NzE4Mjg0MDAwMDAwMD9hcGktdmVyc2lvbj0yMDE4LTA2LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "abdb7cc8-6294-4ae5-ba4c-591975665306"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "cfc87e7a-aa10-4a31-97a6-0982b7ffc19f"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "27cd7a82-c732-493e-b766-239e0ce65e38"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193927Z:27cd7a82-c732-493e-b766-239e0ce65e38"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:27 GMT"
+ ],
+ "Content-Length": [
+ "742"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-3\",\r\n \"backupTime\": \"2020-03-03T14:11:24Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:24Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"name\": \"f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-3?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLXRlc3QtMz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "e040e38a-c180-45ce-bf2c-ffed882de461"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "4627b8bf-e1f0-451c-b37e-ad55d593b427"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "d98d5bf2-5026-44a7-8cfd-5b60f92efd3e"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193926Z:d98d5bf2-5026-44a7-8cfd-5b60f92efd3e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:26 GMT"
+ ],
+ "Content-Length": [
+ "473"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2020-03-03T14:10:40.88Z\",\r\n \"earliestRestorePoint\": \"2020-03-03T14:11:25.687Z\",\r\n \"defaultSecondaryLocation\": \"northeurope\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-3\",\r\n \"name\": \"ps-test-3\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-3?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLXRlc3QtMz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "7b66fae1-653b-42bf-89dc-e6bcf0cd916f"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "1f493e66-e797-41e0-a151-9b4d6ec25a1f"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14993"
+ ],
+ "x-ms-correlation-request-id": [
+ "5f42af5f-3ba0-46ad-9746-a099355e91d6"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193927Z:5f42af5f-3ba0-46ad-9746-a099355e91d6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:26 GMT"
+ ],
+ "Content-Length": [
+ "473"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2020-03-03T14:10:40.88Z\",\r\n \"earliestRestorePoint\": \"2020-03-03T14:11:25.687Z\",\r\n \"defaultSecondaryLocation\": \"northeurope\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-3\",\r\n \"name\": \"ps-test-3\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-3?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLXRlc3QtMz9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "2cf1e4fe-1e5c-4aa2-834b-bc03d5fa27fc"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e462f088-3008-4de8-ba0f-af9512d7fa7c"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14989"
+ ],
+ "x-ms-correlation-request-id": [
+ "df21c32a-6027-4f61-b5c2-f2cdec516144"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193928Z:df21c32a-6027-4f61-b5c2-f2cdec516144"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:28 GMT"
+ ],
+ "Content-Length": [
+ "473"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2020-03-03T14:10:40.88Z\",\r\n \"earliestRestorePoint\": \"2020-03-03T14:11:25.687Z\",\r\n \"defaultSecondaryLocation\": \"northeurope\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-3\",\r\n \"name\": \"ps-test-3\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=true&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZXMvc2VhZ2VvZHItZ2VuNS1ncC9sb25nVGVybVJldGVudGlvbkRhdGFiYXNlcy9wcy10ZXN0LTMvbG9uZ1Rlcm1SZXRlbnRpb25NYW5hZ2VkSW5zdGFuY2VCYWNrdXBzP29ubHlMYXRlc3RQZXJEYXRhYmFzZT10cnVlJmFwaS12ZXJzaW9uPTIwMTgtMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "42a50abf-9322-42f1-b717-99376d208c1f"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "35183b95-29dd-42e3-a285-3a667916d737"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-correlation-request-id": [
+ "d889e99f-fb56-4346-bac2-a73556e8ff55"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193928Z:d889e99f-fb56-4346-bac2-a73556e8ff55"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:27 GMT"
+ ],
+ "Content-Length": [
+ "754"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-3\",\r\n \"backupTime\": \"2020-03-03T14:11:24Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:24Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"name\": \"f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=true&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZXMvc2VhZ2VvZHItZ2VuNS1ncC9sb25nVGVybVJldGVudGlvbkRhdGFiYXNlcy9wcy10ZXN0LTMvbG9uZ1Rlcm1SZXRlbnRpb25NYW5hZ2VkSW5zdGFuY2VCYWNrdXBzP29ubHlMYXRlc3RQZXJEYXRhYmFzZT10cnVlJmFwaS12ZXJzaW9uPTIwMTgtMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "39251949-74c5-4380-ba71-ff8f82c9b952"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "daeeb4ce-ca0d-4c55-9a37-f13626bb4b29"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14988"
+ ],
+ "x-ms-correlation-request-id": [
+ "b013d6b3-b37a-4905-ac7f-602219de1b34"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193929Z:b013d6b3-b37a-4905-ac7f-602219de1b34"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:28 GMT"
+ ],
+ "Content-Length": [
+ "754"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-3\",\r\n \"backupTime\": \"2020-03-03T14:11:24Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:24Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"name\": \"f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionManagedInstanceBackups?onlyLatestPerDatabase=false&databaseState=All&api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvc291dGhlYXN0YXNpYS9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZXMvc2VhZ2VvZHItZ2VuNS1ncC9sb25nVGVybVJldGVudGlvbk1hbmFnZWRJbnN0YW5jZUJhY2t1cHM/b25seUxhdGVzdFBlckRhdGFiYXNlPWZhbHNlJmRhdGFiYXNlU3RhdGU9QWxsJmFwaS12ZXJzaW9uPTIwMTgtMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "aa4f28bd-bd37-4d73-9fbd-cb072d839c78"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e8be15cc-72c1-4f02-93c5-ecc849e07bf6"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14990"
+ ],
+ "x-ms-correlation-request-id": [
+ "274e5f08-801c-4a31-96eb-faa0adfa4209"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193928Z:274e5f08-801c-4a31-96eb-faa0adfa4209"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:27 GMT"
+ ],
+ "Content-Length": [
+ "12900"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-e18652d0-99a7-4bc7-9eb3-733ae3dae337\",\r\n \"backupTime\": \"2020-03-03T07:01:59Z\",\r\n \"backupExpirationTime\": \"2020-03-10T07:01:59Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-e18652d0-99a7-4bc7-9eb3-733ae3dae337/longTermRetentionManagedInstanceBackups/378455bf-dba5-4948-bfee-072c9223a4ed;132276925190000000\",\r\n \"name\": \"378455bf-dba5-4948-bfee-072c9223a4ed;132276925190000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"target1\",\r\n \"backupTime\": \"2020-02-25T00:33:48Z\",\r\n \"backupExpirationTime\": \"2020-03-10T00:33:48Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132270644280000000\",\r\n \"name\": \"ae1ea149-d5ff-4554-9333-33debe0b92ff;132270644280000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"target1\",\r\n \"backupTime\": \"2020-03-02T20:01:47Z\",\r\n \"backupExpirationTime\": \"2020-03-16T20:01:47Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/target1/longTermRetentionManagedInstanceBackups/ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"name\": \"ae1ea149-d5ff-4554-9333-33debe0b92ff;132276529070000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test\",\r\n \"backupTime\": \"2020-02-26T04:48:57Z\",\r\n \"backupExpirationTime\": \"2020-03-10T12:37:13.9382803Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test/longTermRetentionManagedInstanceBackups/4923a0c1-bfc4-44e3-bf83-3ea3fc741d94;132271661370000000\",\r\n \"name\": \"4923a0c1-bfc4-44e3-bf83-3ea3fc741d94;132271661370000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-5\",\r\n \"backupTime\": \"2020-03-03T14:16:38Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:38Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-5/longTermRetentionManagedInstanceBackups/151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"name\": \"151bab0a-8376-4a30-9731-45813da9a614;132277185980000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-455\",\r\n \"backupTime\": \"2020-02-27T20:49:41Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:23:48.8462413Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-455/longTermRetentionManagedInstanceBackups/af08281c-d084-4ba6-accd-506843f03e87;132273101810000000\",\r\n \"name\": \"af08281c-d084-4ba6-accd-506843f03e87;132273101810000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-1\",\r\n \"backupTime\": \"2020-03-03T14:06:27Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:06:27Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-1/longTermRetentionManagedInstanceBackups/0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"name\": \"0cf6fbbd-0040-4a2b-b95d-591eba358931;132277179870000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-ltr-policy-test\",\r\n \"backupTime\": \"2020-03-04T01:25:46Z\",\r\n \"backupExpirationTime\": \"2020-03-11T01:25:46Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-ltr-policy-test/longTermRetentionManagedInstanceBackups/f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"name\": \"f22f0729-4b77-45bd-a8e2-623406aee7ad;132277587460000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-4\",\r\n \"backupTime\": \"2020-03-03T14:16:35Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:16:35Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-4/longTermRetentionManagedInstanceBackups/3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"name\": \"3322749b-c621-4bc2-b97e-62a53318fe0a;132277185950000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test\",\r\n \"databaseDeletionTime\": \"2020-02-24T14:56:44.717Z\",\r\n \"backupTime\": \"2020-02-22T06:04:15Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:10:45.6385112Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test/longTermRetentionManagedInstanceBackups/5e3f5f6c-df6f-4c82-a447-740ee7153b2b;132268250550000000\",\r\n \"name\": \"5e3f5f6c-df6f-4c82-a447-740ee7153b2b;132268250550000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8305\",\r\n \"backupTime\": \"2020-02-27T23:09:39Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:59:29.7608268Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8305/longTermRetentionManagedInstanceBackups/5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"name\": \"5083d673-239d-433b-ab32-8d56bd69e9ae;132273185790000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test-3\",\r\n \"backupTime\": \"2020-03-03T14:11:24Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:11:24Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test-3/longTermRetentionManagedInstanceBackups/f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"name\": \"f1a4625b-5ffc-40f7-ad16-b4d24bc7e911;132277182840000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-b083bf22-b64c-42ee-958f-a5ee0a512f75\",\r\n \"backupTime\": \"2020-03-03T13:51:21Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:51:21Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-b083bf22-b64c-42ee-958f-a5ee0a512f75/longTermRetentionManagedInstanceBackups/91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"name\": \"91512746-7623-4077-97df-bfc754317765;132277170810000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-8750\",\r\n \"backupTime\": \"2020-02-25T19:33:51Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:55:06.3032425Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-8750/longTermRetentionManagedInstanceBackups/869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"name\": \"869a4e40-bbe8-4703-82d8-d0be49021f66;132271328310000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"ps-test\",\r\n \"backupTime\": \"2020-03-03T14:01:29Z\",\r\n \"backupExpirationTime\": \"2020-03-10T14:01:29Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/ps-test/longTermRetentionManagedInstanceBackups/723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"name\": \"723e1806-41e3-4cc1-86c8-e561433f245d;132277176890000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"sqlcrudtest-5830\",\r\n \"backupTime\": \"2020-03-03T02:26:49Z\",\r\n \"backupExpirationTime\": \"2020-03-10T13:01:51.29337Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/sqlcrudtest-5830/longTermRetentionManagedInstanceBackups/733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"name\": \"733cf33d-027c-455e-a80e-edfc1b06b0ee;132276760090000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n },\r\n {\r\n \"properties\": {\r\n \"managedInstanceName\": \"seageodr-gen5-gp\",\r\n \"managedInstanceCreateTime\": \"2019-10-17T16:52:10.627Z\",\r\n \"databaseName\": \"test-j\",\r\n \"backupTime\": \"2020-03-03T06:56:52Z\",\r\n \"backupExpirationTime\": \"2020-03-10T06:56:52Z\"\r\n },\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-j/longTermRetentionManagedInstanceBackups/d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"name\": \"d159f3d8-0ee6-40df-8e97-fb221a00f835;132276922120000000\",\r\n \"type\": \"Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp?api-version=2018-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3A/YXBpLXZlcnNpb249MjAxOC0wNi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "537bd7e3-8119-4530-90f0-05b66e1cce87"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "1b065cab-b4c0-47c2-a5cf-eba6245ae89b"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14986"
+ ],
+ "x-ms-correlation-request-id": [
+ "d35733d3-62b7-4427-bbfd-c44aa174b99a"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193930Z:d35733d3-62b7-4427-bbfd-c44aa174b99a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:30 GMT"
+ ],
+ "Content-Length": [
+ "873"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"GP_Gen5\",\r\n \"tier\": \"GeneralPurpose\",\r\n \"family\": \"Gen5\",\r\n \"capacity\": 8\r\n },\r\n \"properties\": {\r\n \"fullyQualifiedDomainName\": \"seageodr-gen5-gp.lkgt1aeda54f909eb.sqltest-eg1.mscds.com\",\r\n \"administratorLogin\": \"cloudSA\",\r\n \"subnetId\": \"/subscriptions/741fd0f5-9cb8-442c-91c3-3ef4ca231c2a/resourceGroups/cloudlifter/providers/Microsoft.ClassicNetwork/virtualNetworks/cloudlifter-runners-stage-sea/subnets/Gen5GeoDR\",\r\n \"state\": \"Ready\",\r\n \"licenseType\": \"LicenseIncluded\",\r\n \"vCores\": 8,\r\n \"storageSizeInGB\": 256,\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"dnsZone\": \"lkgt1aeda54f909eb\",\r\n \"publicDataEndpointEnabled\": true,\r\n \"proxyOverride\": \"Proxy\",\r\n \"timezoneId\": \"UTC\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp\",\r\n \"name\": \"seageodr-gen5-gp\",\r\n \"type\": \"Microsoft.Sql/managedInstances\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-restore-with-rg-2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLXRlc3QtcmVzdG9yZS13aXRoLXJnLTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"createMode\": \"RestoreLongTermRetentionBackup\",\r\n \"longTermRetentionBackupResourceId\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/seageodr-gen5-gp/longTermRetentionDatabases/test-e18652d0-99a7-4bc7-9eb3-733ae3dae337/longTermRetentionManagedInstanceBackups/378455bf-dba5-4948-bfee-072c9223a4ed;132276925190000000\"\r\n },\r\n \"location\": \"southeastasia\"\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "dc1083e6-8447-4051-98ff-cb158e9d7f09"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "504"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/f5fd46b0-f369-4337-8ed6-039d1eef0bd6?api-version=2019-06-01-preview"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f5fd46b0-f369-4337-8ed6-039d1eef0bd6?api-version=2019-06-01-preview"
+ ],
+ "x-ms-request-id": [
+ "f5fd46b0-f369-4337-8ed6-039d1eef0bd6"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "b338eeff-6067-4098-becb-12960b55f7eb"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193933Z:b338eeff-6067-4098-becb-12960b55f7eb"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:33 GMT"
+ ],
+ "Content-Length": [
+ "95"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"CreateManagedRestoreFromLtrBackupRequest\",\r\n \"startTime\": \"2020-03-04T19:39:32.857Z\"\r\n}",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f5fd46b0-f369-4337-8ed6-039d1eef0bd6?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjVmZDQ2YjAtZjM2OS00MzM3LThlZDYtMDM5ZDFlZWYwYmQ2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "e0b7e327-13a7-43f8-b277-192027eda893"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14985"
+ ],
+ "x-ms-correlation-request-id": [
+ "4435b5ed-3183-48c4-b92b-036b3c42466d"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T193948Z:4435b5ed-3183-48c4-b92b-036b3c42466d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:39:48 GMT"
+ ],
+ "Content-Length": [
+ "108"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f5fd46b0-f369-4337-8ed6-039d1eef0bd6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:39:32.857Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f5fd46b0-f369-4337-8ed6-039d1eef0bd6?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjVmZDQ2YjAtZjM2OS00MzM3LThlZDYtMDM5ZDFlZWYwYmQ2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "3bd7aceb-2917-4459-9f3b-622d39567ec1"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-correlation-request-id": [
+ "837bde27-2591-48e8-a835-2c1249ca4a28"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T194003Z:837bde27-2591-48e8-a835-2c1249ca4a28"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:40:03 GMT"
+ ],
+ "Content-Length": [
+ "108"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f5fd46b0-f369-4337-8ed6-039d1eef0bd6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:39:32.857Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f5fd46b0-f369-4337-8ed6-039d1eef0bd6?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjVmZDQ2YjAtZjM2OS00MzM3LThlZDYtMDM5ZDFlZWYwYmQ2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "44bee10c-cc59-4867-bf10-8039db7cefc7"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14983"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-correlation-request-id": [
+ "3c3d9466-d754-4596-8d16-c06fb3ee4807"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T194019Z:3c3d9466-d754-4596-8d16-c06fb3ee4807"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:40:19 GMT"
+ ],
+ "Content-Length": [
+ "108"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f5fd46b0-f369-4337-8ed6-039d1eef0bd6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:39:32.857Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f5fd46b0-f369-4337-8ed6-039d1eef0bd6?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjVmZDQ2YjAtZjM2OS00MzM3LThlZDYtMDM5ZDFlZWYwYmQ2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "8947e09b-c2a1-47ec-8f7f-cb8b11e09037"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14982"
+ ],
+ "x-ms-correlation-request-id": [
+ "2c52e3c4-206e-4c92-b4e0-e75cba1cf974"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T194034Z:2c52e3c4-206e-4c92-b4e0-e75cba1cf974"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:40:34 GMT"
+ ],
+ "Content-Length": [
+ "108"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f5fd46b0-f369-4337-8ed6-039d1eef0bd6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:39:32.857Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f5fd46b0-f369-4337-8ed6-039d1eef0bd6?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjVmZDQ2YjAtZjM2OS00MzM3LThlZDYtMDM5ZDFlZWYwYmQ2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "ba5483e6-b814-4817-8559-b7486bdd6d12"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "30ef15a9-d159-4b8b-bb9e-726ed00ef93c"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T194050Z:30ef15a9-d159-4b8b-bb9e-726ed00ef93c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:40:49 GMT"
+ ],
+ "Content-Length": [
+ "108"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f5fd46b0-f369-4337-8ed6-039d1eef0bd6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:39:32.857Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f5fd46b0-f369-4337-8ed6-039d1eef0bd6?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjVmZDQ2YjAtZjM2OS00MzM3LThlZDYtMDM5ZDFlZWYwYmQ2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "288a4e1e-239c-4c30-a713-9033d9974342"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14980"
+ ],
+ "x-ms-correlation-request-id": [
+ "2a72571d-b0e7-406a-b854-1dc2030cb8dc"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T194105Z:2a72571d-b0e7-406a-b854-1dc2030cb8dc"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:41:04 GMT"
+ ],
+ "Content-Length": [
+ "108"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f5fd46b0-f369-4337-8ed6-039d1eef0bd6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:39:32.857Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f5fd46b0-f369-4337-8ed6-039d1eef0bd6?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjVmZDQ2YjAtZjM2OS00MzM3LThlZDYtMDM5ZDFlZWYwYmQ2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "49538079-c87d-40b7-a98b-bf272c074b69"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14979"
+ ],
+ "x-ms-correlation-request-id": [
+ "60164cc6-21f4-4d38-b05d-d73bdfd10652"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T194120Z:60164cc6-21f4-4d38-b05d-d73bdfd10652"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:41:20 GMT"
+ ],
+ "Content-Length": [
+ "108"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f5fd46b0-f369-4337-8ed6-039d1eef0bd6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-03-04T19:39:32.857Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/f5fd46b0-f369-4337-8ed6-039d1eef0bd6?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjVmZDQ2YjAtZjM2OS00MzM3LThlZDYtMDM5ZDFlZWYwYmQ2P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "6dfd5335-889d-47b0-8c8c-cca2fcadbaac"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14978"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-correlation-request-id": [
+ "00efff83-130f-479e-b1e6-8d902446d7df"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T194136Z:00efff83-130f-479e-b1e6-8d902446d7df"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:41:36 GMT"
+ ],
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"f5fd46b0-f369-4337-8ed6-039d1eef0bd6\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-03-04T19:39:32.857Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-restore-with-rg-2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLXRlc3QtcmVzdG9yZS13aXRoLXJnLTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a8ebade9-52c3-40b0-9ce8-180bb77b5b80"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14977"
+ ],
+ "x-ms-correlation-request-id": [
+ "2344071f-a023-430d-9d2d-249429598e67"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T194137Z:2344071f-a023-430d-9d2d-249429598e67"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:41:36 GMT"
+ ],
+ "Content-Length": [
+ "454"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2020-03-04T19:39:33.2Z\",\r\n \"defaultSecondaryLocation\": \"northeurope\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-restore-with-rg-2\",\r\n \"name\": \"ps-test-restore-with-rg-2\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-restore-with-rg-2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLXRlc3QtcmVzdG9yZS13aXRoLXJnLTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "03b61db4-5a18-40ca-9126-f207417bf7db"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "97dc9fd9-02f3-4871-9c37-f958a1a0207a"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14976"
+ ],
+ "x-ms-correlation-request-id": [
+ "12a2b2dd-6fdf-4404-b13f-aaa93c537b7f"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T194137Z:12a2b2dd-6fdf-4404-b13f-aaa93c537b7f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:41:37 GMT"
+ ],
+ "Content-Length": [
+ "454"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"status\": \"Online\",\r\n \"creationDate\": \"2020-03-04T19:39:33.2Z\",\r\n \"defaultSecondaryLocation\": \"northeurope\"\r\n },\r\n \"location\": \"southeastasia\",\r\n \"id\": \"/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-restore-with-rg-2\",\r\n \"name\": \"ps-test-restore-with-rg-2\",\r\n \"type\": \"Microsoft.Sql/managedInstances/databases\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/resourceGroups/cl_stage_sea_cv/providers/Microsoft.Sql/managedInstances/seageodr-gen5-gp/databases/ps-test-restore-with-rg-2?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Jlc291cmNlR3JvdXBzL2NsX3N0YWdlX3NlYV9jdi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9tYW5hZ2VkSW5zdGFuY2VzL3NlYWdlb2RyLWdlbjUtZ3AvZGF0YWJhc2VzL3BzLXRlc3QtcmVzdG9yZS13aXRoLXJnLTI/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5fd6dfb9-5946-4f7a-abcd-bfbe14cefc70"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/7fc26cea-e820-4138-9e90-383226abd968?api-version=2019-06-01-preview"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "Azure-AsyncOperation": [
+ "https://management.azure.com/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7fc26cea-e820-4138-9e90-383226abd968?api-version=2019-06-01-preview"
+ ],
+ "x-ms-request-id": [
+ "7fc26cea-e820-4138-9e90-383226abd968"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-deletes": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "9f0898ef-ee92-4cfd-bfa4-6943bfaf410a"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T194137Z:9f0898ef-ee92-4cfd-bfa4-6943bfaf410a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:41:37 GMT"
+ ],
+ "Content-Length": [
+ "74"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"operation\": \"DropManagedDatabase\",\r\n \"startTime\": \"2020-03-04T19:41:37.713Z\"\r\n}",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseAzureAsyncOperation/7fc26cea-e820-4138-9e90-383226abd968?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vN2ZjMjZjZWEtZTgyMC00MTM4LTllOTAtMzgzMjI2YWJkOTY4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "15"
+ ],
+ "x-ms-request-id": [
+ "126b9320-d9e8-40e2-b843-5021191fda32"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14975"
+ ],
+ "x-ms-correlation-request-id": [
+ "5b74225c-6fa8-42f4-911b-e23d11f2d8f8"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T194153Z:5b74225c-6fa8-42f4-911b-e23d11f2d8f8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:41:52 GMT"
+ ],
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"name\": \"7fc26cea-e820-4138-9e90-383226abd968\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-03-04T19:41:37.713Z\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/8cfb8b62-bcd6-4713-89ad-18097f75cc5b/providers/Microsoft.Sql/locations/southeastasia/managedDatabaseOperationResults/7fc26cea-e820-4138-9e90-383226abd968?api-version=2019-06-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvOGNmYjhiNjItYmNkNi00NzEzLTg5YWQtMTgwOTdmNzVjYzViL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9zb3V0aGVhc3Rhc2lhL21hbmFnZWREYXRhYmFzZU9wZXJhdGlvblJlc3VsdHMvN2ZjMjZjZWEtZTgyMC00MTM4LTllOTAtMzgzMjI2YWJkOTY4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.28207.03",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.14393.",
+ "Microsoft.Azure.Management.Sql.SqlManagementClient/1.40.0.0"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "92953517-9bd0-40f7-8862-901ea949b7e5"
+ ],
+ "Server": [
+ "Microsoft-HTTPAPI/2.0"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14974"
+ ],
+ "x-ms-correlation-request-id": [
+ "aa24db95-5ef7-491d-9ef3-d55349cf4647"
+ ],
+ "x-ms-routing-request-id": [
+ "NORTHEUROPE:20200304T194153Z:aa24db95-5ef7-491d-9ef3-d55349cf4647"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Wed, 04 Mar 2020 19:41:53 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 204
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "8cfb8b62-bcd6-4713-89ad-18097f75cc5b"
+ }
+}
\ No newline at end of file
diff --git a/src/Sql/Sql/Az.Sql.psd1 b/src/Sql/Sql/Az.Sql.psd1
index 290a0b2bb7fe..9636c9aebbae 100644
--- a/src/Sql/Sql/Az.Sql.psd1
+++ b/src/Sql/Sql/Az.Sql.psd1
@@ -56,7 +56,7 @@ DotNetFrameworkVersion = '4.7.2'
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.7.2'; })
# Assemblies that must be loaded prior to importing this module
-RequiredAssemblies = 'Microsoft.Azure.Management.Sql.dll',
+RequiredAssemblies = 'Microsoft.Azure.Management.Sql.dll',
'Microsoft.Azure.PowerShell.Cmdlets.Sql.LegacySdk.dll'
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
@@ -75,211 +75,215 @@ NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.Sql.dll')
FunctionsToExport = @()
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
-CmdletsToExport = 'Get-AzSqlDatabaseTransparentDataEncryption',
- 'Get-AzSqlDatabaseTransparentDataEncryptionActivity',
- 'Set-AzSqlDatabaseTransparentDataEncryption',
- 'Get-AzSqlDatabaseUpgradeHint', 'Get-AzSqlServerUpgradeHint',
- 'Get-AzSqlServerServiceObjective',
- 'Get-AzSqlServerActiveDirectoryAdministrator',
- 'Remove-AzSqlServerActiveDirectoryAdministrator',
- 'Set-AzSqlServerActiveDirectoryAdministrator', 'Get-AzSqlServer',
- 'New-AzSqlServer', 'Remove-AzSqlServer', 'Set-AzSqlServer',
- 'Get-AzSqlServerCommunicationLink',
- 'New-AzSqlServerCommunicationLink',
- 'Remove-AzSqlServerCommunicationLink',
- 'Get-AzSqlDatabaseReplicationLink', 'New-AzSqlDatabaseCopy',
- 'New-AzSqlDatabaseSecondary', 'Remove-AzSqlDatabaseSecondary',
- 'Set-AzSqlDatabaseSecondary', 'Get-AzSqlElasticPoolRecommendation',
- 'Get-AzSqlDatabaseIndexRecommendation',
- 'Start-AzSqlDatabaseExecuteIndexRecommendation',
- 'Stop-AzSqlDatabaseExecuteIndexRecommendation',
- 'Get-AzSqlServerFirewallRule', 'New-AzSqlServerFirewallRule',
- 'Remove-AzSqlServerFirewallRule', 'Set-AzSqlServerFirewallRule',
- 'Get-AzSqlElasticPool', 'Get-AzSqlElasticPoolActivity',
- 'Get-AzSqlElasticPoolDatabase', 'New-AzSqlElasticPool',
- 'Remove-AzSqlElasticPool', 'Set-AzSqlElasticPool',
- 'Get-AzSqlServerDisasterRecoveryConfiguration',
- 'Get-AzSqlServerDisasterRecoveryConfigurationActivity',
- 'New-AzSqlServerDisasterRecoveryConfiguration',
- 'Remove-AzSqlServerDisasterRecoveryConfiguration',
- 'Set-AzSqlServerDisasterRecoveryConfiguration',
- 'Resume-AzSqlDatabase', 'Suspend-AzSqlDatabase',
- 'Get-AzSqlDatabaseDataMaskingPolicy',
- 'Get-AzSqlDatabaseDataMaskingRule',
- 'New-AzSqlDatabaseDataMaskingRule',
- 'Remove-AzSqlDatabaseDataMaskingRule',
- 'Set-AzSqlDatabaseDataMaskingPolicy',
- 'Set-AzSqlDatabaseDataMaskingRule', 'Get-AzSqlCapability',
- 'Get-AzSqlDatabase', 'Get-AzSqlDatabaseActivity',
- 'Get-AzSqlDatabaseExpanded', 'New-AzSqlDatabase',
- 'Remove-AzSqlDatabase', 'Set-AzSqlDatabase',
- 'Get-AzSqlDatabaseImportExportStatus', 'New-AzSqlDatabaseExport',
- 'New-AzSqlDatabaseImport', 'Get-AzSqlDatabaseGeoBackupPolicy',
- 'Set-AzSqlDatabaseGeoBackupPolicy',
- 'Get-AzSqlDatabaseBackupShortTermRetentionPolicy',
- 'Set-AzSqlDatabaseBackupShortTermRetentionPolicy',
- 'Get-AzSqlDatabaseBackupLongTermRetentionPolicy',
- 'Set-AzSqlDatabaseBackupLongTermRetentionPolicy',
- 'Get-AzSqlDatabaseLongTermRetentionBackup',
- 'Remove-AzSqlDatabaseLongTermRetentionBackup',
- 'Get-AzSqlDeletedDatabaseBackup', 'Get-AzSqlDatabaseGeoBackup',
- 'Restore-AzSqlDatabase', 'Get-AzSqlDatabaseRestorePoint',
- 'Get-AzSqlDatabaseRecommendedAction',
- 'Get-AzSqlElasticPoolRecommendedAction',
- 'Get-AzSqlServerRecommendedAction',
- 'Set-AzSqlDatabaseRecommendedActionState',
- 'Set-AzSqlElasticPoolRecommendedActionState',
- 'Set-AzSqlServerRecommendedActionState',
- 'Get-AzSqlElasticPoolAdvisor', 'Get-AzSqlServerAdvisor',
- 'Set-AzSqlElasticPoolAdvisorAutoExecuteStatus',
- 'Set-AzSqlServerAdvisorAutoExecuteStatus',
- 'Get-AzSqlDatabaseAdvisor',
- 'Set-AzSqlDatabaseAdvisorAutoExecuteStatus',
- 'Get-AzSqlServerTransparentDataEncryptionProtector',
- 'Set-AzSqlServerTransparentDataEncryptionProtector',
- 'Add-AzSqlServerKeyVaultKey', 'Get-AzSqlServerKeyVaultKey',
- 'Remove-AzSqlServerKeyVaultKey', 'Get-AzSqlDatabaseFailoverGroup',
- 'New-AzSqlDatabaseFailoverGroup',
- 'Add-AzSqlDatabaseToFailoverGroup',
- 'Remove-AzSqlDatabaseFromFailoverGroup',
- 'Remove-AzSqlDatabaseFailoverGroup',
- 'Set-AzSqlDatabaseFailoverGroup',
- 'Switch-AzSqlDatabaseFailoverGroup', 'New-AzSqlSyncGroup',
- 'Update-AzSqlSyncGroup', 'Get-AzSqlSyncGroup',
- 'Get-AzSqlSyncGroupLog', 'Remove-AzSqlSyncGroup',
- 'Update-AzSqlSyncSchema', 'Get-AzSqlSyncSchema',
- 'Start-AzSqlSyncGroupSync', 'Stop-AzSqlSyncGroupSync',
- 'New-AzSqlSyncMember', 'Update-AzSqlSyncMember',
- 'Get-AzSqlSyncMember', 'Remove-AzSqlSyncMember', 'New-AzSqlSyncAgent',
- 'Get-AzSqlSyncAgent', 'Remove-AzSqlSyncAgent',
- 'New-AzSqlSyncAgentKey', 'Get-AzSqlSyncAgentLinkedDatabase',
- 'New-AzSqlServerVirtualNetworkRule',
- 'Set-AzSqlServerVirtualNetworkRule',
- 'Get-AzSqlServerVirtualNetworkRule',
- 'Remove-AzSqlServerVirtualNetworkRule',
- 'Stop-AzSqlDatabaseActivity', 'Get-AzSqlServerDnsAlias',
- 'Remove-AzSqlServerDnsAlias', 'New-AzSqlServerDnsAlias',
- 'Set-AzSqlServerDnsAlias', 'New-AzSqlDatabaseRestorePoint',
- 'Remove-AzSqlDatabaseRestorePoint', 'Stop-AzSqlElasticPoolActivity',
- 'Add-AzSqlServerTransparentDataEncryptionCertificate',
- 'Add-AzSqlManagedInstanceTransparentDataEncryptionCertificate',
- 'Update-AzSqlDatabaseVulnerabilityAssessmentSetting',
- 'Get-AzSqlDatabaseVulnerabilityAssessmentSetting',
- 'Clear-AzSqlDatabaseVulnerabilityAssessmentSetting',
- 'Set-AzSqlDatabaseVulnerabilityAssessmentRuleBaseline',
- 'Get-AzSqlDatabaseVulnerabilityAssessmentRuleBaseline',
- 'Clear-AzSqlDatabaseVulnerabilityAssessmentRuleBaseline',
- 'Convert-AzSqlDatabaseVulnerabilityAssessmentScan',
- 'Get-AzSqlDatabaseVulnerabilityAssessmentScanRecord',
- 'Start-AzSqlDatabaseVulnerabilityAssessmentScan',
- 'Get-AzSqlInstance', 'New-AzSqlInstance', 'Remove-AzSqlInstance',
- 'Set-AzSqlInstance', 'Get-AzSqlInstanceDatabase',
- 'New-AzSqlInstanceDatabase', 'Remove-AzSqlInstanceDatabase',
- 'Restore-AzSqlInstanceDatabase',
- 'Update-AzSqlInstanceDatabaseVulnerabilityAssessmentSetting',
- 'Get-AzSqlInstanceDatabaseVulnerabilityAssessmentSetting',
- 'Clear-AzSqlInstanceDatabaseVulnerabilityAssessmentSetting',
- 'Set-AzSqlInstanceDatabaseVulnerabilityAssessmentRuleBaseline',
- 'Get-AzSqlInstanceDatabaseVulnerabilityAssessmentRuleBaseline',
- 'Clear-AzSqlInstanceDatabaseVulnerabilityAssessmentRuleBaseline',
- 'Convert-AzSqlInstanceDatabaseVulnerabilityAssessmentScan',
- 'Get-AzSqlInstanceDatabaseVulnerabilityAssessmentScanRecord',
- 'Start-AzSqlInstanceDatabaseVulnerabilityAssessmentScan',
- 'Enable-AzSqlInstanceAdvancedDataSecurity',
- 'Disable-AzSqlInstanceAdvancedDataSecurity',
- 'Get-AzSqlInstanceAdvancedDataSecurityPolicy',
- 'Get-AzSqlInstanceDatabaseGeoBackup',
- 'Get-AzSqlInstanceDatabaseBackupShortTermRetentionPolicy',
- 'Set-AzSqlInstanceDatabaseBackupShortTermRetentionPolicy',
- 'Get-AzSqlDeletedInstanceDatabaseBackup',
- 'Update-AzSqlInstanceVulnerabilityAssessmentSetting',
- 'Get-AzSqlInstanceVulnerabilityAssessmentSetting',
- 'Clear-AzSqlInstanceVulnerabilityAssessmentSetting',
- 'Update-AzSqlServerVulnerabilityAssessmentSetting',
- 'Get-AzSqlServerVulnerabilityAssessmentSetting',
- 'Clear-AzSqlServerVulnerabilityAssessmentSetting',
- 'Get-AzSqlDatabaseSensitivityClassification',
- 'Get-AzSqlInstanceDatabaseSensitivityClassification',
- 'Set-AzSqlDatabaseSensitivityClassification',
- 'Set-AzSqlInstanceDatabaseSensitivityClassification',
- 'Remove-AzSqlDatabaseSensitivityClassification',
- 'Remove-AzSqlInstanceDatabaseSensitivityClassification',
- 'Get-AzSqlDatabaseSensitivityRecommendation',
- 'Get-AzSqlInstanceDatabaseSensitivityRecommendation',
- 'Get-AzSqlVirtualCluster', 'Remove-AzSqlVirtualCluster',
- 'Enable-AzSqlServerAdvancedDataSecurity',
- 'Disable-AzSqlServerAdvancedDataSecurity',
- 'Get-AzSqlServerAdvancedDataSecurityPolicy',
- 'Get-AzSqlDatabaseInstanceFailoverGroup',
- 'New-AzSqlDatabaseInstanceFailoverGroup',
- 'Remove-AzSqlDatabaseInstanceFailoverGroup',
- 'Set-AzSqlDatabaseInstanceFailoverGroup',
- 'Switch-AzSqlDatabaseInstanceFailoverGroup',
- 'Get-AzSqlServerAdvancedThreatProtectionSetting',
- 'Clear-AzSqlServerAdvancedThreatProtectionSetting',
- 'Update-AzSqlServerAdvancedThreatProtectionSetting',
- 'Get-AzSqlDatabaseAdvancedThreatProtectionSetting',
- 'Update-AzSqlDatabaseAdvancedThreatProtectionSetting',
- 'Clear-AzSqlDatabaseAdvancedThreatProtectionSetting',
- 'Add-AzSqlInstanceKeyVaultKey', 'Get-AzSqlInstanceKeyVaultKey',
- 'Remove-AzSqlInstanceKeyVaultKey',
- 'Get-AzSqlInstanceTransparentDataEncryptionProtector',
- 'Set-AzSqlInstanceTransparentDataEncryptionProtector',
- 'Get-AzSqlServerAudit', 'Get-AzSqlDatabaseAudit',
- 'Set-AzSqlServerAudit', 'Set-AzSqlDatabaseAudit',
- 'Get-AzSqlInstanceActiveDirectoryAdministrator',
- 'Remove-AzSqlInstanceActiveDirectoryAdministrator',
- 'Set-AzSqlInstanceActiveDirectoryAdministrator',
- 'Remove-AzSqlServerAudit', 'Remove-AzSqlDatabaseAudit',
- 'Get-AzSqlInstancePool', 'Set-AzSqlInstancePool',
- 'New-AzSqlInstancePool', 'Remove-AzSqlInstancePool',
- 'Get-AzSqlInstancePoolUsage', 'Invoke-AzSqlDatabaseFailover',
- 'Invoke-AzSqlElasticPoolFailover', 'New-AzSqlElasticJobAgent',
- 'Remove-AzSqlElasticJobAgent', 'Get-AzSqlElasticJobAgent',
- 'Set-AzSqlElasticJobAgent', 'New-AzSqlElasticJobCredential',
- 'Get-AzSqlElasticJobCredential', 'Set-AzSqlElasticJobCredential',
- 'Remove-AzSqlElasticJobCredential',
- 'New-AzSqlElasticJobTargetGroup', 'Get-AzSqlElasticJobTargetGroup',
- 'Remove-AzSqlElasticJobTargetGroup', 'Add-AzSqlElasticJobTarget',
- 'Remove-AzSqlElasticJobTarget', 'New-AzSqlElasticJob',
- 'Get-AzSqlElasticJob', 'Set-AzSqlElasticJob',
- 'Remove-AzSqlElasticJob', 'Add-AzSqlElasticJobStep',
- 'Get-AzSqlElasticJobStep', 'Remove-AzSqlElasticJobStep',
- 'Set-AzSqlElasticJobStep', 'Start-AzSqlElasticJob',
- 'Stop-AzSqlElasticJob', 'Get-AzSqlElasticJobExecution',
- 'Get-AzSqlElasticJobStepExecution',
- 'Get-AzSqlElasticJobTargetExecution',
- 'Enable-AzSqlDatabaseSensitivityRecommendation',
- 'Disable-AzSqlDatabaseSensitivityRecommendation',
- 'Enable-AzSqlInstanceDatabaseSensitivityRecommendation',
+CmdletsToExport = 'Get-AzSqlDatabaseTransparentDataEncryption',
+ 'Get-AzSqlDatabaseTransparentDataEncryptionActivity',
+ 'Set-AzSqlDatabaseTransparentDataEncryption',
+ 'Get-AzSqlDatabaseUpgradeHint', 'Get-AzSqlServerUpgradeHint',
+ 'Get-AzSqlServerServiceObjective',
+ 'Get-AzSqlServerActiveDirectoryAdministrator',
+ 'Remove-AzSqlServerActiveDirectoryAdministrator',
+ 'Set-AzSqlServerActiveDirectoryAdministrator', 'Get-AzSqlServer',
+ 'New-AzSqlServer', 'Remove-AzSqlServer', 'Set-AzSqlServer',
+ 'Get-AzSqlServerCommunicationLink',
+ 'New-AzSqlServerCommunicationLink',
+ 'Remove-AzSqlServerCommunicationLink',
+ 'Get-AzSqlDatabaseReplicationLink', 'New-AzSqlDatabaseCopy',
+ 'New-AzSqlDatabaseSecondary', 'Remove-AzSqlDatabaseSecondary',
+ 'Set-AzSqlDatabaseSecondary', 'Get-AzSqlElasticPoolRecommendation',
+ 'Get-AzSqlDatabaseIndexRecommendation',
+ 'Start-AzSqlDatabaseExecuteIndexRecommendation',
+ 'Stop-AzSqlDatabaseExecuteIndexRecommendation',
+ 'Get-AzSqlServerFirewallRule', 'New-AzSqlServerFirewallRule',
+ 'Remove-AzSqlServerFirewallRule', 'Set-AzSqlServerFirewallRule',
+ 'Get-AzSqlElasticPool', 'Get-AzSqlElasticPoolActivity',
+ 'Get-AzSqlElasticPoolDatabase', 'New-AzSqlElasticPool',
+ 'Remove-AzSqlElasticPool', 'Set-AzSqlElasticPool',
+ 'Get-AzSqlServerDisasterRecoveryConfiguration',
+ 'Get-AzSqlServerDisasterRecoveryConfigurationActivity',
+ 'New-AzSqlServerDisasterRecoveryConfiguration',
+ 'Remove-AzSqlServerDisasterRecoveryConfiguration',
+ 'Set-AzSqlServerDisasterRecoveryConfiguration',
+ 'Resume-AzSqlDatabase', 'Suspend-AzSqlDatabase',
+ 'Get-AzSqlDatabaseDataMaskingPolicy',
+ 'Get-AzSqlDatabaseDataMaskingRule',
+ 'New-AzSqlDatabaseDataMaskingRule',
+ 'Remove-AzSqlDatabaseDataMaskingRule',
+ 'Set-AzSqlDatabaseDataMaskingPolicy',
+ 'Set-AzSqlDatabaseDataMaskingRule', 'Get-AzSqlCapability',
+ 'Get-AzSqlDatabase', 'Get-AzSqlDatabaseActivity',
+ 'Get-AzSqlDatabaseExpanded', 'New-AzSqlDatabase',
+ 'Remove-AzSqlDatabase', 'Set-AzSqlDatabase',
+ 'Get-AzSqlDatabaseImportExportStatus', 'New-AzSqlDatabaseExport',
+ 'New-AzSqlDatabaseImport', 'Get-AzSqlDatabaseGeoBackupPolicy',
+ 'Set-AzSqlDatabaseGeoBackupPolicy',
+ 'Get-AzSqlDatabaseBackupShortTermRetentionPolicy',
+ 'Set-AzSqlDatabaseBackupShortTermRetentionPolicy',
+ 'Get-AzSqlDatabaseBackupLongTermRetentionPolicy',
+ 'Set-AzSqlDatabaseBackupLongTermRetentionPolicy',
+ 'Get-AzSqlDatabaseLongTermRetentionBackup',
+ 'Remove-AzSqlDatabaseLongTermRetentionBackup',
+ 'Get-AzSqlDeletedDatabaseBackup', 'Get-AzSqlDatabaseGeoBackup',
+ 'Restore-AzSqlDatabase', 'Get-AzSqlDatabaseRestorePoint',
+ 'Get-AzSqlDatabaseRecommendedAction',
+ 'Get-AzSqlElasticPoolRecommendedAction',
+ 'Get-AzSqlServerRecommendedAction',
+ 'Set-AzSqlDatabaseRecommendedActionState',
+ 'Set-AzSqlElasticPoolRecommendedActionState',
+ 'Set-AzSqlServerRecommendedActionState',
+ 'Get-AzSqlElasticPoolAdvisor', 'Get-AzSqlServerAdvisor',
+ 'Set-AzSqlElasticPoolAdvisorAutoExecuteStatus',
+ 'Set-AzSqlServerAdvisorAutoExecuteStatus',
+ 'Get-AzSqlDatabaseAdvisor',
+ 'Set-AzSqlDatabaseAdvisorAutoExecuteStatus',
+ 'Get-AzSqlServerTransparentDataEncryptionProtector',
+ 'Set-AzSqlServerTransparentDataEncryptionProtector',
+ 'Add-AzSqlServerKeyVaultKey', 'Get-AzSqlServerKeyVaultKey',
+ 'Remove-AzSqlServerKeyVaultKey', 'Get-AzSqlDatabaseFailoverGroup',
+ 'New-AzSqlDatabaseFailoverGroup',
+ 'Add-AzSqlDatabaseToFailoverGroup',
+ 'Remove-AzSqlDatabaseFromFailoverGroup',
+ 'Remove-AzSqlDatabaseFailoverGroup',
+ 'Set-AzSqlDatabaseFailoverGroup',
+ 'Switch-AzSqlDatabaseFailoverGroup', 'New-AzSqlSyncGroup',
+ 'Update-AzSqlSyncGroup', 'Get-AzSqlSyncGroup',
+ 'Get-AzSqlSyncGroupLog', 'Remove-AzSqlSyncGroup',
+ 'Update-AzSqlSyncSchema', 'Get-AzSqlSyncSchema',
+ 'Start-AzSqlSyncGroupSync', 'Stop-AzSqlSyncGroupSync',
+ 'New-AzSqlSyncMember', 'Update-AzSqlSyncMember',
+ 'Get-AzSqlSyncMember', 'Remove-AzSqlSyncMember', 'New-AzSqlSyncAgent',
+ 'Get-AzSqlSyncAgent', 'Remove-AzSqlSyncAgent',
+ 'New-AzSqlSyncAgentKey', 'Get-AzSqlSyncAgentLinkedDatabase',
+ 'New-AzSqlServerVirtualNetworkRule',
+ 'Set-AzSqlServerVirtualNetworkRule',
+ 'Get-AzSqlServerVirtualNetworkRule',
+ 'Remove-AzSqlServerVirtualNetworkRule',
+ 'Stop-AzSqlDatabaseActivity', 'Get-AzSqlServerDnsAlias',
+ 'Remove-AzSqlServerDnsAlias', 'New-AzSqlServerDnsAlias',
+ 'Set-AzSqlServerDnsAlias', 'New-AzSqlDatabaseRestorePoint',
+ 'Remove-AzSqlDatabaseRestorePoint', 'Stop-AzSqlElasticPoolActivity',
+ 'Add-AzSqlServerTransparentDataEncryptionCertificate',
+ 'Add-AzSqlManagedInstanceTransparentDataEncryptionCertificate',
+ 'Update-AzSqlDatabaseVulnerabilityAssessmentSetting',
+ 'Get-AzSqlDatabaseVulnerabilityAssessmentSetting',
+ 'Clear-AzSqlDatabaseVulnerabilityAssessmentSetting',
+ 'Set-AzSqlDatabaseVulnerabilityAssessmentRuleBaseline',
+ 'Get-AzSqlDatabaseVulnerabilityAssessmentRuleBaseline',
+ 'Clear-AzSqlDatabaseVulnerabilityAssessmentRuleBaseline',
+ 'Convert-AzSqlDatabaseVulnerabilityAssessmentScan',
+ 'Get-AzSqlDatabaseVulnerabilityAssessmentScanRecord',
+ 'Start-AzSqlDatabaseVulnerabilityAssessmentScan',
+ 'Get-AzSqlInstance', 'New-AzSqlInstance', 'Remove-AzSqlInstance',
+ 'Set-AzSqlInstance', 'Get-AzSqlInstanceDatabase',
+ 'New-AzSqlInstanceDatabase', 'Remove-AzSqlInstanceDatabase',
+ 'Restore-AzSqlInstanceDatabase',
+ 'Update-AzSqlInstanceDatabaseVulnerabilityAssessmentSetting',
+ 'Get-AzSqlInstanceDatabaseVulnerabilityAssessmentSetting',
+ 'Clear-AzSqlInstanceDatabaseVulnerabilityAssessmentSetting',
+ 'Set-AzSqlInstanceDatabaseVulnerabilityAssessmentRuleBaseline',
+ 'Get-AzSqlInstanceDatabaseVulnerabilityAssessmentRuleBaseline',
+ 'Clear-AzSqlInstanceDatabaseVulnerabilityAssessmentRuleBaseline',
+ 'Convert-AzSqlInstanceDatabaseVulnerabilityAssessmentScan',
+ 'Get-AzSqlInstanceDatabaseVulnerabilityAssessmentScanRecord',
+ 'Start-AzSqlInstanceDatabaseVulnerabilityAssessmentScan',
+ 'Enable-AzSqlInstanceAdvancedDataSecurity',
+ 'Disable-AzSqlInstanceAdvancedDataSecurity',
+ 'Get-AzSqlInstanceAdvancedDataSecurityPolicy',
+ 'Get-AzSqlInstanceDatabaseGeoBackup',
+ 'Get-AzSqlInstanceDatabaseBackupShortTermRetentionPolicy',
+ 'Set-AzSqlInstanceDatabaseBackupShortTermRetentionPolicy',
+ 'Get-AzSqlDeletedInstanceDatabaseBackup',
+ 'Update-AzSqlInstanceVulnerabilityAssessmentSetting',
+ 'Get-AzSqlInstanceVulnerabilityAssessmentSetting',
+ 'Clear-AzSqlInstanceVulnerabilityAssessmentSetting',
+ 'Update-AzSqlServerVulnerabilityAssessmentSetting',
+ 'Get-AzSqlServerVulnerabilityAssessmentSetting',
+ 'Clear-AzSqlServerVulnerabilityAssessmentSetting',
+ 'Get-AzSqlDatabaseSensitivityClassification',
+ 'Get-AzSqlInstanceDatabaseSensitivityClassification',
+ 'Set-AzSqlDatabaseSensitivityClassification',
+ 'Set-AzSqlInstanceDatabaseSensitivityClassification',
+ 'Remove-AzSqlDatabaseSensitivityClassification',
+ 'Remove-AzSqlInstanceDatabaseSensitivityClassification',
+ 'Get-AzSqlDatabaseSensitivityRecommendation',
+ 'Get-AzSqlInstanceDatabaseSensitivityRecommendation',
+ 'Get-AzSqlVirtualCluster', 'Remove-AzSqlVirtualCluster',
+ 'Enable-AzSqlServerAdvancedDataSecurity',
+ 'Disable-AzSqlServerAdvancedDataSecurity',
+ 'Get-AzSqlServerAdvancedDataSecurityPolicy',
+ 'Get-AzSqlDatabaseInstanceFailoverGroup',
+ 'New-AzSqlDatabaseInstanceFailoverGroup',
+ 'Remove-AzSqlDatabaseInstanceFailoverGroup',
+ 'Set-AzSqlDatabaseInstanceFailoverGroup',
+ 'Switch-AzSqlDatabaseInstanceFailoverGroup',
+ 'Get-AzSqlServerAdvancedThreatProtectionSetting',
+ 'Clear-AzSqlServerAdvancedThreatProtectionSetting',
+ 'Update-AzSqlServerAdvancedThreatProtectionSetting',
+ 'Get-AzSqlDatabaseAdvancedThreatProtectionSetting',
+ 'Update-AzSqlDatabaseAdvancedThreatProtectionSetting',
+ 'Clear-AzSqlDatabaseAdvancedThreatProtectionSetting',
+ 'Add-AzSqlInstanceKeyVaultKey', 'Get-AzSqlInstanceKeyVaultKey',
+ 'Remove-AzSqlInstanceKeyVaultKey',
+ 'Get-AzSqlInstanceTransparentDataEncryptionProtector',
+ 'Set-AzSqlInstanceTransparentDataEncryptionProtector',
+ 'Get-AzSqlServerAudit', 'Get-AzSqlDatabaseAudit',
+ 'Set-AzSqlServerAudit', 'Set-AzSqlDatabaseAudit',
+ 'Get-AzSqlInstanceActiveDirectoryAdministrator',
+ 'Remove-AzSqlInstanceActiveDirectoryAdministrator',
+ 'Set-AzSqlInstanceActiveDirectoryAdministrator',
+ 'Remove-AzSqlServerAudit', 'Remove-AzSqlDatabaseAudit',
+ 'Get-AzSqlInstancePool', 'Set-AzSqlInstancePool',
+ 'New-AzSqlInstancePool', 'Remove-AzSqlInstancePool',
+ 'Get-AzSqlInstancePoolUsage', 'Invoke-AzSqlDatabaseFailover',
+ 'Invoke-AzSqlElasticPoolFailover', 'New-AzSqlElasticJobAgent',
+ 'Remove-AzSqlElasticJobAgent', 'Get-AzSqlElasticJobAgent',
+ 'Set-AzSqlElasticJobAgent', 'New-AzSqlElasticJobCredential',
+ 'Get-AzSqlElasticJobCredential', 'Set-AzSqlElasticJobCredential',
+ 'Remove-AzSqlElasticJobCredential',
+ 'New-AzSqlElasticJobTargetGroup', 'Get-AzSqlElasticJobTargetGroup',
+ 'Remove-AzSqlElasticJobTargetGroup', 'Add-AzSqlElasticJobTarget',
+ 'Remove-AzSqlElasticJobTarget', 'New-AzSqlElasticJob',
+ 'Get-AzSqlElasticJob', 'Set-AzSqlElasticJob',
+ 'Remove-AzSqlElasticJob', 'Add-AzSqlElasticJobStep',
+ 'Get-AzSqlElasticJobStep', 'Remove-AzSqlElasticJobStep',
+ 'Set-AzSqlElasticJobStep', 'Start-AzSqlElasticJob',
+ 'Stop-AzSqlElasticJob', 'Get-AzSqlElasticJobExecution',
+ 'Get-AzSqlElasticJobStepExecution',
+ 'Get-AzSqlElasticJobTargetExecution',
+ 'Enable-AzSqlDatabaseSensitivityRecommendation',
+ 'Disable-AzSqlDatabaseSensitivityRecommendation',
+ 'Enable-AzSqlInstanceDatabaseSensitivityRecommendation',
'Disable-AzSqlInstanceDatabaseSensitivityRecommendation',
+ 'Get-AzSqlInstanceDatabaseLongTermRetentionBackup',
+ 'Remove-AzSqlInstanceDatabaseLongTermRetentionBackup',
+ 'Get-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy',
+ 'Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy',
'Disable-AzSqlServerActiveDirectoryOnlyAuthentication'
# Variables to export from this module
# VariablesToExport = @()
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
-AliasesToExport = 'Get-AzSqlDatabaseServerAuditingPolicy',
- 'Remove-AzSqlDatabaseServerAuditing',
- 'Set-AzSqlDatabaseServerAuditingPolicy',
- 'Use-AzSqlDatabaseServerAuditingPolicy',
- 'Get-AzSqlDatabaseLongTermRetentionPolicy',
- 'Set-AzSqlDatabaseLongTermRetentionPolicy',
- 'Update-AzSqlDatabaseVulnerabilityAssessmentSetting',
- 'Get-AzSqlDatabaseVulnerabilityAssessmentSetting',
- 'Clear-AzSqlDatabaseVulnerabilityAssessmentSetting',
- 'Update-AzSqlInstanceDatabaseVulnerabilityAssessmentSetting',
- 'Get-AzSqlInstanceDatabaseVulnerabilityAssessmentSetting',
- 'Clear-AzSqlInstanceDatabaseVulnerabilityAssessmentSetting',
- 'Enable-AzSqlServerAdvancedThreatProtection',
- 'Disable-AzSqlServerAdvancedThreatProtection',
- 'Get-AzSqlServerAdvancedThreatProtectionSetting',
- 'Get-AzSqlServerThreatDetectionSetting',
- 'Remove-AzSqlServerThreatDetectionSetting',
- 'Set-AzSqlServerThreatDetectionSetting',
- 'Get-AzSqlDatabaseThreatDetectionSetting',
- 'Set-AzSqlDatabaseThreatDetectionSetting',
- 'Remove-AzSqlDatabaseThreatDetectionSetting',
+AliasesToExport = 'Get-AzSqlDatabaseServerAuditingPolicy',
+ 'Remove-AzSqlDatabaseServerAuditing',
+ 'Set-AzSqlDatabaseServerAuditingPolicy',
+ 'Use-AzSqlDatabaseServerAuditingPolicy',
+ 'Get-AzSqlDatabaseLongTermRetentionPolicy',
+ 'Set-AzSqlDatabaseLongTermRetentionPolicy',
+ 'Update-AzSqlDatabaseVulnerabilityAssessmentSetting',
+ 'Get-AzSqlDatabaseVulnerabilityAssessmentSetting',
+ 'Clear-AzSqlDatabaseVulnerabilityAssessmentSetting',
+ 'Update-AzSqlInstanceDatabaseVulnerabilityAssessmentSetting',
+ 'Get-AzSqlInstanceDatabaseVulnerabilityAssessmentSetting',
+ 'Clear-AzSqlInstanceDatabaseVulnerabilityAssessmentSetting',
+ 'Enable-AzSqlServerAdvancedThreatProtection',
+ 'Disable-AzSqlServerAdvancedThreatProtection',
+ 'Get-AzSqlServerAdvancedThreatProtectionSetting',
+ 'Get-AzSqlServerThreatDetectionSetting',
+ 'Remove-AzSqlServerThreatDetectionSetting',
+ 'Set-AzSqlServerThreatDetectionSetting',
+ 'Get-AzSqlDatabaseThreatDetectionSetting',
+ 'Set-AzSqlDatabaseThreatDetectionSetting',
+ 'Remove-AzSqlDatabaseThreatDetectionSetting',
'Set-AzSqlInstanceTDEProtector', 'Get-AzSqlInstanceTDEProtector'
# DSC resources to export from this module
diff --git a/src/Sql/Sql/ChangeLog.md b/src/Sql/Sql/ChangeLog.md
index 968331509137..d8da2fb3399c 100644
--- a/src/Sql/Sql/ChangeLog.md
+++ b/src/Sql/Sql/ChangeLog.md
@@ -19,6 +19,11 @@
-->
## Upcoming Release
* Added PublicNetworkAccess to New-AzSqlServer and Set-AzSqlServer
+* Added support for Long Term Retention backup configuration for Managed Databases
+ - Get/Set LTR policy on a managed database
+ - Get LTR backup(s) by managed database, managed instance, or by location
+ - Remove an LTR backup
+ - Restore an LTR backup to create a new managed database
* Added MinimalTlsVersion to New-AzSqlServer and Set-AzSqlServer
* Added MinimalTlsVersion to New-AzSqlInstance and Set-AzSqlInstance
* Bumped SQL SDK version for Az.Network
diff --git a/src/Sql/Sql/Database Backup/Cmdlet/RestoreAzureRMSqlDatabase.cs b/src/Sql/Sql/Database Backup/Cmdlet/RestoreAzureRMSqlDatabase.cs
index bd658e2c3904..8f428f2a8127 100644
--- a/src/Sql/Sql/Database Backup/Cmdlet/RestoreAzureRMSqlDatabase.cs
+++ b/src/Sql/Sql/Database Backup/Cmdlet/RestoreAzureRMSqlDatabase.cs
@@ -87,7 +87,7 @@ public class RestoreAzureRmSqlDatabase
[Parameter(
ParameterSetName = FromLongTermRetentionBackupWithVcoreSetName,
Mandatory = true,
- HelpMessage = "Restore from a long term retention backup backup.")]
+ HelpMessage = "Restore from a long term retention backup.")]
public SwitchParameter FromLongTermRetentionBackup { get; set; }
///
diff --git a/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs b/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs
index a4dfda0d2135..9efa6f7a2748 100644
--- a/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs
+++ b/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupCommunicator.cs
@@ -154,13 +154,13 @@ public Management.Sql.LegacySdk.Models.DeletedDatabaseBackup GetDeletedDatabaseB
/// The name of the Azure SQL Server
/// A backup vault
public Management.Sql.LegacySdk.Models.BackupLongTermRetentionVault GetBackupLongTermRetentionVault(
- string resourceGroupName,
- string serverName,
+ string resourceGroupName,
+ string serverName,
string baVaultName)
{
return GetLegacySqlClient().DatabaseBackup.GetBackupLongTermRetentionVault(
- resourceGroupName,
- serverName,
+ resourceGroupName,
+ serverName,
baVaultName).BackupLongTermRetentionVault;
}
@@ -172,15 +172,15 @@ public Management.Sql.LegacySdk.Models.BackupLongTermRetentionVault GetBackupLon
/// The name of the Azure SQL Database
/// A backup LongTermRetention policy
public Management.Sql.LegacySdk.Models.DatabaseBackupLongTermRetentionPolicy GetDatabaseBackupLongTermRetentionPolicy(
- string resourceGroupName,
- string serverName,
- string databaseName,
+ string resourceGroupName,
+ string serverName,
+ string databaseName,
string baPolicyName)
{
return GetLegacySqlClient().DatabaseBackup.GetDatabaseBackupLongTermRetentionPolicy(
- resourceGroupName,
- serverName,
- databaseName,
+ resourceGroupName,
+ serverName,
+ databaseName,
baPolicyName).DatabaseBackupLongTermRetentionPolicy;
}
@@ -188,15 +188,15 @@ public Management.Sql.LegacySdk.Models.DatabaseBackupLongTermRetentionPolicy Get
/// Creates or updates a backup LongTermRetention vault
///
public Management.Sql.LegacySdk.Models.BackupLongTermRetentionVault SetBackupLongTermRetentionVault(
- string resourceGroupName,
- string serverName,
- string baVaultName,
+ string resourceGroupName,
+ string serverName,
+ string baVaultName,
BackupLongTermRetentionVaultCreateOrUpdateParameters parameters)
{
return GetLegacySqlClient().DatabaseBackup.CreateOrUpdateBackupLongTermRetentionVault(
- resourceGroupName,
- serverName,
- baVaultName,
+ resourceGroupName,
+ serverName,
+ baVaultName,
parameters).BackupLongTermRetentionVault;
}
@@ -204,17 +204,17 @@ public Management.Sql.LegacySdk.Models.BackupLongTermRetentionVault SetBackupLon
/// Creates or updates a backup LongTermRetention policy
///
public Management.Sql.LegacySdk.Models.DatabaseBackupLongTermRetentionPolicy SetDatabaseBackupLongTermRetentionPolicy(
- string resourceGroupName,
- string serverName,
- string databaseName,
- string baPolicyName,
+ string resourceGroupName,
+ string serverName,
+ string databaseName,
+ string baPolicyName,
DatabaseBackupLongTermRetentionPolicyCreateOrUpdateParameters parameters)
{
return GetLegacySqlClient().DatabaseBackup.CreateOrUpdateDatabaseBackupLongTermRetentionPolicy(
- resourceGroupName,
- serverName,
- databaseName,
- baPolicyName,
+ resourceGroupName,
+ serverName,
+ databaseName,
+ baPolicyName,
parameters).DatabaseBackupLongTermRetentionPolicy;
}
diff --git a/src/Sql/Sql/Database Backup/Cmdlet/AzureSqlServerBackupLongTermRetentionVaultCmdletBase.cs b/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/AzureSqlManagedDatabaseBackupLongTermRetentionPolicyCmdletBase.cs
similarity index 52%
rename from src/Sql/Sql/Database Backup/Cmdlet/AzureSqlServerBackupLongTermRetentionVaultCmdletBase.cs
rename to src/Sql/Sql/ManagedDatabase Backup/Cmdlet/AzureSqlManagedDatabaseBackupLongTermRetentionPolicyCmdletBase.cs
index 09820b61edf2..8bf9eb9db1de 100644
--- a/src/Sql/Sql/Database Backup/Cmdlet/AzureSqlServerBackupLongTermRetentionVaultCmdletBase.cs
+++ b/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/AzureSqlManagedDatabaseBackupLongTermRetentionPolicyCmdletBase.cs
@@ -15,37 +15,48 @@
using System.Collections.Generic;
using System.Management.Automation;
using Microsoft.Azure.Commands.Common.Authentication.Models;
-using Microsoft.Azure.Commands.Sql.Backup.Model;
-using Microsoft.Azure.Commands.Sql.Backup.Services;
+using Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model;
+using Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Services;
using Microsoft.Azure.Commands.Sql.Common;
using Microsoft.Azure.Commands.Sql.Database.Model;
using Microsoft.Azure.Commands.Sql.Database.Services;
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
-namespace Microsoft.Azure.Commands.Sql.Backup.Cmdlet
+namespace Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Cmdlet
{
- public abstract class AzureSqlServerBackupLongTermRetentionVaultCmdletBase :
- AzureSqlCmdletBase, AzureSqlDatabaseBackupAdapter>
+ public abstract class AzureSqlManagedDatabaseBackupLongTermRetentionPolicyCmdletBase :
+ AzureSqlCmdletBase, AzureSqlManagedDatabaseBackupAdapter>
{
///
- /// Gets or sets the name of the database server to use.
+ /// Gets or sets the name of the managed instance to use.
///
[Parameter(Mandatory = true,
ValueFromPipelineByPropertyName = true,
Position = 1,
- HelpMessage = "The name of the Azure SQL Server the database is in.")]
- [ResourceNameCompleter("Microsoft.Sql/servers", "ResourceGroupName")]
+ HelpMessage = "The name of the Azure Managed Instance the database belongs to.")]
+ [ResourceNameCompleter("Microsoft.Sql/managedInstance", "ResourceGroupName")]
[ValidateNotNullOrEmpty]
- public string ServerName { get; set; }
+ public string InstanceName { get; set; }
+
+ ///
+ /// Gets or sets the name of the managed database to use.
+ ///
+ [Parameter(Mandatory = true,
+ ValueFromPipelineByPropertyName = true,
+ Position = 2,
+ HelpMessage = "The name of the Azure Managed Database to use.")]
+ [ResourceNameCompleter("Microsoft.Sql/managedInstances/databases", "ResourceGroupName", "ManagedInstanceName")]
+ [ValidateNotNullOrEmpty]
+ public string DatabaseName { get; set; }
///
/// Initializes the adapter
///
///
- protected override AzureSqlDatabaseBackupAdapter InitModelAdapter()
+ protected override AzureSqlManagedDatabaseBackupAdapter InitModelAdapter()
{
- return new AzureSqlDatabaseBackupAdapter(DefaultProfile.DefaultContext);
+ return new AzureSqlManagedDatabaseBackupAdapter(DefaultProfile.DefaultContext);
}
}
}
diff --git a/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/AzureSqlManagedDatabaseLongTermRetentionBackupCmdletBase.cs b/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/AzureSqlManagedDatabaseLongTermRetentionBackupCmdletBase.cs
new file mode 100644
index 000000000000..7568dc01fdf5
--- /dev/null
+++ b/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/AzureSqlManagedDatabaseLongTermRetentionBackupCmdletBase.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.Collections.Generic;
+using System.Management.Automation;
+using Microsoft.Azure.Commands.Common.Authentication.Models;
+using Microsoft.Azure.Commands.Sql.Common;
+using Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model;
+using Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Services;
+using Microsoft.Azure.Commands.Sql.ManagedDatabase.Model;
+using Microsoft.Azure.Commands.Sql.ManagedDatabase.Services;
+using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
+
+namespace Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Cmdlet
+{
+ public abstract class AzureSqlManagedDatabaseLongTermRetentionBackupCmdletBase :
+ AzureSqlCmdletBase, AzureSqlManagedDatabaseBackupAdapter>
+ {
+ ///
+ /// Initializes the adapter
+ ///
+ ///
+ protected override AzureSqlManagedDatabaseBackupAdapter InitModelAdapter()
+ {
+ return new AzureSqlManagedDatabaseBackupAdapter(DefaultProfile.DefaultContext);
+ }
+ }
+}
diff --git a/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/GetAzureSqlManagedDatabaseBackupLongTermRetentionPolicy.cs b/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/GetAzureSqlManagedDatabaseBackupLongTermRetentionPolicy.cs
new file mode 100644
index 000000000000..148678f174b4
--- /dev/null
+++ b/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/GetAzureSqlManagedDatabaseBackupLongTermRetentionPolicy.cs
@@ -0,0 +1,67 @@
+// ----------------------------------------------------------------------------------
+//
+// 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.Linq;
+using System.Collections.Generic;
+using System.Management.Automation;
+using Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model;
+using Microsoft.Azure.Commands.Sql.Database.Model;
+using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
+
+namespace Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Cmdlet
+{
+ [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlInstanceDatabaseBackupLongTermRetentionPolicy",
+ SupportsShouldProcess = true),
+ OutputType(typeof(AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel))]
+ [Alias("Get-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlInstanceDatabaseLongTermRetentionPolicy")]
+ public class GetAzureSqlManagedDatabaseBackupLongTermRetentionPolicy : AzureSqlManagedDatabaseBackupLongTermRetentionPolicyCmdletBase
+ {
+ ///
+ /// Get the entities from the service
+ ///
+ /// The list of entities
+ protected override IEnumerable GetEntity()
+ {
+ return new List()
+ {
+ ModelAdapter.GetManagedDatabaseLongTermRetentionPolicy(
+ this.ResourceGroupName,
+ this.InstanceName,
+ this.DatabaseName)
+ };
+ }
+
+ ///
+ /// No user input to apply to model
+ ///
+ /// Model retrieved from service
+ /// The model that was passed in
+ protected override IEnumerable ApplyUserInputToModel(
+ IEnumerable model)
+ {
+ return model;
+ }
+
+ ///
+ /// No changes to persist to server
+ ///
+ /// The output of apply user input to model
+ /// The input entity
+ protected override IEnumerable PersistChanges(
+ IEnumerable entity)
+ {
+ return entity;
+ }
+ }
+}
diff --git a/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/GetAzureSqlManagedDatabaseLongTermRetentionBackup.cs b/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/GetAzureSqlManagedDatabaseLongTermRetentionBackup.cs
new file mode 100644
index 000000000000..e03491a84ca6
--- /dev/null
+++ b/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/GetAzureSqlManagedDatabaseLongTermRetentionBackup.cs
@@ -0,0 +1,277 @@
+// ----------------------------------------------------------------------------------
+//
+// 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.Linq;
+using System.Collections.Generic;
+using System.Management.Automation;
+using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
+using Microsoft.Azure.Commands.Sql.ManagedDatabase.Model;
+using Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model;
+using Microsoft.Azure.Commands.Sql.Database.Model;
+using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
+
+namespace Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Cmdlet
+{
+ [Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlInstanceDatabaseLongTermRetentionBackup", DefaultParameterSetName = LocationSet, SupportsShouldProcess = true), OutputType(typeof(AzureSqlManagedDatabaseLongTermRetentionBackupModel))]
+ public class GetAzureSqlManagedDatabaseLongTermRetentionBackup : AzureSqlManagedDatabaseLongTermRetentionBackupCmdletBase
+ {
+ ///
+ /// Parameter set name for backup name.
+ ///
+ private const string BackupNameSet = "BackupName";
+
+ ///
+ /// Parameter set name for instance name.
+ ///
+ private const string InstanceNameSet = "InstanceName";
+
+ ///
+ /// Parameter set for database name.
+ ///
+ private const string DatabaseNameSet = "DatabaseName";
+
+ ///
+ /// Parameter set name for location name.
+ ///
+ private const string LocationSet = "Location";
+
+ ///
+ /// Parameter set for using a Database Input Object when getting a single backup.
+ ///
+ private const string GetBackupByInputObjectSet = "GetBackupByInputObject";
+
+ ///
+ /// Parameter set for using a Database Input Object when getting multiple backups.
+ ///
+ private const string GetBackupsByInputObjectSet = "GetBackupsByInputObject";
+
+ ///
+ /// Parameter set for using a Database Resource ID when getting a single backup.
+ ///
+ private const string GetBackupByResourceIdSet = "GetBackupByResourceId";
+
+ ///
+ /// The location the backups are in.
+ ///
+ [Parameter(Mandatory = true,
+ ParameterSetName = LocationSet,
+ Position = 0,
+ HelpMessage = "The location of the backups' source Managed Instance.")]
+ [Parameter(Mandatory = true,
+ ParameterSetName = InstanceNameSet,
+ Position = 0,
+ HelpMessage = "The backups' source Managed Instance.")]
+ [Parameter(Mandatory = true,
+ ParameterSetName = DatabaseNameSet,
+ Position = 0,
+ HelpMessage = "The backups' source Managed Database.")]
+ [Parameter(Mandatory = true,
+ ParameterSetName = BackupNameSet,
+ Position = 0,
+ HelpMessage = "The backups' source Managed Instance.")]
+ [Parameter(Mandatory = true,
+ ParameterSetName = GetBackupByResourceIdSet,
+ Position = 1,
+ HelpMessage = "The location of the backup's source Managed Instance.")]
+ [LocationCompleter("Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups")]
+ public string Location { get; set; }
+
+ ///
+ /// Gets or sets the Database object to get backups for.
+ ///
+ [Parameter(ParameterSetName = GetBackupByInputObjectSet,
+ Mandatory = true,
+ Position = 0,
+ ValueFromPipeline = true,
+ HelpMessage = "The database object to get backups for.")]
+ [Parameter(ParameterSetName = GetBackupsByInputObjectSet,
+ Mandatory = true,
+ Position = 0,
+ ValueFromPipeline = true,
+ HelpMessage = "The database object to get backups for.")]
+ [ValidateNotNullOrEmpty]
+ public AzureSqlManagedDatabaseModel InputObject { get; set; }
+
+ ///
+ /// Gets or sets the Database Resource ID to get backups for.
+ ///
+ [Parameter(Mandatory = true,
+ ParameterSetName = GetBackupByResourceIdSet,
+ Position = 0,
+ ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The database Resource ID to get backups for.")]
+ public string ResourceId { get; set; }
+
+ ///
+ /// Gets or sets the name of the server.
+ ///
+ [Parameter(Mandatory = true,
+ ParameterSetName = InstanceNameSet,
+ Position = 1,
+ HelpMessage = "The name of the Managed Instance the backups are under.")]
+ [Parameter(Mandatory = true,
+ ParameterSetName = DatabaseNameSet,
+ Position = 1,
+ HelpMessage = "The name of the Managed Database the backups are under.")]
+ [Parameter(Mandatory = true,
+ ParameterSetName = BackupNameSet,
+ Position = 1,
+ HelpMessage = "The name of the Managed Instance the backups are under.")]
+ [ResourceNameCompleter("Microsoft.Sql/managedInstances", "ResourceGroupName")]
+ [ValidateNotNullOrEmpty]
+ public string InstanceName { get; set; }
+
+ ///
+ /// Gets or sets the name of the database.
+ ///
+ [Parameter(Mandatory = true,
+ ParameterSetName = DatabaseNameSet,
+ Position = 2,
+ HelpMessage = "The name of the Managed Database the backups are under.")]
+ [Parameter(Mandatory = true,
+ ParameterSetName = BackupNameSet,
+ Position = 2,
+ HelpMessage = "The name of the Managed Instance the backup is from.")]
+ [ResourceNameCompleter("Microsoft.Sql/managedInstances/databases", "ResourceGroupName", "ManagedInstanceName")]
+ [ValidateNotNullOrEmpty]
+ public string DatabaseName { get; set; }
+
+ ///
+ /// Gets or sets the backup name.
+ ///
+ [Parameter(Mandatory = true,
+ ParameterSetName = BackupNameSet,
+ ValueFromPipelineByPropertyName = true,
+ Position = 3,
+ HelpMessage = "The name of the backup.")]
+ [Parameter(Mandatory = true,
+ ParameterSetName = GetBackupByInputObjectSet,
+ ValueFromPipelineByPropertyName = true,
+ Position = 2,
+ HelpMessage = "The name of the backup.")]
+ [ValidateNotNullOrEmpty]
+ [SupportsWildcards]
+ public string BackupName { get; set; }
+
+ ///
+ /// Gets or sets the name of the resource group to use.
+ ///
+ [Parameter(Mandatory = false,
+ ParameterSetName = LocationSet,
+ HelpMessage = "The name of the resource group.")]
+ [Parameter(Mandatory = false,
+ ParameterSetName = InstanceNameSet,
+ HelpMessage = "The name of the resource group.")]
+ [Parameter(Mandatory = false,
+ ParameterSetName = DatabaseNameSet,
+ HelpMessage = "The name of the resource group.")]
+ [Parameter(Mandatory = false,
+ ParameterSetName = BackupNameSet,
+ HelpMessage = "The name of the resource group.")]
+ [ResourceGroupCompleter]
+ public override string ResourceGroupName { get; set; }
+
+ ///
+ /// Gets or sets whether or not to only get the latest backup per database.
+ ///
+ [Parameter(Mandatory = false,
+ ParameterSetName = InstanceNameSet,
+ HelpMessage = "Whether or not to only get the latest backup per database. Defaults to false.")]
+ [Parameter(Mandatory = false,
+ ParameterSetName = LocationSet,
+ HelpMessage = "Whether or not to only get the latest backup per database. Defaults to false.")]
+ [Parameter(Mandatory = false,
+ ParameterSetName = DatabaseNameSet,
+ HelpMessage = "Whether or not to only get the latest backup per database. Defaults to false.")]
+ [Parameter(Mandatory = false,
+ ParameterSetName = GetBackupsByInputObjectSet,
+ HelpMessage = "Whether or not to only get the latest backup per database. Defaults to false.")]
+ [ValidateNotNullOrEmpty]
+ public SwitchParameter OnlyLatestPerDatabase { get; set; }
+
+ ///
+ /// Gets or sets the database state to look for (Alive or Deleted).
+ ///
+ [Parameter(Mandatory = false,
+ ParameterSetName = InstanceNameSet,
+ ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The state of the database whose backups you want to find, Alive, Deleted, or All. Defaults to All")]
+ [Parameter(Mandatory = false,
+ ParameterSetName = LocationSet,
+ ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The state of the database whose backups you want to find, Alive, Deleted, or All. Defaults to All")]
+ [Parameter(Mandatory = false,
+ ParameterSetName = GetBackupsByInputObjectSet,
+ ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The state of the database whose backups you want to find, Alive, Deleted, or All. Defaults to All")]
+ [ValidateNotNullOrEmpty]
+ [ValidateSet(Management.Sql.Models.LongTermRetentionDatabaseState.All, Management.Sql.Models.LongTermRetentionDatabaseState.Deleted, Management.Sql.Models.LongTermRetentionDatabaseState.Live,
+ IgnoreCase = true)]
+ public string DatabaseState { get; set; }
+
+ ///
+ /// Get the entities from the service
+ ///
+ /// The list of entities
+ protected override IEnumerable GetEntity()
+ {
+ if (InputObject != null)
+ {
+ Location = InputObject.Location;
+ InstanceName = InputObject.ManagedInstanceName;
+ DatabaseName = InputObject.Name;
+ ResourceGroupName = InputObject.ResourceGroupName;
+ }
+ else if (!string.IsNullOrWhiteSpace(ResourceId))
+ {
+ ResourceIdentifier identifier = new ResourceIdentifier(ResourceId);
+ DatabaseName = identifier.ResourceName;
+ ResourceGroupName = identifier.ResourceGroupName;
+ InstanceName = identifier.ParentResource.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries)[1];
+ }
+
+ return SubResourceWildcardFilter(BackupName, ModelAdapter.GetManagedDatabaseLongTermRetentionBackups(
+ Location,
+ InstanceName,
+ DatabaseName,
+ BackupName,
+ ResourceGroupName,
+ OnlyLatestPerDatabase.IsPresent,
+ DatabaseState));
+ }
+
+ ///
+ /// No user input to apply to model
+ ///
+ /// Model retrieved from service
+ /// The model that was passed in
+ protected override IEnumerable ApplyUserInputToModel(
+ IEnumerable model)
+ {
+ return model;
+ }
+
+ ///
+ /// No changes to persist to managed instance
+ ///
+ /// The output of apply user input to model
+ /// The input entity
+ protected override IEnumerable PersistChanges(
+ IEnumerable entity)
+ {
+ return entity;
+ }
+ }
+}
diff --git a/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/RemoveAzureSqlManagedDatabaseLongTermRetentionBackup.cs b/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/RemoveAzureSqlManagedDatabaseLongTermRetentionBackup.cs
new file mode 100644
index 000000000000..46fa28624508
--- /dev/null
+++ b/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/RemoveAzureSqlManagedDatabaseLongTermRetentionBackup.cs
@@ -0,0 +1,236 @@
+// ----------------------------------------------------------------------------------
+//
+// 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.Linq;
+using System.Collections.Generic;
+using System.Management.Automation;
+using System.Globalization;
+using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
+using Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model;
+using Microsoft.Azure.Commands.Sql.ManagedDatabase.Model;
+using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
+
+namespace Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Cmdlet
+{
+ [Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlInstanceDatabaseLongTermRetentionBackup", DefaultParameterSetName = RemoveBackupDefaultSet, SupportsShouldProcess = true), OutputType(typeof(AzureSqlManagedDatabaseLongTermRetentionBackupModel))]
+ public class RemoveAzureSqlManagedDatabaseLongTermRetentionBackup : AzureSqlManagedDatabaseLongTermRetentionBackupCmdletBase
+ {
+ ///
+ /// Parameter set name for the default remove.
+ ///
+ private const string RemoveBackupDefaultSet = "RemoveBackupDefault";
+
+ ///
+ /// Parameter set name for remove with an input object.
+ ///
+ private const string RemoveBackupByInputObjectSet = "RemoveBackupByInputObject";
+
+ ///
+ /// Parameter set name for remove with a resource ID.
+ ///
+ private const string RemoveBackupByResourceIdSet = "RemoveBackupByResourceId";
+
+ ///
+ /// Gets or sets the name of the location the backup is in.
+ ///
+ [Parameter(Mandatory = true,
+ ParameterSetName = RemoveBackupDefaultSet,
+ Position = 0,
+ HelpMessage = "The location of the backups' source Managed Instance.")]
+ [ValidateNotNullOrEmpty]
+ [LocationCompleter("Microsoft.Sql/locations/longTermRetentionManagedInstances")]
+ public virtual string Location { get; set; }
+
+ ///
+ /// Gets or sets the name of the server.
+ ///
+ [Parameter(Mandatory = true,
+ ParameterSetName = RemoveBackupDefaultSet,
+ Position = 1,
+ HelpMessage = "The name of the Managed Instance the backup is under.")]
+ [ResourceNameCompleter("Microsoft.Sql/managedInstances", "ResourceGroupName")]
+ [ValidateNotNullOrEmpty]
+ public string InstanceName { get; set; }
+
+ ///
+ /// Gets or sets the name of the database.
+ ///
+ [Parameter(Mandatory = true,
+ ParameterSetName = RemoveBackupDefaultSet,
+ Position = 2,
+ HelpMessage = "The name of the Managed Database the backup is from.")]
+ [ResourceNameCompleter("Microsoft.Sql/managedInstances/databases", "ResourceGroupName", "ManagedInstanceName")]
+ [ValidateNotNullOrEmpty]
+ public string DatabaseName { get; set; }
+
+ ///
+ /// Gets or sets the LTR Backup object to remove.
+ ///
+ [Parameter(ParameterSetName = RemoveBackupByInputObjectSet,
+ Mandatory = true,
+ Position = 0,
+ ValueFromPipeline = true,
+ HelpMessage = "The Database Long Term Retention Backup object to remove.")]
+ [ValidateNotNullOrEmpty]
+ public AzureSqlManagedDatabaseLongTermRetentionBackupModel InputObject { get; set; }
+
+ ///
+ /// Gets or sets the resource ID of the LTR Backup to remove.
+ ///
+ [Parameter(ParameterSetName = RemoveBackupByResourceIdSet,
+ Mandatory = true,
+ Position = 0,
+ ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The Resource ID of the Database Long Term Retention Backup to remove.")]
+ [ValidateNotNullOrEmpty]
+ public string ResourceId { get; set; }
+
+ ///
+ /// Gets or sets the backup name.
+ ///
+ [Parameter(Mandatory = true,
+ ParameterSetName = RemoveBackupDefaultSet,
+ ValueFromPipelineByPropertyName = true,
+ Position = 3,
+ HelpMessage = "The name of the backup.")]
+ [ValidateNotNullOrEmpty]
+ public string BackupName { get; set; }
+
+ ///
+ /// Gets or sets the name of the resource group to use.
+ ///
+ [Parameter(Mandatory = false,
+ ParameterSetName = RemoveBackupDefaultSet,
+ HelpMessage = "The name of the resource group.")]
+ [ResourceGroupCompleter]
+ public override string ResourceGroupName { get; set; }
+
+ ///
+ /// Defines whether it is ok to skip the requesting of rule removal confirmation
+ ///
+ [Parameter(HelpMessage = "Skip confirmation message for performing the action")]
+ public SwitchParameter Force { get; set; }
+
+ ///
+ /// Defines whether the cmdlets will output the model object at the end of its execution
+ ///
+ public SwitchParameter PassThru { get; set; }
+
+ ///
+ /// Returns true if the model object that was constructed by this cmdlet should be written out
+ ///
+ protected override bool WriteResult() { return PassThru; }
+
+ ///
+ /// Get the entities from the service
+ ///
+ /// The list of entities
+ protected override IEnumerable GetEntity()
+ {
+ return ModelAdapter.GetManagedDatabaseLongTermRetentionBackups(
+ Location,
+ InstanceName,
+ DatabaseName,
+ BackupName,
+ ResourceGroupName,
+ null,
+ null);
+ }
+
+ ///
+ /// No user input to apply to model
+ ///
+ /// Model retrieved from service
+ /// The model that was passed in
+ protected override IEnumerable ApplyUserInputToModel(
+ IEnumerable model)
+ {
+ return model;
+ }
+
+ ///
+ /// No changes to persist to server
+ ///
+ /// The output of apply user input to model
+ /// The input entity
+ protected override IEnumerable PersistChanges(
+ IEnumerable entity)
+ {
+ ModelAdapter.RemoveManagedDatabaseLongTermRetentionBackup(Location, InstanceName, DatabaseName, BackupName, ResourceGroupName);
+ return entity;
+ }
+
+ ///
+ /// Entry point for the cmdlet
+ ///
+ public override void ExecuteCmdlet()
+ {
+ if (InputObject != null)
+ {
+ Location = InputObject.Location;
+ InstanceName = InputObject.ManagedInstanceName;
+ DatabaseName = InputObject.DatabaseName;
+ BackupName = InputObject.BackupName;
+ ResourceGroupName = InputObject.ResourceGroupName;
+ }
+ else if (!string.IsNullOrWhiteSpace(ResourceId))
+ {
+ ParseLongTermRentionBackupResourceId(ResourceId);
+ }
+
+ if (ShouldProcess(this.BackupName))
+ {
+ if (Force.IsPresent || ShouldContinue(
+ string.Format(CultureInfo.InvariantCulture, Properties.Resources.RemoveAzureSqlInstanceDatabaseLongTermRetentionBackupDescription, this.BackupName, this.DatabaseName, this.InstanceName, this.Location),
+ string.Format(CultureInfo.InvariantCulture, Properties.Resources.RemoveAzureSqlInstanceDatabaseLongTermRetentionBackupWarning, this.BackupName, this.DatabaseName, this.InstanceName, this.Location)))
+ {
+ base.ExecuteCmdlet();
+ }
+ }
+ }
+
+ ///
+ /// Parse the longTermRetentionBackup resource Id
+ ///
+ ///
+ private void ParseLongTermRentionBackupResourceId(string resourceId)
+ {
+ int offset = 0;
+ string[] tokens = resourceId.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries);
+ if (tokens.Length == 14 || tokens.Length == 12)
+ {
+ if (tokens.Length == 14)
+ {
+ ResourceGroupName = tokens[3];
+ offset = 2;
+ }
+ else
+ {
+ ResourceGroupName = null;
+ }
+
+ Location = tokens[5 + offset];
+ InstanceName = tokens[7 + offset];
+ DatabaseName = tokens[9 + offset];
+ BackupName = tokens[11 + offset];
+ }
+ else
+ {
+ throw new ArgumentException("Invalid parameter", "ResourceId");
+
+ }
+ }
+ }
+}
diff --git a/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/SetAzureSqlManagedDatabaseBackupLongTermRetentionPolicy.cs b/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/SetAzureSqlManagedDatabaseBackupLongTermRetentionPolicy.cs
new file mode 100644
index 000000000000..3c4a0eff63a7
--- /dev/null
+++ b/src/Sql/Sql/ManagedDatabase Backup/Cmdlet/SetAzureSqlManagedDatabaseBackupLongTermRetentionPolicy.cs
@@ -0,0 +1,197 @@
+// ----------------------------------------------------------------------------------
+//
+// 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.Linq;
+using System.Management.Automation;
+using Microsoft.Azure.Commands.Sql.Database.Model;
+using Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model;
+using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
+
+namespace Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Cmdlet
+{
+ ///
+ /// Cmdlet to create or update a new Azure Sql Database backup archival policy
+ ///
+ [Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlInstanceDatabaseBackupLongTermRetentionPolicy",
+ DefaultParameterSetName = WeeklyRetentionRequiredSet, SupportsShouldProcess = true,
+ ConfirmImpact = ConfirmImpact.Low),
+ OutputType(typeof(AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel))]
+ [Alias("Set-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlInstanceDatabaseLongTermRetentionPolicy")]
+ public class SetAzureSqlManagedDatabaseBackupLongTermRetentionPolicy : AzureSqlManagedDatabaseBackupLongTermRetentionPolicyCmdletBase
+ {
+ ///
+ /// Parameter set name for Weekly Retention.
+ ///
+ private const string WeeklyRetentionRequiredSet = "WeeklyRetentionRequired";
+
+ ///
+ /// Parameter set name for Monthly Retention.
+ ///
+ private const string MonthlyRetentionRequiredSet = "MonthlyRetentionRequired";
+
+ ///
+ /// Parameter set name for Yearly Retention.
+ ///
+ private const string YearlyRetentionRequiredSet = "YearlyRetentionRequired";
+
+ ///
+ /// Parameter set for clearing the long term retention V2 policy.
+ ///
+ private const string RemovePolicySet = "RemovePolicy";
+
+ ///
+ /// Gets or sets whether or not to clear the Long Term Retention V2 policy.
+ ///
+ [Parameter(Mandatory = true,
+ ParameterSetName = RemovePolicySet,
+ HelpMessage = "If provided, the policy for the database will be cleared.")]
+ public SwitchParameter RemovePolicy { get; set; }
+
+ ///
+ /// Gets or sets the Weekly Retention.
+ ///
+ [Parameter(Mandatory = true,
+ ParameterSetName = WeeklyRetentionRequiredSet,
+ ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The Weekly Retention. If just a number is passed instead of an ISO 8601 string, days will be assumed as the units. There is a minimum of 7 days and a maximum of 10 years.")]
+ [Parameter(Mandatory = false,
+ ParameterSetName = MonthlyRetentionRequiredSet,
+ ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The Weekly Retention. If just a number is passed instead of an ISO 8601 string, days will be assumed as the units. There is a minimum of 7 days and a maximum of 10 years.")]
+ [Parameter(Mandatory = false,
+ ParameterSetName = YearlyRetentionRequiredSet,
+ ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The Weekly Retention. If just a number is passed instead of an ISO 8601 string, days will be assumed as the units. There is a minimum of 7 days and a maximum of 10 years.")]
+ [ValidateNotNullOrEmpty]
+ public string WeeklyRetention { get; set; }
+
+ ///
+ /// Gets or sets the Monthly Retention.
+ ///
+ [Parameter(Mandatory = true,
+ ParameterSetName = MonthlyRetentionRequiredSet,
+ ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The Monthly Retention. If just a number is passed instead of an ISO 8601 string, days will be assumed as the units. There is a minimum of 7 days and a maximum of 10 years.")]
+ [Parameter(Mandatory = false,
+ ParameterSetName = YearlyRetentionRequiredSet,
+ ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The Monthly Retention. If just a number is passed instead of an ISO 8601 string, days will be assumed as the units. There is a minimum of 7 days and a maximum of 10 years.")]
+ [ValidateNotNullOrEmpty]
+ public string MonthlyRetention { get; set; }
+
+ ///
+ /// Gets or sets the Yearly Retention.
+ ///
+ [Parameter(Mandatory = true,
+ ParameterSetName = YearlyRetentionRequiredSet,
+ ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The Yearly Retention. If just a number is passed instead of an ISO 8601 string, days will be assumed as the units. There is a minimum of 7 days and a maximum of 10 years.")]
+ [ValidateNotNullOrEmpty]
+ public string YearlyRetention { get; set; }
+
+ ///
+ /// Gets or sets the Week of Year for the Yearly Retention.
+ ///
+ [Parameter(Mandatory = true,
+ ParameterSetName = YearlyRetentionRequiredSet,
+ ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The Week of Year, 1 to 52, to save for the Yearly Retention.")]
+ [ValidateNotNullOrEmpty]
+ public int WeekOfYear { get; set; }
+
+ ///
+ /// Get the entities from the service
+ ///
+ /// The list of entities
+ protected override IEnumerable GetEntity()
+ {
+ return new List()
+ {
+ ModelAdapter.GetManagedDatabaseLongTermRetentionPolicy(
+ this.ResourceGroupName,
+ this.InstanceName,
+ this.DatabaseName)
+ };
+ }
+
+ ///
+ /// Create the model from user input
+ ///
+ /// Model retrieved from service
+ /// The model that was passed in
+ protected override IEnumerable ApplyUserInputToModel(IEnumerable model)
+ {
+ int temp;
+ string retentionFormat = "P{0}D";
+ if (int.TryParse(WeeklyRetention, out temp))
+ {
+ WeeklyRetention = string.Format(retentionFormat, WeeklyRetention);
+ }
+
+ if (int.TryParse(MonthlyRetention, out temp))
+ {
+ MonthlyRetention = string.Format(retentionFormat, MonthlyRetention);
+ }
+
+ if (int.TryParse(YearlyRetention, out temp))
+ {
+ YearlyRetention = string.Format(retentionFormat, YearlyRetention);
+ }
+
+ if (RemovePolicy.IsPresent)
+ {
+ WeeklyRetention = "P0D";
+ MonthlyRetention = "P0D";
+ YearlyRetention = "P0D";
+ WeekOfYear = 1;
+ }
+
+ return new List()
+ {
+ new AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel()
+ {
+ ResourceGroupName = ResourceGroupName,
+ ManagedInstanceName = InstanceName,
+ DatabaseName = DatabaseName,
+ Location = model.FirstOrDefault().Location,
+ WeeklyRetention = WeeklyRetention,
+ MonthlyRetention = MonthlyRetention,
+ YearlyRetention = YearlyRetention,
+ WeekOfYear = WeekOfYear
+ }
+ };
+ }
+
+ ///
+ /// Update the entity
+ ///
+ /// The output of apply user input to model
+ /// The input entity
+ protected override IEnumerable PersistChanges(IEnumerable entity)
+ {
+ if (ShouldProcess(DatabaseName))
+ {
+ return new List() {
+ ModelAdapter.SetManagedDatabaseBackupLongTermRetentionPolicy(this.ResourceGroupName, this.InstanceName, this.DatabaseName, entity.First())
+ };
+ }
+ else
+ {
+ return null;
+ }
+ }
+ }
+}
diff --git a/src/Sql/Sql/ManagedDatabase Backup/Model/AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel.cs b/src/Sql/Sql/ManagedDatabase Backup/Model/AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel.cs
new file mode 100644
index 000000000000..3a9d5295071b
--- /dev/null
+++ b/src/Sql/Sql/ManagedDatabase Backup/Model/AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel.cs
@@ -0,0 +1,63 @@
+// ----------------------------------------------------------------------------------
+//
+// 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 Microsoft.Azure.Management.Sql.Models;
+
+namespace Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model
+{
+ public class AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel
+ {
+ ///
+ /// Gets or sets the name of the resource group
+ ///
+ public string ResourceGroupName { get; set; }
+
+ ///
+ /// Gets or sets the name of the instance
+ ///
+ public string ManagedInstanceName { get; set; }
+
+ ///
+ /// Gets or sets the name of the database
+ ///
+ public string DatabaseName { get; set; }
+
+ ///
+ /// Gets or sets the weekly retention
+ ///
+ public string WeeklyRetention { get; set; }
+
+ ///
+ /// Gets or sets the monthly retention
+ ///
+ public string MonthlyRetention { get; set; }
+
+ ///
+ /// Gets or sets the yearly retention
+ ///
+ public string YearlyRetention { get; set; }
+
+ ///
+ /// Gets or sets the week of year for yearly retention
+ ///
+ public int? WeekOfYear { get; set; }
+
+ ///
+ /// Gets or sets the location
+ ///
+ public string Location { get; set; }
+ }
+}
diff --git a/src/Sql/Sql/ManagedDatabase Backup/Model/AzureSqlManagedDatabaseLongTermRetentionBackupModel.cs b/src/Sql/Sql/ManagedDatabase Backup/Model/AzureSqlManagedDatabaseLongTermRetentionBackupModel.cs
new file mode 100644
index 000000000000..9c9412ff03b2
--- /dev/null
+++ b/src/Sql/Sql/ManagedDatabase Backup/Model/AzureSqlManagedDatabaseLongTermRetentionBackupModel.cs
@@ -0,0 +1,75 @@
+// ----------------------------------------------------------------------------------
+//
+// 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.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model
+{
+ public class AzureSqlManagedDatabaseLongTermRetentionBackupModel
+ {
+ ///
+ /// Gets or sets the backup expiration time.
+ ///
+ public DateTime? BackupExpirationTime { get; set; }
+
+ ///
+ /// Gets or sets the backup name.
+ ///
+ public string BackupName { get; set; }
+
+ ///
+ /// Gets or sets the backup time.
+ ///
+ public DateTime? BackupTime { get; set; }
+
+ ///
+ /// Gets or sets the database name.
+ ///
+ public string DatabaseName { get; set; }
+
+ ///
+ /// Gets or sets the database deletion time.
+ ///
+ public DateTime? DatabaseDeletionTime { get; set; }
+
+ ///
+ /// Gets or sets the location name.
+ ///
+ public string Location { get; set; }
+
+ ///
+ /// Gets or sets the resource ID.
+ ///
+ public string ResourceId { get; set; }
+
+ ///
+ /// Gets or sets the Managed Instance name.
+ ///
+ public string ManagedInstanceName { get; set; }
+
+ ///
+ /// Gets or sets the instance create time.
+ ///
+ public DateTime? InstanceCreateTime { get; set; }
+
+ ///
+ /// Gets or sets the resource group name.
+ ///
+ public string ResourceGroupName { get; set; }
+ }
+}
diff --git a/src/Sql/Sql/ManagedDatabase Backup/Services/AzureSqlManagedDatabaseBackupAdapter.cs b/src/Sql/Sql/ManagedDatabase Backup/Services/AzureSqlManagedDatabaseBackupAdapter.cs
index 9f393a8d0660..8394e2f6d2ea 100644
--- a/src/Sql/Sql/ManagedDatabase Backup/Services/AzureSqlManagedDatabaseBackupAdapter.cs
+++ b/src/Sql/Sql/ManagedDatabase Backup/Services/AzureSqlManagedDatabaseBackupAdapter.cs
@@ -22,6 +22,7 @@
using System.Globalization;
using System.Linq;
using Microsoft.Azure.Management.Sql.Models;
+using System.Management.Automation;
namespace Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Services
{
@@ -201,5 +202,147 @@ internal AzureSqlDeletedManagedDatabaseBackupModel GetDeletedDatabaseBackup(stri
EarliestRestorePoint = deletedDatabaseBackup.EarliestRestoreDate,
};
}
+
+ ///
+ /// Get a backup LongTermRetention policy for a Managed Database
+ ///
+ /// The name of the resource group
+ /// The name of the Managed Instance
+ /// The name of the Managed Database
+ /// Whether or not the user provided the Current switch to get the current implementation of LTR policy
+ /// A backup LongTermRetention policy
+ internal AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel GetManagedDatabaseLongTermRetentionPolicy(
+ string resourceGroup,
+ string instanceName,
+ string databaseName)
+ {
+ ManagedInstanceLongTermRetentionPolicy response = Communicator.GetManagedDatabaseLongTermRetentionPolicy(
+ resourceGroup,
+ instanceName,
+ databaseName);
+ return new AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel()
+ {
+ ResourceGroupName = resourceGroup,
+ ManagedInstanceName = instanceName,
+ DatabaseName = databaseName,
+ WeeklyRetention = response.WeeklyRetention,
+ MonthlyRetention = response.MonthlyRetention,
+ YearlyRetention = response.YearlyRetention,
+ WeekOfYear = response.WeekOfYear
+ };
+ }
+
+ ///
+ /// Create or update a backup LongTermRetention policy for a Managed Database
+ ///
+ /// The name of the resource group
+ /// The name of the Azure SQL Server
+ /// The name of the Azure SQL Database
+ /// A backup LongTermRetention policy
+ internal AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel SetManagedDatabaseBackupLongTermRetentionPolicy(
+ string resourceGroup,
+ string managedInstanceName,
+ string databaseName,
+ AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel model)
+ {
+ ManagedInstanceLongTermRetentionPolicy response = Communicator.SetManagedDatabaseLongTermRetentionPolicy(
+ resourceGroup,
+ managedInstanceName,
+ databaseName,
+ new ManagedInstanceLongTermRetentionPolicy()
+ {
+ WeeklyRetention = model.WeeklyRetention,
+ MonthlyRetention = model.MonthlyRetention,
+ YearlyRetention = model.YearlyRetention,
+ WeekOfYear = model.WeekOfYear
+ });
+ return new AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel()
+ {
+ ResourceGroupName = resourceGroup,
+ ManagedInstanceName = managedInstanceName,
+ DatabaseName = databaseName,
+ WeeklyRetention = response.WeeklyRetention,
+ MonthlyRetention = response.MonthlyRetention,
+ YearlyRetention = response.YearlyRetention,
+ WeekOfYear = response.WeekOfYear
+ };
+ }
+
+ private AzureSqlManagedDatabaseLongTermRetentionBackupModel GetBackupModel(ManagedInstanceLongTermRetentionBackup backup, string locationName)
+ {
+ return new AzureSqlManagedDatabaseLongTermRetentionBackupModel()
+ {
+ BackupExpirationTime = backup.BackupExpirationTime,
+ BackupName = backup.Name,
+ BackupTime = backup.BackupTime,
+ DatabaseDeletionTime = backup.DatabaseDeletionTime,
+ DatabaseName = backup.DatabaseName,
+ Location = locationName,
+ ResourceId = backup.Id,
+ InstanceCreateTime = backup.ManagedInstanceCreateTime,
+ ManagedInstanceName = backup.ManagedInstanceName,
+ ResourceGroupName = GetResourceGroupNameFromResourceId(backup.Id)
+ };
+ }
+
+ private string GetResourceGroupNameFromResourceId(string resourceId)
+ {
+ if (resourceId.Contains("/resourceGroups/"))
+ {
+ return resourceId.Split('/')[4];
+ }
+ return null;
+ }
+
+ ///
+ /// Gets the Long Term Retention backups.
+ ///
+ /// The location name.
+ /// The server name.
+ /// The database name.
+ /// The backup name.
+ /// The resource group name
+ /// Whether or not to only get the latest backup per database.
+ /// The state of databases to get backups for: All, Live, Deleted.
+ internal IEnumerable GetManagedDatabaseLongTermRetentionBackups(
+ string locationName,
+ string managedInstanceName,
+ string databaseName,
+ string backupName,
+ string resourceGroupName,
+ bool? onlyLatestPerDatabase,
+ string databaseState)
+ {
+ if (!string.IsNullOrWhiteSpace(backupName) && !WildcardPattern.ContainsWildcardCharacters(backupName))
+ {
+ return new List()
+ {
+ GetBackupModel(Communicator.GetManagedDatabaseLongTermRetentionBackup(locationName, managedInstanceName, databaseName, backupName, resourceGroupName), locationName)
+ };
+ }
+ else
+ {
+ return Communicator.GetManagedDatabaseLongTermRetentionBackups(locationName, managedInstanceName, databaseName, resourceGroupName, onlyLatestPerDatabase, databaseState)
+ .Select(b => GetBackupModel(b, locationName));
+ }
+ }
+
+ ///
+ /// Removes a Long Term Retention backup.
+ ///
+ /// The location name.
+ /// The server name.
+ /// The database name.
+ /// The backup name.
+ /// The name of the resource group
+ internal void RemoveManagedDatabaseLongTermRetentionBackup(
+ string locationName,
+ string serverName,
+ string databaseName,
+ string backupName,
+ string resourceGroupName)
+ {
+ Communicator.RemoveManagedDatabaseLongTermRetentionBackup(locationName, serverName, databaseName, backupName, resourceGroupName);
+ }
}
}
diff --git a/src/Sql/Sql/ManagedDatabase Backup/Services/AzureSqlManagedDatabaseBackupCommunicator.cs b/src/Sql/Sql/ManagedDatabase Backup/Services/AzureSqlManagedDatabaseBackupCommunicator.cs
index f90c88289ede..5dadd53226b5 100644
--- a/src/Sql/Sql/ManagedDatabase Backup/Services/AzureSqlManagedDatabaseBackupCommunicator.cs
+++ b/src/Sql/Sql/ManagedDatabase Backup/Services/AzureSqlManagedDatabaseBackupCommunicator.cs
@@ -137,12 +137,149 @@ public IList ListDeletedDatabaseBackups(string
/// Get a restorable deleted database for a given Sql Azure Database
///
/// The name of the resource group
- /// The name of the Azure SQL Server
- /// The name of the Azure SQL database
+ /// The name of the Managed Instance
+ /// The name of the Managed database
/// List of restore points
- public RestorableDroppedManagedDatabase GetDeletedDatabaseBackup(string resourceGroupName, string serverName, string databaseName)
+ public RestorableDroppedManagedDatabase GetDeletedDatabaseBackup(string resourceGroupName, string instanceName, string databaseName)
+ {
+ return GetCurrentSqlClient().RestorableDroppedManagedDatabases.Get(resourceGroupName, instanceName, databaseName);
+ }
+
+ ///
+ /// Get a backup LongTermRetention policy for a Azure SQL Database
+ ///
+ /// The name of the resource group
+ /// The name of the Managed Instance
+ /// The name of the Managed Database
+ /// A backup LongTermRetention policy
+ public ManagedInstanceLongTermRetentionPolicy GetManagedDatabaseLongTermRetentionPolicy(
+ string resourceGroupName,
+ string instanceName,
+ string databaseName)
+ {
+ return GetCurrentSqlClient().ManagedInstanceLongTermRetentionPolicies.Get(
+ resourceGroupName,
+ instanceName,
+ databaseName);
+ }
+
+ ///
+ /// Sets a database's Long Term Retention policy.
+ ///
+ /// The resource group name.
+ /// The instance name.
+ /// The database name.
+ /// The Long Term Retention policy to apply.
+ public Management.Sql.Models.ManagedInstanceLongTermRetentionPolicy SetManagedDatabaseLongTermRetentionPolicy(
+ string resourceGroup,
+ string instanceName,
+ string databaseName,
+ ManagedInstanceLongTermRetentionPolicy policy)
+ {
+ return GetCurrentSqlClient().ManagedInstanceLongTermRetentionPolicies.CreateOrUpdate(resourceGroup, instanceName, databaseName, policy);
+ }
+
+
+ ///
+ /// Gets the Long Term Retention backup.
+ ///
+ /// The location name.
+ /// The instance name.
+ /// The database name.
+ /// The backup name.
+ /// The resource group name
+ public ManagedInstanceLongTermRetentionBackup GetManagedDatabaseLongTermRetentionBackup(
+ string locationName,
+ string instanceName,
+ string databaseName,
+ string backupName,
+ string resourceGroupName)
+ {
+ if (string.IsNullOrWhiteSpace(resourceGroupName))
+ {
+ return GetCurrentSqlClient().LongTermRetentionManagedInstanceBackups.Get(locationName, instanceName, databaseName, backupName);
+ }
+ else
+ {
+ return GetCurrentSqlClient().LongTermRetentionManagedInstanceBackups.GetByResourceGroup(resourceGroupName, locationName, instanceName, databaseName, backupName);
+ }
+ }
+
+ ///
+ /// Gets the Long Term Retention backups.
+ ///
+ /// The location name.
+ /// The instance name.
+ /// The database name.
+ /// The resource group name
+ /// Whether or not to only get the latest backup per database.
+ /// The state of databases to get backups for: All, Live, Deleted.
+ public Rest.Azure.IPage GetManagedDatabaseLongTermRetentionBackups(
+ string locationName,
+ string instanceName,
+ string databaseName,
+ string resourceGroupName,
+ bool? onlyLatestPerDatabase,
+ string databaseState)
{
- return GetCurrentSqlClient().RestorableDroppedManagedDatabases.Get(resourceGroupName, serverName, databaseName);
+ if (!string.IsNullOrWhiteSpace(databaseName))
+ {
+ if (string.IsNullOrWhiteSpace(resourceGroupName))
+ {
+ return GetCurrentSqlClient().LongTermRetentionManagedInstanceBackups.ListByDatabase(locationName, instanceName, databaseName, onlyLatestPerDatabase, databaseState);
+ }
+ else
+ {
+ return GetCurrentSqlClient().LongTermRetentionManagedInstanceBackups.ListByResourceGroupDatabase(resourceGroupName, locationName, instanceName, databaseName, onlyLatestPerDatabase, databaseState);
+ }
+ }
+ else if (!string.IsNullOrWhiteSpace(instanceName))
+ {
+ if (string.IsNullOrWhiteSpace(resourceGroupName))
+ {
+ return GetCurrentSqlClient().LongTermRetentionManagedInstanceBackups.ListByInstance(locationName, instanceName, onlyLatestPerDatabase, databaseState);
+ }
+ else
+ {
+ return GetCurrentSqlClient().LongTermRetentionManagedInstanceBackups.ListByResourceGroupInstance(resourceGroupName, locationName, instanceName, onlyLatestPerDatabase, databaseState);
+ }
+ }
+ else
+ {
+ if (string.IsNullOrWhiteSpace(resourceGroupName))
+ {
+ return GetCurrentSqlClient().LongTermRetentionManagedInstanceBackups.ListByLocation(locationName, onlyLatestPerDatabase, databaseState);
+ }
+ else
+ {
+ return GetCurrentSqlClient().LongTermRetentionManagedInstanceBackups.ListByResourceGroupLocation(resourceGroupName, locationName, onlyLatestPerDatabase, databaseState);
+ }
+ }
+ }
+
+ ///
+ /// Removes a Long Term Retention backup.
+ ///
+ /// The location name.
+ /// The instance name.
+ /// The database name.
+ /// The backup name.
+ /// The resource group name
+ public void RemoveManagedDatabaseLongTermRetentionBackup(
+ string locationName,
+ string instanceName,
+ string databaseName,
+ string backupName,
+ string resourceGroupName)
+ {
+ if (string.IsNullOrWhiteSpace(resourceGroupName))
+ {
+ GetCurrentSqlClient().LongTermRetentionManagedInstanceBackups.Delete(locationName, instanceName, databaseName, backupName);
+ }
+ else
+ {
+ GetCurrentSqlClient().LongTermRetentionManagedInstanceBackups.DeleteByResourceGroup(resourceGroupName, locationName, instanceName, databaseName, backupName);
+ }
}
}
}
diff --git a/src/Sql/Sql/ManagedDatabase/Cmdlet/RestoreAzureSqlManagedDatabase.cs b/src/Sql/Sql/ManagedDatabase/Cmdlet/RestoreAzureSqlManagedDatabase.cs
index 6c2e5bec399a..bc8c03336b32 100644
--- a/src/Sql/Sql/ManagedDatabase/Cmdlet/RestoreAzureSqlManagedDatabase.cs
+++ b/src/Sql/Sql/ManagedDatabase/Cmdlet/RestoreAzureSqlManagedDatabase.cs
@@ -61,6 +61,9 @@ public class RestoreAzureRmSqlManagedDatabase
private const string GeoRestoreFromGeoBackupSetNameFromNameAndResourceGroupParameterSet =
"GeoRestoreFromGeoBackupSetNameFromNameAndResourceGroupParameter";
+ private const string LongTermRetentionBackupRestoreParameterSet =
+ "LongTermRetentionBackupRestoreParameter";
+
///
/// Gets or sets flag indicating a restore from a point-in-time backup.
///
@@ -115,6 +118,15 @@ public class RestoreAzureRmSqlManagedDatabase
HelpMessage = "Restore from a geo backup.")]
public SwitchParameter FromGeoBackup { get; set; }
+ ///
+ /// Gets or sets flag indicating a Long Term Retention backup restore request
+ ///
+ [Parameter(
+ ParameterSetName = LongTermRetentionBackupRestoreParameterSet,
+ Mandatory = true,
+ HelpMessage = "Restore from a Long Term Retention backup.")]
+ public SwitchParameter FromLongTermRetentionBackup { get; set; }
+
///
/// Gets or sets the source subscription id.
///
@@ -134,6 +146,10 @@ public class RestoreAzureRmSqlManagedDatabase
ParameterSetName = PointInTimeDeletedDatabasesCrossInstanceRestoreFromNameAndResourceGroupParameterSet,
Mandatory = false,
HelpMessage = "Source subscription id.")]
+ [Parameter(
+ ParameterSetName = LongTermRetentionBackupRestoreParameterSet,
+ Mandatory = false,
+ HelpMessage = "Source subscription id.")]
[Alias("SourceSubscriptionId")]
public string SubscriptionId { get; set; }
@@ -193,7 +209,7 @@ public class RestoreAzureRmSqlManagedDatabase
[ValidateNotNullOrEmpty]
public override string InstanceName { get; set; }
- ///
+ ///
/// Gets or sets the instance database name to restore
///
[Parameter(ParameterSetName = PointInTimeSameInstanceRestoreFromNameAndResourceGroupParameterSet,
@@ -277,6 +293,11 @@ public class RestoreAzureRmSqlManagedDatabase
[Parameter(ParameterSetName = GeoRestoreFromGeoBackupSetNameFromResourceIdParameterSet,
Mandatory = true,
HelpMessage = "The resource id of instance database object to restore")]
+ [Parameter(ParameterSetName = LongTermRetentionBackupRestoreParameterSet,
+ Mandatory = true,
+ Position = 0,
+ ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The resource id of the long term retention managed instance backup object to restore.")]
[ValidateNotNullOrEmpty]
public string ResourceId { get; set; }
@@ -351,6 +372,9 @@ public class RestoreAzureRmSqlManagedDatabase
[Parameter(ParameterSetName = GeoRestoreFromGeoBackupSetNameFromNameAndResourceGroupParameterSet,
Mandatory = true,
HelpMessage = "The name of the target instance to restore to.")]
+ [Parameter(ParameterSetName = LongTermRetentionBackupRestoreParameterSet,
+ Mandatory = true,
+ HelpMessage = "The name of the target instance to restore to.")]
[ResourceNameCompleter("Microsoft.Sql/managedInstances", "ResourceGroupName")]
public string TargetInstanceName { get; set; }
@@ -378,6 +402,9 @@ public class RestoreAzureRmSqlManagedDatabase
[Parameter(ParameterSetName = GeoRestoreFromGeoBackupSetNameFromNameAndResourceGroupParameterSet,
Mandatory = true,
HelpMessage = "The name of the target resource group to restore to.")]
+ [Parameter(ParameterSetName = LongTermRetentionBackupRestoreParameterSet,
+ Mandatory = true,
+ HelpMessage = "The name of the target resource group to restore to.")]
[ResourceGroupCompleter]
public string TargetResourceGroupName { get; set; }
@@ -484,6 +511,12 @@ protected override AzureSqlManagedDatabaseModel GetEntity()
model.RestorePointInTime = null;
break;
+ case LongTermRetentionBackupRestoreParameterSet:
+ model.CreateMode = "RestoreLongTermRetentionBackup";
+ model.LongTermRetentionBackupResourceId = ResourceId;
+ model.RestorePointInTime = null;
+ break;
+
default:
throw new ArgumentException("No ParameterSet name");
}
diff --git a/src/Sql/Sql/ManagedDatabase/Model/AzureSqlManagedDatabaseModel.cs b/src/Sql/Sql/ManagedDatabase/Model/AzureSqlManagedDatabaseModel.cs
index dcd724f651f8..bb2f97df1d7c 100644
--- a/src/Sql/Sql/ManagedDatabase/Model/AzureSqlManagedDatabaseModel.cs
+++ b/src/Sql/Sql/ManagedDatabase/Model/AzureSqlManagedDatabaseModel.cs
@@ -93,6 +93,11 @@ public class AzureSqlManagedDatabaseModel : AzureSqlManagedDatabaseBaseModel
///
public string RestorableDroppedDatabaseId { get; set; }
+ ///
+ /// Gets or sets the long term retention backup resource ID
+ ///
+ public string LongTermRetentionBackupResourceId { get; set; }
+
///
/// Construct AzureSqlManagedDatabaseModel
///
@@ -128,6 +133,7 @@ public AzureSqlManagedDatabaseModel(string resourceGroup, string managedInstance
FailoverGroupId = database.FailoverGroupId;
RecoverableDatabaseId = database.RecoverableDatabaseId;
RestorableDroppedDatabaseId = database.RestorableDroppedDatabaseId;
+ LongTermRetentionBackupResourceId = database.LongTermRetentionBackupResourceId;
}
}
}
diff --git a/src/Sql/Sql/ManagedDatabase/Services/AzureSqlManagedDatabaseAdapter.cs b/src/Sql/Sql/ManagedDatabase/Services/AzureSqlManagedDatabaseAdapter.cs
index 85081870406e..5a805d9b42c2 100644
--- a/src/Sql/Sql/ManagedDatabase/Services/AzureSqlManagedDatabaseAdapter.cs
+++ b/src/Sql/Sql/ManagedDatabase/Services/AzureSqlManagedDatabaseAdapter.cs
@@ -129,6 +129,7 @@ internal AzureSqlManagedDatabaseModel RestoreManagedDatabase(AzureSqlManagedData
RecoverableDatabaseId = model.RecoverableDatabaseId,
RestorableDroppedDatabaseId = model.RestorableDroppedDatabaseId,
SourceDatabaseId = model.SourceDatabaseId,
+ LongTermRetentionBackupResourceId = model.LongTermRetentionBackupResourceId
};
Management.Sql.Models.ManagedDatabase database = Communicator.RestoreDatabase(model.ResourceGroupName, model.ManagedInstanceName, model.Name, dbModel);
diff --git a/src/Sql/Sql/Properties/Resources.Designer.cs b/src/Sql/Sql/Properties/Resources.Designer.cs
index ed19063181c3..fd4ade8571d8 100644
--- a/src/Sql/Sql/Properties/Resources.Designer.cs
+++ b/src/Sql/Sql/Properties/Resources.Designer.cs
@@ -789,6 +789,24 @@ internal static string RemoveAzureSqlInstanceActiveDirectoryAdministratorWarning
}
}
+ ///
+ /// Looks up a localized string similar to Permanantly removing the Long Term Retention backup '{0}' on database '{1}' on server '{2}' in location '{3}'?.
+ ///
+ internal static string RemoveAzureSqlInstanceDatabaseLongTermRetentionBackupDescription {
+ get {
+ return ResourceManager.GetString("RemoveAzureSqlInstanceDatabaseLongTermRetentionBackupDescription", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Are you sure you want to remove the Long Term Retention backup '{0}' on database '{1}' on server '{2}' in location '{3}'?.
+ ///
+ internal static string RemoveAzureSqlInstanceDatabaseLongTermRetentionBackupWarning {
+ get {
+ return ResourceManager.GetString("RemoveAzureSqlInstanceDatabaseLongTermRetentionBackupWarning", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Removing Azure Sql Server Active Directory Administrator on server '{0}'..
///
diff --git a/src/Sql/Sql/Properties/Resources.resx b/src/Sql/Sql/Properties/Resources.resx
index f465e3833d70..958c2f49bc50 100644
--- a/src/Sql/Sql/Properties/Resources.resx
+++ b/src/Sql/Sql/Properties/Resources.resx
@@ -589,4 +589,10 @@
You cannot change hardware family.
+
+ Permanantly removing the Long Term Retention backup '{0}' on database '{1}' on instance '{2}' in location '{3}'?
+
+
+ Are you sure you want to remove the Long Term Retention backup '{0}' on database '{1}' on instance '{2}' in location '{3}'?
+
\ No newline at end of file
diff --git a/src/Sql/Sql/Sql.csproj b/src/Sql/Sql/Sql.csproj
index 3b5412452394..441176cdbdb8 100644
--- a/src/Sql/Sql/Sql.csproj
+++ b/src/Sql/Sql/Sql.csproj
@@ -44,4 +44,4 @@
-
\ No newline at end of file
+
diff --git a/src/Sql/Sql/help/Az.Sql.md b/src/Sql/Sql/help/Az.Sql.md
index e933487b7851..8e2082c438ed 100644
--- a/src/Sql/Sql/help/Az.Sql.md
+++ b/src/Sql/Sql/help/Az.Sql.md
@@ -62,14 +62,14 @@ Converts a vulnerability assessment scan results to Excel format.
### [Convert-AzSqlInstanceDatabaseVulnerabilityAssessmentScan](Convert-AzSqlInstanceDatabaseVulnerabilityAssessmentScan.md)
Converts a vulnerability assessment scan results to Excel format.
-### [Disable-AzSqlDatabaseSensitivityRecommendation](Disable-AzSqlDatabaseSensitivityRecommendation)
-Disables sensitivity recommendations on columns in the database.
+### [Disable-AzSqlDatabaseSensitivityRecommendation](Disable-AzSqlDatabaseSensitivityRecommendation.md)
+Disables (dismisses) sensitivity recommendations on columns in the database.
### [Disable-AzSqlInstanceAdvancedDataSecurity](Disable-AzSqlInstanceAdvancedDataSecurity.md)
Disables Advanced Data Security on a managed instance.
-### [Disable-AzSqlInstanceDatabaseSensitivityRecommendation](Disable-AzSqlInstanceDatabaseSensitivityRecommendation)
-Disbles sensitivity recommendations on columns in the Azure SQL managed instance database.
+### [Disable-AzSqlInstanceDatabaseSensitivityRecommendation](Disable-AzSqlInstanceDatabaseSensitivityRecommendation.md)
+Disables (dismisses) sensitivity recommendations on columns in the Azure SQL managed instance database.
### [Disable-AzSqlServerActiveDirectoryOnlyAuthentication](Disable-AzSqlServerActiveDirectoryOnlyAuthentication.md)
@@ -81,14 +81,14 @@ Disables Advanced Data Security on a server.
### [Disable-AzSqlServerAdvancedThreatProtection](Disable-AzSqlServerAdvancedThreatProtection.md)
Disables Advanced Threat Protection on a server.
-### [Enable-AzSqlDatabaseSensitivityRecommendation](Enable-AzSqlDatabaseSensitivityRecommendation)
-Enables sensitivity recommendations on columns in the database.
+### [Enable-AzSqlDatabaseSensitivityRecommendation](Enable-AzSqlDatabaseSensitivityRecommendation.md)
+Enables sensitivity recommendations on columns (recommendations are enabled by default on all columns) in the database.
### [Enable-AzSqlInstanceAdvancedDataSecurity](Enable-AzSqlInstanceAdvancedDataSecurity.md)
Enables Advanced Data Security on a managed instance.
-### [Enable-AzSqlInstanceDatabaseSensitivityRecommendation](Enable-AzSqlInstanceDatabaseSensitivityRecommendation)
-Enables sensitivity recommendations on columns in the Azure SQL managed instance database.
+### [Enable-AzSqlInstanceDatabaseSensitivityRecommendation](Enable-AzSqlInstanceDatabaseSensitivityRecommendation.md)
+Enables sensitivity recommendations on columns (recommendations are enabled by default on all columns) in the Azure SQL managed instance database.
### [Enable-AzSqlServerAdvancedDataSecurity](Enable-AzSqlServerAdvancedDataSecurity.md)
Enables Advanced Data Security on a server.
@@ -114,11 +114,6 @@ Gets one or more Advisors for an Azure SQL Database.
### [Get-AzSqlDatabaseAudit](Get-AzSqlDatabaseAudit.md)
Gets the auditing settings of an Azure SQL database.
-### [Get-AzSqlDatabaseAuditing](Get-AzSqlDatabaseAuditing.md)
-**Important: This cmdlet is deprecated, [Get-AzSqlDatbaseAudit](https://docs.microsoft.com/en-us/powershell/module/az.sql/get-azsqldatabaseaudit) is replacing it.**
-
-Gets the auditing settings of an Azure SQL database.
-
### [Get-AzSqlDatabaseBackupLongTermRetentionPolicy](Get-AzSqlDatabaseBackupLongTermRetentionPolicy.md)
Gets a database long term retention policy.
@@ -290,8 +285,11 @@ Returns information about SQL Database servers.
### [Get-AzSqlServerActiveDirectoryAdministrator](Get-AzSqlServerActiveDirectoryAdministrator.md)
Gets information about an Azure AD administrator for SQL Server.
+### [Get-AzSqlServerAdvancedDataSecurityPolicy](Get-AzSqlServerAdvancedDataSecurityPolicy.md)
+Gets Advanced Data Security policy of a server.
+
### [Get-AzSqlServerAdvancedThreatProtectionSetting](Get-AzSqlServerAdvancedThreatProtectionSetting.md)
-Gets Advanced Threat Protection policy of a server.
+Gets the advanced threat protection settings for a server.
### [Get-AzSqlServerAdvisor](Get-AzSqlServerAdvisor.md)
Gets one or more Advisors for an Azure SQL Server.
@@ -299,11 +297,6 @@ Gets one or more Advisors for an Azure SQL Server.
### [Get-AzSqlServerAudit](Get-AzSqlServerAudit.md)
Gets the auditing settings of an Azure SQL server.
-### [Get-AzSqlServerAuditing](Get-AzSqlServerAuditing.md)
-**Important: This cmdlet is deprecated, [Get-AzSqlServerAudit](https://docs.microsoft.com/en-us/powershell/module/az.sql/get-azsqlserveraudit) is replacing it.**
-
-Gets the auditing settings of an Azure SQL server.
-
### [Get-AzSqlServerCommunicationLink](Get-AzSqlServerCommunicationLink.md)
Gets communication links for elastic database transactions between database servers.
@@ -574,11 +567,6 @@ Modifies auto execute status of an Azure SQL Database Advisor.
### [Set-AzSqlDatabaseAudit](Set-AzSqlDatabaseAudit.md)
Changes the auditing settings for an Azure SQL database.
-### [Set-AzSqlDatabaseAuditing](Set-AzSqlDatabaseAuditing.md)
-**Important: This cmdlet is deprecated, [Set-AzSqlDatabaseAudit](https://docs.microsoft.com/en-us/powershell/module/az.sql/set-azsqldatabaseaudit) is replacing it.**
-
-Changes the auditing settings for an Azure SQL database.
-
### [Set-AzSqlDatabaseBackupLongTermRetentionPolicy](Set-AzSqlDatabaseBackupLongTermRetentionPolicy.md)
Sets a server long term retention policy.
@@ -669,11 +657,6 @@ Updates the auto execute status of an Azure SQL Server Advisor.
### [Set-AzSqlServerAudit](Set-AzSqlServerAudit.md)
Changes the auditing settings of an Azure SQL server.
-### [Set-AzSqlServerAuditing](Set-AzSqlServerAuditing.md)
-**Important: This cmdlet is deprecated, [Set-AzSqlServerAudit](https://docs.microsoft.com/en-us/powershell/module/az.sql/set-azsqlserveraudit) is replacing it.**
-
-Changes the auditing settings of an Azure SQL server.
-
### [Set-AzSqlServerDisasterRecoveryConfiguration](Set-AzSqlServerDisasterRecoveryConfiguration.md)
Modifies a database server recovery configuration.
@@ -731,6 +714,9 @@ Executes a failover of an Azure SQL Database Failover Group.
### [Switch-AzSqlDatabaseInstanceFailoverGroup](Switch-AzSqlDatabaseInstanceFailoverGroup.md)
Executes a failover of an Instance Failover Group.
+### [Update-AzSqlDatabaseAdvancedThreatProtectionSetting](Update-AzSqlDatabaseAdvancedThreatProtectionSetting.md)
+Sets a advanced threat protection settings on a database.
+
### [Update-AzSqlDatabaseVulnerabilityAssessmentSetting](Update-AzSqlDatabaseVulnerabilityAssessmentSetting.md)
Updates the vulnerability assessment settings of a database.
diff --git a/src/Sql/Sql/help/Clear-AzSqlServerAdvancedThreatProtectionSetting.md b/src/Sql/Sql/help/Clear-AzSqlServerAdvancedThreatProtectionSetting.md
index 7dcc5f58fca6..c9f088c67c40 100644
--- a/src/Sql/Sql/help/Clear-AzSqlServerAdvancedThreatProtectionSetting.md
+++ b/src/Sql/Sql/help/Clear-AzSqlServerAdvancedThreatProtectionSetting.md
@@ -14,9 +14,8 @@ Removes the advanced threat protection settings from a server.
## SYNTAX
```
-Clear-AzSqlServerAdvancedThreatProtectionSetting [-PassThru] -ServerName
- [-ResourceGroupName] [-DefaultProfile ] [-WhatIf] [-Confirm]
- []
+Clear-AzSqlServerAdvancedThreatProtectionSetting [-PassThru] -ServerName [-ResourceGroupName]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
```
## DESCRIPTION
diff --git a/src/Sql/Sql/help/Get-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy.md b/src/Sql/Sql/help/Get-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy.md
new file mode 100644
index 000000000000..a44c65f6e4fb
--- /dev/null
+++ b/src/Sql/Sql/help/Get-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy.md
@@ -0,0 +1,158 @@
+---
+external help file: Microsoft.Azure.PowerShell.Cmdlets.Sql.dll-Help.xml
+Module Name: Az.Sql
+online version: https://docs.microsoft.com/en-us/powershell/module/az.sql/get-azsqlinstancedatabasebackuplongtermretentionpolicy
+schema: 2.0.0
+---
+
+# Get-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy
+
+## SYNOPSIS
+Gets a managed database's long term retention policy
+
+## SYNTAX
+
+```
+Get-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy [-InstanceName] [-DatabaseName]
+ [-ResourceGroupName] [-DefaultProfile ] [-WhatIf] [-Confirm]
+ []
+```
+
+## DESCRIPTION
+The **Get-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy** cmdlet gets the long term retention policy registered to this managed database.
+The policy is an Azure Backup resource used to define backup storage policy.
+
+## EXAMPLES
+
+### Example 1
+```powershell
+PS C:\> Get-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy -ResourceGroupName testResourceGroup -InstanceName testInstance -DatabaseName test
+
+
+ResourceGroupName : testResourceGroup
+ManagedInstanceName : testInstance
+DatabaseName : test
+WeeklyRetention : P2W
+MonthlyRetention : PT0S
+YearlyRetention : PT0S
+WeekOfYear : 0
+Location :
+```
+
+Gets the current version of the long term retention policy for the database
+
+## PARAMETERS
+
+### -DatabaseName
+The name of the Azure Managed Database to use.
+
+```yaml
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 2
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: IAzureContextContainer
+Parameter Sets: (All)
+Aliases: AzContext, AzureRmContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InstanceName
+The name of the Azure Managed Instance the database belongs to.
+
+```yaml
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 1
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group.
+
+```yaml
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: 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: 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
+
+### System.String
+
+## OUTPUTS
+
+### Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel
+
+## NOTES
+
+## RELATED LINKS
+
+[Get-AzSqlInstanceDatabaseLongTermRetentionBackup](./Get-AzSqlInstanceDatabaseLongTermRetentionBackup.md)
+
+[Remove-AzSqlInstanceDatabaseLongTermRetentionBackup](./Remove-AzSqlInstanceDatabaseLongTermRetentionBackup.md)
+
+[Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy](./Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy.md)
+
+[SQL Database Documentation](https://docs.microsoft.com/azure/sql-database/)
\ No newline at end of file
diff --git a/src/Sql/Sql/help/Get-AzSqlInstanceDatabaseLongTermRetentionBackup.md b/src/Sql/Sql/help/Get-AzSqlInstanceDatabaseLongTermRetentionBackup.md
new file mode 100644
index 000000000000..10c78f4e5cb5
--- /dev/null
+++ b/src/Sql/Sql/help/Get-AzSqlInstanceDatabaseLongTermRetentionBackup.md
@@ -0,0 +1,296 @@
+---
+external help file: Microsoft.Azure.PowerShell.Cmdlets.Sql.dll-Help.xml
+Module Name: Az.Sql
+online version: https://docs.microsoft.com/en-us/powershell/module/az.sql/get-azsqlinstancedatabaselongtermretentionbackup
+schema: 2.0.0
+---
+
+# Get-AzSqlInstanceDatabaseLongTermRetentionBackup
+
+## SYNOPSIS
+Gets long term retention backup(s).
+
+## SYNTAX
+
+### Location (Default)
+```
+Get-AzSqlInstanceDatabaseLongTermRetentionBackup [-Location] [-ResourceGroupName ]
+ [-OnlyLatestPerDatabase] [-DatabaseState ] [-DefaultProfile ] [-WhatIf]
+ [-Confirm] []
+```
+
+### InstanceName
+```
+Get-AzSqlInstanceDatabaseLongTermRetentionBackup [-Location] [-InstanceName]
+ [-ResourceGroupName ] [-OnlyLatestPerDatabase] [-DatabaseState ]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### DatabaseName
+```
+Get-AzSqlInstanceDatabaseLongTermRetentionBackup [-Location] [-InstanceName]
+ [-DatabaseName] [-ResourceGroupName ] [-OnlyLatestPerDatabase]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### BackupName
+```
+Get-AzSqlInstanceDatabaseLongTermRetentionBackup [-Location] [-InstanceName]
+ [-DatabaseName] [-BackupName] [-ResourceGroupName ]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### GetBackupByResourceId
+```
+Get-AzSqlInstanceDatabaseLongTermRetentionBackup [-Location] [-ResourceId]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### GetBackupByInputObject
+```
+Get-AzSqlInstanceDatabaseLongTermRetentionBackup [-InputObject]
+ [-BackupName] [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### GetBackupsByInputObject
+```
+Get-AzSqlInstanceDatabaseLongTermRetentionBackup [-InputObject]
+ [-OnlyLatestPerDatabase] [-DatabaseState ] [-DefaultProfile ] [-WhatIf]
+ [-Confirm] []
+```
+
+## DESCRIPTION
+{{ Fill in the Description }}
+
+## EXAMPLES
+
+### Example 1
+```powershell
+PS C:\> Get-AzSqlInstanceDatabaseLongTermRetentionBackup -Location southeastasia -ResourceGroupName testResourceGroup -InstanceName testInstance -DatabaseName test
+
+
+BackupExpirationTime : 3/10/2020 1:10:45 PM
+BackupName : 15be823c-7e2c-49d8-819f-a3fdcad92215;132268250550000000
+BackupTime : 2/22/2020 6:04:15 AM
+DatabaseName : test
+DatabaseDeletionTime : 2/24/2020 2:56:44 PM
+Location : southeastasia
+ResourceId : /subscriptions/f46521f3-5bb0-4eea-a3c2-c2d5987df96b/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManaged
+ Instances/testInstance/longTermRetentionDatabases/test/longTermRetentionManagedInstanceBackups/15be823c-7e2c-49d8-819f-a3fdcad92215;132268250550000000
+ManagedInstanceName : testInstance
+InstanceCreateTime : 10/17/2019 4:52:10 PM
+ResourceGroupName : testResourceGroup
+```
+
+Gets all long term retention backups for a particular database. Resource Group is optional.
+
+## PARAMETERS
+
+### -BackupName
+The name of the backup.
+
+```yaml
+Type: String
+Parameter Sets: BackupName, GetBackupByInputObject
+Aliases:
+
+Required: True
+Position: 3
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+### -DatabaseName
+The name of the Managed Database the backups are under.
+
+```yaml
+Type: String
+Parameter Sets: DatabaseName, BackupName
+Aliases:
+
+Required: True
+Position: 2
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -DatabaseState
+The state of the database whose backups you want to find, Alive, Deleted, or All.
+Defaults to All
+
+```yaml
+Type: String
+Parameter Sets: Location, InstanceName, GetBackupsByInputObject
+Aliases:
+Accepted values: All, Deleted, Live
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: IAzureContextContainer
+Parameter Sets: (All)
+Aliases: AzContext, AzureRmContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InputObject
+The database object to get backups for.
+
+```yaml
+Type: AzureSqlManagedDatabaseModel
+Parameter Sets: GetBackupByInputObject, GetBackupsByInputObject
+Aliases:
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -InstanceName
+The name of the Managed Instance the backups are under.
+
+```yaml
+Type: String
+Parameter Sets: InstanceName, DatabaseName, BackupName
+Aliases:
+
+Required: True
+Position: 1
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Location
+The location of the backups' source Managed Instance.
+
+```yaml
+Type: String
+Parameter Sets: Location, InstanceName, DatabaseName, BackupName, GetBackupByResourceId
+Aliases:
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -OnlyLatestPerDatabase
+Whether or not to only get the latest backup per database.
+Defaults to false.
+
+```yaml
+Type: SwitchParameter
+Parameter Sets: Location, InstanceName, DatabaseName, GetBackupsByInputObject
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group.
+
+```yaml
+Type: String
+Parameter Sets: Location, InstanceName, DatabaseName, BackupName
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceId
+The database Resource ID to get backups for.
+
+```yaml
+Type: String
+Parameter Sets: GetBackupByResourceId
+Aliases:
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: 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: 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.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel
+
+### System.String
+
+## OUTPUTS
+
+### Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseLongTermRetentionBackupModel
+
+## NOTES
+
+## RELATED LINKS
+
+[Remove-AzSqlInstanceDatabaseLongTermRetentionBackup](./Remove-AzSqlInstanceDatabaseLongTermRetentionBackup.md)
+
+[Get-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy](./Get-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy.md)
+
+[Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy](./Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy.md)
+
+[SQL Database Documentation](https://docs.microsoft.com/azure/sql-database/)
\ No newline at end of file
diff --git a/src/Sql/Sql/help/New-AzSqlDatabaseSecondary.md b/src/Sql/Sql/help/New-AzSqlDatabaseSecondary.md
index e70578eba06e..e3eac2f23827 100644
--- a/src/Sql/Sql/help/New-AzSqlDatabaseSecondary.md
+++ b/src/Sql/Sql/help/New-AzSqlDatabaseSecondary.md
@@ -43,6 +43,7 @@ the primary to the secondary database.
$database = Get-AzSqlDatabase -DatabaseName $databasename -ResourceGroupName $primaryresourcegroupname -ServerName $primaryservername
$database | New-AzSqlDatabaseSecondary -PartnerResourceGroupName $secondaryresourcegroupname -PartnerServerName $secondaryservername -AllowConnections "All"
```
+
### 2: Establish Active Geo-Replication and specify the partner database name to be different than the source database name
```
$database = Get-AzSqlDatabase -DatabaseName $databasename -ResourceGroupName $primaryresourcegroupname -ServerName $primaryservername
diff --git a/src/Sql/Sql/help/Remove-AzSqlInstanceDatabaseLongTermRetentionBackup.md b/src/Sql/Sql/help/Remove-AzSqlInstanceDatabaseLongTermRetentionBackup.md
new file mode 100644
index 000000000000..c290e54e61e6
--- /dev/null
+++ b/src/Sql/Sql/help/Remove-AzSqlInstanceDatabaseLongTermRetentionBackup.md
@@ -0,0 +1,238 @@
+---
+external help file: Microsoft.Azure.PowerShell.Cmdlets.Sql.dll-Help.xml
+Module Name: Az.Sql
+online version: https://docs.microsoft.com/en-us/powershell/module/az.sql/remove-azsqlinstancedatabaselongtermretentionbackup
+schema: 2.0.0
+---
+
+# Remove-AzSqlInstanceDatabaseLongTermRetentionBackup
+
+## SYNOPSIS
+Deletes a long term retention backup.
+
+## SYNTAX
+
+### RemoveBackupDefault (Default)
+```
+Remove-AzSqlInstanceDatabaseLongTermRetentionBackup [-Location] [-InstanceName]
+ [-DatabaseName] [-BackupName] [-ResourceGroupName ] [-Force]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### RemoveBackupByInputObject
+```
+Remove-AzSqlInstanceDatabaseLongTermRetentionBackup
+ [-InputObject] [-Force]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### RemoveBackupByResourceId
+```
+Remove-AzSqlInstanceDatabaseLongTermRetentionBackup [-ResourceId] [-Force]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+## DESCRIPTION
+The **Remove-AzSqlInstanceDatabaseLongTermRetentionBackup** cmdlet deletes the backup specified.
+
+## EXAMPLES
+
+### Example 1
+```powershell
+PS C:\> Remove-AzSqlInstanceDatabaseLongTermRetentionBackup -Location southeastasia -ResourceGroupName testResourceGroup -InstanceName testInstance -DatabaseName test -BackupName 15be823c-7e2c-49d8-819f-a3fdcad92215;132268250550000000
+```
+
+Deletes the backup with name 15be823c-7e2c-49d8-819f-a3fdcad92215;132268250550000000
+
+## PARAMETERS
+
+### -BackupName
+The name of the backup.
+
+```yaml
+Type: String
+Parameter Sets: RemoveBackupDefault
+Aliases:
+
+Required: True
+Position: 3
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+### -DatabaseName
+The name of the Managed Database the backup is from.
+
+```yaml
+Type: String
+Parameter Sets: RemoveBackupDefault
+Aliases:
+
+Required: True
+Position: 2
+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: IAzureContextContainer
+Parameter Sets: (All)
+Aliases: AzContext, AzureRmContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Force
+Skip confirmation message for performing the action
+
+```yaml
+Type: SwitchParameter
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InputObject
+The Database Long Term Retention Backup object to remove.
+
+```yaml
+Type: AzureSqlManagedDatabaseLongTermRetentionBackupModel
+Parameter Sets: RemoveBackupByInputObject
+Aliases:
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
+### -InstanceName
+The name of the Managed Instance the backup is under.
+
+```yaml
+Type: String
+Parameter Sets: RemoveBackupDefault
+Aliases:
+
+Required: True
+Position: 1
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -Location
+The location of the backups' source Managed Instance.
+
+```yaml
+Type: String
+Parameter Sets: RemoveBackupDefault
+Aliases:
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group.
+
+```yaml
+Type: String
+Parameter Sets: RemoveBackupDefault
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceId
+The Resource ID of the Database Long Term Retention Backup to remove.
+
+```yaml
+Type: String
+Parameter Sets: RemoveBackupByResourceId
+Aliases:
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: 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: 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.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseLongTermRetentionBackupModel
+
+### System.String
+
+## OUTPUTS
+
+### Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseLongTermRetentionBackupModel
+
+## NOTES
+
+## RELATED LINKS
+
+[Get-AzSqlInstanceDatabaseLongTermRetentionBackup](./Get-AzSqlInstanceDatabaseLongTermRetentionBackup.md)
+
+[Get-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy](./Get-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy.md)
+
+[Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy](./Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy.md)
+
+[SQL Database Documentation](https://docs.microsoft.com/azure/sql-database/)
\ No newline at end of file
diff --git a/src/Sql/Sql/help/Restore-AzSqlInstanceDatabase.md b/src/Sql/Sql/help/Restore-AzSqlInstanceDatabase.md
index 4a4762fcd0fb..4e26d84f1010 100644
--- a/src/Sql/Sql/help/Restore-AzSqlInstanceDatabase.md
+++ b/src/Sql/Sql/help/Restore-AzSqlInstanceDatabase.md
@@ -94,8 +94,15 @@ Restore-AzSqlInstanceDatabase [-FromGeoBackup] [-ResourceGroupName] [-I
[]
```
+### LongTermRetentionBackupRestoreParameter
+```
+Restore-AzSqlInstanceDatabase [-FromLongTermRetentionBackup] [-SubscriptionId ] [-ResourceId]
+ -TargetInstanceDatabaseName -TargetInstanceName -TargetResourceGroupName [-AsJob]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
## DESCRIPTION
-The **Restore-AzSqlInstanceDatabase** cmdlet restores an instance database from a geo-redundant backup or a point in time in a live database.
+The **Restore-AzSqlInstanceDatabase** cmdlet restores an instance database from a geo-redundant backup, a point in time in a live database, or a long term retention backup.
The restored database is created as a new instance database.
## EXAMPLES
@@ -132,7 +139,7 @@ PS C:\> Restore-AzSqlinstanceDatabase -Name $deletedDatabase.Name -InstanceName
The first command gets the deleted instance databases named 'DB1' on Instance 'managedInstance1'
The second command restores the the fetched database, from the specified point-in-time backup to the instance database named Database01_restored.
-### Example 4: Restore an deleted instance database from a point in time
+### Example 5: Restore an deleted instance database from a point in time
```
PS C:\> $deletedDatabase = Get-AzSqlDeletedInstanceDatabaseBackup -ResourceGroupName "ResourceGroup01" -InstanceName "managedInstance1" -DatabaseName "DB1"
PS C:\> Restore-AzSqlinstanceDatabase -InputObject $deletedDatabase[0] -PointInTime UTCDateTime -TargetInstanceDatabaseName "Database01_restored"
@@ -141,6 +148,36 @@ PS C:\> Restore-AzSqlinstanceDatabase -InputObject $deletedDatabase[0] -PointInT
The first command gets the deleted instance databases named 'DB1' on Instance 'managedInstance1'
The second command restores the the fetched database, from the specified point-in-time backup to the instance database named Database01_restored using input object.
+### Example 6: Restore a database from LTR backup.
+```
+PS C:\> Restore-AzSqlInstanceDatabase -FromLongTermRetentionBackup -ResourceId /subscriptions/f46521f3-5bb0-4eea-a3c2-c2d5987df96b/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/southeastasia/longTermRetentionManagedInstances/testInstance/longTermRetentionDatabases/test/longTermRetentionManagedInstanceBackups/15be823c-7e2c-49d8-819f-a3fdcad92215;132268250550000000 -TargetInstanceDatabaseName restoreTarget -TargetInstanceName testInstance -TargetResourceGroupName testResourceGroup
+
+
+Location : southeastasia
+Tags :
+Collation : SQL_Latin1_General_CP1_CI_AS
+Status : Online
+RestorePointInTime :
+DefaultSecondaryLocation : northeurope
+CatalogCollation :
+CreateMode :
+StorageContainerUri :
+StorageContainerSasToken :
+SourceDatabaseId :
+FailoverGroupId :
+RecoverableDatabaseId :
+RestorableDroppedDatabaseId :
+LongTermRetentionBackupResourceId :
+ResourceGroupName : testResourceGroup
+ManagedInstanceName : testInstance
+Name : restoreTarget
+CreationDate : 3/4/2020 8:12:56 AM
+EarliestRestorePoint : 3/4/2020 8:14:29 AM
+Id : /subscriptions/f46521f3-5bb0-4eea-a3c2-c2d5987df96b/resourceGroups/testResourceGroup/providers/Microsoft.Sql/managedInstances/testInstance/databases/restoreTarget
+```
+
+Restores LTR backup with the given resource ID (which can be found by running Get-AzSqlInstanceDatabaseLongTermRetentionBackup).
+
## PARAMETERS
### -AsJob
@@ -203,6 +240,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -FromLongTermRetentionBackup
+Restore from a Long Term Retention backup.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: LongTermRetentionBackupRestoreParameter
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -FromPointInTimeBackup
Restore from a point-in-time backup.
@@ -313,7 +365,7 @@ The resource id of Instance Database object to restore
```yaml
Type: System.String
-Parameter Sets: PointInTimeSameInstanceRestoreInstanceDatabaseFromAzureResourceId, PointInTimeCrossInstanceRestoreInstanceDatabaseFromAzureResourceId
+Parameter Sets: PointInTimeSameInstanceRestoreInstanceDatabaseFromAzureResourceId, PointInTimeCrossInstanceRestoreInstanceDatabaseFromAzureResourceId, LongTermRetentionBackupRestoreParameter
Aliases:
Required: True
@@ -340,7 +392,7 @@ Source subscription id.
```yaml
Type: System.String
-Parameter Sets: PointInTimeSameInstanceRestoreInstanceDatabaseFromInputParameters, PointInTimeCrossInstanceRestoreInstanceDatabaseFromInputParameters, PointInTimeDeletedDatabasesSameInstanceRestoreInstanceDatabaseFromInputParameters, PointInTimeDeletedDatabasesCrossInstanceRestoreInstanceDatabaseFromInputParameters
+Parameter Sets: PointInTimeSameInstanceRestoreInstanceDatabaseFromInputParameters, PointInTimeCrossInstanceRestoreInstanceDatabaseFromInputParameters, PointInTimeDeletedDatabasesSameInstanceRestoreInstanceDatabaseFromInputParameters, PointInTimeDeletedDatabasesCrossInstanceRestoreInstanceDatabaseFromInputParameters, LongTermRetentionBackupRestoreParameter
Aliases: SourceSubscriptionId
Required: False
@@ -371,7 +423,7 @@ If not specified, the target instance is the same as the source instance.
```yaml
Type: System.String
-Parameter Sets: PointInTimeCrossInstanceRestoreInstanceDatabaseFromInputParameters, PointInTimeCrossInstanceRestoreInstanceDatabaseFromAzureSqlManagedDatabaseModelInstanceDefinition, PointInTimeCrossInstanceRestoreInstanceDatabaseFromAzureResourceId, PointInTimeDeletedDatabasesCrossInstanceRestoreInstanceDatabaseFromInputParameters, GeoRestoreFromGeoBackupSetNameFromGeoBackupObjectParameter, GeoRestoreFromGeoBackupSetNameFromResourceIdParameter, GeoRestoreFromGeoBackupSetNameFromNameAndResourceGroupParameter
+Parameter Sets: PointInTimeCrossInstanceRestoreInstanceDatabaseFromInputParameters, PointInTimeCrossInstanceRestoreInstanceDatabaseFromAzureSqlManagedDatabaseModelInstanceDefinition, PointInTimeCrossInstanceRestoreInstanceDatabaseFromAzureResourceId, PointInTimeDeletedDatabasesCrossInstanceRestoreInstanceDatabaseFromInputParameters, GeoRestoreFromGeoBackupSetNameFromGeoBackupObjectParameter, GeoRestoreFromGeoBackupSetNameFromResourceIdParameter, GeoRestoreFromGeoBackupSetNameFromNameAndResourceGroupParameter, LongTermRetentionBackupRestoreParameter
Aliases:
Required: True
@@ -387,7 +439,7 @@ If not specified, the target resource group is the same as the source resource g
```yaml
Type: System.String
-Parameter Sets: PointInTimeCrossInstanceRestoreInstanceDatabaseFromInputParameters, PointInTimeCrossInstanceRestoreInstanceDatabaseFromAzureSqlManagedDatabaseModelInstanceDefinition, PointInTimeCrossInstanceRestoreInstanceDatabaseFromAzureResourceId, PointInTimeDeletedDatabasesCrossInstanceRestoreInstanceDatabaseFromInputParameters, GeoRestoreFromGeoBackupSetNameFromGeoBackupObjectParameter, GeoRestoreFromGeoBackupSetNameFromResourceIdParameter, GeoRestoreFromGeoBackupSetNameFromNameAndResourceGroupParameter
+Parameter Sets: PointInTimeCrossInstanceRestoreInstanceDatabaseFromInputParameters, PointInTimeCrossInstanceRestoreInstanceDatabaseFromAzureSqlManagedDatabaseModelInstanceDefinition, PointInTimeCrossInstanceRestoreInstanceDatabaseFromAzureResourceId, PointInTimeDeletedDatabasesCrossInstanceRestoreInstanceDatabaseFromInputParameters, GeoRestoreFromGeoBackupSetNameFromGeoBackupObjectParameter, GeoRestoreFromGeoBackupSetNameFromResourceIdParameter, GeoRestoreFromGeoBackupSetNameFromNameAndResourceGroupParameter, LongTermRetentionBackupRestoreParameter
Aliases:
Required: True
diff --git a/src/Sql/Sql/help/Set-AzSqlInstance.md b/src/Sql/Sql/help/Set-AzSqlInstance.md
index a042febb7908..8a23f9928add 100644
--- a/src/Sql/Sql/help/Set-AzSqlInstance.md
+++ b/src/Sql/Sql/help/Set-AzSqlInstance.md
@@ -24,19 +24,19 @@ Set-AzSqlInstance [-Name] [-ResourceGroupName] [-Administrator
### SetInstanceFromAzureSqlManagedInstanceModelInstanceDefinition
```
Set-AzSqlInstance [-InputObject] [-AdministratorPassword ]
- [-Edition ] [-ComputeGeneration ] [-LicenseType ] [-StorageSizeInGB ]
- [-VCore ] [-PublicDataEndpointEnabled ] [-ProxyOverride ] [-Tag ]
- [-AssignIdentity] [-InstancePoolName ] [-Force]
- [-DefaultProfile ] [-WhatIf] [-Confirm] []
+ [-Edition ] [-LicenseType ] [-StorageSizeInGB ] [-VCore ]
+ [-PublicDataEndpointEnabled ] [-ProxyOverride ] [-Tag ] [-AssignIdentity]
+ [-InstancePoolName ] [-Force] [-ComputeGeneration ] [-DefaultProfile ]
+ [-WhatIf] [-Confirm] []
```
### SetInstanceFromAzureResourceId
```
Set-AzSqlInstance [-ResourceId] [-AdministratorPassword ] [-Edition ]
- [-ComputeGeneration ] [-LicenseType ] [-StorageSizeInGB ] [-VCore ]
- [-PublicDataEndpointEnabled ] [-ProxyOverride ] [-Tag ] [-AssignIdentity]
- [-InstancePoolName ] [-Force] [-DefaultProfile ] [-WhatIf]
- [-Confirm] []
+ [-LicenseType ] [-StorageSizeInGB ] [-VCore ] [-PublicDataEndpointEnabled ]
+ [-ProxyOverride ] [-Tag ] [-AssignIdentity] [-InstancePoolName ] [-Force]
+ [-ComputeGeneration ] [-DefaultProfile ] [-WhatIf] [-Confirm]
+ []
```
## DESCRIPTION
@@ -65,6 +65,7 @@ VCores : 16
StorageSizeInGB : 1024
InstancePoolName :
```
+
### Example 2: Change existing instance hardware generation using new value for -ComputeGeneration
```powershell
PS C:\> Set-AzSqlInstance -Name "managedinstance1" -ResourceGroupName "ResourceGroup01" -ComputeGeneration Gen5
diff --git a/src/Sql/Sql/help/Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy.md b/src/Sql/Sql/help/Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy.md
new file mode 100644
index 000000000000..f86a4c303b2b
--- /dev/null
+++ b/src/Sql/Sql/help/Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy.md
@@ -0,0 +1,304 @@
+---
+external help file: Microsoft.Azure.PowerShell.Cmdlets.Sql.dll-Help.xml
+Module Name: Az.Sql
+online version: https://docs.microsoft.com/en-us/powershell/module/az.sql/set-azsqlinstancedatabasebackuplongtermretentionpolicy
+schema: 2.0.0
+---
+
+# Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy
+
+## SYNOPSIS
+The **Set-AzSqlInstanceDatabaseLongTermRetentionBackup** cmdlet sets a managed database's long term retention policy.
+
+## SYNTAX
+
+### WeeklyRetentionRequired (Default)
+```
+Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy -WeeklyRetention [-InstanceName]
+ [-DatabaseName] [-ResourceGroupName] [-DefaultProfile ] [-WhatIf]
+ [-Confirm] []
+```
+
+### RemovePolicy
+```
+Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy [-RemovePolicy] [-InstanceName]
+ [-DatabaseName] [-ResourceGroupName] [-DefaultProfile ] [-WhatIf]
+ [-Confirm] []
+```
+
+### MonthlyRetentionRequired
+```
+Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy [-WeeklyRetention ] -MonthlyRetention
+ [-InstanceName] [-DatabaseName] [-ResourceGroupName]
+ [-DefaultProfile ] [-WhatIf] [-Confirm] []
+```
+
+### YearlyRetentionRequired
+```
+Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy [-WeeklyRetention ] [-MonthlyRetention ]
+ -YearlyRetention -WeekOfYear [-InstanceName] [-DatabaseName]
+ [-ResourceGroupName] [-DefaultProfile ] [-WhatIf] [-Confirm]
+ []
+```
+
+## DESCRIPTION
+The **Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy** cmdlet sets the long term retention policy for this managed database.
+
+## EXAMPLES
+
+### Example 1
+```powershell
+PS C:\> Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy -ResourceGroupName testResourceGroup -InstanceName testInstance -DatabaseName test -WeeklyRetention "P1W"
+
+
+ResourceGroupName : testResourceGroup
+ManagedInstanceName : testInstance
+DatabaseName : test
+WeeklyRetention : P1W
+MonthlyRetention : PT0S
+YearlyRetention : PT0S
+WeekOfYear : 0
+Location :
+```
+
+Configures the database's long term retention weekly policy to one week.
+
+### Example 2
+```
+PS C:\> Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy -ResourceGroupName testResourceGroup -InstanceName testInstance -DatabaseName target1 -RemovePolicy
+
+
+ResourceGroupName : testResourceGroup
+ManagedInstanceName : testInstance
+DatabaseName : target1
+WeeklyRetention : PT0S
+MonthlyRetention : PT0S
+YearlyRetention : PT0S
+WeekOfYear : 0
+Location :
+```
+
+
+This command removes the long term retention policy from the database.
+## PARAMETERS
+
+### -DatabaseName
+The name of the Azure Managed Database to use.
+
+```yaml
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 2
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+### -DefaultProfile
+The credentials, account, tenant, and subscription used for communication with Azure.
+
+```yaml
+Type: IAzureContextContainer
+Parameter Sets: (All)
+Aliases: AzContext, AzureRmContext, AzureCredential
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -InstanceName
+The name of the Azure Managed Instance the database belongs to.
+
+```yaml
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 1
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+### -MonthlyRetention
+The Monthly Retention.
+If just a number is passed instead of an ISO 8601 string, days will be assumed as the units.
+There is a minimum of 7 days and a maximum of 10 years.
+
+```yaml
+Type: String
+Parameter Sets: MonthlyRetentionRequired
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+```yaml
+Type: String
+Parameter Sets: YearlyRetentionRequired
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+### -RemovePolicy
+If provided, the policy for the database will be cleared.
+
+```yaml
+Type: SwitchParameter
+Parameter Sets: RemovePolicy
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -ResourceGroupName
+The name of the resource group.
+
+```yaml
+Type: String
+Parameter Sets: (All)
+Aliases:
+
+Required: True
+Position: 0
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+### -WeeklyRetention
+The Weekly Retention.
+If just a number is passed instead of an ISO 8601 string, days will be assumed as the units.
+There is a minimum of 7 days and a maximum of 10 years.
+
+```yaml
+Type: String
+Parameter Sets: WeeklyRetentionRequired
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+```yaml
+Type: String
+Parameter Sets: MonthlyRetentionRequired, YearlyRetentionRequired
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+### -WeekOfYear
+The Week of Year, 1 to 52, to save for the Yearly Retention.
+
+```yaml
+Type: Int32
+Parameter Sets: YearlyRetentionRequired
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+### -YearlyRetention
+The Yearly Retention.
+If just a number is passed instead of an ISO 8601 string, days will be assumed as the units.
+There is a minimum of 7 days and a maximum of 10 years.
+
+```yaml
+Type: String
+Parameter Sets: YearlyRetentionRequired
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByPropertyName)
+Accept wildcard characters: False
+```
+
+### -Confirm
+Prompts you for confirmation before running the cmdlet.
+
+```yaml
+Type: 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: 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
+
+### System.String
+
+### System.Int32
+
+## OUTPUTS
+
+### Microsoft.Azure.Commands.Sql.ManagedDatabaseBackup.Model.AzureSqlManagedDatabaseBackupLongTermRetentionPolicyModel
+
+## NOTES
+
+## RELATED LINKS
+
+[Get-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy](./Get-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy.md)
+
+[Get-AzSqlInstanceDatabaseLongTermRetentionBackup](./Get-AzSqlInstanceDatabaseLongTermRetentionBackup.md)
+
+[Remove-AzSqlInstanceDatabaseLongTermRetentionBackup](./Remove-AzSqlInstanceDatabaseLongTermRetentionBackup.md)
+
+[SQL Database Documentation](https://docs.microsoft.com/azure/sql-database/)
\ No newline at end of file