diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj index d71137cf7849..e13844c82449 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj @@ -152,10 +152,11 @@ Designer - PreserveNewest + Always - + + diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupTests.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupTests.cs index 5a175ae073e8..c330f4eb2b73 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupTests.cs +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupTests.cs @@ -28,13 +28,19 @@ public void ListProtectionPolicyTests() [Fact] public void ListAzureBackupItemTests() { - this.RunPowerShellTest("Test-GetAzureBackupItemTests"); + this.RunPowerShellTest("Test-GetAzureBackupItem"); } [Fact] - public void EnableDisableAzureBackupProtectionTest() + public void EnableAzureBackupProtectionTest() { - this.RunPowerShellTest("Test-EnableDisableAzureBackupProtectionTest"); + this.RunPowerShellTest("Test-EnableAzureBackupProtection"); + } + + [Fact] + public void DisableAzureBackupProtectionTest() + { + this.RunPowerShellTest("Test-DisableAzureBackupProtection"); } [Fact] diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupTests.ps1 b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupTests.ps1 index 252a0c1124f6..e9ea9df16311 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupTests.ps1 +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupTests.ps1 @@ -57,15 +57,16 @@ function GetAzureRecoveryPointTest $recoveryPoints = Get-AzureBackupRecoveryPoint -Item $azureBackUpItem if (!($recoveryPoints -eq $null)) { - foreach($recoveryPoint in $recoveryPoints) - { - Assert-NotNull $recoveryPoint.RecoveryPointTime 'RecoveryPointTime should not be null' - Assert-NotNull $recoveryPoint.RecoveryPointType 'RecoveryPointType should not be null' - Assert-NotNull $recoveryPoint.RecoveryPointId 'RecoveryPointId should not be null' + foreach($recoveryPoint in $recoveryPoints) + { + Assert-NotNull $recoveryPoint.RecoveryPointTime 'RecoveryPointTime should not be null' + Assert-NotNull $recoveryPoint.RecoveryPointType 'RecoveryPointType should not be null' + Assert-NotNull $recoveryPoint.RecoveryPointId 'RecoveryPointId should not be null' + } } } -function Test-GetAzureBackupItemTests +function Test-GetAzureBackupItem { $azureBackUpContainer = New-Object Microsoft.Azure.Commands.AzureBackup.Cmdlets.AzureBackupContainer $azureBackUpContainer.ResourceGroupName = $ResourceGroupName @@ -90,7 +91,7 @@ function Test-GetAzureBackupItemTests } } -function Test-EnableDisableAzureBackupProtectionTest +function Test-EnableAzureBackupProtection { $policy = New-Object Microsoft.Azure.Commands.AzureBackup.Cmdlets.AzureBackupProtectionPolicy $policy.InstanceId = $PolicyId @@ -111,12 +112,22 @@ function Test-EnableDisableAzureBackupProtectionTest $azureBackUpItem.DataSourceId = $DataSourceId $azureBackUpItem.Type = $DataSourceType $azureBackUpItem.Name = $POName - $jobId = Enable-AzureBackupProtection -Item $azureBackUpItem -Policy $policy - sleep(20) + +} + +function Test-DisableAzureBackupProtection +{ + $azureBackUpItem = New-Object Microsoft.Azure.Commands.AzureBackup.Cmdlets.AzureBackupItem + $azureBackUpItem.ResourceGroupName = $ResourceGroupName + $azureBackUpItem.ResourceName = $ResourceName + $azureBackUpItem.Location = $Location + $azureBackUpItem.ContainerUniqueName = $ContainerName + $azureBackUpItem.ContainerType = $ContainerType + $azureBackUpItem.DataSourceId = $DataSourceId + $azureBackUpItem.Type = $DataSourceType + $azureBackUpItem.Name = $POName $jobId1 = Disable-AzureBackupProtection -Item $azureBackUpItem - sleep(20) - $jobId2 = Enable-AzureBackupProtection -Item $azureBackUpItem -Policy $policy } function BackUpAzureBackUpItemTest diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupTests/DisableAzureBackupProtectionTest.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupTests/DisableAzureBackupProtectionTest.json new file mode 100644 index 000000000000..f8e2d72d6458 --- /dev/null +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupTests/DisableAzureBackupProtectionTest.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backupseadev01/BackupVault/backuprn/containers/iaasvmcontainer%3Bdev01testing%3Bdev01testing/datasources/VM/17593283453810/unprotect?api-version=2014-09-01", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3Vwc2VhZGV2MDEvQmFja3VwVmF1bHQvYmFja3Vwcm4vY29udGFpbmVycy9pYWFzdm1jb250YWluZXIlM0JkZXYwMXRlc3RpbmclM0JkZXYwMXRlc3RpbmcvZGF0YXNvdXJjZXMvVk0vMTc1OTMyODM0NTM4MTAvdW5wcm90ZWN0P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"RemoveProtectionOption\": \"RetainBackupData\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json" + ], + "Content-Length": [ + "52" + ], + "Accept-Language": [ + "en-us" + ], + "User-Agent": [ + "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0" + ] + }, + "ResponseBody": "\"2fa60bcf-b87e-4fbf-b1dd-0003ece38f40\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "18e31f54-88cd-43e8-969f-0b1cd783cf1f" + ], + "x-ms-client-request-id": [ + "5ec97812-7689-447c-8218-ffd9841835d9", + "5ec97812-7689-447c-8218-ffd9841835d9" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-correlation-request-id": [ + "18e31f54-88cd-43e8-969f-0b1cd783cf1f" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150617T085657Z:18e31f54-88cd-43e8-969f-0b1cd783cf1f" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 17 Jun 2015 08:56:56 GMT" + ], + "Server": [ + "Microsoft-IIS/8.0" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 202 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "f5303a0b-fae4-4cdb-b44d-0e4c032dde26" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupTests/EnableAzureBackupProtectionTest.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupTests/EnableAzureBackupProtectionTest.json new file mode 100644 index 000000000000..7a9320a43cdd --- /dev/null +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupTests/EnableAzureBackupProtectionTest.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backupseadev01/BackupVault/backuprn/protectableobjects/protect?api-version=2014-09-01", + "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3Vwc2VhZGV2MDEvQmFja3VwVmF1bHQvYmFja3Vwcm4vcHJvdGVjdGFibGVvYmplY3RzL3Byb3RlY3Q/YXBpLXZlcnNpb249MjAxNC0wOS0wMQ==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"ProtectableObjects\": [\r\n \"iaasvmcontainer;dev01testing;dev01testing\"\r\n ],\r\n \"ProtectableObjectType\": \"VM\",\r\n \"PolicyId\": \"c87bbada-6e1b-4db2-b76c-9062d28959a4\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json" + ], + "Content-Length": [ + "174" + ], + "Accept-Language": [ + "en-us" + ], + "User-Agent": [ + "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0" + ] + }, + "ResponseBody": "\"a9bab2af-4d9b-40a9-ad02-c5d20973aa52\"", + "ResponseHeaders": { + "Content-Length": [ + "38" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "31de0e3d-4909-482b-80e1-b3957f16569e" + ], + "x-ms-client-request-id": [ + "2b2f4905-23d0-44a9-876b-3d6e8e7ca9c2", + "2b2f4905-23d0-44a9-876b-3d6e8e7ca9c2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1192" + ], + "x-ms-correlation-request-id": [ + "31de0e3d-4909-482b-80e1-b3957f16569e" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20150617T085435Z:31de0e3d-4909-482b-80e1-b3957f16569e" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Wed, 17 Jun 2015 08:54:35 GMT" + ], + "Server": [ + "Microsoft-IIS/8.0" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 202 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "f5303a0b-fae4-4cdb-b44d-0e4c032dde26" + } +} \ No newline at end of file diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupTests/EnableDisableAzureBackupProtectionTest.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupTests/EnableDisableAzureBackupProtectionTest.json deleted file mode 100644 index 579f1f6b9075..000000000000 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupTests/EnableDisableAzureBackupProtectionTest.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backupseadev01/BackupVault/backuprn/protectableobjects/protect?api-version=2014-09-01", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3Vwc2VhZGV2MDEvQmFja3VwVmF1bHQvYmFja3Vwcm4vcHJvdGVjdGFibGVvYmplY3RzL3Byb3RlY3Q/YXBpLXZlcnNpb249MjAxNC0wOS0wMQ==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"ProtectableObjects\": [\r\n \"iaasvmcontainer;dev01testing;dev01testing\"\r\n ],\r\n \"ProtectableObjectType\": \"VM\",\r\n \"PolicyId\": \"c87bbada-6e1b-4db2-b76c-9062d28959a4\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json" - ], - "Content-Length": [ - "174" - ], - "Accept-Language": [ - "en-us" - ], - "User-Agent": [ - "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "\"f0cba117-8ffe-4f9e-8ca5-84104e73d8d8\"", - "ResponseHeaders": { - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "2fc9c464-5788-4a97-974c-27e3e3ffbe4d" - ], - "x-ms-client-request-id": [ - "4cd7d528-2138-46fe-a247-b3e8115ff54a", - "4cd7d528-2138-46fe-a247-b3e8115ff54a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-correlation-request-id": [ - "2fc9c464-5788-4a97-974c-27e3e3ffbe4d" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20150615T144514Z:2fc9c464-5788-4a97-974c-27e3e3ffbe4d" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Mon, 15 Jun 2015 14:45:14 GMT" - ], - "Server": [ - "Microsoft-IIS/8.0" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backupseadev01/BackupVault/backuprn/protectableobjects/protect?api-version=2014-09-01", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3Vwc2VhZGV2MDEvQmFja3VwVmF1bHQvYmFja3Vwcm4vcHJvdGVjdGFibGVvYmplY3RzL3Byb3RlY3Q/YXBpLXZlcnNpb249MjAxNC0wOS0wMQ==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"ProtectableObjects\": [\r\n \"iaasvmcontainer;dev01testing;dev01testing\"\r\n ],\r\n \"ProtectableObjectType\": \"VM\",\r\n \"PolicyId\": \"c87bbada-6e1b-4db2-b76c-9062d28959a4\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json" - ], - "Content-Length": [ - "174" - ], - "Accept-Language": [ - "en-us" - ], - "User-Agent": [ - "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "\"8a5a5957-9fdf-43da-9259-63e8abe3fc57\"", - "ResponseHeaders": { - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "772c23c3-c24a-48f0-a6db-b57afa35ebaf" - ], - "x-ms-client-request-id": [ - "4e04d16f-deb2-4ab6-89ef-5c971506864b", - "4e04d16f-deb2-4ab6-89ef-5c971506864b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-correlation-request-id": [ - "772c23c3-c24a-48f0-a6db-b57afa35ebaf" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20150615T144558Z:772c23c3-c24a-48f0-a6db-b57afa35ebaf" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Mon, 15 Jun 2015 14:45:58 GMT" - ], - "Server": [ - "Microsoft-IIS/8.0" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backupseadev01/BackupVault/backuprn/containers/iaasvmcontainer%3Bdev01testing%3Bdev01testing/datasources/VM/17593283453810/unprotect?api-version=2014-09-01", - "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3Vwc2VhZGV2MDEvQmFja3VwVmF1bHQvYmFja3Vwcm4vY29udGFpbmVycy9pYWFzdm1jb250YWluZXIlM0JkZXYwMXRlc3RpbmclM0JkZXYwMXRlc3RpbmcvZGF0YXNvdXJjZXMvVk0vMTc1OTMyODM0NTM4MTAvdW5wcm90ZWN0P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"RemoveProtectionOption\": \"RetainBackupData\"\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json" - ], - "Content-Length": [ - "52" - ], - "Accept-Language": [ - "en-us" - ], - "User-Agent": [ - "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0" - ] - }, - "ResponseBody": "\"a6c19cb6-6f29-40d7-a216-e4590ad7550d\"", - "ResponseHeaders": { - "Content-Length": [ - "38" - ], - "Content-Type": [ - "application/json" - ], - "Expires": [ - "-1" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-request-id": [ - "a51fe2a5-f3d6-4d3e-af88-0e421ffe207c" - ], - "x-ms-client-request-id": [ - "e0dc8344-0909-4188-aa69-49f7f5914b16", - "e0dc8344-0909-4188-aa69-49f7f5914b16" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-correlation-request-id": [ - "a51fe2a5-f3d6-4d3e-af88-0e421ffe207c" - ], - "x-ms-routing-request-id": [ - "CENTRALUS:20150615T144536Z:a51fe2a5-f3d6-4d3e-af88-0e421ffe207c" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Mon, 15 Jun 2015 14:45:36 GMT" - ], - "Server": [ - "Microsoft-IIS/8.0" - ], - "X-Powered-By": [ - "ASP.NET" - ] - }, - "StatusCode": 202 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "f5303a0b-fae4-4cdb-b44d-0e4c032dde26" - } -} \ No newline at end of file diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupTests/ListAzureBackupItemTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupTests/ListAzureBackupItemTests.json index 762f2230259e..1f2c38c86b44 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupTests/ListAzureBackupItemTests.json +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupTests/ListAzureBackupItemTests.json @@ -13,10 +13,10 @@ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0" ] }, - "ResponseBody": "{\r\n \"Objects\": [\r\n {\r\n \"FriendlyName\": \"dev01Testing\",\r\n \"ContainerName\": \"iaasvmcontainer;dev01testing;dev01testing\",\r\n \"ContainerType\": \"IaasVMContainer\",\r\n \"Type\": \"VM\",\r\n \"Status\": \"Protected\",\r\n \"ProtectionStatus\": \"Protected\",\r\n \"ProtectableObjectName\": \"iaasvmcontainer;dev01testing;dev01testing\",\r\n \"ProtectionPolicyName\": \"DefaultPolicy\",\r\n \"ProtectionPolicyId\": \"40716838-2fa2-453b-8901-3f16ecb5359b\",\r\n \"PolicyInconsistent\": true,\r\n \"RecoveryPointsCount\": 12,\r\n \"LastRecoveryPoint\": \"2015-06-15T11:12:50.8577407Z\",\r\n \"LastBackupTime\": \"2015-06-15T11:11:03.142968Z\",\r\n \"LastBackupStatus\": \"Completed\",\r\n \"LastBackupJobId\": \"3198b8b5-6a1b-492e-b550-a3ebd57b6fad\",\r\n \"InstanceId\": \"17593283453810\",\r\n \"Name\": \"iaasvmcontainer;dev01testing;dev01testing\",\r\n \"OperationInProgress\": false\r\n }\r\n ],\r\n \"ResultCount\": 1,\r\n \"Skiptoken\": null\r\n}", + "ResponseBody": "{\r\n \"Objects\": [\r\n {\r\n \"FriendlyName\": \"dev01Testing\",\r\n \"ContainerName\": \"iaasvmcontainer;dev01testing;dev01testing\",\r\n \"ContainerType\": \"IaasVMContainer\",\r\n \"Type\": \"VM\",\r\n \"Status\": \"Protected\",\r\n \"ProtectionStatus\": \"Protected\",\r\n \"ProtectableObjectName\": \"iaasvmcontainer;dev01testing;dev01testing\",\r\n \"ProtectionPolicyName\": \"Policy9\",\r\n \"ProtectionPolicyId\": \"c87bbada-6e1b-4db2-b76c-9062d28959a4\",\r\n \"PolicyInconsistent\": false,\r\n \"RecoveryPointsCount\": 16,\r\n \"LastRecoveryPoint\": \"2015-06-17T08:38:51.5793413Z\",\r\n \"LastBackupTime\": \"2015-06-17T08:37:13.9649748Z\",\r\n \"LastBackupStatus\": \"Completed\",\r\n \"LastBackupJobId\": \"b4c03815-5512-4c7e-8187-fcacbb443b2a\",\r\n \"InstanceId\": \"17593283453810\",\r\n \"Name\": \"iaasvmcontainer;dev01testing;dev01testing\",\r\n \"OperationInProgress\": false\r\n }\r\n ],\r\n \"ResultCount\": 1,\r\n \"Skiptoken\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "749" + "745" ], "Content-Type": [ "application/json" @@ -28,29 +28,29 @@ "no-cache" ], "x-ms-request-id": [ - "95e237af-d67d-43ca-b867-760ce8d27333" + "7b71d7e8-7fdb-4f12-96b9-c7072c75de2d" ], "x-ms-client-request-id": [ - "38273d83-d1af-4877-b40b-fe95153fe2fc", - "38273d83-d1af-4877-b40b-fe95153fe2fc" + "97e0cd0f-65c2-4fb6-b640-4dc2f71a9958", + "97e0cd0f-65c2-4fb6-b640-4dc2f71a9958" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14999" + "14916" ], "x-ms-correlation-request-id": [ - "95e237af-d67d-43ca-b867-760ce8d27333" + "7b71d7e8-7fdb-4f12-96b9-c7072c75de2d" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150615T122620Z:95e237af-d67d-43ca-b867-760ce8d27333" + "CENTRALUS:20150617T085639Z:7b71d7e8-7fdb-4f12-96b9-c7072c75de2d" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Mon, 15 Jun 2015 12:26:20 GMT" + "Wed, 17 Jun 2015 08:56:39 GMT" ], "Server": [ "Microsoft-IIS/8.0" @@ -74,10 +74,10 @@ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0" ] }, - "ResponseBody": "{\r\n \"Objects\": [\r\n {\r\n \"FriendlyName\": \"dev01Testing\",\r\n \"Type\": \"VM\",\r\n \"ProtectionStatus\": \"Protected\",\r\n \"ContainerName\": \"iaasvmcontainer;dev01testing;dev01testing\",\r\n \"ContainerFriendlyName\": \"dev01Testing\",\r\n \"ContainerType\": \"IaasVMContainer\",\r\n \"ParentContainerName\": \"dev01Testing\",\r\n \"ParentContainerFriendlyName\": \"dev01Testing\",\r\n \"ParentContainerType\": \"IaasVMServiceContainer\",\r\n \"InstanceId\": \"iaasvmcontainer;dev01testing;dev01testing\",\r\n \"Name\": \"iaasvmcontainer;dev01testing;dev01testing\",\r\n \"OperationInProgress\": false\r\n }\r\n ],\r\n \"ResultCount\": 1,\r\n \"Skiptoken\": null\r\n}", + "ResponseBody": "{\r\n \"Objects\": [\r\n {\r\n \"FriendlyName\": \"dev01Testing\",\r\n \"Type\": \"VM\",\r\n \"ProtectionStatus\": \"Protected\",\r\n \"ContainerName\": \"iaasvmcontainer;dev01testing;dev01testing\",\r\n \"ContainerFriendlyName\": \"dev01Testing\",\r\n \"ContainerType\": \"IaasVMContainer\",\r\n \"ParentContainerName\": \"dev01Testing\",\r\n \"ParentContainerFriendlyName\": \"dev01Testing\",\r\n \"ParentContainerType\": \"IaasVMServiceContainer\",\r\n \"InstanceId\": \"iaasvmcontainer;dev01testing;dev01testing\",\r\n \"Name\": \"iaasvmcontainer;dev01testing;dev01testing\",\r\n \"OperationInProgress\": false\r\n },\r\n {\r\n \"FriendlyName\": \"mkheranivmps05\",\r\n \"Type\": \"VM\",\r\n \"ProtectionStatus\": \"NotProtected\",\r\n \"ContainerName\": \"iaasvmcontainer;mkheranivmps02;mkheranivmps05\",\r\n \"ContainerFriendlyName\": \"mkheranivmps05\",\r\n \"ContainerType\": \"IaasVMContainer\",\r\n \"ParentContainerName\": \"mkheranivmps02\",\r\n \"ParentContainerFriendlyName\": \"mkheranivmps02\",\r\n \"ParentContainerType\": \"IaasVMServiceContainer\",\r\n \"InstanceId\": \"iaasvmcontainer;mkheranivmps02;mkheranivmps05\",\r\n \"Name\": \"iaasvmcontainer;mkheranivmps02;mkheranivmps05\",\r\n \"OperationInProgress\": false\r\n }\r\n ],\r\n \"ResultCount\": 2,\r\n \"Skiptoken\": null\r\n}", "ResponseHeaders": { "Content-Length": [ - "519" + "1015" ], "Content-Type": [ "application/json" @@ -89,29 +89,29 @@ "no-cache" ], "x-ms-request-id": [ - "44cd4165-ecea-40bf-bd81-f87a49e62caa" + "2414f3f1-96a5-4733-b8a5-5652395598f3" ], "x-ms-client-request-id": [ - "a757ddda-d546-4807-a503-040f46c01609", - "a757ddda-d546-4807-a503-040f46c01609" + "62cb01de-d4c7-4ec9-9c50-d15cf2ad7185", + "62cb01de-d4c7-4ec9-9c50-d15cf2ad7185" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14998" + "14915" ], "x-ms-correlation-request-id": [ - "44cd4165-ecea-40bf-bd81-f87a49e62caa" + "2414f3f1-96a5-4733-b8a5-5652395598f3" ], "x-ms-routing-request-id": [ - "CENTRALUS:20150615T122621Z:44cd4165-ecea-40bf-bd81-f87a49e62caa" + "CENTRALUS:20150617T085639Z:2414f3f1-96a5-4733-b8a5-5652395598f3" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Mon, 15 Jun 2015 12:26:20 GMT" + "Wed, 17 Jun 2015 08:56:39 GMT" ], "Server": [ "Microsoft-IIS/8.0"