diff --git a/ChangeLog.md b/ChangeLog.md
index 3c6ee31b2d1a..9e97c0149675 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -27,6 +27,23 @@
* Added Restart-AzureRemoteAppVm cmdlet
* Azure HDInsight cmdlets
* Added cmdlet help
+* Azure Backup - added the following cmdlets
+ * Backup-AzureRMBackupItem
+ * Register-AzureRMBackupContainer
+ * Disable-AzureRMBackupProtection
+ * Enable-AzureRMBackupProtection
+ * Get-AzureRMBackupItem
+ * Get-AzureRMBackupJob
+ * Get-AzureRMBackupJobDetails
+ * Stop-AzureRMBackupJob
+ * Wait-AzureRMBackupJob
+ * Get-AzureRMBackupProtectionPolicy
+ * New-AzureRMBackupProtectionPolicy
+ * New-AzureRMBackupRetentionPolicyObject
+ * Remove-AzureRMBackupProtectionPolicy
+ * Set-AzureRMBackupProtectionPolicy
+ * Get-AzureRMBackupRecoveryPoint
+ * Restore-AzureRMBackupItem
## 2015.08.07 version 0.9.6
* Azure Batch cmdlets
diff --git a/setup/azurecmdfiles.wxi b/setup/azurecmdfiles.wxi
index 35cbf6e9f891..fac096a42fd5 100644
--- a/setup/azurecmdfiles.wxi
+++ b/setup/azurecmdfiles.wxi
@@ -204,6 +204,9 @@
+
+
+
@@ -575,15 +578,6 @@
-
-
-
-
-
-
-
-
-
@@ -629,9 +623,6 @@
-
-
-
@@ -688,6 +679,9 @@
+
+
+
@@ -1193,15 +1187,6 @@
-
-
-
-
-
-
-
-
-
@@ -1238,9 +1223,6 @@
-
-
-
@@ -1344,15 +1326,6 @@
-
-
-
-
-
-
-
-
-
@@ -1380,9 +1353,6 @@
-
-
-
@@ -1451,15 +1421,6 @@
-
-
-
-
-
-
-
-
-
@@ -1508,9 +1469,6 @@
-
-
-
@@ -1534,6 +1492,9 @@
+
+
+
@@ -2035,15 +1996,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2053,6 +2041,15 @@
+
+
+
+
+
+
+
+
+
@@ -2089,6 +2086,12 @@
+
+
+
+
+
+
@@ -2104,6 +2107,9 @@
+
+
+
@@ -3218,15 +3224,6 @@
-
-
-
-
-
-
-
-
-
@@ -3344,9 +3341,6 @@
-
-
-
@@ -4685,15 +4679,6 @@
-
-
-
-
-
-
-
-
-
@@ -4745,9 +4730,6 @@
-
-
-
@@ -4820,6 +4802,7 @@
+
@@ -4933,9 +4916,6 @@
-
-
-
@@ -4951,7 +4931,6 @@
-
@@ -4970,6 +4949,7 @@
+
@@ -5127,9 +5107,6 @@
-
-
-
@@ -5142,7 +5119,6 @@
-
@@ -5176,9 +5152,6 @@
-
-
-
@@ -5188,7 +5161,6 @@
-
@@ -5211,9 +5183,6 @@
-
-
-
@@ -5230,7 +5199,6 @@
-
@@ -5238,6 +5206,7 @@
+
@@ -5401,12 +5370,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -5419,11 +5400,14 @@
+
+
+
@@ -5786,9 +5770,6 @@
-
-
-
@@ -5828,7 +5809,6 @@
-
@@ -6249,9 +6229,6 @@
-
-
-
@@ -6269,7 +6246,6 @@
-
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/App.config b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/App.config
index 51736738e693..749e8d87fdbd 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/App.config
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/App.config
@@ -1,7 +1,7 @@
-
+
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 e6568a19e23b..7fa1ec6467dd 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/Commands.AzureBackup.Test.csproj
@@ -39,9 +39,9 @@
False
..\..\..\packages\Microsoft.Azure.Common.Authentication.1.1.3-preview\lib\net45\Microsoft.Azure.Common.Authentication.dll
-
+
False
- ..\..\..\packages\Microsoft.Azure.Management.BackupServices.1.0.2-preview\lib\net40\Microsoft.Azure.Management.BackupServicesManagement.dll
+ ..\..\..\packages\Microsoft.Azure.Management.BackupServices.1.0.3-preview\lib\net40\Microsoft.Azure.Management.BackupServicesManagement.dll
False
@@ -133,11 +133,18 @@
+
+
+
+
Code
+
+
+
@@ -166,15 +173,90 @@
Always
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
Always
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
Always
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
Always
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupContainerTests.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupContainerTests.cs
index 7c461caf5071..e5c2882d1564 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupContainerTests.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupContainerTests.cs
@@ -13,11 +13,6 @@
// ----------------------------------------------------------------------------------
using Microsoft.WindowsAzure.Commands.ScenarioTest;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using Xunit;
namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
@@ -29,6 +24,27 @@ public class AzureBackupContainerTests : AzureBackupTestsBase
public void AzureBackupMarsContainerScenarioTests()
{
this.RunPowerShellTest("Test-AzureBackupMarsContainerScenario");
- }
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void AzureBackupRegisterContainerScenarioTests()
+ {
+ this.RunPowerShellTest("Test-RegisterAzureBackupContainer");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void AzureBackupUnregisterContainerScenarioTests()
+ {
+ this.RunPowerShellTest("Test-UnregisterAzureBackupContainer");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void AzureBackupContainerScenarioTests()
+ {
+ this.RunPowerShellTest("Test-AzureBackupContainerScenario");
+ }
}
}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupContainerTests.ps1 b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupContainerTests.ps1
index 2b500adf8f45..75e3b265546e 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupContainerTests.ps1
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupContainerTests.ps1
@@ -13,39 +13,93 @@
# ----------------------------------------------------------------------------------
$ResourceGroupName = "backuprg"
-$ResourceName = "backuprn1"
+$ResourceName = "backuprn"
$ContainerName = "DPMDRSCALEINT1.DPMDOM02.SELFHOST.CORP.MICROSOFT.COM"
$ContainerType = "Windows"
-$ContainerId = "10034"
+$ContainerId = "223719"
$ContainerStatus = "Registered"
function Test-AzureBackupMarsContainerScenario
{
- $vault = Get-AzureBackupVault -ResourceGroupName $ResourceGroupName -Name $ResourceName
-
- $containers = Get-AzureBackupContainer -vault $vault -type $ContainerType
- Assert-AreEqual $containers[0].ContainerType $ContainerType;
- Assert-AreEqual $containers[0].Id $ContainerId;
- Assert-AreEqual $containers[0].Location $vault.Region;
- Assert-AreEqual $containers[0].Name $ContainerName;
- Assert-AreEqual $containers[0].ResourceGroupName $vault.ResourceGroupName;
- Assert-AreEqual $containers[0].ResourceName $vault.Name;
- Assert-AreEqual $containers[0].Status $ContainerStatus;
-
- $namedContainers = Get-AzureBackupContainer -vault $vault -type $ContainerType -name $ContainerName
- $container = $namedContainers[0];
- Assert-AreEqual $container.ContainerType $ContainerType;
- Assert-AreEqual $container.Id $ContainerId;
- Assert-AreEqual $container.Location $vault.Region;
- Assert-AreEqual $container.Name $ContainerName;
- Assert-AreEqual $container.ResourceGroupName $vault.ResourceGroupName;
- Assert-AreEqual $container.ResourceName $vault.Name;
- Assert-AreEqual $container.Status $ContainerStatus;
-
- Enable-AzureBackupContainerReregistration -Container $container
-
- Unregister-AzureBackupContainer -Container $container -Force
-
- $unregContainers = Get-AzureBackupContainer -vault $vault -type $ContainerType -name $ContainerName
- Assert-AreEqual $unregContainers.Count 0;
+ $vault = Get-AzureRMBackupVault -ResourceGroupName $ResourceGroupName -Name $ResourceName
+
+ $containers = Get-AzureRMBackupContainer -vault $vault -type $ContainerType
+ Assert-AreEqual $containers[0].ContainerType $ContainerType;
+ Assert-AreEqual $containers[0].Id $ContainerId;
+ Assert-AreEqual $containers[0].Location $vault.Region;
+ Assert-AreEqual $containers[0].Name $ContainerName;
+ Assert-AreEqual $containers[0].ResourceGroupName $vault.ResourceGroupName;
+ Assert-AreEqual $containers[0].ResourceName $vault.Name;
+ Assert-AreEqual $containers[0].Status $ContainerStatus;
+
+ $namedContainers = Get-AzureRMBackupContainer -vault $vault -type $ContainerType -name $ContainerName
+ $container = $namedContainers[0];
+ Assert-AreEqual $container.ContainerType $ContainerType;
+ Assert-AreEqual $container.Id $ContainerId;
+ Assert-AreEqual $container.Location $vault.Region;
+ Assert-AreEqual $container.Name $ContainerName;
+ Assert-AreEqual $container.ResourceGroupName $vault.ResourceGroupName;
+ Assert-AreEqual $container.ResourceName $vault.Name;
+ Assert-AreEqual $container.Status $ContainerStatus;
+
+ Enable-AzureRMBackupContainerReregistration -Container $container
+
+ Unregister-AzureRMBackupContainer -Container $container -Force
+
+ $unregContainers = Get-AzureRMBackupContainer -vault $vault -type $ContainerType -name $ContainerName
+ Assert-AreEqual $unregContainers.Count 0;
+}
+
+$IaasVMManagedResourceName = "hydrarecordvm"
+$IaasVMManagedResourceGroupName = "hydrarecordvm"
+$VaultResourceName = "backuprn"
+$VaultResourceRGName = "backuprg"
+$RegisterTestVM = "powershellbvt"
+
+
+function Test-RegisterAzureBackupContainer
+{
+ $vault = Get-AzureRMBackupVault -Name $VaultResourceName
+ $jobId = Register-AzureRMBackupContainer -vault $vault -Name $RegisterTestVM -ServiceName $RegisterTestVM
+
+ Assert-NotNull $jobId 'Job should not be null';
+}
+
+
+function Test-UnregisterAzureBackupContainer
+{
+ $vault = Get-AzureRMBackupVault -Name $VaultResourceName
+ $container = Get-AzureRMBackupContainer -Name $IaasVMManagedResourceName -Type AzureVM -ManagedResourceGroupName $IaasVMManagedResourceGroupName -Vault $vault
+ $jobId = Unregister-AzureRMBackupContainer -Container $container
+
+ Assert-NotNull $jobId 'Job should not be null';
}
+
+$BMSContainerType = "AzureVM"
+$BMSContainerUniqueName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+$BMSContainerName = "hydrarecordvm"
+$BMSContainerStatus = "Registered"
+
+function Test-AzureBackupContainerScenario
+{
+ $vault = Get-AzureRMBackupVault -ResourceGroupName $ResourceGroupName -Name $ResourceName
+
+ $containers = Get-AzureRMBackupContainer -vault $vault -type $BMSContainerType
+ Assert-AreEqual $containers[0].ContainerType $BMSContainerType;
+ Assert-AreEqual $containers[0].ContainerUniqueName $BMSContainerUniqueName;
+ Assert-AreEqual $containers[0].Location $vault.Region;
+ Assert-AreEqual $containers[0].Name $BMSContainerName;
+ Assert-AreEqual $containers[0].ResourceGroupName $vault.ResourceGroupName;
+ Assert-AreEqual $containers[0].ResourceName $vault.Name;
+ Assert-AreEqual $containers[0].Status $BMSContainerStatus;
+
+ $namedContainers = Get-AzureRMBackupContainer -vault $vault -type $BMSContainerType -name $BMSContainerName
+ $container = $namedContainers[0];
+ Assert-AreEqual $container.ContainerType $BMSContainerType;
+ Assert-AreEqual $container.ContainerUniqueName $BMSContainerUniqueName;
+ Assert-AreEqual $container.Location $vault.Region;
+ Assert-AreEqual $container.Name $BMSContainerName;
+ Assert-AreEqual $container.ResourceGroupName $vault.ResourceGroupName;
+ Assert-AreEqual $container.ResourceName $vault.Name;
+ Assert-AreEqual $container.Status $BMSContainerStatus;
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupItemTestCases.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupItemTestCases.cs
new file mode 100644
index 000000000000..3db93a6ad11b
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupItemTestCases.cs
@@ -0,0 +1,43 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.WindowsAzure.Commands.ScenarioTest;
+using Xunit;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
+{
+ public class AzureBackupItemTestCases : AzureBackupTestsBase
+ {
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void ListAzureBackupItemTests()
+ {
+ this.RunPowerShellTest("Test-GetAzureBackupItemTests");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void EnableAzureBackupProtectionTest()
+ {
+ this.RunPowerShellTest("Test-EnableAzureBackupProtection");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void DisableAzureBackupProtectionTest()
+ {
+ this.RunPowerShellTest("Test-DisableAzureBackupProtection");
+ }
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupItemTestCases.ps1 b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupItemTestCases.ps1
new file mode 100644
index 000000000000..b2c9869ebc92
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupItemTestCases.ps1
@@ -0,0 +1,84 @@
+# ----------------------------------------------------------------------------------
+#
+# 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.
+# ----------------------------------------------------------------------------------
+
+$ResourceGroupName = "backuprg"
+$ResourceName = "backuprn"
+$ContainerName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+$ContainerType = "IaasVMContainer"
+$DataSourceType = "IaasVM"
+$DataSourceId = "17593283453810"
+$Location = "SouthEast Asia"
+$PolicyName = "ProtPolicy01";
+$PolicyId = "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/DefaultPolicy";
+$POName = "hydrarecordvm"
+$itemName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+
+
+function Test-GetAzureBackupItemTests
+{
+ $azureBackUpContainer = New-Object Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupContainer
+ $azureBackUpContainer.ResourceGroupName = $ResourceGroupName
+ $azureBackUpContainer.ResourceName = $ResourceName
+ $azureBackUpContainer.Location = $Location
+ $azureBackUpContainer.ContainerUniqueName = $ContainerName
+ $azureBackUpContainer.ContainerType = $ContainerType
+ $item = Get-AzureRMBackupItem -Container $azureBackUpContainer
+ if (!($item -eq $null))
+ {
+ foreach($backupitem in $item)
+ {
+ Assert-NotNull $backupitem.ProtectionStatus 'ProtectionStatus should not be null'
+ Assert-NotNull $backupitem.Name 'Name should not be null'
+ Assert-NotNull $backupitem.Type 'Type should not be null'
+ Assert-NotNull $backupitem.ContainerType 'ContainerType should not be null'
+ Assert-NotNull $backupitem.ContainerUniqueName 'ContainerUniqueName should not be null'
+ Assert-NotNull $backupitem.ResourceGroupName 'ResourceGroupName should not be null'
+ Assert-NotNull $backupitem.ResourceName 'ResourceName should not be null'
+ Assert-NotNull $backupitem.Location 'Location should not be null'
+ }
+ }
+}
+
+function Test-EnableAzureBackupProtection
+{
+ $vault = Get-AzureRMBackupVault -Name $ResourceName
+ $policyList = Get-AzureRMBackupProtectionPolicy -Vault $vault
+ $policy = $policyList[0]
+
+ $azureBackUpItem = New-Object Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupItem
+ $azureBackUpItem.ResourceGroupName = $ResourceGroupName
+ $azureBackUpItem.ResourceName = $ResourceName
+ $azureBackUpItem.Location = $Location
+ $azureBackUpItem.ContainerUniqueName = $ContainerName
+ $azureBackUpItem.ContainerType = $ContainerType
+ $azureBackUpItem.Type = $DataSourceType
+ $azureBackUpItem.Name = $POName
+ $azureBackUpItem.ItemName = $itemName
+ $jobId = Enable-AzureRMBackupProtection -Item $azureBackUpItem -Policy $policy
+
+}
+
+function Test-DisableAzureBackupProtection
+{
+ $azureBackUpItem = New-Object Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupItem
+ $azureBackUpItem.ResourceGroupName = $ResourceGroupName
+ $azureBackUpItem.ResourceName = $ResourceName
+ $azureBackUpItem.Location = $Location
+ $azureBackUpItem.ContainerUniqueName = $ContainerName
+ $azureBackUpItem.ContainerType = $ContainerType
+ $azureBackUpItem.Type = $DataSourceType
+ $azureBackUpItem.ItemName = $itemName
+ $azureBackUpItem.Name = $POName
+ $jobId1 = Disable-AzureRMBackupProtection -Item $azureBackUpItem
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupJobTests.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupJobTests.cs
new file mode 100644
index 000000000000..0c8db5a8f719
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupJobTests.cs
@@ -0,0 +1,37 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.WindowsAzure.Commands.ScenarioTest;
+using Xunit;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
+{
+ public class AzureBackupJobTests : AzureBackupTestsBase
+ {
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void GetAzureRMBackupJobTests()
+ {
+ this.RunPowerShellTest("Test-GetAzureRMBackupJob");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void StopAzureRMBackupJobTests()
+ {
+ this.RunPowerShellTest("Test-StopAzureRMBackupJob");
+ }
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupJobTests.ps1 b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupJobTests.ps1
new file mode 100644
index 000000000000..7feb00a08496
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupJobTests.ps1
@@ -0,0 +1,72 @@
+# ----------------------------------------------------------------------------------
+#
+# 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.
+# ----------------------------------------------------------------------------------
+
+$ResourceGroupName = "backuprg"
+$ResourceName = "backuprn"
+$ContainerName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+$ContainerType = "IaasVMContainer"
+$DataSourceType = "VM"
+$DataSourceId = "17593283453810"
+$Location = "SouthEast Asia"
+$PolicyName = "Policy9";
+$PolicyId = "c87bbada-6e1b-4db2-b76c-9062d28959a4";
+$POName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+$ItemName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+
+# startTime%20eq%20'2015-07-15%2009:39:29%20AM'%20and%20endTime%20eq%20'2015-08-14%2009:39:29%20AM'",
+
+function Test-GetAzureRMBackupJob
+{
+ $vault = Get-AzureRMBackupVault -Name $ResourceName;
+ $OneMonthBack = Get-Date -Date "2015-07-15 09:39:29Z";
+ $now = Get-Date -Date "2015-08-14 09:39:29Z";
+ $jobs = Get-AzureRMBackupJob -Vault $vault -From $OneMonthBack -To $now
+ Assert-NotNull $jobs 'Jobs list should not be null'
+ foreach($job in $jobs)
+ {
+ Assert-NotNull $jobs.InstanceId 'JobID should not be null';
+ Assert-NotNull $jobs.StartTime 'StartTime should not be null';
+ Assert-NotNull $jobs.WorkloadType 'WorkloadType should not be null';
+ Assert-NotNull $jobs.WorkloadName 'WorkloadName should not be null';
+ Assert-NotNull $jobs.Status 'Status should not be null';
+ Assert-NotNull $jobs.Operation 'Operation should not be null';
+
+ $jobDetails = Get-AzureRMBackupJobDetails -Job $job
+ Assert-NotNull $jobDetails.InstanceId 'JobID should not be null';
+ Assert-NotNull $jobDetails.StartTime 'StartTime should not be null';
+ Assert-NotNull $jobDetails.WorkloadType 'WorkloadType should not be null';
+ Assert-NotNull $jobDetails.WorkloadName 'WorkloadName should not be null';
+ Assert-NotNull $jobDetails.Status 'Status should not be null';
+ Assert-NotNull $jobDetails.Operation 'Operation should not be null';
+ Assert-NotNull $jobDetails.Properties 'Properties in job details cannot be null';
+ Assert-NotNull $jobDetails.SubTasks 'SubTasks in job details cannot be null';
+ }
+}
+
+
+function Test-StopAzureRMBackupJob
+{
+ $AzureRMBackupItem = New-Object Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupItem
+ $AzureRMBackupItem.ResourceGroupName = $ResourceGroupName
+ $AzureRMBackupItem.ResourceName = $ResourceName
+ $AzureRMBackupItem.Location = $Location
+ $AzureRMBackupItem.ContainerUniqueName = $ContainerName
+ $AzureRMBackupItem.ItemName = $ItemName
+ $job = Backup-AzureRMBackupItem -Item $AzureRMBackupItem
+
+ Stop-AzureRMBackupJob -Job $job;
+ Wait-AzureRMBackupJob -Job $job;
+ $jobDetails = Get-AzureRMBackupJobDetails -Job $job;
+ Assert-AreEqual 'Cancelled' $jobDetails.Status
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupPolicyTests.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupPolicyTests.cs
new file mode 100644
index 000000000000..86f25c18c52d
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupPolicyTests.cs
@@ -0,0 +1,59 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.WindowsAzure.Commands.ScenarioTest;
+using Xunit;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
+{
+ public class AzureBackupPolicyTests : AzureBackupTestsBase
+ {
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void ListProtectionPolicyTests()
+ {
+ this.RunPowerShellTest("Test-GetAzureBackupProtectionPolicyTests");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void NewProtectionPolicyTests()
+ {
+ this.RunPowerShellTest("Test-NewAzureBackupProtectionPolicyTests");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void ListProtectionPolicyByNameTests()
+ {
+ this.RunPowerShellTest("Test-GetAzureBackupProtectionPolicyByNameTests");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void SetProtectionPolicyTests()
+ {
+ this.RunPowerShellTest("Test-SetAzureBackupProtectionPolicyTests");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void RemoveProtectionPolicyTests()
+ {
+ this.RunPowerShellTest("Test-RemoveAzureBackupProtectionPolicyTests");
+ }
+
+
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupPolicyTests.ps1 b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupPolicyTests.ps1
new file mode 100644
index 000000000000..824ae6637d0f
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupPolicyTests.ps1
@@ -0,0 +1,99 @@
+# ----------------------------------------------------------------------------------
+#
+# 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.
+# ----------------------------------------------------------------------------------
+
+$ResourceGroupName = "backuprg"
+$ResourceName = "backuprn"
+$DataSourceType = "VM"
+$Location = "SouthEast Asia"
+$PolicyName = "Policy10";
+$PolicyId = "c87bbada-6e1b-4db2-b76c-9062d28959a4";
+$POName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+$Type = "AzureVM"
+$RetentionType = "Days"
+$BackupTime = "2015-06-13T20:30:00"
+$DaysOfWeek = "Monday"
+$RetentionDuration = 30
+$BackupType = "Full"
+$ScheduleType = "Daily"
+
+<#
+.SYNOPSIS
+Tests creating new resource group and a simple resource.
+#>
+function Test-GetAzureBackupProtectionPolicyTests
+{
+ $vault = Get-AzureRMBackupVault -Name $ResourceName;
+ $protectionPolicies = Get-AzureRMBackupProtectionPolicy -vault $vault
+ Assert-NotNull $protectionPolicies 'Protection Policies should not be null'
+ foreach($protectionPolicy in $protectionPolicies)
+ {
+ Assert-NotNull $protectionPolicy.Name 'Name should not be null'
+ Assert-NotNull $protectionPolicy.Type 'Type should not be null'
+ Assert-NotNull $protectionPolicy.BackupTime 'BackupTime should not be null'
+ Assert-NotNull $protectionPolicy.RetentionPolicy 'RetentionPolicy should not be null'
+ Assert-NotNull $protectionPolicy.ResourceGroupName 'ResourceGroupName should not be null'
+ Assert-NotNull $protectionPolicy.ResourceName 'ResourceName should not be null'
+ Assert-NotNull $protectionPolicy.Location 'Location should not be null'
+ }
+}
+
+function Test-GetAzureBackupProtectionPolicyByNameTests
+{
+ $vault = Get-AzureRMBackupVault -Name $ResourceName;
+ $protectionPolicy = Get-AzureRMBackupProtectionPolicy -vault $vault -Name $PolicyName
+
+ Assert-NotNull $protectionPolicy.Name 'Name should not be null'
+ Assert-NotNull $protectionPolicy.Type 'Type should not be null'
+ Assert-NotNull $protectionPolicy.BackupTime 'BackupTime should not be null'
+ Assert-NotNull $protectionPolicy.RetentionPolicy 'RetentionPolicy should not be null'
+ Assert-NotNull $protectionPolicy.ResourceGroupName 'ResourceGroupName should not be null'
+ Assert-NotNull $protectionPolicy.ResourceName 'ResourceName should not be null'
+ Assert-NotNull $protectionPolicy.Location 'Location should not be null'
+
+}
+
+function Test-NewAzureBackupProtectionPolicyTests
+{
+ $vault = Get-AzureRMBackupVault -Name $ResourceName;
+ $r1 = New-AzureRMBackupRetentionPolicyObject -DailyRetention -Retention 20
+ $r2 = New-AzureRMBackupRetentionPolicyObject -WeeklyRetention -DaysOfWeek "Monday" -Retention 10
+ $r = ($r1, $r2)
+
+ $protectionPolicy = New-AzureRMBackupProtectionPolicy -vault $vault -Name $PolicyName -Type $Type -Daily -RetentionPolicy $r -BackupTime $BackupTime
+
+ Assert-NotNull $protectionPolicy.Name 'Name should not be null'
+ Assert-NotNull $protectionPolicy.Type 'Type should not be null'
+ Assert-NotNull $protectionPolicy.BackupTime 'BackupTime should not be null'
+ Assert-NotNull $protectionPolicy.RetentionPolicy 'RetentionPolicy should not be null'
+ Assert-NotNull $protectionPolicy.ResourceGroupName 'ResourceGroupName should not be null'
+ Assert-NotNull $protectionPolicy.ResourceName 'ResourceName should not be null'
+ Assert-NotNull $protectionPolicy.Location 'Location should not be null'
+}
+
+function Test-SetAzureBackupProtectionPolicyTests
+{
+ $vault = Get-AzureRMBackupVault -Name $ResourceName;
+ $protectionPolicy = Get-AzureRMBackupProtectionPolicy -vault $vault -Name $PolicyName
+ $policyNewName = "policy09-new"
+
+ Set-AzureRMBackupProtectionPolicy -ProtectionPolicy $protectionPolicy -NewName $policyNewName
+}
+
+function Test-RemoveAzureBackupProtectionPolicyTests
+{
+ $vault = Get-AzureRMBackupVault -Name $ResourceName;
+ $protectionPolicy = Get-AzureRMBackupProtectionPolicy -vault $vault -Name $PolicyName
+
+ Remove-AzureRMBackupProtectionPolicy -ProtectionPolicy $protectionPolicy
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupScenarioTests.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupScenarioTests.cs
new file mode 100644
index 000000000000..b5578d5037d8
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupScenarioTests.cs
@@ -0,0 +1,29 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.WindowsAzure.Commands.ScenarioTest;
+using Xunit;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
+{
+ public class AzureBackupScenarioTests : AzureBackupTestsBase
+ {
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void AzureBackupEndToEndTests()
+ {
+ //this.RunPowerShellTest("Test-AzureBackupEndToEnd");
+ }
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupScenarioTests.ps1 b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupScenarioTests.ps1
new file mode 100644
index 000000000000..a807675645ce
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupScenarioTests.ps1
@@ -0,0 +1,146 @@
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+$ResourceGroupName = "backuprg"
+$ResourceName = "backuprn"
+$Location = "southeastasia"
+$VirtualMachineName = "hydrarecordvm"
+$ProtectionPolicyName = "e2epolicy1"
+$RestoreStorageAccount = "e2estore"
+
+function Test-AzureBackupEndToEnd
+{
+ New-AzureRMBackupVault -ResourceGroupName $ResourceGroupName -Name $ResourceName -Region $Location;
+ $vault = Get-AzureRMBackupVault -Name $ResourceName;
+ $Job = Register-AzureRMBackupContainer -Vault $vault -Name $VirtualMachineName -ServiceName $VirtualMachineName;
+ Wait-AzureRMBackupJob -Job $Job;
+ $JobDetails = Get-AzureRMBackupJobDetails -Vault $vault -JobId $Job.InstanceId;
+ Assert-AreEqual $JobDetails.Status "Completed";
+
+ $r1 = New-AzureRMBackupRetentionPolicyObject -DailyRetention -Retention 20;
+ $r2 = New-AzureRMBackupRetentionPolicyObject -WeeklyRetention -DaysOfWeek "Monday" -Retention 10;
+ $r3 = New-AzureRMBackupRetentionPolicyObject -MonthlyRetentionInDailyFormat -DaysOfMonth "10" -Retention 10;
+ $r = ($r1, $r2, $r3);
+ $backupTime = (Get-Date("17 August 2015 15:30:00")).ToUniversalTime();
+ $protectionpolicy = New-AzureRMBackupProtectionPolicy -Vault $vault -Name $ProtectionPolicyName -Type "AzureVM" -Daily -BackupTime $backupTime -RetentionPolicy $r;
+
+ Assert-AreEqual $protectionpolicy.Name $ProtectionPolicyName;
+ Assert-AreEqual $protectionpolicy.Type "AzureVM";
+ Assert-AreEqual $protectionpolicy.ScheduleType "Daily";
+ Assert-AreEqual $protectionpolicy.RetentionPolicy.Count 3;
+ Assert-AreEqual $protectionpolicy.ResourceGroupName $ResourceGroupName;
+ Assert-AreEqual $protectionpolicy.ResourceName $ResourceName;
+ Assert-AreEqual $protectionpolicy.Location $Location;
+
+ $container = Get-AzureRMBackupContainer -Vault $vault -Name $VirtualMachineName -Type "AzureVM";
+ Assert-AreEqual $container.ContainerType "AzureVM";
+ Assert-AreEqual $container.ContainerUniqueName.Contains("iaasvmcontainer") "True";
+ Assert-AreEqual $container.ContainerUniqueName.Contains($VirtualMachineName) "True";
+ Assert-AreEqual $container.Status "Registered";
+ Assert-AreEqual $container.ResourceGroupName $ResourceGroupName;
+ Assert-AreEqual $container.ResourceName $ResourceName;
+ Assert-AreEqual $container.Location $Location;
+
+ $Job = Enable-AzureRMBackupProtection -Item $container[0] -Policy $protectionpolicy[0];
+ Wait-AzureRMBackupJob -Job $Job;
+ $JobDetails = Get-AzureRMBackupJobDetails -Vault $vault -JobID $Job.InstanceId;
+ Assert-AreEqual $JobDetails.Operation "ConfigureBackup";
+ Assert-AreEqual $JobDetails.Status "Completed";
+ Assert-AreEqual $JobDetails.WorkloadName $VirtualMachineName;
+ Assert-AreEqual $JobDetails.Properties.Values.Contains($VirtualMachineName) "True";
+ Assert-AreEqual $JobDetails.Properties.Values.Contains($ProtectionPolicyName) "True";
+ Assert-AreEqual $JobDetails.ResourceGroupName $ResourceGroupName;
+ Assert-AreEqual $JobDetails.ResourceName $ResourceName;
+ Assert-AreEqual $JobDetails.Location $Location;
+
+ $item = Get-AzureRMBackupItem -Container $container[0];
+ Assert-AreEqual $item.ProtectionStatus "Protected";
+ Assert-AreEqual $item.DataSourceStatus "IRPending";
+ Assert-AreEqual $item.ProtectionPolicyName $ProtectionPolicyName;
+ Assert-AreEqual $item.ContainerType "AzureVM";
+ Assert-NotNull $item.Type;
+ Assert-AreEqual $item.ItemName.Contains("iaasvmcontainer") "True";
+ Assert-AreEqual $item.ItemName.Contains($VirtualMachineName) "True";
+ Assert-AreEqual $item.ResourceGroupName $ResourceGroupName;
+ Assert-AreEqual $item.ResourceName $ResourceName;
+ Assert-AreEqual $item.Location $Location;
+
+ $Job = Backup-AzureRMBackupItem -Item $item[0];
+ Wait-AzureRMBackupJob -Job $Job;
+ $JobDetails = Get-AzureRMBackupJobDetails -Vault $vault -JobID $Job.InstanceId;
+ Assert-AreEqual $JobDetails.Operation "Backup";
+ Assert-AreEqual $JobDetails.Status "Completed";
+ Assert-NotNull $JobDetails.WorkloadType;
+ Assert-AreEqual $JobDetails.WorkloadName $VirtualMachineName;
+ Assert-AreEqual $JobDetails.Properties.Values.Contains($VirtualMachineName) "True";
+ Assert-AreEqual $JobDetails.ResourceGroupName $ResourceGroupName;
+ Assert-AreEqual $JobDetails.ResourceName $ResourceName;
+ Assert-AreEqual $JobDetails.Location $Location;
+
+ $item = Get-AzureRMBackupItem -Container $container[0];
+ Assert-AreEqual $item.ProtectionStatus "Protected";
+ Assert-AreEqual $item.DataSourceStatus "Protected";
+ Assert-AreEqual $item.ProtectionPolicyName $ProtectionPolicyName;
+ Assert-AreEqual $item.RecoveryPointsCount "1";
+ Assert-AreEqual $item.ResourceGroupName $ResourceGroupName;
+ Assert-AreEqual $item.ResourceName $ResourceName;
+ Assert-AreEqual $item.Location $Location;
+
+ $recoveryPoints = Get-AzureRMBackupRecoveryPoint -Item $item[0];
+ Assert-NotNull $recoveryPoints.RecoveryPointTime;
+ Assert-NotNull $recoveryPoints.RecoveryPointName;
+ # Assert-AreEqual $recoveryPoints.RecoveryPointType "FileSystemConsistent";
+ Assert-AreEqual $recoveryPoints.ContainerType "AzureVM";
+ Assert-AreEqual $recoveryPoints.ItemName.Contains($VirtualMachineName) "True";
+ Assert-AreEqual $recoveryPoints.ItemName.Contains("iaasvmcontainer") "True";
+
+ $Job = Restore-AzureRMBackupItem -RecoveryPoint $recoveryPoints -StorageAccountName $RestoreStorageAccount;
+ Wait-AzureRMBackupJob -Job $Job;
+ $JobDetails = Get-AzureRMBackupJobDetails -Vault $vault -JobID $Job.InstanceId;
+ Assert-AreEqual $JobDetails.Operation "Restore";
+ Assert-AreEqual $JobDetails.Status "Completed";
+ Assert-NotNull $JobDetails.WorkloadType;
+ Assert-AreEqual $JobDetails.WorkloadName $VirtualMachineName;
+ Assert-AreEqual $JobDetails.Properties.Values.Contains($RestoreStorageAccount) "True";
+ Assert-AreEqual $JobDetails.Properties.Values.Contains("Recover disks") "True";
+ Assert-AreEqual $JobDetails.ResourceGroupName $ResourceGroupName;
+ Assert-AreEqual $JobDetails.ResourceName $ResourceName;
+ Assert-AreEqual $JobDetails.Location $Location;
+
+ $Job = Disable-AzureRMBackupProtection -RemoveRecoveryPoints -Item $item[0];
+ Wait-AzureRMBackupJob -Job $Job;
+ $JobDetails = Get-AzureRMBackupJobDetails -Vault $vault -JobID $Job.InstanceId;
+ Assert-AreEqual $JobDetails.Operation "Unprotect";
+ Assert-AreEqual $JobDetails.Status "Completed";
+ Assert-AreEqual $JobDetails.WorkloadName $VirtualMachineName;
+ Assert-AreEqual $JobDetails.Properties.Values.Contains($VirtualMachineName) "True";
+ Assert-AreEqual $JobDetails.Properties.Keys.Contains("Delete Backup Data") "True";
+ Assert-AreEqual $JobDetails.ResourceGroupName $ResourceGroupName;
+ Assert-AreEqual $JobDetails.ResourceName $ResourceName;
+ Assert-AreEqual $JobDetails.Location $Location;
+
+ $Job = Unregister-AzureRMBackupContainer -Container $container[0];
+ Wait-AzureRMBackupJob -Job $Job;
+ $JobDetails = Get-AzureRMBackupJobDetails -Vault $vault -JobId $Job.InstanceId;
+ Assert-AreEqual $JobDetails.Operation "UnRegister";
+ Assert-AreEqual $JobDetails.Status "Completed";
+ Assert-AreEqual $JobDetails.WorkloadName $VirtualMachineName;
+
+ Remove-AzureRMBackupProtectionPolicy -ProtectionPolicy $protectionpolicy;
+
+ Remove-AzureRMBackupVault -Vault $vault;
+
+ $deletedVault = Get-AzureRMBackupVault -Name $ResourceName;
+ Assert-Null $deletedVault;
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupTestBase.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupTestBase.cs
index 19bfd08fbe0c..b14797ff22e4 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupTestBase.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupTestBase.cs
@@ -31,10 +31,18 @@ public abstract class AzureBackupTestsBase
private CSMTestEnvironmentFactory csmTestFactory;
private EnvironmentSetupHelper helper;
+ public static string ResourceGroupName;
+ public static string ResourceName;
+
public BackupVaultServicesManagementClient BackupVaultServicesMgmtClient { get; private set; }
+ public BackupServicesManagementClient BackupServicesMgmtClient { get; private set; }
+
protected AzureBackupTestsBase()
{
+ AzureBackupTestsBase.ResourceName = ConfigurationManager.AppSettings["ResourceName"];
+ AzureBackupTestsBase.ResourceGroupName = ConfigurationManager.AppSettings["ResourceGroupName"];
+
this.helper = new EnvironmentSetupHelper();
this.csmTestFactory = new CSMTestEnvironmentFactory();
}
@@ -42,8 +50,10 @@ protected AzureBackupTestsBase()
protected void SetupManagementClients()
{
BackupVaultServicesMgmtClient = GetBackupVaultServicesManagementClient();
+ BackupServicesMgmtClient = GetBackupServicesManagementClient();
+
//helper.SetupManagementClients(BackupServicesMgmtClient);
- helper.SetupSomeOfManagementClients(BackupVaultServicesMgmtClient);
+ helper.SetupSomeOfManagementClients(BackupVaultServicesMgmtClient, BackupServicesMgmtClient);
}
protected void RunPowerShellTest(params string[] scripts)
@@ -66,6 +76,11 @@ private BackupVaultServicesManagementClient GetBackupVaultServicesManagementClie
return GetServiceClient();
}
+ private BackupServicesManagementClient GetBackupServicesManagementClient()
+ {
+ return GetServiceClient();
+ }
+
public static T GetServiceClient() where T : class
{
var factory = (TestEnvironmentFactory)new CSMTestEnvironmentFactory();
@@ -74,32 +89,87 @@ public static T GetServiceClient() where T : class
ServicePointManager.ServerCertificateValidationCallback = IgnoreCertificateErrorHandler;
- BackupVaultServicesManagementClient client;
- string resourceName = ConfigurationManager.AppSettings["ResourceName"];
- string resourceGroupName = ConfigurationManager.AppSettings["ResourceGroupName"];
+ if (typeof(T) == typeof(BackupVaultServicesManagementClient))
+ {
+ BackupVaultServicesManagementClient client;
+ if (testEnvironment.UsesCustomUri())
+ {
+ client = new BackupVaultServicesManagementClient(
+ testEnvironment.Credentials as SubscriptionCloudCredentials,
+ testEnvironment.BaseUri);
+ }
- if (testEnvironment.UsesCustomUri())
+ else
+ {
+ client = new BackupVaultServicesManagementClient(
+ testEnvironment.Credentials as SubscriptionCloudCredentials);
+ }
+
+ return GetServiceClient(factory, client);
+ }
+ else
{
- client = new BackupVaultServicesManagementClient(
- resourceName,
- resourceGroupName,
- testEnvironment.Credentials as SubscriptionCloudCredentials,
- testEnvironment.BaseUri);
+ BackupServicesManagementClient client;
+
+ if (testEnvironment.UsesCustomUri())
+ {
+ client = new BackupServicesManagementClient(
+ testEnvironment.Credentials as SubscriptionCloudCredentials,
+ testEnvironment.BaseUri);
+ }
+
+ else
+ {
+ client = new BackupServicesManagementClient(
+ testEnvironment.Credentials as SubscriptionCloudCredentials);
+ }
+
+ return GetVaultServiceClient(factory, client);
}
+ }
- else
+ public static T GetServiceClient(TestEnvironmentFactory factory, BackupVaultServicesManagementClient client) where T : class
+ {
+ TestEnvironment testEnvironment = factory.GetTestEnvironment();
+
+ HttpMockServer instance;
+ try
{
- client = new BackupVaultServicesManagementClient(
- resourceName,
- resourceGroupName,
- testEnvironment.Credentials as SubscriptionCloudCredentials);
+ instance = HttpMockServer.CreateInstance();
+ }
+ catch (ApplicationException)
+ {
+ HttpMockServer.Initialize("TestEnvironment", "InitialCreation");
+ instance = HttpMockServer.CreateInstance();
+ }
+ T obj2 = typeof(T).GetMethod("WithHandler", new Type[1]
+ {
+ typeof (DelegatingHandler)
+ }).Invoke((object)client, new object[1]
+ {
+ (object) instance
+ }) as T;
+
+ if (HttpMockServer.Mode == HttpRecorderMode.Record)
+ {
+ HttpMockServer.Variables[TestEnvironment.SubscriptionIdKey] = testEnvironment.SubscriptionId;
}
- return GetServiceClient(factory, client);
+ if (HttpMockServer.Mode == HttpRecorderMode.Playback)
+ {
+ PropertyInfo property1 = typeof(T).GetProperty("LongRunningOperationInitialTimeout", typeof(int));
+ PropertyInfo property2 = typeof(T).GetProperty("LongRunningOperationRetryTimeout", typeof(int));
+ if (property1 != (PropertyInfo)null && property2 != (PropertyInfo)null)
+ {
+ property1.SetValue((object)obj2, (object)0);
+ property2.SetValue((object)obj2, (object)0);
+ }
+ }
+ return obj2;
}
- public static T GetServiceClient(TestEnvironmentFactory factory, BackupVaultServicesManagementClient client) where T : class
+ public static T GetVaultServiceClient(TestEnvironmentFactory factory, BackupServicesManagementClient client) where T : class
{
TestEnvironment testEnvironment = factory.GetTestEnvironment();
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupVaultTests.ps1 b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupVaultTests.ps1
index 1edbe269e585..1b9452cf1767 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupVaultTests.ps1
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupVaultTests.ps1
@@ -13,34 +13,34 @@
# ----------------------------------------------------------------------------------
$ResourceGroupName = "backuprg"
-$ResourceName = "backuprn1"
-$Location = "westus"
+$ResourceName = "backuprn"
+$Location = "southeastasia"
$CertTargetLocation = (Get-Item -Path ".\" -Verbose).FullName;
function Test-AzureBackupVaultScenario
{
- $vault = New-AzureBackupVault -ResourceGroupName $ResourceGroupName -Name $ResourceName -Region $Location -Storage "LocallyRedundant";
+ $vault = New-AzureRMBackupVault -ResourceGroupName $ResourceGroupName -Name $ResourceName -Region $Location -Storage "LocallyRedundant";
Assert-AreEqual $vault.Name $ResourceName;
Assert-AreEqual $vault.ResourceGroupName $ResourceGroupName;
Assert-AreEqual $vault.Region $Location;
Assert-AreEqual $vault.Storage "LocallyRedundant";
- $vault = Get-AzureBackupVault -ResourceGroupName $ResourceGroupName -Name $ResourceName
+ $vault = Get-AzureRMBackupVault -ResourceGroupName $ResourceGroupName -Name $ResourceName
Assert-AreEqual $vault.Name $ResourceName;
Assert-AreEqual $vault.ResourceGroupName $ResourceGroupName;
Assert-AreEqual $vault.Region $Location;
Assert-AreEqual $vault.Storage "LocallyRedundant";
- $fileName = Get-AzureBackupVaultCredentials -vault $vault -TargetLocation $CertTargetLocation
+ $fileName = Get-AzureRMBackupVaultCredentials -vault $vault -TargetLocation $CertTargetLocation
Assert-NotNull $fileName 'File name should not be null';
$certFileFullPath = [io.path]::combine($CertTargetLocation, $fileName);
Assert-True {{ Test-Path $certFileFullPath }}
- $vault = Set-AzureBackupVault -vault $vault -Storage "GeoRedundant";
+ $vault = Set-AzureRMBackupVault -vault $vault -Storage "GeoRedundant";
Assert-AreEqual $vault.Name $ResourceName;
Assert-AreEqual $vault.ResourceGroupName $ResourceGroupName;
Assert-AreEqual $vault.Region $Location;
Assert-AreEqual $vault.Storage "GeoRedundant";
- Remove-AzureBackupVault -Vault $vault;
+ Remove-AzureRMBackupVault -Vault $vault;
}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/BackupItemTests.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/BackupItemTests.cs
new file mode 100644
index 000000000000..048e72bb4455
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/BackupItemTests.cs
@@ -0,0 +1,29 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.WindowsAzure.Commands.ScenarioTest;
+using Xunit;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
+{
+ public class BackupItemTests : AzureBackupTestsBase
+ {
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void BackUpAzureBackUpItem()
+ {
+ this.RunPowerShellTest("Test-BackUpAzureBackUpItem");
+ }
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/BackupItemTests.ps1 b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/BackupItemTests.ps1
new file mode 100644
index 000000000000..99f45273876e
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/BackupItemTests.ps1
@@ -0,0 +1,37 @@
+# ----------------------------------------------------------------------------------
+#
+# 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.
+# ----------------------------------------------------------------------------------
+
+$ResourceGroupName = "backuprg"
+$ResourceName = "backuprn"
+$ContainerName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+$ContainerType = "IaasVMContainer"
+$DataSourceType = "VM"
+$DataSourceId = "17593283453810"
+$Location = "SouthEast Asia"
+$PolicyName = "Policy9";
+$PolicyId = "c87bbada-6e1b-4db2-b76c-9062d28959a4";
+$POName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+$ItemName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+
+
+function Test-BackUpAzureBackUpItem
+{
+ $AzureRMBackupItem = New-Object Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupItem
+ $AzureRMBackupItem.ResourceGroupName = $ResourceGroupName
+ $AzureRMBackupItem.ResourceName = $ResourceName
+ $AzureRMBackupItem.Location = $Location
+ $AzureRMBackupItem.ContainerUniqueName = $ContainerName
+ $AzureRMBackupItem.ItemName = $ItemName
+ $jobId = Backup-AzureRMBackupItem -Item $AzureRMBackupItem
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RecoveryPointTests.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RecoveryPointTests.cs
new file mode 100644
index 000000000000..2dd50f0aeefd
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RecoveryPointTests.cs
@@ -0,0 +1,36 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.WindowsAzure.Commands.ScenarioTest;
+using Xunit;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
+{
+ public class RecoveryPointTests : AzureBackupTestsBase
+ {
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void GetRecoveryPointsTests()
+ {
+ this.RunPowerShellTest("Test-GetAzureRecoveryPoints");
+ }
+
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void GetRecoveryPointTests()
+ {
+ this.RunPowerShellTest("Test-GetAzureRecoveryPoint");
+ }
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RecoveryPointTests.ps1 b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RecoveryPointTests.ps1
new file mode 100644
index 000000000000..2ab904cebc40
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RecoveryPointTests.ps1
@@ -0,0 +1,64 @@
+# ----------------------------------------------------------------------------------
+#
+# 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.
+# ----------------------------------------------------------------------------------
+
+$ResourceGroupName = "backuprg"
+$ResourceName = "backuprn"
+$ContainerName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+$ContainerType = "IaasVMContainer"
+$DataSourceType = "VM"
+$DataSourceId = "17593283453810"
+$Location = "SouthEast Asia"
+$PolicyName = "Policy9";
+$PolicyId = "c87bbada-6e1b-4db2-b76c-9062d28959a4";
+$POName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+$ItemName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+$RecoveryPointName = "587454680194"
+
+
+function Test-GetAzureRecoveryPoints
+{
+ $azureBackUpItem = New-Object Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupItem
+ $azureBackUpItem.ResourceGroupName = $ResourceGroupName
+ $azureBackUpItem.ResourceName = $ResourceName
+ $azureBackUpItem.Location = $Location
+ $azureBackUpItem.ContainerUniqueName = $ContainerName
+ $azureBackUpItem.ItemName = $ItemName
+ $recoveryPoints = Get-AzureRMBackupRecoveryPoint -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.RecoveryPointName 'RecoveryPointId should not be null'
+ }
+ }
+}
+
+function Test-GetAzureRecoveryPoint
+{
+ $azureBackUpItem = New-Object Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupItem
+ $azureBackUpItem.ResourceGroupName = $ResourceGroupName
+ $azureBackUpItem.ResourceName = $ResourceName
+ $azureBackUpItem.Location = $Location
+ $azureBackUpItem.ContainerUniqueName = $ContainerName
+ $azureBackUpItem.ItemName = $ItemName
+ $recoveryPoint = Get-AzureRMBackupRecoveryPoint -Item $azureBackUpItem -RecoveryPointId $RecoveryPointName
+ if (!($recoveryPoint -eq $null))
+ {
+ Assert-NotNull $recoveryPoint.RecoveryPointTime 'RecoveryPointTime should not be null'
+ Assert-NotNull $recoveryPoint.RecoveryPointType 'RecoveryPointType should not be null'
+ Assert-NotNull $recoveryPoint.RecoveryPointName 'RecoveryPointId should not be null'
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RestoreItemTests.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RestoreItemTests.cs
new file mode 100644
index 000000000000..1085ef1e1725
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RestoreItemTests.cs
@@ -0,0 +1,29 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.WindowsAzure.Commands.ScenarioTest;
+using Xunit;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
+{
+ public class RestoreItemTests : AzureBackupTestsBase
+ {
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void RestoreAzureBackUpItem()
+ {
+ this.RunPowerShellTest("Test-RestoreAzureBackUpItem");
+ }
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RestoreItemTests.ps1 b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RestoreItemTests.ps1
new file mode 100644
index 000000000000..77ed19cfdade
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RestoreItemTests.ps1
@@ -0,0 +1,40 @@
+# ----------------------------------------------------------------------------------
+#
+# 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.
+# ----------------------------------------------------------------------------------
+
+$ResourceGroupName = "backuprg"
+$ResourceName = "backuprn"
+$ContainerName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+$ContainerType = "IaasVMContainer"
+$DataSourceType = "VM"
+$DataSourceId = "17593283453810"
+$Location = "southeastasia"
+$PolicyName = "Policy9";
+$PolicyId = "c87bbada-6e1b-4db2-b76c-9062d28959a4";
+$POName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+$ItemName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
+$RecoveryPointName = "587454680194"
+$StorageAccountName = "portalvhds7jzk3jty85qx5"
+
+
+function Test-RestoreAzureBackUpItem
+{
+ $azureBackUpRecoveryPoint = New-Object Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupRecoveryPoint
+ $azureBackUpRecoveryPoint.ResourceGroupName = $ResourceGroupName
+ $azureBackUpRecoveryPoint.ResourceName = $ResourceName
+ $azureBackUpRecoveryPoint.Location = $Location
+ $azureBackUpRecoveryPoint.ContainerUniqueName = $ContainerName
+ $azureBackUpRecoveryPoint.ItemName = $ItemName
+ $azureBackUpRecoveryPoint.RecoveryPointName = $RecoveryPointName
+ $jobId = Restore-AzureRMBackupItem -RecoveryPoint $azureBackUpRecoveryPoint -StorageAccountName $StorageAccountName
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupContainerTests/AzureBackupContainerScenarioTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupContainerTests/AzureBackupContainerScenarioTests.json
new file mode 100644
index 000000000000..411e120318d9
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupContainerTests/AzureBackupContainerScenarioTests.json
@@ -0,0 +1,257 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "b6ee8175-6285-48e1-8d88-b04a52c65045-2015-08-14 10:25:36Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"location\": \"southeastasia\",\r\n \"name\": \"backuprn\",\r\n \"etag\": \"fef5d39d-ff91-43f7-9127-3b9a171a9f0c\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "344"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "cf75119f-1291-4957-806b-483e8181a98f"
+ ],
+ "x-ms-client-request-id": [
+ "b6ee8175-6285-48e1-8d88-b04a52c65045-2015-08-14 10:25:36Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14996"
+ ],
+ "x-ms-correlation-request-id": [
+ "cf75119f-1291-4957-806b-483e8181a98f"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T102539Z:cf75119f-1291-4957-806b-483e8181a98f"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:25:38 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "b6ee8175-6285-48e1-8d88-b04a52c65045-2015-08-14 10:25:36Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"resourceId\": 1774108198771083879,\r\n \"properties\": {\r\n \"storageType\": \"LocallyRedundant\",\r\n \"storageTypeState\": \"Locked\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "110"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "cc0d7b18-86d0-4f2f-94dc-48e3288b1846"
+ ],
+ "x-ms-client-request-id": [
+ "b6ee8175-6285-48e1-8d88-b04a52c65045-2015-08-14 10:25:36Z-PS",
+ "b6ee8175-6285-48e1-8d88-b04a52c65045-2015-08-14 10:25:36Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "cc0d7b18-86d0-4f2f-94dc-48e3288b1846"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T102540Z:cc0d7b18-86d0-4f2f-94dc-48e3288b1846"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:25:40 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers?api-version=2014-09-01&$filter=containerType%20eq%20'IaasVM'",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2NvbnRhaW5lcnM/YXBpLXZlcnNpb249MjAxNC0wOS0wMSYkZmlsdGVyPWNvbnRhaW5lclR5cGUlMjBlcSUyMCdJYWFzVk0n",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "56b1a915-da7a-4109-97cd-4a546fabdbde-2015-08-14 10:25:40Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"friendlyName\": \"hydrarecordvm\",\r\n \"status\": \"Registered\",\r\n \"healthStatus\": \"Healthy\",\r\n \"containerType\": \"IaasVM\",\r\n \"parentContainerId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers/hydrarecordvm\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers/iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"name\": \"iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"type\": \"Microsoft.Backup/BackupVault/containers\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "606"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "f88725ce-30e4-4405-a6f9-5eae2f9bc9d3"
+ ],
+ "x-ms-client-request-id": [
+ "56b1a915-da7a-4109-97cd-4a546fabdbde-2015-08-14 10:25:40Z-PS",
+ "56b1a915-da7a-4109-97cd-4a546fabdbde-2015-08-14 10:25:40Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14996"
+ ],
+ "x-ms-correlation-request-id": [
+ "f88725ce-30e4-4405-a6f9-5eae2f9bc9d3"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T102543Z:f88725ce-30e4-4405-a6f9-5eae2f9bc9d3"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:25:43 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers?api-version=2014-09-01&$filter=containerType%20eq%20'IaasVM'%20and%20friendlyName%20eq%20'hydrarecordvm'",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2NvbnRhaW5lcnM/YXBpLXZlcnNpb249MjAxNC0wOS0wMSYkZmlsdGVyPWNvbnRhaW5lclR5cGUlMjBlcSUyMCdJYWFzVk0nJTIwYW5kJTIwZnJpZW5kbHlOYW1lJTIwZXElMjAnaHlkcmFyZWNvcmR2bSc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "fff73c43-0e6e-4137-b54f-4e1bc214edf6-2015-08-14 10:25:43Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"friendlyName\": \"hydrarecordvm\",\r\n \"status\": \"Registered\",\r\n \"healthStatus\": \"Healthy\",\r\n \"containerType\": \"IaasVM\",\r\n \"parentContainerId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers/hydrarecordvm\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers/iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"name\": \"iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"type\": \"Microsoft.Backup/BackupVault/containers\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "606"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e5e16955-fb54-4c23-a222-baedd71224d5"
+ ],
+ "x-ms-client-request-id": [
+ "fff73c43-0e6e-4137-b54f-4e1bc214edf6-2015-08-14 10:25:43Z-PS",
+ "fff73c43-0e6e-4137-b54f-4e1bc214edf6-2015-08-14 10:25:43Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "e5e16955-fb54-4c23-a222-baedd71224d5"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T102544Z:e5e16955-fb54-4c23-a222-baedd71224d5"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:25:44 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.AzureBackupContainerTests/AzureBackupMarsContainerScenarioTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupContainerTests/AzureBackupMarsContainerScenarioTests.json
index 28eb048b07bd..20d973a45259 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupContainerTests/AzureBackupMarsContainerScenarioTests.json
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupContainerTests/AzureBackupMarsContainerScenarioTests.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1?api-version=2015-03-15",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMT9hcGktdmVyc2lvbj0yMDE1LTAzLTE1",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
@@ -10,16 +10,16 @@
"en-us"
],
"x-ms-client-request-id": [
- "c164ee99-024c-490f-909f-46fcbfce27e3-2015-07-22 12:42:18Z-PS"
+ "d964129f-53e3-435e-ac5a-db998c5df195-2015-08-16 19:27:21Z-PS"
],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/1.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
- "ResponseBody": "{\r\n \"location\": \"westus\",\r\n \"name\": \"backuprn1\",\r\n \"etag\": \"327fe758-7f7b-4879-b708-4d5366d2c687\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1\",\r\n \"type\": \"Microsoft.Backup/BackupVault\"\r\n}",
+ "ResponseBody": "{\r\n \"location\": \"southeastasia\",\r\n \"name\": \"backuprn\",\r\n \"etag\": \"231a484e-8cf6-421c-86d5-145bbdae0714\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\"\r\n}",
"ResponseHeaders": {
"Content-Length": [
- "339"
+ "344"
],
"Content-Type": [
"application/json"
@@ -31,28 +31,28 @@
"no-cache"
],
"x-ms-request-id": [
- "499ed874-b244-4ac2-ae34-905b70f28b7a"
+ "47ab1ad0-8d34-4a29-89c4-e7fc92037a04"
],
"x-ms-client-request-id": [
- "c164ee99-024c-490f-909f-46fcbfce27e3-2015-07-22 12:42:18Z-PS"
+ "d964129f-53e3-435e-ac5a-db998c5df195-2015-08-16 19:27:21Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14993"
+ "14994"
],
"x-ms-correlation-request-id": [
- "499ed874-b244-4ac2-ae34-905b70f28b7a"
+ "47ab1ad0-8d34-4a29-89c4-e7fc92037a04"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150722T124220Z:499ed874-b244-4ac2-ae34-905b70f28b7a"
+ "CENTRALUS:20150816T192723Z:47ab1ad0-8d34-4a29-89c4-e7fc92037a04"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 22 Jul 2015 12:42:19 GMT"
+ "Sun, 16 Aug 2015 19:27:22 GMT"
],
"Server": [
"Microsoft-IIS/8.0"
@@ -61,8 +61,8 @@
"StatusCode": 200
},
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1/storageconfig/vaultstorageconfig?api-version=2015-03-15",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMS9zdG9yYWdlY29uZmlnL3ZhdWx0c3RvcmFnZWNvbmZpZz9hcGktdmVyc2lvbj0yMDE1LTAzLTE1",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
@@ -70,13 +70,13 @@
"en-us"
],
"x-ms-client-request-id": [
- "c164ee99-024c-490f-909f-46fcbfce27e3-2015-07-22 12:42:18Z-PS"
+ "d964129f-53e3-435e-ac5a-db998c5df195-2015-08-16 19:27:21Z-PS"
],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/1.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
- "ResponseBody": "{\r\n \"resourceId\": 8395314960984740771,\r\n \"properties\": {\r\n \"storageType\": \"GeoRedundant\",\r\n \"storageTypeState\": \"Locked\"\r\n }\r\n}",
+ "ResponseBody": "{\r\n \"resourceId\": 8806790160982730560,\r\n \"properties\": {\r\n \"storageType\": \"GeoRedundant\",\r\n \"storageTypeState\": \"Locked\"\r\n }\r\n}",
"ResponseHeaders": {
"Content-Length": [
"106"
@@ -91,29 +91,29 @@
"no-cache"
],
"x-ms-request-id": [
- "eab30911-4bd3-4732-8ca1-c5010a84dd8b"
+ "f90183a9-4d81-4914-9c32-6d2a6bcbeff7"
],
"x-ms-client-request-id": [
- "c164ee99-024c-490f-909f-46fcbfce27e3-2015-07-22 12:42:18Z-PS",
- "c164ee99-024c-490f-909f-46fcbfce27e3-2015-07-22 12:42:18Z-PS"
+ "d964129f-53e3-435e-ac5a-db998c5df195-2015-08-16 19:27:21Z-PS",
+ "d964129f-53e3-435e-ac5a-db998c5df195-2015-08-16 19:27:21Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14992"
+ "14993"
],
"x-ms-correlation-request-id": [
- "eab30911-4bd3-4732-8ca1-c5010a84dd8b"
+ "f90183a9-4d81-4914-9c32-6d2a6bcbeff7"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150722T124221Z:eab30911-4bd3-4732-8ca1-c5010a84dd8b"
+ "CENTRALUS:20150816T192724Z:f90183a9-4d81-4914-9c32-6d2a6bcbeff7"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 22 Jul 2015 12:42:21 GMT"
+ "Sun, 16 Aug 2015 19:27:23 GMT"
],
"Server": [
"Microsoft-IIS/8.0"
@@ -122,8 +122,8 @@
"StatusCode": 200
},
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1/backupContainers?api-version=2015-03-15&$filter=type%20eq%20'Machine'",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMS9iYWNrdXBDb250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTUmJGZpbHRlcj10eXBlJTIwZXElMjAnTWFjaGluZSc=",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/backupContainers?api-version=2015-03-15&$filter=type%20eq%20'Machine'",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2JhY2t1cENvbnRhaW5lcnM/YXBpLXZlcnNpb249MjAxNS0wMy0xNSYkZmlsdGVyPXR5cGUlMjBlcSUyMCdNYWNoaW5lJw==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
@@ -131,13 +131,13 @@
"en-us"
],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/1.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
- "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"uniqueName\": \"dpmdrscaleint1.dpmdom02.selfhost.corp.microsoft.com\",\r\n \"containerType\": \"Machine\",\r\n \"properties\": {\r\n \"containerId\": 10034,\r\n \"friendlyName\": \"DPMDRSCALEINT1.DPMDOM02.SELFHOST.CORP.MICROSOFT.COM\",\r\n \"containerStampId\": \"eaf33dbc-a5b5-411a-a6af-1976a3f94602\",\r\n \"containerStampUri\": \"https://sea-dev01-prot-4bodw.ext.trafficmanager.net\",\r\n \"canReRegister\": true,\r\n \"customerType\": \"OBS\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"uniqueName\": \"dpmdrscaleint1.dpmdom02.selfhost.corp.microsoft.com\",\r\n \"containerType\": \"Machine\",\r\n \"properties\": {\r\n \"containerId\": 223719,\r\n \"friendlyName\": \"DPMDRSCALEINT1.DPMDOM02.SELFHOST.CORP.MICROSOFT.COM\",\r\n \"containerStampId\": \"0f2ec04e-7bc1-4d24-af43-caa10134def7\",\r\n \"containerStampUri\": \"https://sea-bvtd-prot1-b6vas.ext.trafficmanager.net\",\r\n \"canReRegister\": false,\r\n \"customerType\": \"OBS\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
"ResponseHeaders": {
"Content-Length": [
- "400"
+ "402"
],
"Content-Type": [
"application/json"
@@ -149,29 +149,29 @@
"no-cache"
],
"x-ms-request-id": [
- "fa7caa14-ec77-4ba2-8ffd-e847c2666e0f"
+ "4a860745-f408-4be2-b867-013f9141e711"
],
"x-ms-client-request-id": [
- "6ff22313-2e0b-4a95-b237-14f50997f221",
- "6ff22313-2e0b-4a95-b237-14f50997f221"
+ "1cbb90e1-1a87-48f2-abe2-a3793c53c4e3",
+ "1cbb90e1-1a87-48f2-abe2-a3793c53c4e3"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14991"
+ "14992"
],
"x-ms-correlation-request-id": [
- "fa7caa14-ec77-4ba2-8ffd-e847c2666e0f"
+ "4a860745-f408-4be2-b867-013f9141e711"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150722T124222Z:fa7caa14-ec77-4ba2-8ffd-e847c2666e0f"
+ "CENTRALUS:20150816T192725Z:4a860745-f408-4be2-b867-013f9141e711"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 22 Jul 2015 12:42:21 GMT"
+ "Sun, 16 Aug 2015 19:27:25 GMT"
],
"Server": [
"Microsoft-IIS/8.0"
@@ -180,22 +180,25 @@
"StatusCode": 200
},
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1/backupContainers?api-version=2015-03-15&$filter=type%20eq%20'Machine'%20and%20friendlyName%20eq%20'DPMDRSCALEINT1.DPMDOM02.SELFHOST.CORP.MICROSOFT.COM'",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMS9iYWNrdXBDb250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTUmJGZpbHRlcj10eXBlJTIwZXElMjAnTWFjaGluZSclMjBhbmQlMjBmcmllbmRseU5hbWUlMjBlcSUyMCdEUE1EUlNDQUxFSU5UMS5EUE1ET00wMi5TRUxGSE9TVC5DT1JQLk1JQ1JPU09GVC5DT00n",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/backupContainers?api-version=2015-03-15&$filter=type%20eq%20'Machine'%20and%20friendlyName%20eq%20'DPMDRSCALEINT1.DPMDOM02.SELFHOST.CORP.MICROSOFT.COM'",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2JhY2t1cENvbnRhaW5lcnM/YXBpLXZlcnNpb249MjAxNS0wMy0xNSYkZmlsdGVyPXR5cGUlMjBlcSUyMCdNYWNoaW5lJyUyMGFuZCUyMGZyaWVuZGx5TmFtZSUyMGVxJTIwJ0RQTURSU0NBTEVJTlQxLkRQTURPTTAyLlNFTEZIT1NULkNPUlAuTUlDUk9TT0ZULkNPTSc=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"Accept-Language": [
"en-us"
],
+ "x-ms-client-request-id": [
+ "0e540306-29ea-4f61-9e91-723f5422280c-2015-08-16 19:27:25Z-PS"
+ ],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/1.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
- "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"uniqueName\": \"dpmdrscaleint1.dpmdom02.selfhost.corp.microsoft.com\",\r\n \"containerType\": \"Machine\",\r\n \"properties\": {\r\n \"containerId\": 10034,\r\n \"friendlyName\": \"DPMDRSCALEINT1.DPMDOM02.SELFHOST.CORP.MICROSOFT.COM\",\r\n \"containerStampId\": \"eaf33dbc-a5b5-411a-a6af-1976a3f94602\",\r\n \"containerStampUri\": \"https://sea-dev01-prot-4bodw.ext.trafficmanager.net\",\r\n \"canReRegister\": true,\r\n \"customerType\": \"OBS\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"uniqueName\": \"dpmdrscaleint1.dpmdom02.selfhost.corp.microsoft.com\",\r\n \"containerType\": \"Machine\",\r\n \"properties\": {\r\n \"containerId\": 223719,\r\n \"friendlyName\": \"DPMDRSCALEINT1.DPMDOM02.SELFHOST.CORP.MICROSOFT.COM\",\r\n \"containerStampId\": \"0f2ec04e-7bc1-4d24-af43-caa10134def7\",\r\n \"containerStampUri\": \"https://sea-bvtd-prot1-b6vas.ext.trafficmanager.net\",\r\n \"canReRegister\": false,\r\n \"customerType\": \"OBS\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
"ResponseHeaders": {
"Content-Length": [
- "400"
+ "402"
],
"Content-Type": [
"application/json"
@@ -207,29 +210,29 @@
"no-cache"
],
"x-ms-request-id": [
- "5b3c8878-c9cf-46be-bdb3-19802eedb355"
+ "10d2c6b4-ecbf-477e-ae2a-0aaa3ebaa197"
],
"x-ms-client-request-id": [
- "27052a7f-7819-4c9f-ba06-70a027ba899f",
- "27052a7f-7819-4c9f-ba06-70a027ba899f"
+ "0e540306-29ea-4f61-9e91-723f5422280c-2015-08-16 19:27:25Z-PS",
+ "0e540306-29ea-4f61-9e91-723f5422280c-2015-08-16 19:27:25Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14990"
+ "14991"
],
"x-ms-correlation-request-id": [
- "5b3c8878-c9cf-46be-bdb3-19802eedb355"
+ "10d2c6b4-ecbf-477e-ae2a-0aaa3ebaa197"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150722T124223Z:5b3c8878-c9cf-46be-bdb3-19802eedb355"
+ "CENTRALUS:20150816T192726Z:10d2c6b4-ecbf-477e-ae2a-0aaa3ebaa197"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 22 Jul 2015 12:42:22 GMT"
+ "Sun, 16 Aug 2015 19:27:25 GMT"
],
"Server": [
"Microsoft-IIS/8.0"
@@ -238,16 +241,19 @@
"StatusCode": 200
},
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1/backupContainers?api-version=2015-03-15&$filter=type%20eq%20'Machine'%20and%20friendlyName%20eq%20'DPMDRSCALEINT1.DPMDOM02.SELFHOST.CORP.MICROSOFT.COM'",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMS9iYWNrdXBDb250YWluZXJzP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTUmJGZpbHRlcj10eXBlJTIwZXElMjAnTWFjaGluZSclMjBhbmQlMjBmcmllbmRseU5hbWUlMjBlcSUyMCdEUE1EUlNDQUxFSU5UMS5EUE1ET00wMi5TRUxGSE9TVC5DT1JQLk1JQ1JPU09GVC5DT00n",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/backupContainers?api-version=2015-03-15&$filter=type%20eq%20'Machine'%20and%20friendlyName%20eq%20'DPMDRSCALEINT1.DPMDOM02.SELFHOST.CORP.MICROSOFT.COM'",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2JhY2t1cENvbnRhaW5lcnM/YXBpLXZlcnNpb249MjAxNS0wMy0xNSYkZmlsdGVyPXR5cGUlMjBlcSUyMCdNYWNoaW5lJyUyMGFuZCUyMGZyaWVuZGx5TmFtZSUyMGVxJTIwJ0RQTURSU0NBTEVJTlQxLkRQTURPTTAyLlNFTEZIT1NULkNPUlAuTUlDUk9TT0ZULkNPTSc=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"Accept-Language": [
"en-us"
],
+ "x-ms-client-request-id": [
+ "1066c97e-2754-4e5a-b6ff-2d94953c942f-2015-08-16 19:27:33Z-PS"
+ ],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/1.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
"ResponseBody": "{\r\n \"value\": [],\r\n \"nextLink\": null\r\n}",
@@ -265,29 +271,29 @@
"no-cache"
],
"x-ms-request-id": [
- "d3d15b49-b29c-44da-9690-6cf8ae84bc26"
+ "a4b5c5eb-ae2e-4027-ba0f-b7552503c8e8"
],
"x-ms-client-request-id": [
- "fca52e4f-b2fc-4ac5-bfa2-18677f3f7f9c",
- "fca52e4f-b2fc-4ac5-bfa2-18677f3f7f9c"
+ "1066c97e-2754-4e5a-b6ff-2d94953c942f-2015-08-16 19:27:33Z-PS",
+ "1066c97e-2754-4e5a-b6ff-2d94953c942f-2015-08-16 19:27:33Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14989"
+ "14990"
],
"x-ms-correlation-request-id": [
- "d3d15b49-b29c-44da-9690-6cf8ae84bc26"
+ "a4b5c5eb-ae2e-4027-ba0f-b7552503c8e8"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150722T124231Z:d3d15b49-b29c-44da-9690-6cf8ae84bc26"
+ "CENTRALUS:20150816T192733Z:a4b5c5eb-ae2e-4027-ba0f-b7552503c8e8"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 22 Jul 2015 12:42:30 GMT"
+ "Sun, 16 Aug 2015 19:27:33 GMT"
],
"Server": [
"Microsoft-IIS/8.0"
@@ -296,8 +302,8 @@
"StatusCode": 200
},
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1/backupContainers/10034/enableReRegister?api-version=2015-03-15",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMS9iYWNrdXBDb250YWluZXJzLzEwMDM0L2VuYWJsZVJlUmVnaXN0ZXI/YXBpLXZlcnNpb249MjAxNS0wMy0xNQ==",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/backupContainers/223719/enableReRegister?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2JhY2t1cENvbnRhaW5lcnMvMjIzNzE5L2VuYWJsZVJlUmVnaXN0ZXI/YXBpLXZlcnNpb249MjAxNS0wMy0xNQ==",
"RequestMethod": "PATCH",
"RequestBody": "{\r\n \"properties\": {\r\n \"enableReRegister\": true\r\n }\r\n}",
"RequestHeaders": {
@@ -311,10 +317,10 @@
"en-us"
],
"x-ms-client-request-id": [
- "d4147693-3a31-4b4c-ab4c-4714de4c47fe-2015-07-22 12:42:23Z-PS"
+ "b1b3eb61-6b75-4b3a-aabf-6502dad7b7ea-2015-08-16 19:27:26Z-PS"
],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/1.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
"ResponseBody": "",
@@ -329,36 +335,36 @@
"no-cache"
],
"x-ms-request-id": [
- "2c43793c-c4d7-4967-b315-b1e036aad163"
+ "f9b87d4c-5486-472f-9067-4a5e8e4f7aa5"
],
"x-ms-client-request-id": [
- "d4147693-3a31-4b4c-ab4c-4714de4c47fe-2015-07-22 12:42:23Z-PS",
- "d4147693-3a31-4b4c-ab4c-4714de4c47fe-2015-07-22 12:42:23Z-PS"
+ "b1b3eb61-6b75-4b3a-aabf-6502dad7b7ea-2015-08-16 19:27:26Z-PS",
+ "b1b3eb61-6b75-4b3a-aabf-6502dad7b7ea-2015-08-16 19:27:26Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"x-ms-ratelimit-remaining-subscription-writes": [
- "1198"
+ "1194"
],
"x-ms-correlation-request-id": [
- "2c43793c-c4d7-4967-b315-b1e036aad163"
+ "f9b87d4c-5486-472f-9067-4a5e8e4f7aa5"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150722T124224Z:2c43793c-c4d7-4967-b315-b1e036aad163"
+ "CENTRALUS:20150816T192728Z:f9b87d4c-5486-472f-9067-4a5e8e4f7aa5"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 22 Jul 2015 12:42:24 GMT"
+ "Sun, 16 Aug 2015 19:27:28 GMT"
]
},
"StatusCode": 204
},
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1/backupContainers/10034/UnRegisterContainer?api-version=2015-03-15",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMS9iYWNrdXBDb250YWluZXJzLzEwMDM0L1VuUmVnaXN0ZXJDb250YWluZXI/YXBpLXZlcnNpb249MjAxNS0wMy0xNQ==",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/backupContainers/223719/UnRegisterContainer?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2JhY2t1cENvbnRhaW5lcnMvMjIzNzE5L1VuUmVnaXN0ZXJDb250YWluZXI/YXBpLXZlcnNpb249MjAxNS0wMy0xNQ==",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
@@ -366,10 +372,10 @@
"en-us"
],
"x-ms-client-request-id": [
- "a0308b26-2cf6-416c-b73c-3ad6dfcd825e-2015-07-22 12:42:25Z-PS"
+ "d8b085b1-e327-4622-a4a2-abdb7fddf45c-2015-08-16 19:27:28Z-PS"
],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/1.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
"ResponseBody": "",
@@ -384,29 +390,29 @@
"no-cache"
],
"x-ms-request-id": [
- "029232e7-4fc9-4705-a0ab-d990cff5c3cb"
+ "50027ffe-32d6-423d-8846-1f01eaf6e418"
],
"x-ms-client-request-id": [
- "a0308b26-2cf6-416c-b73c-3ad6dfcd825e-2015-07-22 12:42:25Z-PS",
- "a0308b26-2cf6-416c-b73c-3ad6dfcd825e-2015-07-22 12:42:25Z-PS"
+ "d8b085b1-e327-4622-a4a2-abdb7fddf45c-2015-08-16 19:27:28Z-PS",
+ "d8b085b1-e327-4622-a4a2-abdb7fddf45c-2015-08-16 19:27:28Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"x-ms-ratelimit-remaining-subscription-writes": [
- "1197"
+ "1193"
],
"x-ms-correlation-request-id": [
- "029232e7-4fc9-4705-a0ab-d990cff5c3cb"
+ "50027ffe-32d6-423d-8846-1f01eaf6e418"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150722T124230Z:029232e7-4fc9-4705-a0ab-d990cff5c3cb"
+ "CENTRALUS:20150816T192733Z:50027ffe-32d6-423d-8846-1f01eaf6e418"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 22 Jul 2015 12:42:30 GMT"
+ "Sun, 16 Aug 2015 19:27:32 GMT"
]
},
"StatusCode": 204
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupContainerTests/AzureBackupRegisterContainerScenarioTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupContainerTests/AzureBackupRegisterContainerScenarioTests.json
new file mode 100644
index 000000000000..7cc891273d27
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupContainerTests/AzureBackupRegisterContainerScenarioTests.json
@@ -0,0 +1,382 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resources?$filter=resourceType%20eq%20'Microsoft.Backup/BackupVault'&$top=100&api-version=2013-03-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYWNrdXAvQmFja3VwVmF1bHQnJiR0b3A9MTAwJmFwaS12ZXJzaW9uPTIwMTMtMDMtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "6e091fde-9338-4f63-b81c-12565d6486f4-2015-08-18 15:40:22Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"name\": \"backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1\",\r\n \"name\": \"backuprn1\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "458"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14997"
+ ],
+ "x-ms-request-id": [
+ "82213eae-32b6-407e-98f1-1907fc2f47a0"
+ ],
+ "x-ms-correlation-request-id": [
+ "82213eae-32b6-407e-98f1-1907fc2f47a0"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150818T154023Z:82213eae-32b6-407e-98f1-1907fc2f47a0"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 18 Aug 2015 15:40:23 GMT"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "6e091fde-9338-4f63-b81c-12565d6486f4-2015-08-18 15:40:22Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"resourceId\": 3420983535961922368,\r\n \"properties\": {\r\n \"storageType\": \"GeoRedundant\",\r\n \"storageTypeState\": \"Locked\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "de793bd2-316c-41e1-8c4c-9c279ed82e85"
+ ],
+ "x-ms-client-request-id": [
+ "6e091fde-9338-4f63-b81c-12565d6486f4-2015-08-18 15:40:22Z-PS",
+ "6e091fde-9338-4f63-b81c-12565d6486f4-2015-08-18 15:40:22Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14996"
+ ],
+ "x-ms-correlation-request-id": [
+ "de793bd2-316c-41e1-8c4c-9c279ed82e85"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150818T154033Z:de793bd2-316c-41e1-8c4c-9c279ed82e85"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 18 Aug 2015 15:40:33 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers?api-version=2014-09-01&$filter=containerType%20eq%20'IaasVM'%20and%20friendlyName%20eq%20'powershellbvt'%20and%20status%20eq%20'NotRegistered'",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2NvbnRhaW5lcnM/YXBpLXZlcnNpb249MjAxNC0wOS0wMSYkZmlsdGVyPWNvbnRhaW5lclR5cGUlMjBlcSUyMCdJYWFzVk0nJTIwYW5kJTIwZnJpZW5kbHlOYW1lJTIwZXElMjAncG93ZXJzaGVsbGJ2dCclMjBhbmQlMjBzdGF0dXMlMjBlcSUyMCdOb3RSZWdpc3RlcmVkJw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "ebc2e8e9-92ea-4c9e-8bd9-c1f2eee14183-2015-08-18 15:40:33Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"friendlyName\": \"powershellbvt\",\r\n \"status\": \"NotRegistered\",\r\n \"healthStatus\": \"Healthy\",\r\n \"containerType\": \"IaasVM\",\r\n \"parentContainerId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers/powershellbvt\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers/iaasvmcontainer;powershellbvt;powershellbvt\",\r\n \"name\": \"iaasvmcontainer;powershellbvt;powershellbvt\",\r\n \"type\": \"Microsoft.Backup/BackupVault/containers\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "609"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "5c0187c9-f3d8-4a00-9cc2-fb2c2092753b"
+ ],
+ "x-ms-client-request-id": [
+ "ebc2e8e9-92ea-4c9e-8bd9-c1f2eee14183-2015-08-18 15:40:33Z-PS",
+ "ebc2e8e9-92ea-4c9e-8bd9-c1f2eee14183-2015-08-18 15:40:33Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14997"
+ ],
+ "x-ms-correlation-request-id": [
+ "5c0187c9-f3d8-4a00-9cc2-fb2c2092753b"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150818T154036Z:5c0187c9-f3d8-4a00-9cc2-fb2c2092753b"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 18 Aug 2015 15:40:36 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bpowershellbvt%3Bpowershellbvt?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQnBvd2Vyc2hlbGxidnQlM0Jwb3dlcnNoZWxsYnZ0P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "ebc2e8e9-92ea-4c9e-8bd9-c1f2eee14183-2015-08-18 15:40:33Z-PS"
+ ],
+ "x-ms-version": [
+ "2013-03-01"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"8fe78e98-472c-4f34-889f-504c16c7c6a9\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "ddf87ac3-99d2-4ab1-af09-20a581bfb084"
+ ],
+ "x-ms-client-request-id": [
+ "ebc2e8e9-92ea-4c9e-8bd9-c1f2eee14183-2015-08-18 15:40:33Z-PS",
+ "ebc2e8e9-92ea-4c9e-8bd9-c1f2eee14183-2015-08-18 15:40:33Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "ddf87ac3-99d2-4ab1-af09-20a581bfb084"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150818T154038Z:ddf87ac3-99d2-4ab1-af09-20a581bfb084"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 18 Aug 2015 15:40:38 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/8fe78e98-472c-4f34-889f-504c16c7c6a9?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvOGZlNzhlOTgtNDcyYy00ZjM0LTg4OWYtNTA0YzE2YzdjNmE5P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "ebc2e8e9-92ea-4c9e-8bd9-c1f2eee14183-2015-08-18 15:40:33Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": [\r\n \"2df287f4-5ba0-4530-b7bd-f78c34bace8a\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "6f678bec-a5b8-49c0-885d-a820d913b40e"
+ ],
+ "x-ms-client-request-id": [
+ "ebc2e8e9-92ea-4c9e-8bd9-c1f2eee14183-2015-08-18 15:40:33Z-PS",
+ "ebc2e8e9-92ea-4c9e-8bd9-c1f2eee14183-2015-08-18 15:40:33Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14996"
+ ],
+ "x-ms-correlation-request-id": [
+ "6f678bec-a5b8-49c0-885d-a820d913b40e"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150818T154039Z:6f678bec-a5b8-49c0-885d-a820d913b40e"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 18 Aug 2015 15:40:39 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/2df287f4-5ba0-4530-b7bd-f78c34bace8a?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvMmRmMjg3ZjQtNWJhMC00NTMwLWI3YmQtZjc4YzM0YmFjZThhP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "ebc2e8e9-92ea-4c9e-8bd9-c1f2eee14183-2015-08-18 15:40:33Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"powershellbvt\",\r\n \"Cloud Service\": \"powershellbvt\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-18T15:40:36.3766125Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:00:02.8034889\",\r\n \"entityFriendlyName\": \"powershellbvt\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/2df287f4-5ba0-4530-b7bd-f78c34bace8a\",\r\n \"name\": \"2df287f4-5ba0-4530-b7bd-f78c34bace8a\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "677"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "5569d853-28fe-4006-8a64-8880c5005433"
+ ],
+ "x-ms-client-request-id": [
+ "ebc2e8e9-92ea-4c9e-8bd9-c1f2eee14183-2015-08-18 15:40:33Z-PS",
+ "ebc2e8e9-92ea-4c9e-8bd9-c1f2eee14183-2015-08-18 15:40:33Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "5569d853-28fe-4006-8a64-8880c5005433"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150818T154040Z:5569d853-28fe-4006-8a64-8880c5005433"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Tue, 18 Aug 2015 15:40:39 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.AzureBackupContainerTests/AzureBackupUnregisterContainerScenarioTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupContainerTests/AzureBackupUnregisterContainerScenarioTests.json
new file mode 100644
index 000000000000..1224f18479e4
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupContainerTests/AzureBackupUnregisterContainerScenarioTests.json
@@ -0,0 +1,379 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resources?$filter=resourceType%20eq%20'Microsoft.Backup/BackupVault'&$top=100&api-version=2013-03-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYWNrdXAvQmFja3VwVmF1bHQnJiR0b3A9MTAwJmFwaS12ZXJzaW9uPTIwMTMtMDMtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "6c250745-4225-438b-89da-eea604d94145-2015-08-14 11:07:31Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"name\": \"backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/hydrarecording/providers/Microsoft.Backup/BackupVault/hydrarecordingrn\",\r\n \"name\": \"hydrarecordingrn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/pragrawa-rg/providers/Microsoft.Backup/BackupVault/pragrawa-rg01\",\r\n \"name\": \"pragrawa-rg01\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "710"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14993"
+ ],
+ "x-ms-request-id": [
+ "7b4de7bb-3574-414c-aae9-c32bb5270182"
+ ],
+ "x-ms-correlation-request-id": [
+ "7b4de7bb-3574-414c-aae9-c32bb5270182"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T110732Z:7b4de7bb-3574-414c-aae9-c32bb5270182"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 11:07:31 GMT"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "6c250745-4225-438b-89da-eea604d94145-2015-08-14 11:07:31Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"resourceId\": 1774108198771083879,\r\n \"properties\": {\r\n \"storageType\": \"LocallyRedundant\",\r\n \"storageTypeState\": \"Locked\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "110"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "ecaf0dbd-787b-4a9d-97c3-a33a5a7379ea"
+ ],
+ "x-ms-client-request-id": [
+ "6c250745-4225-438b-89da-eea604d94145-2015-08-14 11:07:31Z-PS",
+ "6c250745-4225-438b-89da-eea604d94145-2015-08-14 11:07:31Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "ecaf0dbd-787b-4a9d-97c3-a33a5a7379ea"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T110743Z:ecaf0dbd-787b-4a9d-97c3-a33a5a7379ea"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 11:07:43 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers?api-version=2014-09-01&$filter=containerType%20eq%20'IaasVM'%20and%20friendlyName%20eq%20'hydrarecordvm'",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2NvbnRhaW5lcnM/YXBpLXZlcnNpb249MjAxNC0wOS0wMSYkZmlsdGVyPWNvbnRhaW5lclR5cGUlMjBlcSUyMCdJYWFzVk0nJTIwYW5kJTIwZnJpZW5kbHlOYW1lJTIwZXElMjAnaHlkcmFyZWNvcmR2bSc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "b9f77ba4-d5ce-4d54-a761-eeb4c9d2659d-2015-08-14 11:07:43Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"friendlyName\": \"hydrarecordvm\",\r\n \"status\": \"Registered\",\r\n \"healthStatus\": \"Healthy\",\r\n \"containerType\": \"IaasVM\",\r\n \"parentContainerId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers/hydrarecordvm\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers/iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"name\": \"iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"type\": \"Microsoft.Backup/BackupVault/containers\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "606"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "bd731385-07df-4cb9-a3d9-5b46c4e6095d"
+ ],
+ "x-ms-client-request-id": [
+ "b9f77ba4-d5ce-4d54-a761-eeb4c9d2659d-2015-08-14 11:07:43Z-PS",
+ "b9f77ba4-d5ce-4d54-a761-eeb4c9d2659d-2015-08-14 11:07:43Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14983"
+ ],
+ "x-ms-correlation-request-id": [
+ "bd731385-07df-4cb9-a3d9-5b46c4e6095d"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T110746Z:bd731385-07df-4cb9-a3d9-5b46c4e6095d"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 11:07:45 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "13d99ef1-f619-4217-b0af-709dd2f65ab4-2015-08-14 11:07:46Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"957ed0ce-e696-4dad-ac6b-efface1b4e7c\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "891112b4-4467-4309-b256-7c0eb0409dac"
+ ],
+ "x-ms-client-request-id": [
+ "13d99ef1-f619-4217-b0af-709dd2f65ab4-2015-08-14 11:07:46Z-PS",
+ "13d99ef1-f619-4217-b0af-709dd2f65ab4-2015-08-14 11:07:46Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "999994"
+ ],
+ "x-ms-correlation-request-id": [
+ "891112b4-4467-4309-b256-7c0eb0409dac"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T110747Z:891112b4-4467-4309-b256-7c0eb0409dac"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 11:07:46 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/957ed0ce-e696-4dad-ac6b-efface1b4e7c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvOTU3ZWQwY2UtZTY5Ni00ZGFkLWFjNmItZWZmYWNlMWI0ZTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "13d99ef1-f619-4217-b0af-709dd2f65ab4-2015-08-14 11:07:46Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"BMSUserErrorContainerHasDatasources\",\r\n \"message\": \"Failed to unregister a registered item. This item contains protected child items. Please stop protection and then delete the protected child items before attempting to unregister the parent item.\"\r\n },\r\n \"jobList\": [\r\n \"15ba1ed4-4d41-478f-aca7-63eaef3435fe\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "333"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "4aefa749-f224-4cd5-b002-739c5995d37c"
+ ],
+ "x-ms-client-request-id": [
+ "13d99ef1-f619-4217-b0af-709dd2f65ab4-2015-08-14 11:07:46Z-PS",
+ "13d99ef1-f619-4217-b0af-709dd2f65ab4-2015-08-14 11:07:46Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14982"
+ ],
+ "x-ms-correlation-request-id": [
+ "4aefa749-f224-4cd5-b002-739c5995d37c"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T110748Z:4aefa749-f224-4cd5-b002-739c5995d37c"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 11:07:47 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/15ba1ed4-4d41-478f-aca7-63eaef3435fe?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvMTViYTFlZDQtNGQ0MS00NzhmLWFjYTctNjNlYWVmMzQzNWZlP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "13d99ef1-f619-4217-b0af-709dd2f65ab4-2015-08-14 11:07:46Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"Failed\",\r\n \"startTimestamp\": \"2015-08-14T11:07:47.5082523Z\",\r\n \"endTimestamp\": \"2015-08-14T11:07:47.5082523Z\",\r\n \"duration\": \"00:00:00\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": [\r\n {\r\n \"errorCode\": 134607755,\r\n \"errorTitle\": \"\",\r\n \"errorString\": \"Failed to unregister a registered item.\",\r\n \"recommendations\": [\r\n \"This item contains protected child items. Please stop protection and then delete the protected child items before attempting to unregister the parent item.\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/15ba1ed4-4d41-478f-aca7-63eaef3435fe\",\r\n \"name\": \"15ba1ed4-4d41-478f-aca7-63eaef3435fe\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "946"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "0b84a442-b6b5-413f-bb5d-e0508aa17b94"
+ ],
+ "x-ms-client-request-id": [
+ "13d99ef1-f619-4217-b0af-709dd2f65ab4-2015-08-14 11:07:46Z-PS",
+ "13d99ef1-f619-4217-b0af-709dd2f65ab4-2015-08-14 11:07:46Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "0b84a442-b6b5-413f-bb5d-e0508aa17b94"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T110748Z:0b84a442-b6b5-413f-bb5d-e0508aa17b94"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 11:07:48 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.AzureBackupItemTestCases/DisableAzureBackupProtectionTest.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupItemTestCases/DisableAzureBackupProtectionTest.json
new file mode 100644
index 000000000000..8b42c890db74
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupItemTestCases/DisableAzureBackupProtectionTest.json
@@ -0,0 +1,206 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/protectedItems/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3Byb3RlY3RlZEl0ZW1zL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"policyId\": \"\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Content-Length": [
+ "48"
+ ],
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "d809fbd4-6915-48f1-8803-e0992fafd33d-2015-08-14 11:05:44Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"cd4690ce-0636-4bbc-91f1-df314f9f0369\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "8d49524e-27bf-4082-80ef-305e5d5908e8"
+ ],
+ "x-ms-client-request-id": [
+ "d809fbd4-6915-48f1-8803-e0992fafd33d-2015-08-14 11:05:44Z-PS",
+ "d809fbd4-6915-48f1-8803-e0992fafd33d-2015-08-14 11:05:44Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "999995"
+ ],
+ "x-ms-correlation-request-id": [
+ "8d49524e-27bf-4082-80ef-305e5d5908e8"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T110548Z:8d49524e-27bf-4082-80ef-305e5d5908e8"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 11:05:47 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/cd4690ce-0636-4bbc-91f1-df314f9f0369?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvY2Q0NjkwY2UtMDYzNi00YmJjLTkxZjEtZGYzMTRmOWYwMzY5P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "d809fbd4-6915-48f1-8803-e0992fafd33d-2015-08-14 11:05:44Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": [\r\n \"f0e97977-1d36-4c5c-b20e-a83ca4a9a126\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "9b05b550-f4d4-4ce6-b5c1-dad3ad9137c5"
+ ],
+ "x-ms-client-request-id": [
+ "d809fbd4-6915-48f1-8803-e0992fafd33d-2015-08-14 11:05:44Z-PS",
+ "d809fbd4-6915-48f1-8803-e0992fafd33d-2015-08-14 11:05:44Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14985"
+ ],
+ "x-ms-correlation-request-id": [
+ "9b05b550-f4d4-4ce6-b5c1-dad3ad9137c5"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T110559Z:9b05b550-f4d4-4ce6-b5c1-dad3ad9137c5"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 11:05:59 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/f0e97977-1d36-4c5c-b20e-a83ca4a9a126?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZjBlOTc5NzctMWQzNi00YzVjLWIyMGUtYTgzY2E0YTlhMTI2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "d809fbd4-6915-48f1-8803-e0992fafd33d-2015-08-14 11:05:44Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Delete Backup Data\": \"False\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Unprotect\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T11:05:48.2402923Z\",\r\n \"endTimestamp\": \"2015-08-14T11:05:51.2752133Z\",\r\n \"duration\": \"00:00:03.0349210\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/f0e97977-1d36-4c5c-b20e-a83ca4a9a126\",\r\n \"name\": \"f0e97977-1d36-4c5c-b20e-a83ca4a9a126\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "682"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "30fa7b5b-b2c7-4be0-9df4-8663f1bb378a"
+ ],
+ "x-ms-client-request-id": [
+ "d809fbd4-6915-48f1-8803-e0992fafd33d-2015-08-14 11:05:44Z-PS",
+ "d809fbd4-6915-48f1-8803-e0992fafd33d-2015-08-14 11:05:44Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-correlation-request-id": [
+ "30fa7b5b-b2c7-4be0-9df4-8663f1bb378a"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T110600Z:30fa7b5b-b2c7-4be0-9df4-8663f1bb378a"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 11:05:59 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.AzureBackupItemTestCases/EnableAzureBackupProtectionTest.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupItemTestCases/EnableAzureBackupProtectionTest.json
new file mode 100644
index 000000000000..499e56031eff
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupItemTestCases/EnableAzureBackupProtectionTest.json
@@ -0,0 +1,385 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resources?$filter=resourceType%20eq%20'Microsoft.Backup/BackupVault'&$top=100&api-version=2013-03-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYWNrdXAvQmFja3VwVmF1bHQnJiR0b3A9MTAwJmFwaS12ZXJzaW9uPTIwMTMtMDMtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "aa1e95ed-b9dc-4779-b9f3-dbea7695a9ab-2015-08-14 09:44:44Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"name\": \"backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/hydrarecording/providers/Microsoft.Backup/BackupVault/hydrarecordingrn\",\r\n \"name\": \"hydrarecordingrn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/pragrawa-rg/providers/Microsoft.Backup/BackupVault/pragrawa-rg01\",\r\n \"name\": \"pragrawa-rg01\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "710"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14985"
+ ],
+ "x-ms-request-id": [
+ "7900531a-475d-4929-8c2f-0a50f4f64924"
+ ],
+ "x-ms-correlation-request-id": [
+ "7900531a-475d-4929-8c2f-0a50f4f64924"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T094445Z:7900531a-475d-4929-8c2f-0a50f4f64924"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:44:44 GMT"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "aa1e95ed-b9dc-4779-b9f3-dbea7695a9ab-2015-08-14 09:44:44Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"resourceId\": 1774108198771083879,\r\n \"properties\": {\r\n \"storageType\": \"LocallyRedundant\",\r\n \"storageTypeState\": \"Locked\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "110"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "55d16cde-eeca-4566-9db3-d3413a679d9e"
+ ],
+ "x-ms-client-request-id": [
+ "aa1e95ed-b9dc-4779-b9f3-dbea7695a9ab-2015-08-14 09:44:44Z-PS",
+ "aa1e95ed-b9dc-4779-b9f3-dbea7695a9ab-2015-08-14 09:44:44Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-correlation-request-id": [
+ "55d16cde-eeca-4566-9db3-d3413a679d9e"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T094447Z:55d16cde-eeca-4566-9db3-d3413a679d9e"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:44:47 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcz9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "45c1ce85-5eab-4dc1-9c2e-45c3f35fb543-2015-08-14 09:44:48Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"DefaultPolicy\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 30,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": null,\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/DefaultPolicy\",\r\n \"name\": \"DefaultPolicy\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"policy09-new\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/policy09-new\",\r\n \"name\": \"policy09-new\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"ProtPolicy01\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 4,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/ProtPolicy01\",\r\n \"name\": \"ProtPolicy01\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "2171"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "4ce978d8-2bae-447c-a81f-f4f130b30ca1"
+ ],
+ "x-ms-client-request-id": [
+ "45c1ce85-5eab-4dc1-9c2e-45c3f35fb543-2015-08-14 09:44:48Z-PS",
+ "45c1ce85-5eab-4dc1-9c2e-45c3f35fb543-2015-08-14 09:44:48Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14993"
+ ],
+ "x-ms-correlation-request-id": [
+ "4ce978d8-2bae-447c-a81f-f4f130b30ca1"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T094450Z:4ce978d8-2bae-447c-a81f-f4f130b30ca1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:44:50 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/protectedItems/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3Byb3RlY3RlZEl0ZW1zL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"policyId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/DefaultPolicy\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Content-Length": [
+ "204"
+ ],
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "b9685770-7ee2-414c-8abf-24b363538c40-2015-08-14 09:44:51Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"2a2498dd-7916-46ae-b11c-7f9a59eb4e1f\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "2b1f8460-2ec6-4fc0-8db4-ae5b341bc867"
+ ],
+ "x-ms-client-request-id": [
+ "b9685770-7ee2-414c-8abf-24b363538c40-2015-08-14 09:44:51Z-PS",
+ "b9685770-7ee2-414c-8abf-24b363538c40-2015-08-14 09:44:51Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "999998"
+ ],
+ "x-ms-correlation-request-id": [
+ "2b1f8460-2ec6-4fc0-8db4-ae5b341bc867"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T094452Z:2b1f8460-2ec6-4fc0-8db4-ae5b341bc867"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:44:52 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/2a2498dd-7916-46ae-b11c-7f9a59eb4e1f?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvMmEyNDk4ZGQtNzkxNi00NmFlLWIxMWMtN2Y5YTU5ZWI0ZTFmP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "b9685770-7ee2-414c-8abf-24b363538c40-2015-08-14 09:44:51Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": [\r\n \"a9a103da-2f6c-41c9-8462-f4627facdddc\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "b6bac549-290c-4e38-80e3-abe8fdc2f078"
+ ],
+ "x-ms-client-request-id": [
+ "b9685770-7ee2-414c-8abf-24b363538c40-2015-08-14 09:44:51Z-PS",
+ "b9685770-7ee2-414c-8abf-24b363538c40-2015-08-14 09:44:51Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-correlation-request-id": [
+ "b6bac549-290c-4e38-80e3-abe8fdc2f078"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T094504Z:b6bac549-290c-4e38-80e3-abe8fdc2f078"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:45:04 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/a9a103da-2f6c-41c9-8462-f4627facdddc?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYTlhMTAzZGEtMmY2Yy00MWM5LTg0NjItZjQ2MjdmYWNkZGRjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "b9685770-7ee2-414c-8abf-24b363538c40-2015-08-14 09:44:51Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Policy Name\": \"DefaultPolicy\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"ConfigureBackup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T09:44:53.0040851Z\",\r\n \"endTimestamp\": \"2015-08-14T09:44:55.3374369Z\",\r\n \"duration\": \"00:00:02.3333518\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/a9a103da-2f6c-41c9-8462-f4627facdddc\",\r\n \"name\": \"a9a103da-2f6c-41c9-8462-f4627facdddc\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "689"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "4cf4c8ba-3b61-4886-ae98-b290e80385f9"
+ ],
+ "x-ms-client-request-id": [
+ "b9685770-7ee2-414c-8abf-24b363538c40-2015-08-14 09:44:51Z-PS",
+ "b9685770-7ee2-414c-8abf-24b363538c40-2015-08-14 09:44:51Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14990"
+ ],
+ "x-ms-correlation-request-id": [
+ "4cf4c8ba-3b61-4886-ae98-b290e80385f9"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T094505Z:4cf4c8ba-3b61-4886-ae98-b290e80385f9"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:45:04 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.AzureBackupItemTestCases/ListAzureBackupItemTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupItemTestCases/ListAzureBackupItemTests.json
new file mode 100644
index 000000000000..13d542f04368
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupItemTestCases/ListAzureBackupItemTests.json
@@ -0,0 +1,136 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectedItems?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3RlZEl0ZW1zP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "a30f6a3e-a90c-4357-aa35-2b1851bbbe01-2015-08-14 08:59:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"protectionStatus\": \"Protected\",\r\n \"protectionPolicyId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/protectedItems/e2epolicy1\",\r\n \"policyInconsistent\": true,\r\n \"recoveryPointsCount\": 1,\r\n \"lastRecoveryPoint\": \"2015-08-17T05:52:42.1219964Z\",\r\n \"lastBackupTime\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"lastBackupStatus\": \"Completed\",\r\n \"lastBackupJobId\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"friendlyName\": \"hydrarecordvm\",\r\n \"itemType\": \"IaasVM\",\r\n \"status\": \"Protected\",\r\n \"containerId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/protectedItems/iaasvmcontainer;hydrarecordvm;hydrarecordvm\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/protectedItems/iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"name\": \"iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"type\": \"Microsoft.Backup/BackupVault/registeredContainers/protectedItems\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "28"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "ffe65465-e83c-4b68-b9f0-7b048c70b6cf"
+ ],
+ "x-ms-client-request-id": [
+ "a30f6a3e-a90c-4357-aa35-2b1851bbbe01-2015-08-14 08:59:57Z-PS",
+ "a30f6a3e-a90c-4357-aa35-2b1851bbbe01-2015-08-14 08:59:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14993"
+ ],
+ "x-ms-correlation-request-id": [
+ "ffe65465-e83c-4b68-b9f0-7b048c70b6cf"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T085959Z:ffe65465-e83c-4b68-b9f0-7b048c70b6cf"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 08:59:59 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/items?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2l0ZW1zP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "a30f6a3e-a90c-4357-aa35-2b1851bbbe01-2015-08-14 08:59:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"friendlyName\": \"hydrarecordvm\",\r\n \"itemType\": \"IaasVM\",\r\n \"status\": \"Protected\",\r\n \"containerId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/items/iaasvmcontainer;hydrarecordvm;hydrarecordvm\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/items/iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"name\": \"iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"type\": \"Microsoft.Backup/BackupVault/registeredContainers/items\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "28"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e3c1411b-d932-4cc7-9c49-3c3299e0ee12"
+ ],
+ "x-ms-client-request-id": [
+ "a30f6a3e-a90c-4357-aa35-2b1851bbbe01-2015-08-14 08:59:57Z-PS",
+ "a30f6a3e-a90c-4357-aa35-2b1851bbbe01-2015-08-14 08:59:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "e3c1411b-d932-4cc7-9c49-3c3299e0ee12"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T090000Z:e3c1411b-d932-4cc7-9c49-3c3299e0ee12"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 08:59:59 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.AzureBackupJobTests/GetAzureRMBackupJobTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupJobTests/GetAzureRMBackupJobTests.json
new file mode 100644
index 000000000000..aa0e691c65ac
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupJobTests/GetAzureRMBackupJobTests.json
@@ -0,0 +1,1659 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resources?$filter=resourceType%20eq%20'Microsoft.Backup/BackupVault'&$top=100&api-version=2013-03-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYWNrdXAvQmFja3VwVmF1bHQnJiR0b3A9MTAwJmFwaS12ZXJzaW9uPTIwMTMtMDMtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "43f84848-e313-4b1e-91f6-72fe8249bf04-2015-08-14 09:39:26Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"name\": \"backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/hydrarecording/providers/Microsoft.Backup/BackupVault/hydrarecordingrn\",\r\n \"name\": \"hydrarecordingrn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/pragrawa-rg/providers/Microsoft.Backup/BackupVault/pragrawa-rg01\",\r\n \"name\": \"pragrawa-rg01\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "710"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14985"
+ ],
+ "x-ms-request-id": [
+ "1f4b3103-a01d-400d-bf6b-3684053dc331"
+ ],
+ "x-ms-correlation-request-id": [
+ "1f4b3103-a01d-400d-bf6b-3684053dc331"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093927Z:1f4b3103-a01d-400d-bf6b-3684053dc331"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:27 GMT"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "43f84848-e313-4b1e-91f6-72fe8249bf04-2015-08-14 09:39:26Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"resourceId\": 1774108198771083879,\r\n \"properties\": {\r\n \"storageType\": \"LocallyRedundant\",\r\n \"storageTypeState\": \"Locked\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "110"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "4abf9f3b-f12b-4c69-b5d1-d31c82d9a4f2"
+ ],
+ "x-ms-client-request-id": [
+ "43f84848-e313-4b1e-91f6-72fe8249bf04-2015-08-14 09:39:26Z-PS",
+ "43f84848-e313-4b1e-91f6-72fe8249bf04-2015-08-14 09:39:26Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-correlation-request-id": [
+ "4abf9f3b-f12b-4c69-b5d1-d31c82d9a4f2"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093929Z:4abf9f3b-f12b-4c69-b5d1-d31c82d9a4f2"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:29 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs?api-version=2014-09-01&$filter=startTime%20eq%20'2015-07-15%2009:39:29%20AM'%20and%20endTime%20eq%20'2015-08-14%2009:39:29%20AM'",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnM/YXBpLXZlcnNpb249MjAxNC0wOS0wMSYkZmlsdGVyPXN0YXJ0VGltZSUyMGVxJTIwJzIwMTUtMDctMTUlMjAwOSUzQTM5JTNBMjklMjBBTSclMjBhbmQlMjBlbmRUaW1lJTIwZXElMjAnMjAxNS0wOC0xNCUyMDA5JTNBMzklM0EyOSUyMEFNJw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "465f6608-04d3-4726-b100-1a936e17b668-2015-08-14 09:39:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Unprotect\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T09:31:49.9772538Z\",\r\n \"endTimestamp\": \"2015-08-14T09:31:50.6179401Z\",\r\n \"duration\": \"00:00:00.6406863\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/52198402-9816-4108-9c93-e436397838c0\",\r\n \"name\": \"52198402-9816-4108-9c93-e436397838c0\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"ConfigureBackup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T09:27:33.374331Z\",\r\n \"endTimestamp\": \"2015-08-14T09:27:35.941779Z\",\r\n \"duration\": \"00:00:02.5674480\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/966f6983-1791-4d87-84c7-3089c7dd18f0\",\r\n \"name\": \"966f6983-1791-4d87-84c7-3089c7dd18f0\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T09:17:59.1501836Z\",\r\n \"endTimestamp\": \"2015-08-14T09:18:20.678253Z\",\r\n \"duration\": \"00:00:21.5280694\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/8fd99388-7e15-4f30-aead-8252b32840b7\",\r\n \"name\": \"8fd99388-7e15-4f30-aead-8252b32840b7\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"Failed\",\r\n \"startTimestamp\": \"2015-08-14T08:53:46.8680494Z\",\r\n \"endTimestamp\": \"2015-08-14T08:53:47.4570988Z\",\r\n \"duration\": \"00:00:00.5890494\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": [\r\n {\r\n \"errorCode\": 134607754,\r\n \"errorTitle\": \"\",\r\n \"errorString\": \"Another operation is in progress on the selected item.\",\r\n \"recommendations\": [\r\n \"If there is a current, in-progress operation, please retry after it has finished.\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/93927662-217a-4124-a0f5-35d28cbaf141\",\r\n \"name\": \"93927662-217a-4124-a0f5-35d28cbaf141\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T08:53:08.3515905Z\",\r\n \"endTimestamp\": \"2015-08-14T08:53:49.9685675Z\",\r\n \"duration\": \"00:00:41.6169770\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ef5d0a81-aab0-45eb-af52-32030633ba53\",\r\n \"name\": \"ef5d0a81-aab0-45eb-af52-32030633ba53\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T08:52:00.5771558Z\",\r\n \"endTimestamp\": \"2015-08-14T08:52:12.1024296Z\",\r\n \"duration\": \"00:00:11.5252738\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/aebd4e90-4310-41ca-bd56-39ab73671a46\",\r\n \"name\": \"aebd4e90-4310-41ca-bd56-39ab73671a46\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T08:40:15.4574549Z\",\r\n \"endTimestamp\": \"2015-08-14T08:40:56.925037Z\",\r\n \"duration\": \"00:00:41.4675821\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/2f910f83-2cb1-43fa-a190-0538d5865453\",\r\n \"name\": \"2f910f83-2cb1-43fa-a190-0538d5865453\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T08:39:11.3652508Z\",\r\n \"endTimestamp\": \"2015-08-14T08:39:33.1717705Z\",\r\n \"duration\": \"00:00:21.8065197\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/0e0591b1-7898-4635-8751-e8e8534ab777\",\r\n \"name\": \"0e0591b1-7898-4635-8751-e8e8534ab777\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T06:47:43.6058999Z\",\r\n \"endTimestamp\": \"2015-08-14T06:49:17.6294578Z\",\r\n \"duration\": \"00:01:34.0235579\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/43abb71d-c802-4cf5-bf33-2980fc0855b1\",\r\n \"name\": \"43abb71d-c802-4cf5-bf33-2980fc0855b1\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"DeleteBackupData\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T06:07:50.4167868Z\",\r\n \"endTimestamp\": \"2015-08-14T06:07:52.4427064Z\",\r\n \"duration\": \"00:00:02.0259196\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/3cb7d977-3b4f-4da3-8332-f46ae931fe06\",\r\n \"name\": \"3cb7d977-3b4f-4da3-8332-f46ae931fe06\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"Failed\",\r\n \"startTimestamp\": \"2015-08-14T05:54:03.3214379Z\",\r\n \"endTimestamp\": \"2015-08-14T05:54:04.5703759Z\",\r\n \"duration\": \"00:00:01.2489380\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": [\r\n {\r\n \"errorCode\": 134607755,\r\n \"errorTitle\": \"\",\r\n \"errorString\": \"Failed to unregister a registered item.\",\r\n \"recommendations\": [\r\n \"This item contains protected child items. Please stop protection and then delete the protected child items before attempting to unregister the parent item.\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/589c4124-3a93-4de1-b46c-6f70487a254d\",\r\n \"name\": \"589c4124-3a93-4de1-b46c-6f70487a254d\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Unprotect\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T05:53:31.7030839Z\",\r\n \"endTimestamp\": \"2015-08-14T05:53:33.723974Z\",\r\n \"duration\": \"00:00:02.0208901\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/1f0dcaa9-f6a5-41b4-ab47-4bdb1549be8f\",\r\n \"name\": \"1f0dcaa9-f6a5-41b4-ab47-4bdb1549be8f\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T19:33:43.0198677Z\",\r\n \"endTimestamp\": \"2015-08-13T19:45:56.7021821Z\",\r\n \"duration\": \"00:12:13.6823144\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/b6d629a1-160f-4b66-a99c-8f8d7b08d4de\",\r\n \"name\": \"b6d629a1-160f-4b66-a99c-8f8d7b08d4de\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"Failed\",\r\n \"startTimestamp\": \"2015-08-13T18:11:27.2702261Z\",\r\n \"endTimestamp\": \"2015-08-13T18:14:58.8024457Z\",\r\n \"duration\": \"00:03:31.5322196\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": [\r\n {\r\n \"errorCode\": 400048,\r\n \"errorTitle\": \"\",\r\n \"errorString\": \"Storage Account specified for Restore operation doesn't exist.\",\r\n \"recommendations\": [\r\n \"Make sure that the storage account specified in restore operation exists till restore operation is completed. If you have deleted the specified storage account, please create a different storage account and retry the operation. \"\r\n ]\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/2fd9aa1f-3973-4c9c-b82c-1d66f4427623\",\r\n \"name\": \"2fd9aa1f-3973-4c9c-b82c-1d66f4427623\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T16:50:43.60986Z\",\r\n \"endTimestamp\": \"2015-08-13T17:03:57.8233636Z\",\r\n \"duration\": \"00:13:14.2135036\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/c79451c6-bdb5-4651-b75e-c1a04f326ebb\",\r\n \"name\": \"c79451c6-bdb5-4651-b75e-c1a04f326ebb\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"Cancelled\",\r\n \"startTimestamp\": \"2015-08-13T15:40:34.8227255Z\",\r\n \"endTimestamp\": \"2015-08-13T15:47:15.1322365Z\",\r\n \"duration\": \"00:06:40.3095110\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/81e65994-b2de-4590-b565-430aefb9778a\",\r\n \"name\": \"81e65994-b2de-4590-b565-430aefb9778a\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"ConfigureBackup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T15:28:15.83222Z\",\r\n \"endTimestamp\": \"2015-08-13T15:28:17.9335331Z\",\r\n \"duration\": \"00:00:02.1013131\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ea560231-bbdf-4625-9037-e5fe3e7fd74f\",\r\n \"name\": \"ea560231-bbdf-4625-9037-e5fe3e7fd74f\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"DeleteBackupData\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T15:27:54.5246809Z\",\r\n \"endTimestamp\": \"2015-08-13T15:27:57.039715Z\",\r\n \"duration\": \"00:00:02.5150341\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/2acb45f7-a204-472e-90c4-f3c1edab24b4\",\r\n \"name\": \"2acb45f7-a204-472e-90c4-f3c1edab24b4\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Unprotect\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T15:14:12.2964919Z\",\r\n \"endTimestamp\": \"2015-08-13T15:14:15.7035103Z\",\r\n \"duration\": \"00:00:03.4070184\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/670568d6-701f-4274-be1c-81a8a8b96f53\",\r\n \"name\": \"670568d6-701f-4274-be1c-81a8a8b96f53\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"ConfigureBackup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T15:10:17.1588309Z\",\r\n \"endTimestamp\": \"2015-08-13T15:10:20.1382886Z\",\r\n \"duration\": \"00:00:02.9794577\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/402fa232-0e07-4443-9451-a91e8d37a43c\",\r\n \"name\": \"402fa232-0e07-4443-9451-a91e8d37a43c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T14:41:55.8416488Z\",\r\n \"endTimestamp\": \"2015-08-13T14:42:17.7081414Z\",\r\n \"duration\": \"00:00:21.8664926\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/6c6b2a5c-ac49-48d5-b08c-b09eb00255c2\",\r\n \"name\": \"6c6b2a5c-ac49-48d5-b08c-b09eb00255c2\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T14:40:05.4314439Z\",\r\n \"endTimestamp\": \"2015-08-13T14:40:47.6855968Z\",\r\n \"duration\": \"00:00:42.2541529\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/19ecef30-540e-4094-baad-8749c2e0807a\",\r\n \"name\": \"19ecef30-540e-4094-baad-8749c2e0807a\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T14:34:41.7879543Z\",\r\n \"endTimestamp\": \"2015-08-13T14:35:25.0560628Z\",\r\n \"duration\": \"00:00:43.2681085\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/2135b3fc-69fc-4f4f-9392-00fc2659e8df\",\r\n \"name\": \"2135b3fc-69fc-4f4f-9392-00fc2659e8df\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n }\r\n ],\r\n \"nextLink\": \"\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "13381"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "1d9abbf2-c617-4cac-aeeb-61d70a65b471"
+ ],
+ "x-ms-client-request-id": [
+ "465f6608-04d3-4726-b100-1a936e17b668-2015-08-14 09:39:29Z-PS",
+ "465f6608-04d3-4726-b100-1a936e17b668-2015-08-14 09:39:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "1d9abbf2-c617-4cac-aeeb-61d70a65b471"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093932Z:1d9abbf2-c617-4cac-aeeb-61d70a65b471"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:32 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/52198402-9816-4108-9c93-e436397838c0?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvNTIxOTg0MDItOTgxNi00MTA4LTljOTMtZTQzNjM5NzgzOGMwP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "17150909-6047-46ef-8e90-a3fd9d181928-2015-08-14 09:39:33Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Delete Backup Data\": \"False\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Unprotect\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T09:31:49.9772538Z\",\r\n \"endTimestamp\": \"2015-08-14T09:31:50.6179401Z\",\r\n \"duration\": \"00:00:00.6406863\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/52198402-9816-4108-9c93-e436397838c0\",\r\n \"name\": \"52198402-9816-4108-9c93-e436397838c0\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "682"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e9b6b05f-a125-4ac6-a651-6725aa999dfc"
+ ],
+ "x-ms-client-request-id": [
+ "17150909-6047-46ef-8e90-a3fd9d181928-2015-08-14 09:39:33Z-PS",
+ "17150909-6047-46ef-8e90-a3fd9d181928-2015-08-14 09:39:33Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14980"
+ ],
+ "x-ms-correlation-request-id": [
+ "e9b6b05f-a125-4ac6-a651-6725aa999dfc"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093934Z:e9b6b05f-a125-4ac6-a651-6725aa999dfc"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:33 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/966f6983-1791-4d87-84c7-3089c7dd18f0?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvOTY2ZjY5ODMtMTc5MS00ZDg3LTg0YzctMzA4OWM3ZGQxOGYwP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "c15e89fa-80c5-44a0-a04b-423d4f96b886-2015-08-14 09:39:34Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Policy Name\": \"DefaultPolicy\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"ConfigureBackup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T09:27:33.374331Z\",\r\n \"endTimestamp\": \"2015-08-14T09:27:35.941779Z\",\r\n \"duration\": \"00:00:02.5674480\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/966f6983-1791-4d87-84c7-3089c7dd18f0\",\r\n \"name\": \"966f6983-1791-4d87-84c7-3089c7dd18f0\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "687"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "7f1479ab-f0d9-4239-bebd-78ea8e46f61f"
+ ],
+ "x-ms-client-request-id": [
+ "c15e89fa-80c5-44a0-a04b-423d4f96b886-2015-08-14 09:39:34Z-PS",
+ "c15e89fa-80c5-44a0-a04b-423d4f96b886-2015-08-14 09:39:34Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14979"
+ ],
+ "x-ms-correlation-request-id": [
+ "7f1479ab-f0d9-4239-bebd-78ea8e46f61f"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093935Z:7f1479ab-f0d9-4239-bebd-78ea8e46f61f"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:34 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/8fd99388-7e15-4f30-aead-8252b32840b7?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvOGZkOTkzODgtN2UxNS00ZjMwLWFlYWQtODI1MmIzMjg0MGI3P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "118388db-b41c-4183-aa92-de4f83538fbe-2015-08-14 09:39:35Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T09:17:59.1501836Z\",\r\n \"endTimestamp\": \"2015-08-14T09:18:20.678253Z\",\r\n \"duration\": \"00:00:21.5280694\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/8fd99388-7e15-4f30-aead-8252b32840b7\",\r\n \"name\": \"8fd99388-7e15-4f30-aead-8252b32840b7\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "683"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "41a1719d-0154-49ce-b92e-76e59f36d31d"
+ ],
+ "x-ms-client-request-id": [
+ "118388db-b41c-4183-aa92-de4f83538fbe-2015-08-14 09:39:35Z-PS",
+ "118388db-b41c-4183-aa92-de4f83538fbe-2015-08-14 09:39:35Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14978"
+ ],
+ "x-ms-correlation-request-id": [
+ "41a1719d-0154-49ce-b92e-76e59f36d31d"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093935Z:41a1719d-0154-49ce-b92e-76e59f36d31d"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:34 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/93927662-217a-4124-a0f5-35d28cbaf141?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvOTM5Mjc2NjItMjE3YS00MTI0LWEwZjUtMzVkMjhjYmFmMTQxP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "702b2591-f0b4-407e-9380-8a50d6b01252-2015-08-14 09:39:36Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"Failed\",\r\n \"startTimestamp\": \"2015-08-14T08:53:46.8680494Z\",\r\n \"endTimestamp\": \"2015-08-14T08:53:47.4570988Z\",\r\n \"duration\": \"00:00:00.5890494\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": [\r\n {\r\n \"errorCode\": 134607754,\r\n \"errorTitle\": \"\",\r\n \"errorString\": \"Another operation is in progress on the selected item.\",\r\n \"recommendations\": [\r\n \"If there is a current, in-progress operation, please retry after it has finished.\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/93927662-217a-4124-a0f5-35d28cbaf141\",\r\n \"name\": \"93927662-217a-4124-a0f5-35d28cbaf141\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "893"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "538c2b44-d5c0-434d-847d-e75be8a46b20"
+ ],
+ "x-ms-client-request-id": [
+ "702b2591-f0b4-407e-9380-8a50d6b01252-2015-08-14 09:39:36Z-PS",
+ "702b2591-f0b4-407e-9380-8a50d6b01252-2015-08-14 09:39:36Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14977"
+ ],
+ "x-ms-correlation-request-id": [
+ "538c2b44-d5c0-434d-847d-e75be8a46b20"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093936Z:538c2b44-d5c0-434d-847d-e75be8a46b20"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:36 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ef5d0a81-aab0-45eb-af52-32030633ba53?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZWY1ZDBhODEtYWFiMC00NWViLWFmNTItMzIwMzA2MzNiYTUzP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "e87f9bc8-ecd9-4b37-a6d1-d9f84b14d072-2015-08-14 09:39:36Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T08:53:08.3515905Z\",\r\n \"endTimestamp\": \"2015-08-14T08:53:49.9685675Z\",\r\n \"duration\": \"00:00:41.6169770\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ef5d0a81-aab0-45eb-af52-32030633ba53\",\r\n \"name\": \"ef5d0a81-aab0-45eb-af52-32030633ba53\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "686"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "3b7b9b43-9872-475f-8bea-60561bc415eb"
+ ],
+ "x-ms-client-request-id": [
+ "e87f9bc8-ecd9-4b37-a6d1-d9f84b14d072-2015-08-14 09:39:36Z-PS",
+ "e87f9bc8-ecd9-4b37-a6d1-d9f84b14d072-2015-08-14 09:39:36Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14976"
+ ],
+ "x-ms-correlation-request-id": [
+ "3b7b9b43-9872-475f-8bea-60561bc415eb"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093937Z:3b7b9b43-9872-475f-8bea-60561bc415eb"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:37 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/aebd4e90-4310-41ca-bd56-39ab73671a46?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYWViZDRlOTAtNDMxMC00MWNhLWJkNTYtMzlhYjczNjcxYTQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "8c7c48d4-aec2-4953-9fe7-088c2211ef0e-2015-08-14 09:39:37Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T08:52:00.5771558Z\",\r\n \"endTimestamp\": \"2015-08-14T08:52:12.1024296Z\",\r\n \"duration\": \"00:00:11.5252738\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/aebd4e90-4310-41ca-bd56-39ab73671a46\",\r\n \"name\": \"aebd4e90-4310-41ca-bd56-39ab73671a46\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "684"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "da20bd7e-c72b-44f3-a7dc-28bf45be2da5"
+ ],
+ "x-ms-client-request-id": [
+ "8c7c48d4-aec2-4953-9fe7-088c2211ef0e-2015-08-14 09:39:37Z-PS",
+ "8c7c48d4-aec2-4953-9fe7-088c2211ef0e-2015-08-14 09:39:37Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14975"
+ ],
+ "x-ms-correlation-request-id": [
+ "da20bd7e-c72b-44f3-a7dc-28bf45be2da5"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093938Z:da20bd7e-c72b-44f3-a7dc-28bf45be2da5"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:38 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/2f910f83-2cb1-43fa-a190-0538d5865453?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvMmY5MTBmODMtMmNiMS00M2ZhLWExOTAtMDUzOGQ1ODY1NDUzP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "6e8765de-a426-44ee-b1ad-60a0e0037576-2015-08-14 09:39:38Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T08:40:15.4574549Z\",\r\n \"endTimestamp\": \"2015-08-14T08:40:56.925037Z\",\r\n \"duration\": \"00:00:41.4675821\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/2f910f83-2cb1-43fa-a190-0538d5865453\",\r\n \"name\": \"2f910f83-2cb1-43fa-a190-0538d5865453\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "685"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "7b67124c-4392-4486-b60c-aaa2f31fd4be"
+ ],
+ "x-ms-client-request-id": [
+ "6e8765de-a426-44ee-b1ad-60a0e0037576-2015-08-14 09:39:38Z-PS",
+ "6e8765de-a426-44ee-b1ad-60a0e0037576-2015-08-14 09:39:38Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14974"
+ ],
+ "x-ms-correlation-request-id": [
+ "7b67124c-4392-4486-b60c-aaa2f31fd4be"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093939Z:7b67124c-4392-4486-b60c-aaa2f31fd4be"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:38 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/0e0591b1-7898-4635-8751-e8e8534ab777?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvMGUwNTkxYjEtNzg5OC00NjM1LTg3NTEtZThlODUzNGFiNzc3P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "97a18817-bc4f-4b2c-9241-4aa52333b7e4-2015-08-14 09:39:39Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T08:39:11.3652508Z\",\r\n \"endTimestamp\": \"2015-08-14T08:39:33.1717705Z\",\r\n \"duration\": \"00:00:21.8065197\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/0e0591b1-7898-4635-8751-e8e8534ab777\",\r\n \"name\": \"0e0591b1-7898-4635-8751-e8e8534ab777\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "684"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "c5e25ff8-1764-4f3c-bf3b-c47a7f6148f5"
+ ],
+ "x-ms-client-request-id": [
+ "97a18817-bc4f-4b2c-9241-4aa52333b7e4-2015-08-14 09:39:39Z-PS",
+ "97a18817-bc4f-4b2c-9241-4aa52333b7e4-2015-08-14 09:39:39Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14973"
+ ],
+ "x-ms-correlation-request-id": [
+ "c5e25ff8-1764-4f3c-bf3b-c47a7f6148f5"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093940Z:c5e25ff8-1764-4f3c-bf3b-c47a7f6148f5"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:39 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/43abb71d-c802-4cf5-bf33-2980fc0855b1?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvNDNhYmI3MWQtYzgwMi00Y2Y1LWJmMzMtMjk4MGZjMDg1NWIxP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "087bb917-ee6d-4ce3-9c56-613ade7ace26-2015-08-14 09:39:40Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T06:47:43.6058999Z\",\r\n \"endTimestamp\": \"2015-08-14T06:49:17.6294578Z\",\r\n \"duration\": \"00:01:34.0235579\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/43abb71d-c802-4cf5-bf33-2980fc0855b1\",\r\n \"name\": \"43abb71d-c802-4cf5-bf33-2980fc0855b1\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "686"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e4f62734-2341-462a-b6c4-92adb27c6307"
+ ],
+ "x-ms-client-request-id": [
+ "087bb917-ee6d-4ce3-9c56-613ade7ace26-2015-08-14 09:39:40Z-PS",
+ "087bb917-ee6d-4ce3-9c56-613ade7ace26-2015-08-14 09:39:40Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14972"
+ ],
+ "x-ms-correlation-request-id": [
+ "e4f62734-2341-462a-b6c4-92adb27c6307"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093940Z:e4f62734-2341-462a-b6c4-92adb27c6307"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:40 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/3cb7d977-3b4f-4da3-8332-f46ae931fe06?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvM2NiN2Q5NzctM2I0Zi00ZGEzLTgzMzItZjQ2YWU5MzFmZTA2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "cbb232c9-22d1-45a1-880c-95d7c69b460d-2015-08-14 09:39:41Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Number of Recovery Points\": \"2\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"DeleteBackupData\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T06:07:50.4167868Z\",\r\n \"endTimestamp\": \"2015-08-14T06:07:52.4427064Z\",\r\n \"duration\": \"00:00:02.0259196\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/3cb7d977-3b4f-4da3-8332-f46ae931fe06\",\r\n \"name\": \"3cb7d977-3b4f-4da3-8332-f46ae931fe06\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "692"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "9220fe85-18c9-4e41-8f17-32df21af55b9"
+ ],
+ "x-ms-client-request-id": [
+ "cbb232c9-22d1-45a1-880c-95d7c69b460d-2015-08-14 09:39:41Z-PS",
+ "cbb232c9-22d1-45a1-880c-95d7c69b460d-2015-08-14 09:39:41Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14971"
+ ],
+ "x-ms-correlation-request-id": [
+ "9220fe85-18c9-4e41-8f17-32df21af55b9"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093942Z:9220fe85-18c9-4e41-8f17-32df21af55b9"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:42 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/589c4124-3a93-4de1-b46c-6f70487a254d?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvNTg5YzQxMjQtM2E5My00ZGUxLWI0NmMtNmY3MDQ4N2EyNTRkP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "d097901a-13d7-4e09-84c6-e9062056ed11-2015-08-14 09:39:42Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"Failed\",\r\n \"startTimestamp\": \"2015-08-14T05:54:03.3214379Z\",\r\n \"endTimestamp\": \"2015-08-14T05:54:04.5703759Z\",\r\n \"duration\": \"00:00:01.2489380\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": [\r\n {\r\n \"errorCode\": 134607755,\r\n \"errorTitle\": \"\",\r\n \"errorString\": \"Failed to unregister a registered item.\",\r\n \"recommendations\": [\r\n \"This item contains protected child items. Please stop protection and then delete the protected child items before attempting to unregister the parent item.\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/589c4124-3a93-4de1-b46c-6f70487a254d\",\r\n \"name\": \"589c4124-3a93-4de1-b46c-6f70487a254d\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "954"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "b11b92bd-77b9-439d-99d0-336237b79a29"
+ ],
+ "x-ms-client-request-id": [
+ "d097901a-13d7-4e09-84c6-e9062056ed11-2015-08-14 09:39:42Z-PS",
+ "d097901a-13d7-4e09-84c6-e9062056ed11-2015-08-14 09:39:42Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14970"
+ ],
+ "x-ms-correlation-request-id": [
+ "b11b92bd-77b9-439d-99d0-336237b79a29"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093943Z:b11b92bd-77b9-439d-99d0-336237b79a29"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:43 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/1f0dcaa9-f6a5-41b4-ab47-4bdb1549be8f?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvMWYwZGNhYTktZjZhNS00MWI0LWFiNDctNGJkYjE1NDliZThmP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "290f3ed9-9800-4697-8a81-d2392477c83d-2015-08-14 09:39:43Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Delete Backup Data\": \"False\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Unprotect\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-14T05:53:31.7030839Z\",\r\n \"endTimestamp\": \"2015-08-14T05:53:33.723974Z\",\r\n \"duration\": \"00:00:02.0208901\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/1f0dcaa9-f6a5-41b4-ab47-4bdb1549be8f\",\r\n \"name\": \"1f0dcaa9-f6a5-41b4-ab47-4bdb1549be8f\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "681"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "884ab783-12e2-45cc-88f9-7653c247109e"
+ ],
+ "x-ms-client-request-id": [
+ "290f3ed9-9800-4697-8a81-d2392477c83d-2015-08-14 09:39:43Z-PS",
+ "290f3ed9-9800-4697-8a81-d2392477c83d-2015-08-14 09:39:43Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14969"
+ ],
+ "x-ms-correlation-request-id": [
+ "884ab783-12e2-45cc-88f9-7653c247109e"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093944Z:884ab783-12e2-45cc-88f9-7653c247109e"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:43 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/b6d629a1-160f-4b66-a99c-8f8d7b08d4de?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYjZkNjI5YTEtMTYwZi00YjY2LWE5OWMtOGY4ZDdiMDhkNGRlP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "0b4fa249-1598-4fbe-93eb-62bdb3c35ba4-2015-08-14 09:39:44Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Backup Size\": \"17 MB\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T19:33:43.0198677Z\",\r\n \"endTimestamp\": \"2015-08-13T19:45:56.7021821Z\",\r\n \"duration\": \"00:12:13.6823144\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/b6d629a1-160f-4b66-a99c-8f8d7b08d4de\",\r\n \"name\": \"b6d629a1-160f-4b66-a99c-8f8d7b08d4de\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "942"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "1b7c1456-1232-461c-a8fc-e040071c0ae3"
+ ],
+ "x-ms-client-request-id": [
+ "0b4fa249-1598-4fbe-93eb-62bdb3c35ba4-2015-08-14 09:39:44Z-PS",
+ "0b4fa249-1598-4fbe-93eb-62bdb3c35ba4-2015-08-14 09:39:44Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14968"
+ ],
+ "x-ms-correlation-request-id": [
+ "1b7c1456-1232-461c-a8fc-e040071c0ae3"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093945Z:1b7c1456-1232-461c-a8fc-e040071c0ae3"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:44 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/2fd9aa1f-3973-4c9c-b82c-1d66f4427623?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvMmZkOWFhMWYtMzk3My00YzljLWI4MmMtMWQ2NmY0NDI3NjIzP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "38f246bf-991a-4f85-8282-efa074b136e2-2015-08-14 09:39:45Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"portalvhds7jzk3jty85qx5\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"Failed\",\r\n \"startTimestamp\": \"2015-08-13T18:11:27.2702261Z\",\r\n \"endTimestamp\": \"2015-08-13T18:14:58.8024457Z\",\r\n \"duration\": \"00:03:31.5322196\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": [\r\n {\r\n \"errorCode\": 400048,\r\n \"errorTitle\": \"\",\r\n \"errorString\": \"Storage Account specified for Restore operation doesn't exist.\",\r\n \"recommendations\": [\r\n \"Make sure that the storage account specified in restore operation exists till restore operation is completed. If you have deleted the specified storage account, please create a different storage account and retry the operation. \"\r\n ]\r\n }\r\n ]\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/2fd9aa1f-3973-4c9c-b82c-1d66f4427623\",\r\n \"name\": \"2fd9aa1f-3973-4c9c-b82c-1d66f4427623\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1067"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "f827446d-50c2-43b1-932b-def68f8b0290"
+ ],
+ "x-ms-client-request-id": [
+ "38f246bf-991a-4f85-8282-efa074b136e2-2015-08-14 09:39:45Z-PS",
+ "38f246bf-991a-4f85-8282-efa074b136e2-2015-08-14 09:39:45Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14967"
+ ],
+ "x-ms-correlation-request-id": [
+ "f827446d-50c2-43b1-932b-def68f8b0290"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093946Z:f827446d-50c2-43b1-932b-def68f8b0290"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:46 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/c79451c6-bdb5-4651-b75e-c1a04f326ebb?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYzc5NDUxYzYtYmRiNS00NjUxLWI3NWUtYzFhMDRmMzI2ZWJiP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5a1e5725-dac7-4eac-a138-84334b774968-2015-08-14 09:39:46Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Backup Size\": \"10166 MB\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T16:50:43.60986Z\",\r\n \"endTimestamp\": \"2015-08-13T17:03:57.8233636Z\",\r\n \"duration\": \"00:13:14.2135036\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/c79451c6-bdb5-4651-b75e-c1a04f326ebb\",\r\n \"name\": \"c79451c6-bdb5-4651-b75e-c1a04f326ebb\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "943"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "13864818-5a47-4591-991f-8562d6ab6bc0"
+ ],
+ "x-ms-client-request-id": [
+ "5a1e5725-dac7-4eac-a138-84334b774968-2015-08-14 09:39:46Z-PS",
+ "5a1e5725-dac7-4eac-a138-84334b774968-2015-08-14 09:39:46Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14966"
+ ],
+ "x-ms-correlation-request-id": [
+ "13864818-5a47-4591-991f-8562d6ab6bc0"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093946Z:13864818-5a47-4591-991f-8562d6ab6bc0"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:46 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/81e65994-b2de-4590-b565-430aefb9778a?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvODFlNjU5OTQtYjJkZS00NTkwLWI1NjUtNDMwYWVmYjk3NzhhP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "d4120684-554e-41fc-95a8-7e3a9be75acf-2015-08-14 09:39:47Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Cancelled\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Cancelled\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Backup Size\": \"0 MB\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,WMI Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer,ASR Writer,Registry Writer,BITS Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"Cancelled\",\r\n \"startTimestamp\": \"2015-08-13T15:40:34.8227255Z\",\r\n \"endTimestamp\": \"2015-08-13T15:47:15.1322365Z\",\r\n \"duration\": \"00:06:40.3095110\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/81e65994-b2de-4590-b565-430aefb9778a\",\r\n \"name\": \"81e65994-b2de-4590-b565-430aefb9778a\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1110"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "dd185532-3f4f-4451-8230-e91c063e5206"
+ ],
+ "x-ms-client-request-id": [
+ "d4120684-554e-41fc-95a8-7e3a9be75acf-2015-08-14 09:39:47Z-PS",
+ "d4120684-554e-41fc-95a8-7e3a9be75acf-2015-08-14 09:39:47Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14965"
+ ],
+ "x-ms-correlation-request-id": [
+ "dd185532-3f4f-4451-8230-e91c063e5206"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093947Z:dd185532-3f4f-4451-8230-e91c063e5206"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:47 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ea560231-bbdf-4625-9037-e5fe3e7fd74f?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZWE1NjAyMzEtYmJkZi00NjI1LTkwMzctZTVmZTNlN2ZkNzRmP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "3ad485b4-390c-4769-8429-9a1f3eb76b8a-2015-08-14 09:39:47Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Policy Name\": \"ProtPolicy01\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"ConfigureBackup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T15:28:15.83222Z\",\r\n \"endTimestamp\": \"2015-08-13T15:28:17.9335331Z\",\r\n \"duration\": \"00:00:02.1013131\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ea560231-bbdf-4625-9037-e5fe3e7fd74f\",\r\n \"name\": \"ea560231-bbdf-4625-9037-e5fe3e7fd74f\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "686"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "983b0f11-66d4-4e65-9394-45e75d0111e2"
+ ],
+ "x-ms-client-request-id": [
+ "3ad485b4-390c-4769-8429-9a1f3eb76b8a-2015-08-14 09:39:47Z-PS",
+ "3ad485b4-390c-4769-8429-9a1f3eb76b8a-2015-08-14 09:39:47Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14964"
+ ],
+ "x-ms-correlation-request-id": [
+ "983b0f11-66d4-4e65-9394-45e75d0111e2"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093948Z:983b0f11-66d4-4e65-9394-45e75d0111e2"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:48 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/2acb45f7-a204-472e-90c4-f3c1edab24b4?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvMmFjYjQ1ZjctYTIwNC00NzJlLTkwYzQtZjNjMWVkYWIyNGI0P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "6e73aa8f-27b0-4479-a034-02decbcb4876-2015-08-14 09:39:48Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Number of Recovery Points\": \"0\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"DeleteBackupData\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T15:27:54.5246809Z\",\r\n \"endTimestamp\": \"2015-08-13T15:27:57.039715Z\",\r\n \"duration\": \"00:00:02.5150341\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/2acb45f7-a204-472e-90c4-f3c1edab24b4\",\r\n \"name\": \"2acb45f7-a204-472e-90c4-f3c1edab24b4\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "691"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "37f26a3c-39a1-4915-aae6-366c46cdcefc"
+ ],
+ "x-ms-client-request-id": [
+ "6e73aa8f-27b0-4479-a034-02decbcb4876-2015-08-14 09:39:48Z-PS",
+ "6e73aa8f-27b0-4479-a034-02decbcb4876-2015-08-14 09:39:48Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14963"
+ ],
+ "x-ms-correlation-request-id": [
+ "37f26a3c-39a1-4915-aae6-366c46cdcefc"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093949Z:37f26a3c-39a1-4915-aae6-366c46cdcefc"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:49 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/670568d6-701f-4274-be1c-81a8a8b96f53?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvNjcwNTY4ZDYtNzAxZi00Mjc0LWJlMWMtODFhOGE4Yjk2ZjUzP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "bcce79d1-89a6-4dac-bfe0-80a71a5eeb2c-2015-08-14 09:39:49Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Delete Backup Data\": \"False\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Unprotect\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T15:14:12.2964919Z\",\r\n \"endTimestamp\": \"2015-08-13T15:14:15.7035103Z\",\r\n \"duration\": \"00:00:03.4070184\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/670568d6-701f-4274-be1c-81a8a8b96f53\",\r\n \"name\": \"670568d6-701f-4274-be1c-81a8a8b96f53\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "682"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "283487f1-27bc-41cf-8933-fc7d94cfc121"
+ ],
+ "x-ms-client-request-id": [
+ "bcce79d1-89a6-4dac-bfe0-80a71a5eeb2c-2015-08-14 09:39:49Z-PS",
+ "bcce79d1-89a6-4dac-bfe0-80a71a5eeb2c-2015-08-14 09:39:49Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14962"
+ ],
+ "x-ms-correlation-request-id": [
+ "283487f1-27bc-41cf-8933-fc7d94cfc121"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093950Z:283487f1-27bc-41cf-8933-fc7d94cfc121"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:49 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/402fa232-0e07-4443-9451-a91e8d37a43c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvNDAyZmEyMzItMGUwNy00NDQzLTk0NTEtYTkxZThkMzdhNDNjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "091f7803-0546-4956-9e7b-8f48090718e7-2015-08-14 09:39:50Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Policy Name\": \"ProtPolicy01\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"ConfigureBackup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T15:10:17.1588309Z\",\r\n \"endTimestamp\": \"2015-08-13T15:10:20.1382886Z\",\r\n \"duration\": \"00:00:02.9794577\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/402fa232-0e07-4443-9451-a91e8d37a43c\",\r\n \"name\": \"402fa232-0e07-4443-9451-a91e8d37a43c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "84ce2197-34ab-4126-b326-9c5fd4059e63"
+ ],
+ "x-ms-client-request-id": [
+ "091f7803-0546-4956-9e7b-8f48090718e7-2015-08-14 09:39:50Z-PS",
+ "091f7803-0546-4956-9e7b-8f48090718e7-2015-08-14 09:39:50Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14961"
+ ],
+ "x-ms-correlation-request-id": [
+ "84ce2197-34ab-4126-b326-9c5fd4059e63"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093951Z:84ce2197-34ab-4126-b326-9c5fd4059e63"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:50 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/6c6b2a5c-ac49-48d5-b08c-b09eb00255c2?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvNmM2YjJhNWMtYWM0OS00OGQ1LWIwOGMtYjA5ZWIwMDI1NWMyP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "00ce0512-459c-491e-bb13-7b92544a2fe1-2015-08-14 09:39:51Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T14:41:55.8416488Z\",\r\n \"endTimestamp\": \"2015-08-13T14:42:17.7081414Z\",\r\n \"duration\": \"00:00:21.8664926\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/6c6b2a5c-ac49-48d5-b08c-b09eb00255c2\",\r\n \"name\": \"6c6b2a5c-ac49-48d5-b08c-b09eb00255c2\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "684"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e84e49d2-438b-422d-972f-ba3d274fdeb1"
+ ],
+ "x-ms-client-request-id": [
+ "00ce0512-459c-491e-bb13-7b92544a2fe1-2015-08-14 09:39:51Z-PS",
+ "00ce0512-459c-491e-bb13-7b92544a2fe1-2015-08-14 09:39:51Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14960"
+ ],
+ "x-ms-correlation-request-id": [
+ "e84e49d2-438b-422d-972f-ba3d274fdeb1"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093951Z:e84e49d2-438b-422d-972f-ba3d274fdeb1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:51 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/19ecef30-540e-4094-baad-8749c2e0807a?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvMTllY2VmMzAtNTQwZS00MDk0LWJhYWQtODc0OWMyZTA4MDdhP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "3251eb7a-bc51-424f-b0a4-633a6837071c-2015-08-14 09:39:52Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T14:40:05.4314439Z\",\r\n \"endTimestamp\": \"2015-08-13T14:40:47.6855968Z\",\r\n \"duration\": \"00:00:42.2541529\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/19ecef30-540e-4094-baad-8749c2e0807a\",\r\n \"name\": \"19ecef30-540e-4094-baad-8749c2e0807a\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "686"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "9e528a42-bb61-4af1-97f2-720d48235801"
+ ],
+ "x-ms-client-request-id": [
+ "3251eb7a-bc51-424f-b0a4-633a6837071c-2015-08-14 09:39:52Z-PS",
+ "3251eb7a-bc51-424f-b0a4-633a6837071c-2015-08-14 09:39:52Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14959"
+ ],
+ "x-ms-correlation-request-id": [
+ "9e528a42-bb61-4af1-97f2-720d48235801"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093952Z:9e528a42-bb61-4af1-97f2-720d48235801"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:51 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/2135b3fc-69fc-4f4f-9392-00fc2659e8df?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvMjEzNWIzZmMtNjlmYy00ZjRmLTkzOTItMDBmYzI2NTllOGRmP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "12dc9ee9-2f63-4623-beb0-bbc11fed0996-2015-08-14 09:39:52Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-13T14:34:41.7879543Z\",\r\n \"endTimestamp\": \"2015-08-13T14:35:25.0560628Z\",\r\n \"duration\": \"00:00:43.2681085\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/2135b3fc-69fc-4f4f-9392-00fc2659e8df\",\r\n \"name\": \"2135b3fc-69fc-4f4f-9392-00fc2659e8df\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "684"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "25285c34-ebb0-432a-80f2-26cd7957daa9"
+ ],
+ "x-ms-client-request-id": [
+ "12dc9ee9-2f63-4623-beb0-bbc11fed0996-2015-08-14 09:39:52Z-PS",
+ "12dc9ee9-2f63-4623-beb0-bbc11fed0996-2015-08-14 09:39:52Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14958"
+ ],
+ "x-ms-correlation-request-id": [
+ "25285c34-ebb0-432a-80f2-26cd7957daa9"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T093953Z:25285c34-ebb0-432a-80f2-26cd7957daa9"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:39:53 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.AzureBackupJobTests/StopAzureRMBackupJobTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupJobTests/StopAzureRMBackupJobTests.json
new file mode 100644
index 000000000000..b8e2435d10fe
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupJobTests/StopAzureRMBackupJobTests.json
@@ -0,0 +1,520 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/protectedItems/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/backup?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3Byb3RlY3RlZEl0ZW1zL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL2JhY2t1cD9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "3d9e8d8a-c5cf-4296-b95e-35a1292cddd5-2015-08-14 10:11:38Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"5adc0601-727b-49dd-afdb-4ade7c9a08f5\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "b1906920-798b-4a87-b0bf-47f4418f79f0"
+ ],
+ "x-ms-client-request-id": [
+ "3d9e8d8a-c5cf-4296-b95e-35a1292cddd5-2015-08-14 10:11:38Z-PS",
+ "3d9e8d8a-c5cf-4296-b95e-35a1292cddd5-2015-08-14 10:11:38Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "999994"
+ ],
+ "x-ms-correlation-request-id": [
+ "b1906920-798b-4a87-b0bf-47f4418f79f0"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T101141Z:b1906920-798b-4a87-b0bf-47f4418f79f0"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:11:40 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/5adc0601-727b-49dd-afdb-4ade7c9a08f5?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvNWFkYzA2MDEtNzI3Yi00OWRkLWFmZGItNGFkZTdjOWEwOGY1P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "3d9e8d8a-c5cf-4296-b95e-35a1292cddd5-2015-08-14 10:11:38Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": [\r\n \"bee71778-2b7f-43a5-ba6f-07ea397526e9\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e35e0a9a-3edf-452a-b40f-470d485d1916"
+ ],
+ "x-ms-client-request-id": [
+ "3d9e8d8a-c5cf-4296-b95e-35a1292cddd5-2015-08-14 10:11:38Z-PS",
+ "3d9e8d8a-c5cf-4296-b95e-35a1292cddd5-2015-08-14 10:11:38Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14983"
+ ],
+ "x-ms-correlation-request-id": [
+ "e35e0a9a-3edf-452a-b40f-470d485d1916"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T101153Z:e35e0a9a-3edf-452a-b40f-470d485d1916"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:11:53 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bee71778-2b7f-43a5-ba6f-07ea397526e9?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmVlNzE3NzgtMmI3Zi00M2E1LWJhNmYtMDdlYTM5NzUyNmU5P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "3d9e8d8a-c5cf-4296-b95e-35a1292cddd5-2015-08-14 10:11:38Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"NotStarted\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-14T10:11:41.9796393Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:00:13.0377284\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bee71778-2b7f-43a5-ba6f-07ea397526e9\",\r\n \"name\": \"bee71778-2b7f-43a5-ba6f-07ea397526e9\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "915"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a8452ce4-8cb8-41cc-8ba0-e5dd68fe9bd8"
+ ],
+ "x-ms-client-request-id": [
+ "3d9e8d8a-c5cf-4296-b95e-35a1292cddd5-2015-08-14 10:11:38Z-PS",
+ "3d9e8d8a-c5cf-4296-b95e-35a1292cddd5-2015-08-14 10:11:38Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14982"
+ ],
+ "x-ms-correlation-request-id": [
+ "a8452ce4-8cb8-41cc-8ba0-e5dd68fe9bd8"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T101154Z:a8452ce4-8cb8-41cc-8ba0-e5dd68fe9bd8"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:11:54 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bee71778-2b7f-43a5-ba6f-07ea397526e9?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmVlNzE3NzgtMmI3Zi00M2E1LWJhNmYtMDdlYTM5NzUyNmU5P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "a41eeb21-935f-47f6-a5f9-4f54161fc634-2015-08-14 10:11:56Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Cancelled\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Cancelled\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Backup Size\": \"0 MB\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"Cancelled\",\r\n \"startTimestamp\": \"2015-08-14T10:11:41.9796393Z\",\r\n \"endTimestamp\": \"2015-08-14T10:15:07.9019843Z\",\r\n \"duration\": \"00:03:25.9223450\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bee71778-2b7f-43a5-ba6f-07ea397526e9\",\r\n \"name\": \"bee71778-2b7f-43a5-ba6f-07ea397526e9\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "941"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "6bbdafe9-304c-4628-af07-2f59567cd8a5"
+ ],
+ "x-ms-client-request-id": [
+ "a41eeb21-935f-47f6-a5f9-4f54161fc634-2015-08-14 10:11:56Z-PS",
+ "a41eeb21-935f-47f6-a5f9-4f54161fc634-2015-08-14 10:11:56Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14973"
+ ],
+ "x-ms-correlation-request-id": [
+ "6bbdafe9-304c-4628-af07-2f59567cd8a5"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T101536Z:6bbdafe9-304c-4628-af07-2f59567cd8a5"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:15:36 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bee71778-2b7f-43a5-ba6f-07ea397526e9?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmVlNzE3NzgtMmI3Zi00M2E1LWJhNmYtMDdlYTM5NzUyNmU5P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "a41eeb21-935f-47f6-a5f9-4f54161fc634-2015-08-14 10:11:56Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Cancelled\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Cancelled\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Backup Size\": \"0 MB\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"Cancelled\",\r\n \"startTimestamp\": \"2015-08-14T10:11:41.9796393Z\",\r\n \"endTimestamp\": \"2015-08-14T10:15:07.9019843Z\",\r\n \"duration\": \"00:03:25.9223450\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bee71778-2b7f-43a5-ba6f-07ea397526e9\",\r\n \"name\": \"bee71778-2b7f-43a5-ba6f-07ea397526e9\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "941"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "683f2902-b8ed-4a92-aa55-f6d47e67aea8"
+ ],
+ "x-ms-client-request-id": [
+ "a41eeb21-935f-47f6-a5f9-4f54161fc634-2015-08-14 10:11:56Z-PS",
+ "a41eeb21-935f-47f6-a5f9-4f54161fc634-2015-08-14 10:11:56Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14972"
+ ],
+ "x-ms-correlation-request-id": [
+ "683f2902-b8ed-4a92-aa55-f6d47e67aea8"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T101537Z:683f2902-b8ed-4a92-aa55-f6d47e67aea8"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:15:36 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bee71778-2b7f-43a5-ba6f-07ea397526e9?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmVlNzE3NzgtMmI3Zi00M2E1LWJhNmYtMDdlYTM5NzUyNmU5P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "870a5c98-c94f-4779-94ac-1509d6aee02b-2015-08-14 10:15:37Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Cancelled\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Cancelled\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Backup Size\": \"0 MB\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"Cancelled\",\r\n \"startTimestamp\": \"2015-08-14T10:11:41.9796393Z\",\r\n \"endTimestamp\": \"2015-08-14T10:15:07.9019843Z\",\r\n \"duration\": \"00:03:25.9223450\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bee71778-2b7f-43a5-ba6f-07ea397526e9\",\r\n \"name\": \"bee71778-2b7f-43a5-ba6f-07ea397526e9\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "941"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "6d9b4c66-0051-4b7b-994e-f302b144abf7"
+ ],
+ "x-ms-client-request-id": [
+ "870a5c98-c94f-4779-94ac-1509d6aee02b-2015-08-14 10:15:37Z-PS",
+ "870a5c98-c94f-4779-94ac-1509d6aee02b-2015-08-14 10:15:37Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14971"
+ ],
+ "x-ms-correlation-request-id": [
+ "6d9b4c66-0051-4b7b-994e-f302b144abf7"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T101537Z:6d9b4c66-0051-4b7b-994e-f302b144abf7"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:15:37 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bee71778-2b7f-43a5-ba6f-07ea397526e9/cancel?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmVlNzE3NzgtMmI3Zi00M2E1LWJhNmYtMDdlYTM5NzUyNmU5L2NhbmNlbD9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "8713602c-925a-461a-a367-8db319b3dc08-2015-08-14 10:11:55Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"8a969a8a-b240-400d-a045-31a90be9b42c\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "df2fbc91-fa50-4295-bd07-b182c4662ba3"
+ ],
+ "x-ms-client-request-id": [
+ "8713602c-925a-461a-a367-8db319b3dc08-2015-08-14 10:11:55Z-PS",
+ "8713602c-925a-461a-a367-8db319b3dc08-2015-08-14 10:11:55Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "999993"
+ ],
+ "x-ms-correlation-request-id": [
+ "df2fbc91-fa50-4295-bd07-b182c4662ba3"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T101155Z:df2fbc91-fa50-4295-bd07-b182c4662ba3"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:11:54 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/8a969a8a-b240-400d-a045-31a90be9b42c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvOGE5NjlhOGEtYjI0MC00MDBkLWEwNDUtMzFhOTBiZTliNDJjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "8713602c-925a-461a-a367-8db319b3dc08-2015-08-14 10:11:55Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": [\r\n \"bee71778-2b7f-43a5-ba6f-07ea397526e9\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a653b544-7b42-4b21-85b2-5c3182469e20"
+ ],
+ "x-ms-client-request-id": [
+ "8713602c-925a-461a-a367-8db319b3dc08-2015-08-14 10:11:55Z-PS",
+ "8713602c-925a-461a-a367-8db319b3dc08-2015-08-14 10:11:55Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "a653b544-7b42-4b21-85b2-5c3182469e20"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T101156Z:a653b544-7b42-4b21-85b2-5c3182469e20"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:11:56 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.AzureBackupPolicyTests/ListProtectionPolicyByNameTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupPolicyTests/ListProtectionPolicyByNameTests.json
new file mode 100644
index 000000000000..745baf96cb2b
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupPolicyTests/ListProtectionPolicyByNameTests.json
@@ -0,0 +1,187 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resources?$filter=resourceType%20eq%20'Microsoft.Backup/BackupVault'&$top=100&api-version=2013-03-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYWNrdXAvQmFja3VwVmF1bHQnJiR0b3A9MTAwJmFwaS12ZXJzaW9uPTIwMTMtMDMtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "564b34f1-8926-4a4a-b5d0-69e16462d292-2015-08-14 09:20:48Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"name\": \"backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/hydrarecording/providers/Microsoft.Backup/BackupVault/hydrarecordingrn\",\r\n \"name\": \"hydrarecordingrn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/pragrawa-rg/providers/Microsoft.Backup/BackupVault/pragrawa-rg01\",\r\n \"name\": \"pragrawa-rg01\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "710"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14982"
+ ],
+ "x-ms-request-id": [
+ "0bcb6d55-4682-463f-9af2-d9539ae78070"
+ ],
+ "x-ms-correlation-request-id": [
+ "0bcb6d55-4682-463f-9af2-d9539ae78070"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092049Z:0bcb6d55-4682-463f-9af2-d9539ae78070"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:20:49 GMT"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "564b34f1-8926-4a4a-b5d0-69e16462d292-2015-08-14 09:20:48Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"resourceId\": 1774108198771083879,\r\n \"properties\": {\r\n \"storageType\": \"LocallyRedundant\",\r\n \"storageTypeState\": \"Locked\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "110"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "5c96adaa-84fc-4b06-8c22-38780d5c0e84"
+ ],
+ "x-ms-client-request-id": [
+ "564b34f1-8926-4a4a-b5d0-69e16462d292-2015-08-14 09:20:48Z-PS",
+ "564b34f1-8926-4a4a-b5d0-69e16462d292-2015-08-14 09:20:48Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "5c96adaa-84fc-4b06-8c22-38780d5c0e84"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092051Z:5c96adaa-84fc-4b06-8c22-38780d5c0e84"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:20:50 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcz9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "89e694df-6793-4a8f-8210-f85d8c0c15b2-2015-08-14 09:20:51Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"DefaultPolicy\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 30,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": null,\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/DefaultPolicy\",\r\n \"name\": \"DefaultPolicy\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"Policy10\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/Policy10\",\r\n \"name\": \"Policy10\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"ProtPolicy01\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 4,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/ProtPolicy01\",\r\n \"name\": \"ProtPolicy01\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "2159"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e59893b1-b75a-4739-b921-f0958d17c049"
+ ],
+ "x-ms-client-request-id": [
+ "89e694df-6793-4a8f-8210-f85d8c0c15b2-2015-08-14 09:20:51Z-PS",
+ "89e694df-6793-4a8f-8210-f85d8c0c15b2-2015-08-14 09:20:51Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14987"
+ ],
+ "x-ms-correlation-request-id": [
+ "e59893b1-b75a-4739-b921-f0958d17c049"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092054Z:e59893b1-b75a-4739-b921-f0958d17c049"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:20:53 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.AzureBackupPolicyTests/ListProtectionPolicyTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupPolicyTests/ListProtectionPolicyTests.json
new file mode 100644
index 000000000000..383411e5c14c
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupPolicyTests/ListProtectionPolicyTests.json
@@ -0,0 +1,187 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resources?$filter=resourceType%20eq%20'Microsoft.Backup/BackupVault'&$top=100&api-version=2013-03-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYWNrdXAvQmFja3VwVmF1bHQnJiR0b3A9MTAwJmFwaS12ZXJzaW9uPTIwMTMtMDMtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "d6126626-ae80-4967-9667-e56034264b11-2015-08-14 09:22:24Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"name\": \"backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/hydrarecording/providers/Microsoft.Backup/BackupVault/hydrarecordingrn\",\r\n \"name\": \"hydrarecordingrn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/pragrawa-rg/providers/Microsoft.Backup/BackupVault/pragrawa-rg01\",\r\n \"name\": \"pragrawa-rg01\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "710"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14989"
+ ],
+ "x-ms-request-id": [
+ "1baadc8d-0712-4111-aa87-8561e3721555"
+ ],
+ "x-ms-correlation-request-id": [
+ "1baadc8d-0712-4111-aa87-8561e3721555"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092225Z:1baadc8d-0712-4111-aa87-8561e3721555"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:22:25 GMT"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "d6126626-ae80-4967-9667-e56034264b11-2015-08-14 09:22:24Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"resourceId\": 1774108198771083879,\r\n \"properties\": {\r\n \"storageType\": \"LocallyRedundant\",\r\n \"storageTypeState\": \"Locked\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "110"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "2488786c-dd78-4e0f-8d7e-0e828aa7b811"
+ ],
+ "x-ms-client-request-id": [
+ "d6126626-ae80-4967-9667-e56034264b11-2015-08-14 09:22:24Z-PS",
+ "d6126626-ae80-4967-9667-e56034264b11-2015-08-14 09:22:24Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14988"
+ ],
+ "x-ms-correlation-request-id": [
+ "2488786c-dd78-4e0f-8d7e-0e828aa7b811"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092227Z:2488786c-dd78-4e0f-8d7e-0e828aa7b811"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:22:27 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcz9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "2f6af140-972f-436f-9fdb-9a810ecc9c1f-2015-08-14 09:22:28Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"DefaultPolicy\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 30,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": null,\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/DefaultPolicy\",\r\n \"name\": \"DefaultPolicy\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"Policy10\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/Policy10\",\r\n \"name\": \"Policy10\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"ProtPolicy01\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 4,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/ProtPolicy01\",\r\n \"name\": \"ProtPolicy01\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "2159"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "5ba47ea2-3a39-4b15-b281-af12901c20f3"
+ ],
+ "x-ms-client-request-id": [
+ "2f6af140-972f-436f-9fdb-9a810ecc9c1f-2015-08-14 09:22:28Z-PS",
+ "2f6af140-972f-436f-9fdb-9a810ecc9c1f-2015-08-14 09:22:28Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-correlation-request-id": [
+ "5ba47ea2-3a39-4b15-b281-af12901c20f3"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092230Z:5ba47ea2-3a39-4b15-b281-af12901c20f3"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:22:29 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.AzureBackupPolicyTests/NewProtectionPolicyTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupPolicyTests/NewProtectionPolicyTests.json
new file mode 100644
index 000000000000..a5b9a98485cf
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupPolicyTests/NewProtectionPolicyTests.json
@@ -0,0 +1,321 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resources?$filter=resourceType%20eq%20'Microsoft.Backup/BackupVault'&$top=100&api-version=2013-03-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYWNrdXAvQmFja3VwVmF1bHQnJiR0b3A9MTAwJmFwaS12ZXJzaW9uPTIwMTMtMDMtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "cd587ec7-9cbf-4a75-a833-f6b6da8958e0-2015-08-14 09:20:00Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"name\": \"backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/hydrarecording/providers/Microsoft.Backup/BackupVault/hydrarecordingrn\",\r\n \"name\": \"hydrarecordingrn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/pragrawa-rg/providers/Microsoft.Backup/BackupVault/pragrawa-rg01\",\r\n \"name\": \"pragrawa-rg01\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "710"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14987"
+ ],
+ "x-ms-request-id": [
+ "dc18d4de-e702-4d82-8408-795ffb0d6473"
+ ],
+ "x-ms-correlation-request-id": [
+ "dc18d4de-e702-4d82-8408-795ffb0d6473"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092001Z:dc18d4de-e702-4d82-8408-795ffb0d6473"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:20:01 GMT"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "cd587ec7-9cbf-4a75-a833-f6b6da8958e0-2015-08-14 09:20:00Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"resourceId\": 1774108198771083879,\r\n \"properties\": {\r\n \"storageType\": \"LocallyRedundant\",\r\n \"storageTypeState\": \"Locked\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "110"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "5c069f3a-c2dc-438f-952e-43b15a8e2c0f"
+ ],
+ "x-ms-client-request-id": [
+ "cd587ec7-9cbf-4a75-a833-f6b6da8958e0-2015-08-14 09:20:00Z-PS",
+ "cd587ec7-9cbf-4a75-a833-f6b6da8958e0-2015-08-14 09:20:00Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14986"
+ ],
+ "x-ms-correlation-request-id": [
+ "5c069f3a-c2dc-438f-952e-43b15a8e2c0f"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092003Z:5c069f3a-c2dc-438f-952e-43b15a8e2c0f"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:20:03 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcz9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "b5489d9c-c1ea-4677-ab4a-d0f4c4a184b2-2015-08-14 09:20:03Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"DefaultPolicy\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 30,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": null,\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/DefaultPolicy\",\r\n \"name\": \"DefaultPolicy\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"ProtPolicy01\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 4,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/ProtPolicy01\",\r\n \"name\": \"ProtPolicy01\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1420"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "0909459f-103c-4bf0-a451-c7a1b17ab5d4"
+ ],
+ "x-ms-client-request-id": [
+ "b5489d9c-c1ea-4677-ab4a-d0f4c4a184b2-2015-08-14 09:20:03Z-PS",
+ "b5489d9c-c1ea-4677-ab4a-d0f4c4a184b2-2015-08-14 09:20:03Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-correlation-request-id": [
+ "0909459f-103c-4bf0-a451-c7a1b17ab5d4"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092006Z:0909459f-103c-4bf0-a451-c7a1b17ab5d4"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:20:06 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcz9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "b5489d9c-c1ea-4677-ab4a-d0f4c4a184b2-2015-08-14 09:20:03Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"DefaultPolicy\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 30,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": null,\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/DefaultPolicy\",\r\n \"name\": \"DefaultPolicy\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"Policy10\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/Policy10\",\r\n \"name\": \"Policy10\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"ProtPolicy01\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 4,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/ProtPolicy01\",\r\n \"name\": \"ProtPolicy01\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "2159"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a1222267-50bf-44b9-a3f8-504a2786a751"
+ ],
+ "x-ms-client-request-id": [
+ "b5489d9c-c1ea-4677-ab4a-d0f4c4a184b2-2015-08-14 09:20:03Z-PS",
+ "b5489d9c-c1ea-4677-ab4a-d0f4c4a184b2-2015-08-14 09:20:03Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14990"
+ ],
+ "x-ms-correlation-request-id": [
+ "a1222267-50bf-44b9-a3f8-504a2786a751"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092009Z:a1222267-50bf-44b9-a3f8-504a2786a751"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:20:09 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/Policy10?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcy9Qb2xpY3kxMD9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"WorkloadType\": \"IaasVM\",\r\n \"PolicyName\": \"Policy10\",\r\n \"BackupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": [],\r\n \"scheduleRunTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ]\r\n },\r\n \"LTRRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": \"Days\"\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n \"Monday\"\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": \"Weeks\"\r\n }\r\n }\r\n }\r\n },\r\n \"PolicyName\": \"Policy10\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Content-Length": [
+ "836"
+ ],
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "b5489d9c-c1ea-4677-ab4a-d0f4c4a184b2-2015-08-14 09:20:03Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"00000000-0000-0000-0000-000000000000\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "14dfffe5-7a11-4884-bbb7-6ec1cb9e801c"
+ ],
+ "x-ms-client-request-id": [
+ "b5489d9c-c1ea-4677-ab4a-d0f4c4a184b2-2015-08-14 09:20:03Z-PS",
+ "b5489d9c-c1ea-4677-ab4a-d0f4c4a184b2-2015-08-14 09:20:03Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "999998"
+ ],
+ "x-ms-correlation-request-id": [
+ "14dfffe5-7a11-4884-bbb7-6ec1cb9e801c"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092008Z:14dfffe5-7a11-4884-bbb7-6ec1cb9e801c"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:20:08 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.AzureBackupPolicyTests/RemoveProtectionPolicyTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupPolicyTests/RemoveProtectionPolicyTests.json
new file mode 100644
index 000000000000..3089181936ed
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupPolicyTests/RemoveProtectionPolicyTests.json
@@ -0,0 +1,309 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resources?$filter=resourceType%20eq%20'Microsoft.Backup/BackupVault'&$top=100&api-version=2013-03-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYWNrdXAvQmFja3VwVmF1bHQnJiR0b3A9MTAwJmFwaS12ZXJzaW9uPTIwMTMtMDMtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "6af1a9be-1988-45be-a220-acd1dac59af1-2015-08-14 09:19:05Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"name\": \"backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/hydrarecording/providers/Microsoft.Backup/BackupVault/hydrarecordingrn\",\r\n \"name\": \"hydrarecordingrn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/pragrawa-rg/providers/Microsoft.Backup/BackupVault/pragrawa-rg01\",\r\n \"name\": \"pragrawa-rg01\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "710"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-request-id": [
+ "ff2189d9-508c-4932-9388-99bfdcb62a10"
+ ],
+ "x-ms-correlation-request-id": [
+ "ff2189d9-508c-4932-9388-99bfdcb62a10"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T091907Z:ff2189d9-508c-4932-9388-99bfdcb62a10"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:19:06 GMT"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "6af1a9be-1988-45be-a220-acd1dac59af1-2015-08-14 09:19:05Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"resourceId\": 1774108198771083879,\r\n \"properties\": {\r\n \"storageType\": \"LocallyRedundant\",\r\n \"storageTypeState\": \"Locked\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "110"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "23daa7d0-e6d8-45ea-84ca-9cb792b5fbc8"
+ ],
+ "x-ms-client-request-id": [
+ "6af1a9be-1988-45be-a220-acd1dac59af1-2015-08-14 09:19:05Z-PS",
+ "6af1a9be-1988-45be-a220-acd1dac59af1-2015-08-14 09:19:05Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14983"
+ ],
+ "x-ms-correlation-request-id": [
+ "23daa7d0-e6d8-45ea-84ca-9cb792b5fbc8"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T091908Z:23daa7d0-e6d8-45ea-84ca-9cb792b5fbc8"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:19:08 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcz9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "52b483d8-20db-4dcf-b8ec-ad1014e295c7-2015-08-14 09:19:09Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"Policy10\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/Policy10\",\r\n \"name\": \"Policy10\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"DefaultPolicy\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 30,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": null,\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/DefaultPolicy\",\r\n \"name\": \"DefaultPolicy\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"ProtPolicy01\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 4,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/ProtPolicy01\",\r\n \"name\": \"ProtPolicy01\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "2159"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "72ef315f-7f33-4813-b509-ebb80fed354c"
+ ],
+ "x-ms-client-request-id": [
+ "52b483d8-20db-4dcf-b8ec-ad1014e295c7-2015-08-14 09:19:09Z-PS",
+ "52b483d8-20db-4dcf-b8ec-ad1014e295c7-2015-08-14 09:19:09Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14993"
+ ],
+ "x-ms-correlation-request-id": [
+ "72ef315f-7f33-4813-b509-ebb80fed354c"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T091911Z:72ef315f-7f33-4813-b509-ebb80fed354c"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:19:11 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcz9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "04a52037-2f0b-4eb2-9240-ccfd545b784a-2015-08-14 09:19:12Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"Policy10\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/Policy10\",\r\n \"name\": \"Policy10\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"DefaultPolicy\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 30,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": null,\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/DefaultPolicy\",\r\n \"name\": \"DefaultPolicy\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"ProtPolicy01\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 4,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/ProtPolicy01\",\r\n \"name\": \"ProtPolicy01\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "2159"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "0992e470-00b1-4587-91e8-3f40a047e9a5"
+ ],
+ "x-ms-client-request-id": [
+ "04a52037-2f0b-4eb2-9240-ccfd545b784a-2015-08-14 09:19:12Z-PS",
+ "04a52037-2f0b-4eb2-9240-ccfd545b784a-2015-08-14 09:19:12Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "0992e470-00b1-4587-91e8-3f40a047e9a5"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T091912Z:0992e470-00b1-4587-91e8-3f40a047e9a5"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:19:11 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/Policy10?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcy9Qb2xpY3kxMD9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "04a52037-2f0b-4eb2-9240-ccfd545b784a-2015-08-14 09:19:12Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "627e2039-97c8-4621-b6a4-443c780578b0"
+ ],
+ "x-ms-client-request-id": [
+ "04a52037-2f0b-4eb2-9240-ccfd545b784a-2015-08-14 09:19:12Z-PS",
+ "04a52037-2f0b-4eb2-9240-ccfd545b784a-2015-08-14 09:19:12Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "999999"
+ ],
+ "x-ms-correlation-request-id": [
+ "627e2039-97c8-4621-b6a4-443c780578b0"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T091914Z:627e2039-97c8-4621-b6a4-443c780578b0"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:19:13 GMT"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 204
+ }
+ ],
+ "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.AzureBackupPolicyTests/SetProtectionPolicyTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupPolicyTests/SetProtectionPolicyTests.json
new file mode 100644
index 000000000000..a738ed34d259
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupPolicyTests/SetProtectionPolicyTests.json
@@ -0,0 +1,385 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resources?$filter=resourceType%20eq%20'Microsoft.Backup/BackupVault'&$top=100&api-version=2013-03-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYWNrdXAvQmFja3VwVmF1bHQnJiR0b3A9MTAwJmFwaS12ZXJzaW9uPTIwMTMtMDMtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "4d61126f-fae5-44ad-9ff2-d2511734a3d5-2015-08-14 09:25:07Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"name\": \"backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/hydrarecording/providers/Microsoft.Backup/BackupVault/hydrarecordingrn\",\r\n \"name\": \"hydrarecordingrn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/pragrawa-rg/providers/Microsoft.Backup/BackupVault/pragrawa-rg01\",\r\n \"name\": \"pragrawa-rg01\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "710"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14995"
+ ],
+ "x-ms-request-id": [
+ "9e581fad-4946-4366-97e5-c4596b0fb89b"
+ ],
+ "x-ms-correlation-request-id": [
+ "9e581fad-4946-4366-97e5-c4596b0fb89b"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092508Z:9e581fad-4946-4366-97e5-c4596b0fb89b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:25:07 GMT"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "4d61126f-fae5-44ad-9ff2-d2511734a3d5-2015-08-14 09:25:07Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"resourceId\": 1774108198771083879,\r\n \"properties\": {\r\n \"storageType\": \"LocallyRedundant\",\r\n \"storageTypeState\": \"Locked\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "110"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "174514fa-0a6c-4681-87bd-b8758aa1cf72"
+ ],
+ "x-ms-client-request-id": [
+ "4d61126f-fae5-44ad-9ff2-d2511734a3d5-2015-08-14 09:25:07Z-PS",
+ "4d61126f-fae5-44ad-9ff2-d2511734a3d5-2015-08-14 09:25:07Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14994"
+ ],
+ "x-ms-correlation-request-id": [
+ "174514fa-0a6c-4681-87bd-b8758aa1cf72"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092510Z:174514fa-0a6c-4681-87bd-b8758aa1cf72"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:25:10 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcz9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "f5b31b04-609d-4c88-8cc7-835dcb3b920a-2015-08-14 09:25:10Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"DefaultPolicy\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 30,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": null,\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/DefaultPolicy\",\r\n \"name\": \"DefaultPolicy\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"Policy10\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/Policy10\",\r\n \"name\": \"Policy10\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"ProtPolicy01\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 4,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/ProtPolicy01\",\r\n \"name\": \"ProtPolicy01\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "2159"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "caab951a-739a-4cf5-b54e-30d48b298584"
+ ],
+ "x-ms-client-request-id": [
+ "f5b31b04-609d-4c88-8cc7-835dcb3b920a-2015-08-14 09:25:10Z-PS",
+ "f5b31b04-609d-4c88-8cc7-835dcb3b920a-2015-08-14 09:25:10Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14986"
+ ],
+ "x-ms-correlation-request-id": [
+ "caab951a-739a-4cf5-b54e-30d48b298584"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092513Z:caab951a-739a-4cf5-b54e-30d48b298584"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:25:12 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcz9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "06ee20b7-6c46-4c5a-bab3-c883e5e353ea-2015-08-14 09:25:13Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"DefaultPolicy\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 30,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": null,\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/DefaultPolicy\",\r\n \"name\": \"DefaultPolicy\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"Policy10\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/Policy10\",\r\n \"name\": \"Policy10\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"ProtPolicy01\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 4,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/ProtPolicy01\",\r\n \"name\": \"ProtPolicy01\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "2159"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "9e70dabb-1a3a-4a33-9f1f-932d0058e9b6"
+ ],
+ "x-ms-client-request-id": [
+ "06ee20b7-6c46-4c5a-bab3-c883e5e353ea-2015-08-14 09:25:13Z-PS",
+ "06ee20b7-6c46-4c5a-bab3-c883e5e353ea-2015-08-14 09:25:13Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14985"
+ ],
+ "x-ms-correlation-request-id": [
+ "9e70dabb-1a3a-4a33-9f1f-932d0058e9b6"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092514Z:9e70dabb-1a3a-4a33-9f1f-932d0058e9b6"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:25:14 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcz9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "06ee20b7-6c46-4c5a-bab3-c883e5e353ea-2015-08-14 09:25:13Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"DefaultPolicy\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-14T00:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 30,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": null,\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/DefaultPolicy\",\r\n \"name\": \"DefaultPolicy\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"Policy10\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/Policy10\",\r\n \"name\": \"Policy10\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"ProtPolicy01\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-12-06T19:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 4,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/ProtPolicy01\",\r\n \"name\": \"ProtPolicy01\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "2159"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "dd6227c9-f1b3-4bb4-9e27-020b2bc5cd53"
+ ],
+ "x-ms-client-request-id": [
+ "06ee20b7-6c46-4c5a-bab3-c883e5e353ea-2015-08-14 09:25:13Z-PS",
+ "06ee20b7-6c46-4c5a-bab3-c883e5e353ea-2015-08-14 09:25:13Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-correlation-request-id": [
+ "dd6227c9-f1b3-4bb4-9e27-020b2bc5cd53"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092515Z:dd6227c9-f1b3-4bb4-9e27-020b2bc5cd53"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:25:15 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/Policy10?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcy9Qb2xpY3kxMD9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"policyName\": \"policy09-new\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": [],\r\n \"scheduleRunTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": \"Days\"\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n \"Monday\"\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-06-13T20:30:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": \"Weeks\"\r\n }\r\n }\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Content-Length": [
+ "780"
+ ],
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "06ee20b7-6c46-4c5a-bab3-c883e5e353ea-2015-08-14 09:25:13Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"00000000-0000-0000-0000-000000000000\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "4dfeb940-ffb5-43a5-a94a-da58b7beae94"
+ ],
+ "x-ms-client-request-id": [
+ "06ee20b7-6c46-4c5a-bab3-c883e5e353ea-2015-08-14 09:25:13Z-PS",
+ "06ee20b7-6c46-4c5a-bab3-c883e5e353ea-2015-08-14 09:25:13Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "999999"
+ ],
+ "x-ms-correlation-request-id": [
+ "4dfeb940-ffb5-43a5-a94a-da58b7beae94"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T092517Z:4dfeb940-ffb5-43a5-a94a-da58b7beae94"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 09:25:16 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.AzureBackupScenarioTests/AzureBackupEndToEndTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupScenarioTests/AzureBackupEndToEndTests.json
new file mode 100644
index 000000000000..0b167f79fa2e
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupScenarioTests/AzureBackupEndToEndTests.json
@@ -0,0 +1,7221 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n }\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {}\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "122"
+ ],
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "c7eae836-c6c6-42a5-94fc-63e1bdd111ca-2015-08-17 05:38:30Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"location\": \"southeastasia\",\r\n \"name\": \"backuprn\",\r\n \"etag\": \"231a484e-8cf6-421c-86d5-145bbdae0714\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "344"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "d587b98a-cd0a-49ae-867f-5cf20f19d228"
+ ],
+ "x-ms-client-request-id": [
+ "c7eae836-c6c6-42a5-94fc-63e1bdd111ca-2015-08-17 05:38:30Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "d587b98a-cd0a-49ae-867f-5cf20f19d228"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053834Z:d587b98a-cd0a-49ae-867f-5cf20f19d228"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:38:33 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "c7eae836-c6c6-42a5-94fc-63e1bdd111ca-2015-08-17 05:38:30Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"resourceId\": 8806790160982730560,\r\n \"properties\": {\r\n \"storageType\": \"GeoRedundant\",\r\n \"storageTypeState\": \"Locked\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "408b28fc-d767-4986-9762-999a3c44e479"
+ ],
+ "x-ms-client-request-id": [
+ "c7eae836-c6c6-42a5-94fc-63e1bdd111ca-2015-08-17 05:38:30Z-PS",
+ "c7eae836-c6c6-42a5-94fc-63e1bdd111ca-2015-08-17 05:38:30Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "408b28fc-d767-4986-9762-999a3c44e479"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053835Z:408b28fc-d767-4986-9762-999a3c44e479"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:38:35 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "3f5e4d0a-16d5-471a-80bf-557b9febd0f7-2015-08-17 05:38:35Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"resourceId\": 8806790160982730560,\r\n \"properties\": {\r\n \"storageType\": \"GeoRedundant\",\r\n \"storageTypeState\": \"Locked\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "454c9964-0c58-489d-b40c-f500e6ad40a6"
+ ],
+ "x-ms-client-request-id": [
+ "3f5e4d0a-16d5-471a-80bf-557b9febd0f7-2015-08-17 05:38:35Z-PS",
+ "3f5e4d0a-16d5-471a-80bf-557b9febd0f7-2015-08-17 05:38:35Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14990"
+ ],
+ "x-ms-correlation-request-id": [
+ "454c9964-0c58-489d-b40c-f500e6ad40a6"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053836Z:454c9964-0c58-489d-b40c-f500e6ad40a6"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:38:36 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resources?$filter=resourceType%20eq%20'Microsoft.Backup/BackupVault'&$top=100&api-version=2013-03-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYWNrdXAvQmFja3VwVmF1bHQnJiR0b3A9MTAwJmFwaS12ZXJzaW9uPTIwMTMtMDMtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "3f5e4d0a-16d5-471a-80bf-557b9febd0f7-2015-08-17 05:38:35Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"name\": \"backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/bugbash1\",\r\n \"name\": \"bugbash1\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/hydrarecording/providers/Microsoft.Backup/BackupVault/hydrarecordingrn\",\r\n \"name\": \"hydrarecordingrn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/pragrawa-rg/providers/Microsoft.Backup/BackupVault/pragrawa-rg01\",\r\n \"name\": \"pragrawa-rg01\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "936"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-request-id": [
+ "ff10e625-816d-4acd-a34f-6c0c4b37f3ad"
+ ],
+ "x-ms-correlation-request-id": [
+ "ff10e625-816d-4acd-a34f-6c0c4b37f3ad"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053835Z:ff10e625-816d-4acd-a34f-6c0c4b37f3ad"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:38:35 GMT"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resources?$filter=resourceType%20eq%20'Microsoft.Backup/BackupVault'&$top=100&api-version=2013-03-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlcz8kZmlsdGVyPXJlc291cmNlVHlwZSUyMGVxJTIwJ01pY3Jvc29mdC5CYWNrdXAvQmFja3VwVmF1bHQnJiR0b3A9MTAwJmFwaS12ZXJzaW9uPTIwMTMtMDMtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "be59b8c9-5b90-4afa-9757-178ef7a5b665-2015-08-17 06:33:38Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/bugbash1\",\r\n \"name\": \"bugbash1\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"southeastasia\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/hydrarecording/providers/Microsoft.Backup/BackupVault/hydrarecordingrn\",\r\n \"name\": \"hydrarecordingrn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n },\r\n {\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/pragrawa-rg/providers/Microsoft.Backup/BackupVault/pragrawa-rg01\",\r\n \"name\": \"pragrawa-rg01\",\r\n \"type\": \"Microsoft.Backup/BackupVault\",\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "710"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14998"
+ ],
+ "x-ms-request-id": [
+ "b3e9063b-a1ab-41e8-bf57-0a5dbbd9c604"
+ ],
+ "x-ms-correlation-request-id": [
+ "b3e9063b-a1ab-41e8-bf57-0a5dbbd9c604"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063338Z:b3e9063b-a1ab-41e8-bf57-0a5dbbd9c604"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:33:38 GMT"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers?api-version=2014-09-01&$filter=containerType%20eq%20'IaasVM'%20and%20friendlyName%20eq%20'hydrarecordvm'",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2NvbnRhaW5lcnM/YXBpLXZlcnNpb249MjAxNC0wOS0wMSYkZmlsdGVyPWNvbnRhaW5lclR5cGUlMjBlcSUyMCdJYWFzVk0nJTIwYW5kJTIwZnJpZW5kbHlOYW1lJTIwZXElMjAnaHlkcmFyZWNvcmR2bSc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5f8c984c-448a-432e-8d24-c93b7ee9bc24-2015-08-17 05:38:36Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"friendlyName\": \"hydrarecordvm\",\r\n \"status\": \"NotRegistered\",\r\n \"healthStatus\": \"Healthy\",\r\n \"containerType\": \"IaasVM\",\r\n \"parentContainerId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers/hydrarecordvm\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers/iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"name\": \"iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"type\": \"Microsoft.Backup/BackupVault/containers\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "609"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "8fb08551-691a-4b2e-bd2b-a5994a04053b"
+ ],
+ "x-ms-client-request-id": [
+ "5f8c984c-448a-432e-8d24-c93b7ee9bc24-2015-08-17 05:38:36Z-PS",
+ "5f8c984c-448a-432e-8d24-c93b7ee9bc24-2015-08-17 05:38:36Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14995"
+ ],
+ "x-ms-correlation-request-id": [
+ "8fb08551-691a-4b2e-bd2b-a5994a04053b"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053839Z:8fb08551-691a-4b2e-bd2b-a5994a04053b"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:38:38 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers?api-version=2014-09-01&$filter=containerType%20eq%20'IaasVM'%20and%20friendlyName%20eq%20'hydrarecordvm'",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2NvbnRhaW5lcnM/YXBpLXZlcnNpb249MjAxNC0wOS0wMSYkZmlsdGVyPWNvbnRhaW5lclR5cGUlMjBlcSUyMCdJYWFzVk0nJTIwYW5kJTIwZnJpZW5kbHlOYW1lJTIwZXElMjAnaHlkcmFyZWNvcmR2bSc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "77ca9218-56ef-4cab-ab19-c9bb9bb6b1c2-2015-08-17 05:39:18Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"friendlyName\": \"hydrarecordvm\",\r\n \"status\": \"Registered\",\r\n \"healthStatus\": \"Healthy\",\r\n \"containerType\": \"IaasVM\",\r\n \"parentContainerId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers/hydrarecordvm\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/containers/iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"name\": \"iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"type\": \"Microsoft.Backup/BackupVault/containers\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "606"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e0c9da71-63c4-4771-a3ae-e0206d444987"
+ ],
+ "x-ms-client-request-id": [
+ "77ca9218-56ef-4cab-ab19-c9bb9bb6b1c2-2015-08-17 05:39:18Z-PS",
+ "77ca9218-56ef-4cab-ab19-c9bb9bb6b1c2-2015-08-17 05:39:18Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14986"
+ ],
+ "x-ms-correlation-request-id": [
+ "e0c9da71-63c4-4771-a3ae-e0206d444987"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053920Z:e0c9da71-63c4-4771-a3ae-e0206d444987"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:20 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5f8c984c-448a-432e-8d24-c93b7ee9bc24-2015-08-17 05:38:36Z-PS"
+ ],
+ "x-ms-version": [
+ "2013-03-01"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"91ff343f-2e98-43b1-8583-10d266f612ab\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "7c7b18a4-5b20-4478-93c5-767e6b363a93"
+ ],
+ "x-ms-client-request-id": [
+ "5f8c984c-448a-432e-8d24-c93b7ee9bc24-2015-08-17 05:38:36Z-PS",
+ "5f8c984c-448a-432e-8d24-c93b7ee9bc24-2015-08-17 05:38:36Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "7c7b18a4-5b20-4478-93c5-767e6b363a93"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053840Z:7c7b18a4-5b20-4478-93c5-767e6b363a93"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:38:39 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/91ff343f-2e98-43b1-8583-10d266f612ab?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvOTFmZjM0M2YtMmU5OC00M2IxLTg1ODMtMTBkMjY2ZjYxMmFiP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5f8c984c-448a-432e-8d24-c93b7ee9bc24-2015-08-17 05:38:36Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": [\r\n \"ab512e84-eca4-4028-aecf-1477898b68d1\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e010b10e-aada-4d7d-bbfe-efaf54ca1eea"
+ ],
+ "x-ms-client-request-id": [
+ "5f8c984c-448a-432e-8d24-c93b7ee9bc24-2015-08-17 05:38:36Z-PS",
+ "5f8c984c-448a-432e-8d24-c93b7ee9bc24-2015-08-17 05:38:36Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14994"
+ ],
+ "x-ms-correlation-request-id": [
+ "e010b10e-aada-4d7d-bbfe-efaf54ca1eea"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053841Z:e010b10e-aada-4d7d-bbfe-efaf54ca1eea"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:38:41 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ab512e84-eca4-4028-aecf-1477898b68d1?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYWI1MTJlODQtZWNhNC00MDI4LWFlY2YtMTQ3Nzg5OGI2OGQxP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5f8c984c-448a-432e-8d24-c93b7ee9bc24-2015-08-17 05:38:36Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:38:40.2028251Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:00:01.7361731\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ab512e84-eca4-4028-aecf-1477898b68d1\",\r\n \"name\": \"ab512e84-eca4-4028-aecf-1477898b68d1\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "681"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "93b6f6f9-ef7b-4103-833b-0bec04df2c10"
+ ],
+ "x-ms-client-request-id": [
+ "5f8c984c-448a-432e-8d24-c93b7ee9bc24-2015-08-17 05:38:36Z-PS",
+ "5f8c984c-448a-432e-8d24-c93b7ee9bc24-2015-08-17 05:38:36Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14993"
+ ],
+ "x-ms-correlation-request-id": [
+ "93b6f6f9-ef7b-4103-833b-0bec04df2c10"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053841Z:93b6f6f9-ef7b-4103-833b-0bec04df2c10"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:38:41 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ab512e84-eca4-4028-aecf-1477898b68d1?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYWI1MTJlODQtZWNhNC00MDI4LWFlY2YtMTQ3Nzg5OGI2OGQxP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "8df79974-954f-4a5e-9a3c-db67de1225d0-2015-08-17 05:38:42Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:38:40.2028251Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:00:02.5563104\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ab512e84-eca4-4028-aecf-1477898b68d1\",\r\n \"name\": \"ab512e84-eca4-4028-aecf-1477898b68d1\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "681"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "35ff3e56-54b0-481f-a274-71d6f972a56a"
+ ],
+ "x-ms-client-request-id": [
+ "8df79974-954f-4a5e-9a3c-db67de1225d0-2015-08-17 05:38:42Z-PS",
+ "8df79974-954f-4a5e-9a3c-db67de1225d0-2015-08-17 05:38:42Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "35ff3e56-54b0-481f-a274-71d6f972a56a"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053842Z:35ff3e56-54b0-481f-a274-71d6f972a56a"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:38:42 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ab512e84-eca4-4028-aecf-1477898b68d1?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYWI1MTJlODQtZWNhNC00MDI4LWFlY2YtMTQ3Nzg5OGI2OGQxP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "8df79974-954f-4a5e-9a3c-db67de1225d0-2015-08-17 05:38:42Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T05:38:40.2028251Z\",\r\n \"endTimestamp\": \"2015-08-17T05:39:01.8413768Z\",\r\n \"duration\": \"00:00:21.6385517\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ab512e84-eca4-4028-aecf-1477898b68d1\",\r\n \"name\": \"ab512e84-eca4-4028-aecf-1477898b68d1\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "12ff5068-d0ad-4dd2-a0f4-9910357ee10e"
+ ],
+ "x-ms-client-request-id": [
+ "8df79974-954f-4a5e-9a3c-db67de1225d0-2015-08-17 05:38:42Z-PS",
+ "8df79974-954f-4a5e-9a3c-db67de1225d0-2015-08-17 05:38:42Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-correlation-request-id": [
+ "12ff5068-d0ad-4dd2-a0f4-9910357ee10e"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053913Z:12ff5068-d0ad-4dd2-a0f4-9910357ee10e"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:12 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ab512e84-eca4-4028-aecf-1477898b68d1?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYWI1MTJlODQtZWNhNC00MDI4LWFlY2YtMTQ3Nzg5OGI2OGQxP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "8df79974-954f-4a5e-9a3c-db67de1225d0-2015-08-17 05:38:42Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T05:38:40.2028251Z\",\r\n \"endTimestamp\": \"2015-08-17T05:39:01.8413768Z\",\r\n \"duration\": \"00:00:21.6385517\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ab512e84-eca4-4028-aecf-1477898b68d1\",\r\n \"name\": \"ab512e84-eca4-4028-aecf-1477898b68d1\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "fea3880b-acf1-44d6-8bfe-8efb2d6cc621"
+ ],
+ "x-ms-client-request-id": [
+ "8df79974-954f-4a5e-9a3c-db67de1225d0-2015-08-17 05:38:42Z-PS",
+ "8df79974-954f-4a5e-9a3c-db67de1225d0-2015-08-17 05:38:42Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14990"
+ ],
+ "x-ms-correlation-request-id": [
+ "fea3880b-acf1-44d6-8bfe-8efb2d6cc621"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053914Z:fea3880b-acf1-44d6-8bfe-8efb2d6cc621"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:14 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ab512e84-eca4-4028-aecf-1477898b68d1?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYWI1MTJlODQtZWNhNC00MDI4LWFlY2YtMTQ3Nzg5OGI2OGQxP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "f2ad7f83-c865-4c9f-8fac-dcbaad10aa96-2015-08-17 05:39:14Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Register\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T05:38:40.2028251Z\",\r\n \"endTimestamp\": \"2015-08-17T05:39:01.8413768Z\",\r\n \"duration\": \"00:00:21.6385517\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ab512e84-eca4-4028-aecf-1477898b68d1\",\r\n \"name\": \"ab512e84-eca4-4028-aecf-1477898b68d1\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "b56397cd-09cf-4df3-8c35-49240028724a"
+ ],
+ "x-ms-client-request-id": [
+ "f2ad7f83-c865-4c9f-8fac-dcbaad10aa96-2015-08-17 05:39:14Z-PS",
+ "f2ad7f83-c865-4c9f-8fac-dcbaad10aa96-2015-08-17 05:39:14Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14989"
+ ],
+ "x-ms-correlation-request-id": [
+ "b56397cd-09cf-4df3-8c35-49240028724a"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053915Z:b56397cd-09cf-4df3-8c35-49240028724a"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:14 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcz9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "859aaabb-4140-4945-9ffa-7e9292021d47-2015-08-17 05:39:15Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"DefaultPolicy\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-08-17T05:00:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-17T05:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 30,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": null,\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/DefaultPolicy\",\r\n \"name\": \"DefaultPolicy\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "670"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "ca0008d5-b031-4876-883a-2f1977308f1d"
+ ],
+ "x-ms-client-request-id": [
+ "859aaabb-4140-4945-9ffa-7e9292021d47-2015-08-17 05:39:15Z-PS",
+ "859aaabb-4140-4945-9ffa-7e9292021d47-2015-08-17 05:39:15Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14988"
+ ],
+ "x-ms-correlation-request-id": [
+ "ca0008d5-b031-4876-883a-2f1977308f1d"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053916Z:ca0008d5-b031-4876-883a-2f1977308f1d"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:15 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcz9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "859aaabb-4140-4945-9ffa-7e9292021d47-2015-08-17 05:39:15Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"e2epolicy1\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-08-17T10:00:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-17T10:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-08-17T10:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": {\r\n \"RetentionScheduleType\": 1,\r\n \"RetentionScheduleDaily\": {\r\n \"DaysOfTheMonth\": [\r\n {\r\n \"Date\": 10,\r\n \"IsLast\": false\r\n }\r\n ]\r\n },\r\n \"RetentionScheduleWeekly\": null,\r\n \"RetentionTimes\": [\r\n \"2015-08-17T10:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": 3\r\n }\r\n },\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/e2epolicy1\",\r\n \"name\": \"e2epolicy1\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"DefaultPolicy\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-08-17T05:00:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-17T05:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 30,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": null,\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/DefaultPolicy\",\r\n \"name\": \"DefaultPolicy\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1636"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "cd1e339b-d487-4e58-97c2-e55fd4fd8ed8"
+ ],
+ "x-ms-client-request-id": [
+ "859aaabb-4140-4945-9ffa-7e9292021d47-2015-08-17 05:39:15Z-PS",
+ "859aaabb-4140-4945-9ffa-7e9292021d47-2015-08-17 05:39:15Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14987"
+ ],
+ "x-ms-correlation-request-id": [
+ "cd1e339b-d487-4e58-97c2-e55fd4fd8ed8"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053918Z:cd1e339b-d487-4e58-97c2-e55fd4fd8ed8"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:17 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcz9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "7c1e6e86-65b5-4061-ae9f-2d07d61eb51d-2015-08-17 06:33:30Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"e2epolicy1\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-08-17T10:00:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-17T10:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n 1\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-08-17T10:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": 2\r\n }\r\n },\r\n \"MonthlySchedule\": {\r\n \"RetentionScheduleType\": 1,\r\n \"RetentionScheduleDaily\": {\r\n \"DaysOfTheMonth\": [\r\n {\r\n \"Date\": 10,\r\n \"IsLast\": false\r\n }\r\n ]\r\n },\r\n \"RetentionScheduleWeekly\": null,\r\n \"RetentionTimes\": [\r\n \"2015-08-17T10:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": 3\r\n }\r\n },\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/e2epolicy1\",\r\n \"name\": \"e2epolicy1\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n },\r\n {\r\n \"properties\": {\r\n \"workloadType\": \"IaasVM\",\r\n \"policyName\": \"DefaultPolicy\",\r\n \"backupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": null,\r\n \"scheduleRunTimes\": [\r\n \"2015-08-17T05:00:00\"\r\n ]\r\n },\r\n \"ltrRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-17T05:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 30,\r\n \"DurationType\": 1\r\n }\r\n },\r\n \"WeeklySchedule\": null,\r\n \"MonthlySchedule\": null,\r\n \"YearlySchedule\": null\r\n }\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/DefaultPolicy\",\r\n \"name\": \"DefaultPolicy\",\r\n \"type\": \"Microsoft.Backup/BackupVault/protectionPolicies\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1636"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "b01a697e-6f54-4219-b54f-50f14e01bc7d"
+ ],
+ "x-ms-client-request-id": [
+ "7c1e6e86-65b5-4061-ae9f-2d07d61eb51d-2015-08-17 06:33:30Z-PS",
+ "7c1e6e86-65b5-4061-ae9f-2d07d61eb51d-2015-08-17 06:33:30Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14948"
+ ],
+ "x-ms-correlation-request-id": [
+ "b01a697e-6f54-4219-b54f-50f14e01bc7d"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063331Z:b01a697e-6f54-4219-b54f-50f14e01bc7d"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:33:31 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/e2epolicy1?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcy9lMmVwb2xpY3kxP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"WorkloadType\": \"IaasVM\",\r\n \"PolicyName\": \"e2epolicy1\",\r\n \"BackupSchedule\": {\r\n \"backupType\": \"Full\",\r\n \"scheduleRun\": \"Daily\",\r\n \"scheduleRunDays\": [],\r\n \"scheduleRunTimes\": [\r\n \"2015-08-17T10:00:00\"\r\n ]\r\n },\r\n \"LTRRetentionPolicy\": {\r\n \"DailySchedule\": {\r\n \"RetentionTimes\": [\r\n \"2015-08-17T10:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 20,\r\n \"DurationType\": \"Days\"\r\n }\r\n },\r\n \"WeeklySchedule\": {\r\n \"DaysOfTheWeek\": [\r\n \"Monday\"\r\n ],\r\n \"RetentionTimes\": [\r\n \"2015-08-17T10:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": \"Weeks\"\r\n }\r\n },\r\n \"MonthlySchedule\": {\r\n \"RetentionScheduleType\": \"Daily\",\r\n \"RetentionScheduleDaily\": {\r\n \"DaysOfTheMonth\": [\r\n {\r\n \"Date\": 10,\r\n \"IsLast\": false\r\n }\r\n ]\r\n },\r\n \"RetentionTimes\": [\r\n \"2015-08-17T10:00:00\"\r\n ],\r\n \"CSMRetentionDuration\": {\r\n \"Count\": 10,\r\n \"DurationType\": \"Months\"\r\n }\r\n }\r\n }\r\n },\r\n \"PolicyName\": \"e2epolicy1\"\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Content-Length": [
+ "1282"
+ ],
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "859aaabb-4140-4945-9ffa-7e9292021d47-2015-08-17 05:39:15Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"00000000-0000-0000-0000-000000000000\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "98655805-9233-4b3d-bb86-e0d203e5815e"
+ ],
+ "x-ms-client-request-id": [
+ "859aaabb-4140-4945-9ffa-7e9292021d47-2015-08-17 05:39:15Z-PS",
+ "859aaabb-4140-4945-9ffa-7e9292021d47-2015-08-17 05:39:15Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1197"
+ ],
+ "x-ms-correlation-request-id": [
+ "98655805-9233-4b3d-bb86-e0d203e5815e"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053917Z:98655805-9233-4b3d-bb86-e0d203e5815e"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:16 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/protectedItems/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3Byb3RlY3RlZEl0ZW1zL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"policyId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/e2epolicy1\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Content-Length": [
+ "201"
+ ],
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "e510dae4-ad9c-4643-8721-b9bc8323edb4-2015-08-17 05:39:20Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"0c6ec4f1-3c02-499d-b0ce-03c4b6d19df0\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "b0378e0d-5a53-4da9-a48b-223472b79f64"
+ ],
+ "x-ms-client-request-id": [
+ "e510dae4-ad9c-4643-8721-b9bc8323edb4-2015-08-17 05:39:20Z-PS",
+ "e510dae4-ad9c-4643-8721-b9bc8323edb4-2015-08-17 05:39:20Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1196"
+ ],
+ "x-ms-correlation-request-id": [
+ "b0378e0d-5a53-4da9-a48b-223472b79f64"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053922Z:b0378e0d-5a53-4da9-a48b-223472b79f64"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:21 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/0c6ec4f1-3c02-499d-b0ce-03c4b6d19df0?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvMGM2ZWM0ZjEtM2MwMi00OTlkLWIwY2UtMDNjNGI2ZDE5ZGYwP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "e510dae4-ad9c-4643-8721-b9bc8323edb4-2015-08-17 05:39:20Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": [\r\n \"45afe37c-d57f-45b6-bfd6-df4e176ec149\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "7551607e-a758-4515-909d-0b202aab699e"
+ ],
+ "x-ms-client-request-id": [
+ "e510dae4-ad9c-4643-8721-b9bc8323edb4-2015-08-17 05:39:20Z-PS",
+ "e510dae4-ad9c-4643-8721-b9bc8323edb4-2015-08-17 05:39:20Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14985"
+ ],
+ "x-ms-correlation-request-id": [
+ "7551607e-a758-4515-909d-0b202aab699e"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053923Z:7551607e-a758-4515-909d-0b202aab699e"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:23 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/0c6ec4f1-3c02-499d-b0ce-03c4b6d19df0?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvMGM2ZWM0ZjEtM2MwMi00OTlkLWIwY2UtMDNjNGI2ZDE5ZGYwP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "e510dae4-ad9c-4643-8721-b9bc8323edb4-2015-08-17 05:39:20Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": [\r\n \"45afe37c-d57f-45b6-bfd6-df4e176ec149\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "faec9259-5775-48d1-9fe0-c8be6465aeeb"
+ ],
+ "x-ms-client-request-id": [
+ "e510dae4-ad9c-4643-8721-b9bc8323edb4-2015-08-17 05:39:20Z-PS",
+ "e510dae4-ad9c-4643-8721-b9bc8323edb4-2015-08-17 05:39:20Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-correlation-request-id": [
+ "faec9259-5775-48d1-9fe0-c8be6465aeeb"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053933Z:faec9259-5775-48d1-9fe0-c8be6465aeeb"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:33 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/45afe37c-d57f-45b6-bfd6-df4e176ec149?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvNDVhZmUzN2MtZDU3Zi00NWI2LWJmZDYtZGY0ZTE3NmVjMTQ5P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "e510dae4-ad9c-4643-8721-b9bc8323edb4-2015-08-17 05:39:20Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Policy Name\": \"e2epolicy1\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"ConfigureBackup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T05:39:22.1988856Z\",\r\n \"endTimestamp\": \"2015-08-17T05:39:24.9825351Z\",\r\n \"duration\": \"00:00:02.7836495\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/45afe37c-d57f-45b6-bfd6-df4e176ec149\",\r\n \"name\": \"45afe37c-d57f-45b6-bfd6-df4e176ec149\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "690"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "58e8146e-1e1d-4784-b7e2-6d6edc5f628f"
+ ],
+ "x-ms-client-request-id": [
+ "e510dae4-ad9c-4643-8721-b9bc8323edb4-2015-08-17 05:39:20Z-PS",
+ "e510dae4-ad9c-4643-8721-b9bc8323edb4-2015-08-17 05:39:20Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14983"
+ ],
+ "x-ms-correlation-request-id": [
+ "58e8146e-1e1d-4784-b7e2-6d6edc5f628f"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053934Z:58e8146e-1e1d-4784-b7e2-6d6edc5f628f"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:34 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/45afe37c-d57f-45b6-bfd6-df4e176ec149?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvNDVhZmUzN2MtZDU3Zi00NWI2LWJmZDYtZGY0ZTE3NmVjMTQ5P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "8568e34c-5c72-42e0-b5f3-8c64ca6a192f-2015-08-17 05:39:35Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Policy Name\": \"e2epolicy1\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"ConfigureBackup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T05:39:22.1988856Z\",\r\n \"endTimestamp\": \"2015-08-17T05:39:24.9825351Z\",\r\n \"duration\": \"00:00:02.7836495\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/45afe37c-d57f-45b6-bfd6-df4e176ec149\",\r\n \"name\": \"45afe37c-d57f-45b6-bfd6-df4e176ec149\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "690"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "06347f01-5e8e-4d79-aa08-31a9c4b9c8b0"
+ ],
+ "x-ms-client-request-id": [
+ "8568e34c-5c72-42e0-b5f3-8c64ca6a192f-2015-08-17 05:39:35Z-PS",
+ "8568e34c-5c72-42e0-b5f3-8c64ca6a192f-2015-08-17 05:39:35Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14982"
+ ],
+ "x-ms-correlation-request-id": [
+ "06347f01-5e8e-4d79-aa08-31a9c4b9c8b0"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053936Z:06347f01-5e8e-4d79-aa08-31a9c4b9c8b0"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:36 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/45afe37c-d57f-45b6-bfd6-df4e176ec149?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvNDVhZmUzN2MtZDU3Zi00NWI2LWJmZDYtZGY0ZTE3NmVjMTQ5P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "8568e34c-5c72-42e0-b5f3-8c64ca6a192f-2015-08-17 05:39:35Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Policy Name\": \"e2epolicy1\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"ConfigureBackup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T05:39:22.1988856Z\",\r\n \"endTimestamp\": \"2015-08-17T05:39:24.9825351Z\",\r\n \"duration\": \"00:00:02.7836495\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/45afe37c-d57f-45b6-bfd6-df4e176ec149\",\r\n \"name\": \"45afe37c-d57f-45b6-bfd6-df4e176ec149\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "690"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "c8010b8e-2236-4180-9731-ddb5ed30d4f4"
+ ],
+ "x-ms-client-request-id": [
+ "8568e34c-5c72-42e0-b5f3-8c64ca6a192f-2015-08-17 05:39:35Z-PS",
+ "8568e34c-5c72-42e0-b5f3-8c64ca6a192f-2015-08-17 05:39:35Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "c8010b8e-2236-4180-9731-ddb5ed30d4f4"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053937Z:c8010b8e-2236-4180-9731-ddb5ed30d4f4"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:36 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/45afe37c-d57f-45b6-bfd6-df4e176ec149?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvNDVhZmUzN2MtZDU3Zi00NWI2LWJmZDYtZGY0ZTE3NmVjMTQ5P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "d8d3f4a5-354d-4706-8652-6f8aafb6f31f-2015-08-17 05:39:37Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Policy Name\": \"e2epolicy1\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"ConfigureBackup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T05:39:22.1988856Z\",\r\n \"endTimestamp\": \"2015-08-17T05:39:24.9825351Z\",\r\n \"duration\": \"00:00:02.7836495\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/45afe37c-d57f-45b6-bfd6-df4e176ec149\",\r\n \"name\": \"45afe37c-d57f-45b6-bfd6-df4e176ec149\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "690"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "04efb9f5-6e8c-4628-a2a6-0ed2eeadb537"
+ ],
+ "x-ms-client-request-id": [
+ "d8d3f4a5-354d-4706-8652-6f8aafb6f31f-2015-08-17 05:39:37Z-PS",
+ "d8d3f4a5-354d-4706-8652-6f8aafb6f31f-2015-08-17 05:39:37Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14980"
+ ],
+ "x-ms-correlation-request-id": [
+ "04efb9f5-6e8c-4628-a2a6-0ed2eeadb537"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053937Z:04efb9f5-6e8c-4628-a2a6-0ed2eeadb537"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:37 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectedItems?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3RlZEl0ZW1zP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "fb9d1c50-75bc-4dec-92a6-d5f254088525-2015-08-17 05:39:38Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"protectionStatus\": \"IRPending\",\r\n \"protectionPolicyId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/protectedItems/e2epolicy1\",\r\n \"policyInconsistent\": true,\r\n \"recoveryPointsCount\": 0,\r\n \"lastRecoveryPoint\": null,\r\n \"lastBackupTime\": null,\r\n \"lastBackupStatus\": null,\r\n \"lastBackupJobId\": null,\r\n \"friendlyName\": \"hydrarecordvm\",\r\n \"itemType\": \"IaasVM\",\r\n \"status\": \"Protected\",\r\n \"containerId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/protectedItems/iaasvmcontainer;hydrarecordvm;hydrarecordvm\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/protectedItems/iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"name\": \"iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"type\": \"Microsoft.Backup/BackupVault/registeredContainers/protectedItems\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1175"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "f54612e3-c591-4744-b4f2-1c3556f609c6"
+ ],
+ "x-ms-client-request-id": [
+ "fb9d1c50-75bc-4dec-92a6-d5f254088525-2015-08-17 05:39:38Z-PS",
+ "fb9d1c50-75bc-4dec-92a6-d5f254088525-2015-08-17 05:39:38Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14979"
+ ],
+ "x-ms-correlation-request-id": [
+ "f54612e3-c591-4744-b4f2-1c3556f609c6"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053938Z:f54612e3-c591-4744-b4f2-1c3556f609c6"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:38 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectedItems?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3RlZEl0ZW1zP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "e457a268-7b2c-4012-910e-e1c8332b7f32-2015-08-17 06:06:12Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"protectionStatus\": \"Protected\",\r\n \"protectionPolicyId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/protectedItems/e2epolicy1\",\r\n \"policyInconsistent\": true,\r\n \"recoveryPointsCount\": 1,\r\n \"lastRecoveryPoint\": \"2015-08-17T05:52:42.1219964Z\",\r\n \"lastBackupTime\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"lastBackupStatus\": \"Completed\",\r\n \"lastBackupJobId\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"friendlyName\": \"hydrarecordvm\",\r\n \"itemType\": \"IaasVM\",\r\n \"status\": \"Protected\",\r\n \"containerId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/protectedItems/iaasvmcontainer;hydrarecordvm;hydrarecordvm\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/protectedItems/iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"name\": \"iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"type\": \"Microsoft.Backup/BackupVault/registeredContainers/protectedItems\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1268"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "216776ab-d270-46a0-9885-f0434fff7f21"
+ ],
+ "x-ms-client-request-id": [
+ "e457a268-7b2c-4012-910e-e1c8332b7f32-2015-08-17 06:06:12Z-PS",
+ "e457a268-7b2c-4012-910e-e1c8332b7f32-2015-08-17 06:06:12Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14986"
+ ],
+ "x-ms-correlation-request-id": [
+ "216776ab-d270-46a0-9885-f0434fff7f21"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060612Z:216776ab-d270-46a0-9885-f0434fff7f21"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:06:12 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/items?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2l0ZW1zP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "fb9d1c50-75bc-4dec-92a6-d5f254088525-2015-08-17 05:39:38Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"friendlyName\": \"hydrarecordvm\",\r\n \"itemType\": \"IaasVM\",\r\n \"status\": \"Protected\",\r\n \"containerId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/items/iaasvmcontainer;hydrarecordvm;hydrarecordvm\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/items/iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"name\": \"iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"type\": \"Microsoft.Backup/BackupVault/registeredContainers/items\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "735"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "46115179-2690-41e5-99e9-758db058a954"
+ ],
+ "x-ms-client-request-id": [
+ "fb9d1c50-75bc-4dec-92a6-d5f254088525-2015-08-17 05:39:38Z-PS",
+ "fb9d1c50-75bc-4dec-92a6-d5f254088525-2015-08-17 05:39:38Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14978"
+ ],
+ "x-ms-correlation-request-id": [
+ "46115179-2690-41e5-99e9-758db058a954"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T053939Z:46115179-2690-41e5-99e9-758db058a954"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:39:38 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/items?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2l0ZW1zP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "e457a268-7b2c-4012-910e-e1c8332b7f32-2015-08-17 06:06:12Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"friendlyName\": \"hydrarecordvm\",\r\n \"itemType\": \"IaasVM\",\r\n \"status\": \"Protected\",\r\n \"containerId\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/items/iaasvmcontainer;hydrarecordvm;hydrarecordvm\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/items/iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"name\": \"iaasvmcontainer;hydrarecordvm;hydrarecordvm\",\r\n \"type\": \"Microsoft.Backup/BackupVault/registeredContainers/items\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "735"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "b66dca61-02e9-499d-a281-e3043af8dc27"
+ ],
+ "x-ms-client-request-id": [
+ "e457a268-7b2c-4012-910e-e1c8332b7f32-2015-08-17 06:06:12Z-PS",
+ "e457a268-7b2c-4012-910e-e1c8332b7f32-2015-08-17 06:06:12Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14985"
+ ],
+ "x-ms-correlation-request-id": [
+ "b66dca61-02e9-499d-a281-e3043af8dc27"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060613Z:b66dca61-02e9-499d-a281-e3043af8dc27"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:06:12 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/protectedItems/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/backup?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3Byb3RlY3RlZEl0ZW1zL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL2JhY2t1cD9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "83803a2d-8917-4860-ae49-15332b536430-2015-08-17 05:50:40Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"10028400-4e78-43ee-b5cc-5d116824d98b\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "051d6c91-8bec-4972-ac51-52ad7d983e9d"
+ ],
+ "x-ms-client-request-id": [
+ "83803a2d-8917-4860-ae49-15332b536430-2015-08-17 05:50:40Z-PS",
+ "83803a2d-8917-4860-ae49-15332b536430-2015-08-17 05:50:40Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "051d6c91-8bec-4972-ac51-52ad7d983e9d"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055043Z:051d6c91-8bec-4972-ac51-52ad7d983e9d"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:50:43 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/10028400-4e78-43ee-b5cc-5d116824d98b?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvMTAwMjg0MDAtNGU3OC00M2VlLWI1Y2MtNWQxMTY4MjRkOThiP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "83803a2d-8917-4860-ae49-15332b536430-2015-08-17 05:50:40Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "69"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "27554f0f-1d97-4385-9bc8-3eb1ff75078a"
+ ],
+ "x-ms-client-request-id": [
+ "83803a2d-8917-4860-ae49-15332b536430-2015-08-17 05:50:40Z-PS",
+ "83803a2d-8917-4860-ae49-15332b536430-2015-08-17 05:50:40Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14986"
+ ],
+ "x-ms-correlation-request-id": [
+ "27554f0f-1d97-4385-9bc8-3eb1ff75078a"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055044Z:27554f0f-1d97-4385-9bc8-3eb1ff75078a"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:50:44 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/10028400-4e78-43ee-b5cc-5d116824d98b?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvMTAwMjg0MDAtNGU3OC00M2VlLWI1Y2MtNWQxMTY4MjRkOThiP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "83803a2d-8917-4860-ae49-15332b536430-2015-08-17 05:50:40Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": [\r\n \"bddc4349-d0b9-4ff0-9951-cba389d3a246\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "261905dc-8693-45e6-8ae9-627d3d6cc621"
+ ],
+ "x-ms-client-request-id": [
+ "83803a2d-8917-4860-ae49-15332b536430-2015-08-17 05:50:40Z-PS",
+ "83803a2d-8917-4860-ae49-15332b536430-2015-08-17 05:50:40Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14985"
+ ],
+ "x-ms-correlation-request-id": [
+ "261905dc-8693-45e6-8ae9-627d3d6cc621"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055055Z:261905dc-8693-45e6-8ae9-627d3d6cc621"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:50:54 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "83803a2d-8917-4860-ae49-15332b536430-2015-08-17 05:50:40Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"NotStarted\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:00:13.1691257\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "919"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a963f352-e5c1-4702-acc8-77353fb1bc35"
+ ],
+ "x-ms-client-request-id": [
+ "83803a2d-8917-4860-ae49-15332b536430-2015-08-17 05:50:40Z-PS",
+ "83803a2d-8917-4860-ae49-15332b536430-2015-08-17 05:50:40Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-correlation-request-id": [
+ "a963f352-e5c1-4702-acc8-77353fb1bc35"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055056Z:a963f352-e5c1-4702-acc8-77353fb1bc35"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:50:56 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"NotStarted\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:00:14.3197154\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "919"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "ea79fbc6-6761-4f71-b9fe-cb520061dce6"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14983"
+ ],
+ "x-ms-correlation-request-id": [
+ "ea79fbc6-6761-4f71-b9fe-cb520061dce6"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055057Z:ea79fbc6-6761-4f71-b9fe-cb520061dce6"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:50:57 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"NotStarted\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:01:08.9100505\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "919"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e291f7f7-bee0-45a3-9368-b33c1afe1d68"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14977"
+ ],
+ "x-ms-correlation-request-id": [
+ "e291f7f7-bee0-45a3-9368-b33c1afe1d68"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055152Z:e291f7f7-bee0-45a3-9368-b33c1afe1d68"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:51:52 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"NotStarted\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:01:40.1794383\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "919"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "6e298c46-68de-44bd-9049-91a0f73dfa6b"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14976"
+ ],
+ "x-ms-correlation-request-id": [
+ "6e298c46-68de-44bd-9049-91a0f73dfa6b"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055223Z:6e298c46-68de-44bd-9049-91a0f73dfa6b"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:52:23 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"NotStarted\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:02:11.6156434\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "919"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "49fa3b62-85c4-4805-8936-d9248fcfbd02"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14975"
+ ],
+ "x-ms-correlation-request-id": [
+ "49fa3b62-85c4-4805-8936-d9248fcfbd02"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055255Z:49fa3b62-85c4-4805-8936-d9248fcfbd02"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:52:54 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"NotStarted\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:02:43.0200962\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "919"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "dd0aa899-88ea-44dd-8b7c-83f69edc2475"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14974"
+ ],
+ "x-ms-correlation-request-id": [
+ "dd0aa899-88ea-44dd-8b7c-83f69edc2475"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055326Z:dd0aa899-88ea-44dd-8b7c-83f69edc2475"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:53:26 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"NotStarted\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:03:14.2460878\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "919"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "1a57a003-7f71-4423-b4ee-4b4f80009fd5"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14973"
+ ],
+ "x-ms-correlation-request-id": [
+ "1a57a003-7f71-4423-b4ee-4b4f80009fd5"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055357Z:1a57a003-7f71-4423-b4ee-4b4f80009fd5"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:53:57 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"NotStarted\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:03:45.4978621\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1076"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "8218bf55-2d08-42ee-ad0c-b0e4be071f11"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14972"
+ ],
+ "x-ms-correlation-request-id": [
+ "8218bf55-2d08-42ee-ad0c-b0e4be071f11"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055429Z:8218bf55-2d08-42ee-ad0c-b0e4be071f11"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:54:29 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:04:16.7880435\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "188e8a7a-7a55-4f64-9b1f-6126b4af3be7"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14971"
+ ],
+ "x-ms-correlation-request-id": [
+ "188e8a7a-7a55-4f64-9b1f-6126b4af3be7"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055500Z:188e8a7a-7a55-4f64-9b1f-6126b4af3be7"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:55:00 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:04:48.1650150\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "8adcb97a-fb5e-44c7-ac56-01e3db67840a"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14970"
+ ],
+ "x-ms-correlation-request-id": [
+ "8adcb97a-fb5e-44c7-ac56-01e3db67840a"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055531Z:8adcb97a-fb5e-44c7-ac56-01e3db67840a"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:55:31 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:05:19.4660333\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "ceb162cf-0607-47be-a90d-1a3cc2b37591"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14969"
+ ],
+ "x-ms-correlation-request-id": [
+ "ceb162cf-0607-47be-a90d-1a3cc2b37591"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055603Z:ceb162cf-0607-47be-a90d-1a3cc2b37591"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:56:02 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:05:50.6921638\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "3ab06e37-20fc-4ae1-9925-60e8fe759907"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14968"
+ ],
+ "x-ms-correlation-request-id": [
+ "3ab06e37-20fc-4ae1-9925-60e8fe759907"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055634Z:3ab06e37-20fc-4ae1-9925-60e8fe759907"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:56:34 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:06:21.9077274\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a20d2b33-265c-4d62-ae86-e801fcd462f8"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14967"
+ ],
+ "x-ms-correlation-request-id": [
+ "a20d2b33-265c-4d62-ae86-e801fcd462f8"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055705Z:a20d2b33-265c-4d62-ae86-e801fcd462f8"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:57:04 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:06:53.1576542\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "12e4c743-bfe1-412e-a5d9-7e455f0e9274"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14966"
+ ],
+ "x-ms-correlation-request-id": [
+ "12e4c743-bfe1-412e-a5d9-7e455f0e9274"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055736Z:12e4c743-bfe1-412e-a5d9-7e455f0e9274"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:57:36 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:07:24.4859149\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "85d98b50-de1c-4d9a-9d0f-9603dfb09c63"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14965"
+ ],
+ "x-ms-correlation-request-id": [
+ "85d98b50-de1c-4d9a-9d0f-9603dfb09c63"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055808Z:85d98b50-de1c-4d9a-9d0f-9603dfb09c63"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:58:08 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:07:55.8863365\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "8461ca01-a922-4fca-9be8-530e5696c262"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14964"
+ ],
+ "x-ms-correlation-request-id": [
+ "8461ca01-a922-4fca-9be8-530e5696c262"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055839Z:8461ca01-a922-4fca-9be8-530e5696c262"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:58:39 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:08:27.2375978\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "800c21e8-39e7-40c0-a0c9-823b5cd36be6"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14963"
+ ],
+ "x-ms-correlation-request-id": [
+ "800c21e8-39e7-40c0-a0c9-823b5cd36be6"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055911Z:800c21e8-39e7-40c0-a0c9-823b5cd36be6"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:59:10 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:08:58.6740147\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "904cad53-ead1-4ff8-b350-2401af2ffd23"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14962"
+ ],
+ "x-ms-correlation-request-id": [
+ "904cad53-ead1-4ff8-b350-2401af2ffd23"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T055942Z:904cad53-ead1-4ff8-b350-2401af2ffd23"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 05:59:42 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:09:29.9420354\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "4787bb21-cf8b-47c8-8897-b8e6e699981f"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14961"
+ ],
+ "x-ms-correlation-request-id": [
+ "4787bb21-cf8b-47c8-8897-b8e6e699981f"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060014Z:4787bb21-cf8b-47c8-8897-b8e6e699981f"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:00:14 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:10:02.0283870\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "fc9f376d-e41d-4262-910e-bb50b6215ca2"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14960"
+ ],
+ "x-ms-correlation-request-id": [
+ "fc9f376d-e41d-4262-910e-bb50b6215ca2"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060045Z:fc9f376d-e41d-4262-910e-bb50b6215ca2"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:00:45 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:10:33.5538363\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "7123a1cb-c8fb-4320-a380-e7b3fd122ed6"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14959"
+ ],
+ "x-ms-correlation-request-id": [
+ "7123a1cb-c8fb-4320-a380-e7b3fd122ed6"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060117Z:7123a1cb-c8fb-4320-a380-e7b3fd122ed6"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:01:16 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:11:04.8426978\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "7ffea935-c2b8-4655-879d-b7e27a6f2af0"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14958"
+ ],
+ "x-ms-correlation-request-id": [
+ "7ffea935-c2b8-4655-879d-b7e27a6f2af0"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060148Z:7ffea935-c2b8-4655-879d-b7e27a6f2af0"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:01:48 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:11:36.2310118\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "c29a4290-d647-4df7-8e94-0748a295446f"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14957"
+ ],
+ "x-ms-correlation-request-id": [
+ "c29a4290-d647-4df7-8e94-0748a295446f"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060219Z:c29a4290-d647-4df7-8e94-0748a295446f"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:02:19 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:12:07.5517918\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a4e40669-1b9a-4f2c-987e-a8e38d7432d5"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14956"
+ ],
+ "x-ms-correlation-request-id": [
+ "a4e40669-1b9a-4f2c-987e-a8e38d7432d5"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060251Z:a4e40669-1b9a-4f2c-987e-a8e38d7432d5"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:02:50 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:12:38.8991188\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "319c436f-6a8f-4a72-be1d-d25043d61b9e"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14955"
+ ],
+ "x-ms-correlation-request-id": [
+ "319c436f-6a8f-4a72-be1d-d25043d61b9e"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060322Z:319c436f-6a8f-4a72-be1d-d25043d61b9e"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:03:22 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:13:10.2871440\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e633a203-2079-4f94-8f8f-f3f20b31902f"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14954"
+ ],
+ "x-ms-correlation-request-id": [
+ "e633a203-2079-4f94-8f8f-f3f20b31902f"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060353Z:e633a203-2079-4f94-8f8f-f3f20b31902f"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:03:53 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:13:41.6188257\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "ed009648-e2ae-4dbd-9383-bc58caf24685"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14953"
+ ],
+ "x-ms-correlation-request-id": [
+ "ed009648-e2ae-4dbd-9383-bc58caf24685"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060425Z:ed009648-e2ae-4dbd-9383-bc58caf24685"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:04:24 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:14:17.9585248\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1075"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "2d1596ef-de68-4087-9128-30118928d106"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14952"
+ ],
+ "x-ms-correlation-request-id": [
+ "2d1596ef-de68-4087-9128-30118928d106"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060501Z:2d1596ef-de68-4087-9128-30118928d106"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:05:00 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Backup Size\": \"10678 MB\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2015-08-17T06:05:39.4249697Z\",\r\n \"duration\": \"00:14:55.6905084\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "0fe01e2b-4734-4f14-9f72-08fae05c2072"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14989"
+ ],
+ "x-ms-correlation-request-id": [
+ "0fe01e2b-4734-4f14-9f72-08fae05c2072"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060609Z:0fe01e2b-4734-4f14-9f72-08fae05c2072"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:06:09 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Backup Size\": \"10678 MB\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2015-08-17T06:05:39.4249697Z\",\r\n \"duration\": \"00:14:55.6905084\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "bb363f31-9696-4de2-b87e-faa1829c0f09"
+ ],
+ "x-ms-client-request-id": [
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS",
+ "5043e368-41da-4594-883a-47aaaaab6741-2015-08-17 05:50:57Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14988"
+ ],
+ "x-ms-correlation-request-id": [
+ "bb363f31-9696-4de2-b87e-faa1829c0f09"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060610Z:bb363f31-9696-4de2-b87e-faa1829c0f09"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:06:09 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvYmRkYzQzNDktZDBiOS00ZmYwLTk5NTEtY2JhMzg5ZDNhMjQ2P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "1f2b66ec-4312-4bfb-8521-41d40a1f4967-2015-08-17 06:06:11Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"Completed\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Backup Size\": \"10678 MB\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": \"The following set of VSS writers failed during snapshot - System Writer,ASR Writer,WMI Writer,Registry Writer,Shadow Copy Optimization Writer,COM+ REGDB Writer\",\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T05:50:43.7344613Z\",\r\n \"endTimestamp\": \"2015-08-17T06:05:39.4249697Z\",\r\n \"duration\": \"00:14:55.6905084\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"name\": \"bddc4349-d0b9-4ff0-9951-cba389d3a246\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "1106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "2572b3cc-96fe-4584-af29-7d12c7d6e6db"
+ ],
+ "x-ms-client-request-id": [
+ "1f2b66ec-4312-4bfb-8521-41d40a1f4967-2015-08-17 06:06:11Z-PS",
+ "1f2b66ec-4312-4bfb-8521-41d40a1f4967-2015-08-17 06:06:11Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14987"
+ ],
+ "x-ms-correlation-request-id": [
+ "2572b3cc-96fe-4584-af29-7d12c7d6e6db"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060611Z:2572b3cc-96fe-4584-af29-7d12c7d6e6db"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:06:11 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/protectedItems/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/recoveryPoints?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3Byb3RlY3RlZEl0ZW1zL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3JlY292ZXJ5UG9pbnRzP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "aa2c3cce-73e3-4a83-9c53-e7d0723af30d-2015-08-17 06:06:13Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"recoveryPointType\": \"FileSystemConsistent\",\r\n \"recoveryPointTime\": \"2015-08-17T05:52:42.1219964Z\",\r\n \"recoveryPointAdditionalInfo\": \"\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/protectedItems/iaasvmcontainer;hydrarecordvm;hydrarecordvm/recoveryPoints/15783492110316\",\r\n \"name\": \"15783492110316\",\r\n \"type\": \"Microsoft.Backup/BackupVault/registeredContainers/protectedItems/recoveryPoints\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "569"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "7434871e-ec32-41cb-97a6-7ae2c2cd7a9d"
+ ],
+ "x-ms-client-request-id": [
+ "aa2c3cce-73e3-4a83-9c53-e7d0723af30d-2015-08-17 06:06:13Z-PS",
+ "aa2c3cce-73e3-4a83-9c53-e7d0723af30d-2015-08-17 06:06:13Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-correlation-request-id": [
+ "7434871e-ec32-41cb-97a6-7ae2c2cd7a9d"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060614Z:7434871e-ec32-41cb-97a6-7ae2c2cd7a9d"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:06:14 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/protectedItems/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/recoveryPoints/15783492110316/restore?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3Byb3RlY3RlZEl0ZW1zL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3JlY292ZXJ5UG9pbnRzLzE1NzgzNDkyMTEwMzE2L3Jlc3RvcmU/YXBpLXZlcnNpb249MjAxNC0wOS0wMQ==",
+ "RequestMethod": "POST",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"typeOfRecovery\": \"RestoreDisks\",\r\n \"recoveryDSTypeSpecificInputs\": \"{\\\"AffinityGroup\\\":\\\"\\\",\\\"CloudServiceName\\\":\\\"\\\",\\\"ContinueProtection\\\":false,\\\"CreateNewCloudService\\\":false,\\\"InputStorageAccountName\\\":\\\"e2estore\\\",\\\"Region\\\":\\\"southeastasia\\\",\\\"SubNetName\\\":null,\\\"TargetVNet\\\":null,\\\"VmName\\\":\\\"\\\"}\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Content-Length": [
+ "344"
+ ],
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "c748a14b-5d72-4243-8bf4-8ce62188fc0b-2015-08-17 06:06:14Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"1ea8ad6f-2d56-444f-976c-8232287f17f1\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "9ce06d32-b50f-40e4-8a5e-1145125aff07"
+ ],
+ "x-ms-client-request-id": [
+ "c748a14b-5d72-4243-8bf4-8ce62188fc0b-2015-08-17 06:06:14Z-PS",
+ "c748a14b-5d72-4243-8bf4-8ce62188fc0b-2015-08-17 06:06:14Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1196"
+ ],
+ "x-ms-correlation-request-id": [
+ "9ce06d32-b50f-40e4-8a5e-1145125aff07"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060615Z:9ce06d32-b50f-40e4-8a5e-1145125aff07"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:06:15 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/1ea8ad6f-2d56-444f-976c-8232287f17f1?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvMWVhOGFkNmYtMmQ1Ni00NDRmLTk3NmMtODIzMjI4N2YxN2YxP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "c748a14b-5d72-4243-8bf4-8ce62188fc0b-2015-08-17 06:06:14Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": []\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "69"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "1782a3b5-5c8f-4af4-b5b0-94810697bdfa"
+ ],
+ "x-ms-client-request-id": [
+ "c748a14b-5d72-4243-8bf4-8ce62188fc0b-2015-08-17 06:06:14Z-PS",
+ "c748a14b-5d72-4243-8bf4-8ce62188fc0b-2015-08-17 06:06:14Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14983"
+ ],
+ "x-ms-correlation-request-id": [
+ "1782a3b5-5c8f-4af4-b5b0-94810697bdfa"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060616Z:1782a3b5-5c8f-4af4-b5b0-94810697bdfa"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:06:16 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/1ea8ad6f-2d56-444f-976c-8232287f17f1?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvMWVhOGFkNmYtMmQ1Ni00NDRmLTk3NmMtODIzMjI4N2YxN2YxP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "c748a14b-5d72-4243-8bf4-8ce62188fc0b-2015-08-17 06:06:14Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": [\r\n \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "852a61b4-4126-424c-bb59-6c4615e520d4"
+ ],
+ "x-ms-client-request-id": [
+ "c748a14b-5d72-4243-8bf4-8ce62188fc0b-2015-08-17 06:06:14Z-PS",
+ "c748a14b-5d72-4243-8bf4-8ce62188fc0b-2015-08-17 06:06:14Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14982"
+ ],
+ "x-ms-correlation-request-id": [
+ "852a61b4-4126-424c-bb59-6c4615e520d4"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060627Z:852a61b4-4126-424c-bb59-6c4615e520d4"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:06:27 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "c748a14b-5d72-4243-8bf4-8ce62188fc0b-2015-08-17 06:06:14Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:00:13.2618203\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "5b003d1a-6819-44c3-820e-0bf954fe90cf"
+ ],
+ "x-ms-client-request-id": [
+ "c748a14b-5d72-4243-8bf4-8ce62188fc0b-2015-08-17 06:06:14Z-PS",
+ "c748a14b-5d72-4243-8bf4-8ce62188fc0b-2015-08-17 06:06:14Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "5b003d1a-6819-44c3-820e-0bf954fe90cf"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060628Z:5b003d1a-6819-44c3-820e-0bf954fe90cf"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:06:28 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:00:14.3946026\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a7513923-1812-4a62-a91b-e4ef42612e32"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14980"
+ ],
+ "x-ms-correlation-request-id": [
+ "a7513923-1812-4a62-a91b-e4ef42612e32"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060630Z:a7513923-1812-4a62-a91b-e4ef42612e32"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:06:30 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:01:06.4626910\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "69942c46-071e-4062-966a-c3770fc2250b"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14989"
+ ],
+ "x-ms-correlation-request-id": [
+ "69942c46-071e-4062-966a-c3770fc2250b"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060722Z:69942c46-071e-4062-966a-c3770fc2250b"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:07:22 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:01:37.6875076\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "c9be5c95-62eb-4aed-afa5-8469a9e4ea0a"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14988"
+ ],
+ "x-ms-correlation-request-id": [
+ "c9be5c95-62eb-4aed-afa5-8469a9e4ea0a"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060753Z:c9be5c95-62eb-4aed-afa5-8469a9e4ea0a"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:07:53 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:02:08.8777955\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "b8762111-dc45-416d-95e7-357853d2845d"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14987"
+ ],
+ "x-ms-correlation-request-id": [
+ "b8762111-dc45-416d-95e7-357853d2845d"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060824Z:b8762111-dc45-416d-95e7-357853d2845d"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:08:24 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:02:40.2400185\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "6f346400-8cb8-49ae-a368-ee286907c60d"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14986"
+ ],
+ "x-ms-correlation-request-id": [
+ "6f346400-8cb8-49ae-a368-ee286907c60d"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060855Z:6f346400-8cb8-49ae-a368-ee286907c60d"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:08:55 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:03:11.5131664\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "fa565f82-bf4d-4428-8e09-3b2940b63fcf"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14985"
+ ],
+ "x-ms-correlation-request-id": [
+ "fa565f82-bf4d-4428-8e09-3b2940b63fcf"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060927Z:fa565f82-bf4d-4428-8e09-3b2940b63fcf"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:09:27 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:03:42.8074135\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "dd3866ae-fc4d-4740-b92e-771b59439b07"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14984"
+ ],
+ "x-ms-correlation-request-id": [
+ "dd3866ae-fc4d-4740-b92e-771b59439b07"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T060958Z:dd3866ae-fc4d-4740-b92e-771b59439b07"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:09:58 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:04:14.0451842\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "5e960fd7-4cda-484c-b12a-19184fbd6c65"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14983"
+ ],
+ "x-ms-correlation-request-id": [
+ "5e960fd7-4cda-484c-b12a-19184fbd6c65"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061029Z:5e960fd7-4cda-484c-b12a-19184fbd6c65"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:10:29 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:04:45.4148417\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "14b905f4-4de2-49f6-b51e-ba79d4bf3299"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14982"
+ ],
+ "x-ms-correlation-request-id": [
+ "14b905f4-4de2-49f6-b51e-ba79d4bf3299"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061101Z:14b905f4-4de2-49f6-b51e-ba79d4bf3299"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:11:01 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:05:16.6967242\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "777a0cdf-f406-441c-ba12-1006dde90c78"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "777a0cdf-f406-441c-ba12-1006dde90c78"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061132Z:777a0cdf-f406-441c-ba12-1006dde90c78"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:11:32 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:05:47.9546662\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "2239b42d-5d5c-4d3b-8585-e56f237c6237"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14980"
+ ],
+ "x-ms-correlation-request-id": [
+ "2239b42d-5d5c-4d3b-8585-e56f237c6237"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061203Z:2239b42d-5d5c-4d3b-8585-e56f237c6237"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:12:03 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:06:19.1585811\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "6d7f7468-18c2-483c-9ce9-459a51dd308b"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14979"
+ ],
+ "x-ms-correlation-request-id": [
+ "6d7f7468-18c2-483c-9ce9-459a51dd308b"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061234Z:6d7f7468-18c2-483c-9ce9-459a51dd308b"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:12:34 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:06:50.3964636\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "82d6bc95-bde7-4c67-9ec3-f7da2d371cc5"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14978"
+ ],
+ "x-ms-correlation-request-id": [
+ "82d6bc95-bde7-4c67-9ec3-f7da2d371cc5"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061306Z:82d6bc95-bde7-4c67-9ec3-f7da2d371cc5"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:13:05 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:07:21.6250840\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "fe1e6e12-fcd1-4582-ab3c-87aaf5a8b3ae"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14977"
+ ],
+ "x-ms-correlation-request-id": [
+ "fe1e6e12-fcd1-4582-ab3c-87aaf5a8b3ae"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061337Z:fe1e6e12-fcd1-4582-ab3c-87aaf5a8b3ae"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:13:36 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:07:52.9547000\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "b6c92a5d-f96a-4c3b-ad00-b3e8ee07e39d"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14976"
+ ],
+ "x-ms-correlation-request-id": [
+ "b6c92a5d-f96a-4c3b-ad00-b3e8ee07e39d"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061408Z:b6c92a5d-f96a-4c3b-ad00-b3e8ee07e39d"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:14:08 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:08:24.1434922\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "51408c8e-94b8-49e6-9738-d661fda2c1d6"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14975"
+ ],
+ "x-ms-correlation-request-id": [
+ "51408c8e-94b8-49e6-9738-d661fda2c1d6"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061439Z:51408c8e-94b8-49e6-9738-d661fda2c1d6"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:14:39 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:08:57.4990907\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "eb1fdf23-5d0c-41c1-bf76-5dff9d2d52e7"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "eb1fdf23-5d0c-41c1-bf76-5dff9d2d52e7"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061513Z:eb1fdf23-5d0c-41c1-bf76-5dff9d2d52e7"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:15:12 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:10:01.8232840\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "bf21b20c-657f-4bde-b6c2-5ba26486d406"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14951"
+ ],
+ "x-ms-correlation-request-id": [
+ "bf21b20c-657f-4bde-b6c2-5ba26486d406"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061617Z:bf21b20c-657f-4bde-b6c2-5ba26486d406"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:16:17 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:11:07.7888674\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "4ef9fb2c-8eee-4d40-9068-bf785ae48866"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14982"
+ ],
+ "x-ms-correlation-request-id": [
+ "4ef9fb2c-8eee-4d40-9068-bf785ae48866"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061723Z:4ef9fb2c-8eee-4d40-9068-bf785ae48866"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:17:22 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:11:39.0306993\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "24ecc055-85d8-474c-abb3-5c131b012707"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14981"
+ ],
+ "x-ms-correlation-request-id": [
+ "24ecc055-85d8-474c-abb3-5c131b012707"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061754Z:24ecc055-85d8-474c-abb3-5c131b012707"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:17:54 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:12:10.3043175\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "6748c3f8-ccb2-41b2-969c-6f1e849bfddd"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14980"
+ ],
+ "x-ms-correlation-request-id": [
+ "6748c3f8-ccb2-41b2-969c-6f1e849bfddd"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061826Z:6748c3f8-ccb2-41b2-969c-6f1e849bfddd"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:18:25 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:12:41.5153240\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "688"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "37172358-38a5-47f9-a14d-557735ec429a"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14979"
+ ],
+ "x-ms-correlation-request-id": [
+ "37172358-38a5-47f9-a14d-557735ec429a"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061857Z:37172358-38a5-47f9-a14d-557735ec429a"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:18:57 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\",\r\n \"Config Blob Name\": \"configfa41ebb9-c48f-4abc-9f6e-816036c1857c.xml\",\r\n \"Config Blob Container Name\": \"vhd41552a8ac89b49f59e3196e4919abda1\",\r\n \"Config Blob Uri\": \"https://e2estore.blob.core.windows.net/vhd41552a8ac89b49f59e3196e4919abda1/configfa41ebb9-c48f-4abc-9f6e-816036c1857c.xml\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2015-08-17T06:18:59.251298Z\",\r\n \"duration\": \"00:12:43.3717186\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "971"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "de2b0468-f3ac-4ff6-a7fe-ad8a500bfa0e"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14978"
+ ],
+ "x-ms-correlation-request-id": [
+ "de2b0468-f3ac-4ff6-a7fe-ad8a500bfa0e"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061928Z:de2b0468-f3ac-4ff6-a7fe-ad8a500bfa0e"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:19:28 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\",\r\n \"Config Blob Name\": \"configfa41ebb9-c48f-4abc-9f6e-816036c1857c.xml\",\r\n \"Config Blob Container Name\": \"vhd41552a8ac89b49f59e3196e4919abda1\",\r\n \"Config Blob Uri\": \"https://e2estore.blob.core.windows.net/vhd41552a8ac89b49f59e3196e4919abda1/configfa41ebb9-c48f-4abc-9f6e-816036c1857c.xml\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2015-08-17T06:18:59.251298Z\",\r\n \"duration\": \"00:12:43.3717186\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "971"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "ec5ddadb-e7b0-4ab0-855d-35e3d535f8ea"
+ ],
+ "x-ms-client-request-id": [
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS",
+ "179a4c1f-0b1d-4d29-a8e9-fea89e9d73a2-2015-08-17 06:06:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14977"
+ ],
+ "x-ms-correlation-request-id": [
+ "ec5ddadb-e7b0-4ab0-855d-35e3d535f8ea"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061929Z:ec5ddadb-e7b0-4ab0-855d-35e3d535f8ea"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:19:28 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZmE0MWViYjktYzQ4Zi00YWJjLTlmNmUtODE2MDM2YzE4NTdjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "779d471f-36d5-4c40-ad62-65854b00272d-2015-08-17 06:19:29Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"e2estore\",\r\n \"Config Blob Name\": \"configfa41ebb9-c48f-4abc-9f6e-816036c1857c.xml\",\r\n \"Config Blob Container Name\": \"vhd41552a8ac89b49f59e3196e4919abda1\",\r\n \"Config Blob Uri\": \"https://e2estore.blob.core.windows.net/vhd41552a8ac89b49f59e3196e4919abda1/configfa41ebb9-c48f-4abc-9f6e-816036c1857c.xml\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T06:06:15.8795794Z\",\r\n \"endTimestamp\": \"2015-08-17T06:18:59.251298Z\",\r\n \"duration\": \"00:12:43.3717186\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"name\": \"fa41ebb9-c48f-4abc-9f6e-816036c1857c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "971"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "56a4928a-7f33-4ae6-a7a8-a6b9ec832f2b"
+ ],
+ "x-ms-client-request-id": [
+ "779d471f-36d5-4c40-ad62-65854b00272d-2015-08-17 06:19:29Z-PS",
+ "779d471f-36d5-4c40-ad62-65854b00272d-2015-08-17 06:19:29Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14976"
+ ],
+ "x-ms-correlation-request-id": [
+ "56a4928a-7f33-4ae6-a7a8-a6b9ec832f2b"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T061929Z:56a4928a-7f33-4ae6-a7a8-a6b9ec832f2b"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:19:29 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/protectedItems/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3Byb3RlY3RlZEl0ZW1zL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "2d18bab2-ca72-4f2b-b2cf-0eaec5348b80-2015-08-17 06:30:30Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"4a024c33-9452-41f9-9eaa-7e17c816c5d9\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "3fa8a801-0561-4e15-9fbc-49a4ed6b3824"
+ ],
+ "x-ms-client-request-id": [
+ "2d18bab2-ca72-4f2b-b2cf-0eaec5348b80-2015-08-17 06:30:30Z-PS",
+ "2d18bab2-ca72-4f2b-b2cf-0eaec5348b80-2015-08-17 06:30:30Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1196"
+ ],
+ "x-ms-correlation-request-id": [
+ "3fa8a801-0561-4e15-9fbc-49a4ed6b3824"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063033Z:3fa8a801-0561-4e15-9fbc-49a4ed6b3824"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:30:32 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/4a024c33-9452-41f9-9eaa-7e17c816c5d9?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvNGEwMjRjMzMtOTQ1Mi00MWY5LTllYWEtN2UxN2M4MTZjNWQ5P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "2d18bab2-ca72-4f2b-b2cf-0eaec5348b80-2015-08-17 06:30:30Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": [\r\n \"ee0edebf-6274-4914-88ea-32c14f413b75\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a56a40c0-dcf9-424b-a2f1-1d080821cb74"
+ ],
+ "x-ms-client-request-id": [
+ "2d18bab2-ca72-4f2b-b2cf-0eaec5348b80-2015-08-17 06:30:30Z-PS",
+ "2d18bab2-ca72-4f2b-b2cf-0eaec5348b80-2015-08-17 06:30:30Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14970"
+ ],
+ "x-ms-correlation-request-id": [
+ "a56a40c0-dcf9-424b-a2f1-1d080821cb74"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063033Z:a56a40c0-dcf9-424b-a2f1-1d080821cb74"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:30:32 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/4a024c33-9452-41f9-9eaa-7e17c816c5d9?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvNGEwMjRjMzMtOTQ1Mi00MWY5LTllYWEtN2UxN2M4MTZjNWQ5P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "2d18bab2-ca72-4f2b-b2cf-0eaec5348b80-2015-08-17 06:30:30Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": [\r\n \"ee0edebf-6274-4914-88ea-32c14f413b75\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a6947c81-6790-4607-a96d-9125a1955513"
+ ],
+ "x-ms-client-request-id": [
+ "2d18bab2-ca72-4f2b-b2cf-0eaec5348b80-2015-08-17 06:30:30Z-PS",
+ "2d18bab2-ca72-4f2b-b2cf-0eaec5348b80-2015-08-17 06:30:30Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14969"
+ ],
+ "x-ms-correlation-request-id": [
+ "a6947c81-6790-4607-a96d-9125a1955513"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063044Z:a6947c81-6790-4607-a96d-9125a1955513"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:30:44 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ee0edebf-6274-4914-88ea-32c14f413b75?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZWUwZWRlYmYtNjI3NC00OTE0LTg4ZWEtMzJjMTRmNDEzYjc1P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "2d18bab2-ca72-4f2b-b2cf-0eaec5348b80-2015-08-17 06:30:30Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Delete Backup Data\": \"True\",\r\n \"Number of Recovery Points\": \"2\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Unprotect\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T06:30:33.1421967Z\",\r\n \"endTimestamp\": \"2015-08-17T06:30:34.1118857Z\",\r\n \"duration\": \"00:00:00.9696890\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ee0edebf-6274-4914-88ea-32c14f413b75\",\r\n \"name\": \"ee0edebf-6274-4914-88ea-32c14f413b75\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "717"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "5fd7edcc-4efe-4c9b-bcef-69de2c15b0f6"
+ ],
+ "x-ms-client-request-id": [
+ "2d18bab2-ca72-4f2b-b2cf-0eaec5348b80-2015-08-17 06:30:30Z-PS",
+ "2d18bab2-ca72-4f2b-b2cf-0eaec5348b80-2015-08-17 06:30:30Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14968"
+ ],
+ "x-ms-correlation-request-id": [
+ "5fd7edcc-4efe-4c9b-bcef-69de2c15b0f6"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063045Z:5fd7edcc-4efe-4c9b-bcef-69de2c15b0f6"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:30:44 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ee0edebf-6274-4914-88ea-32c14f413b75?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZWUwZWRlYmYtNjI3NC00OTE0LTg4ZWEtMzJjMTRmNDEzYjc1P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "c24e4640-fb6f-48f9-99c9-90559d5e3d22-2015-08-17 06:30:45Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Delete Backup Data\": \"True\",\r\n \"Number of Recovery Points\": \"2\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Unprotect\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T06:30:33.1421967Z\",\r\n \"endTimestamp\": \"2015-08-17T06:30:34.1118857Z\",\r\n \"duration\": \"00:00:00.9696890\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ee0edebf-6274-4914-88ea-32c14f413b75\",\r\n \"name\": \"ee0edebf-6274-4914-88ea-32c14f413b75\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "717"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "79cadee7-c45c-4c08-983a-73a745f380b6"
+ ],
+ "x-ms-client-request-id": [
+ "c24e4640-fb6f-48f9-99c9-90559d5e3d22-2015-08-17 06:30:45Z-PS",
+ "c24e4640-fb6f-48f9-99c9-90559d5e3d22-2015-08-17 06:30:45Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14967"
+ ],
+ "x-ms-correlation-request-id": [
+ "79cadee7-c45c-4c08-983a-73a745f380b6"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063046Z:79cadee7-c45c-4c08-983a-73a745f380b6"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:30:46 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ee0edebf-6274-4914-88ea-32c14f413b75?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZWUwZWRlYmYtNjI3NC00OTE0LTg4ZWEtMzJjMTRmNDEzYjc1P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "c24e4640-fb6f-48f9-99c9-90559d5e3d22-2015-08-17 06:30:45Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Delete Backup Data\": \"True\",\r\n \"Number of Recovery Points\": \"2\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Unprotect\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T06:30:33.1421967Z\",\r\n \"endTimestamp\": \"2015-08-17T06:30:34.1118857Z\",\r\n \"duration\": \"00:00:00.9696890\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ee0edebf-6274-4914-88ea-32c14f413b75\",\r\n \"name\": \"ee0edebf-6274-4914-88ea-32c14f413b75\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "717"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "81ae0932-610d-45c5-ad53-c371f15bdb6d"
+ ],
+ "x-ms-client-request-id": [
+ "c24e4640-fb6f-48f9-99c9-90559d5e3d22-2015-08-17 06:30:45Z-PS",
+ "c24e4640-fb6f-48f9-99c9-90559d5e3d22-2015-08-17 06:30:45Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14966"
+ ],
+ "x-ms-correlation-request-id": [
+ "81ae0932-610d-45c5-ad53-c371f15bdb6d"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063047Z:81ae0932-610d-45c5-ad53-c371f15bdb6d"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:30:46 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ee0edebf-6274-4914-88ea-32c14f413b75?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvZWUwZWRlYmYtNjI3NC00OTE0LTg4ZWEtMzJjMTRmNDEzYjc1P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "c895e2be-32ef-4810-aaa8-def4348e4822-2015-08-17 06:30:47Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Delete Backup Data\": \"True\",\r\n \"Number of Recovery Points\": \"2\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Unprotect\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T06:30:33.1421967Z\",\r\n \"endTimestamp\": \"2015-08-17T06:30:34.1118857Z\",\r\n \"duration\": \"00:00:00.9696890\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/ee0edebf-6274-4914-88ea-32c14f413b75\",\r\n \"name\": \"ee0edebf-6274-4914-88ea-32c14f413b75\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "717"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e6e51649-f4d4-4f5e-9862-13dcf43cae2b"
+ ],
+ "x-ms-client-request-id": [
+ "c895e2be-32ef-4810-aaa8-def4348e4822-2015-08-17 06:30:47Z-PS",
+ "c895e2be-32ef-4810-aaa8-def4348e4822-2015-08-17 06:30:47Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14965"
+ ],
+ "x-ms-correlation-request-id": [
+ "e6e51649-f4d4-4f5e-9862-13dcf43cae2b"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063048Z:e6e51649-f4d4-4f5e-9862-13dcf43cae2b"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:30:48 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "dcaac873-c130-4902-8f5e-c6c9c492874f-2015-08-17 06:30:48Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"3fe49d16-484a-4c05-a625-3cc4234083c4\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e3f58f95-d142-432b-aa3e-f1a7561fbd9a"
+ ],
+ "x-ms-client-request-id": [
+ "dcaac873-c130-4902-8f5e-c6c9c492874f-2015-08-17 06:30:48Z-PS",
+ "dcaac873-c130-4902-8f5e-c6c9c492874f-2015-08-17 06:30:48Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1195"
+ ],
+ "x-ms-correlation-request-id": [
+ "e3f58f95-d142-432b-aa3e-f1a7561fbd9a"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063049Z:e3f58f95-d142-432b-aa3e-f1a7561fbd9a"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:30:49 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/3fe49d16-484a-4c05-a625-3cc4234083c4?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvM2ZlNDlkMTYtNDg0YS00YzA1LWE2MjUtM2NjNDIzNDA4M2M0P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "dcaac873-c130-4902-8f5e-c6c9c492874f-2015-08-17 06:30:48Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"InProgress\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": [\r\n \"9b1370cb-db81-4472-8aec-5e601159fd55\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "107"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "03836e2f-b733-4bb6-abc7-b796edbf9e3f"
+ ],
+ "x-ms-client-request-id": [
+ "dcaac873-c130-4902-8f5e-c6c9c492874f-2015-08-17 06:30:48Z-PS",
+ "dcaac873-c130-4902-8f5e-c6c9c492874f-2015-08-17 06:30:48Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14964"
+ ],
+ "x-ms-correlation-request-id": [
+ "03836e2f-b733-4bb6-abc7-b796edbf9e3f"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063050Z:03836e2f-b733-4bb6-abc7-b796edbf9e3f"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:30:49 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvOWIxMzcwY2ItZGI4MS00NDcyLThhZWMtNWU2MDExNTlmZDU1P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "dcaac873-c130-4902-8f5e-c6c9c492874f-2015-08-17 06:30:48Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:30:49.1889281Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:00:02.0134483\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"name\": \"9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "683"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "08303a76-8559-4b92-81ea-54c12e8152e3"
+ ],
+ "x-ms-client-request-id": [
+ "dcaac873-c130-4902-8f5e-c6c9c492874f-2015-08-17 06:30:48Z-PS",
+ "dcaac873-c130-4902-8f5e-c6c9c492874f-2015-08-17 06:30:48Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14963"
+ ],
+ "x-ms-correlation-request-id": [
+ "08303a76-8559-4b92-81ea-54c12e8152e3"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063051Z:08303a76-8559-4b92-81ea-54c12e8152e3"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:30:50 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvOWIxMzcwY2ItZGI4MS00NDcyLThhZWMtNWU2MDExNTlmZDU1P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:30:49.1889281Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:00:02.8220840\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"name\": \"9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "683"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "63a5eeb5-8e8c-4ce8-96a3-507528e5536a"
+ ],
+ "x-ms-client-request-id": [
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS",
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14961"
+ ],
+ "x-ms-correlation-request-id": [
+ "63a5eeb5-8e8c-4ce8-96a3-507528e5536a"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063051Z:63a5eeb5-8e8c-4ce8-96a3-507528e5536a"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:30:51 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvOWIxMzcwY2ItZGI4MS00NDcyLThhZWMtNWU2MDExNTlmZDU1P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:30:49.1889281Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:00:33.6646275\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"name\": \"9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "683"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "d14e8a14-cd7b-4a4c-a015-b9bffaf06a8d"
+ ],
+ "x-ms-client-request-id": [
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS",
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14958"
+ ],
+ "x-ms-correlation-request-id": [
+ "d14e8a14-cd7b-4a4c-a015-b9bffaf06a8d"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063122Z:d14e8a14-cd7b-4a4c-a015-b9bffaf06a8d"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:31:22 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvOWIxMzcwY2ItZGI4MS00NDcyLThhZWMtNWU2MDExNTlmZDU1P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:30:49.1889281Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:01:04.4930686\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"name\": \"9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "683"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "7434927e-0432-4f28-a139-5d2e504a08f9"
+ ],
+ "x-ms-client-request-id": [
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS",
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14957"
+ ],
+ "x-ms-correlation-request-id": [
+ "7434927e-0432-4f28-a139-5d2e504a08f9"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063153Z:7434927e-0432-4f28-a139-5d2e504a08f9"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:31:53 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvOWIxMzcwY2ItZGI4MS00NDcyLThhZWMtNWU2MDExNTlmZDU1P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:30:49.1889281Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:01:35.3255512\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"name\": \"9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "683"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "4d802c74-60b5-4a21-8cc5-1d605c701c6d"
+ ],
+ "x-ms-client-request-id": [
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS",
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14956"
+ ],
+ "x-ms-correlation-request-id": [
+ "4d802c74-60b5-4a21-8cc5-1d605c701c6d"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063224Z:4d802c74-60b5-4a21-8cc5-1d605c701c6d"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:32:24 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvOWIxMzcwY2ItZGI4MS00NDcyLThhZWMtNWU2MDExNTlmZDU1P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-17T06:30:49.1889281Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:02:06.2148671\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"name\": \"9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "683"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "51ebee18-991d-493c-9bac-c28ccb8dcfa1"
+ ],
+ "x-ms-client-request-id": [
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS",
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14953"
+ ],
+ "x-ms-correlation-request-id": [
+ "51ebee18-991d-493c-9bac-c28ccb8dcfa1"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063255Z:51ebee18-991d-493c-9bac-c28ccb8dcfa1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:32:54 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvOWIxMzcwY2ItZGI4MS00NDcyLThhZWMtNWU2MDExNTlmZDU1P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T06:30:49.1889281Z\",\r\n \"endTimestamp\": \"2015-08-17T06:33:14.6671954Z\",\r\n \"duration\": \"00:02:25.4782673\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"name\": \"9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "690"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "4769f3d7-d995-4ec2-a771-0304e0c8cc2e"
+ ],
+ "x-ms-client-request-id": [
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS",
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14952"
+ ],
+ "x-ms-correlation-request-id": [
+ "4769f3d7-d995-4ec2-a771-0304e0c8cc2e"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063326Z:4769f3d7-d995-4ec2-a771-0304e0c8cc2e"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:33:26 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvOWIxMzcwY2ItZGI4MS00NDcyLThhZWMtNWU2MDExNTlmZDU1P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T06:30:49.1889281Z\",\r\n \"endTimestamp\": \"2015-08-17T06:33:14.6671954Z\",\r\n \"duration\": \"00:02:25.4782673\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"name\": \"9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "690"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "e017be24-e2f2-4012-958e-f75e47dd0130"
+ ],
+ "x-ms-client-request-id": [
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS",
+ "1ca058bd-6e30-481f-a905-35bad4cce451-2015-08-17 06:30:51Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14951"
+ ],
+ "x-ms-correlation-request-id": [
+ "e017be24-e2f2-4012-958e-f75e47dd0130"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063327Z:e017be24-e2f2-4012-958e-f75e47dd0130"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:33:26 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvOWIxMzcwY2ItZGI4MS00NDcyLThhZWMtNWU2MDExNTlmZDU1P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "56d5fcef-088c-4040-9f6b-4d4ee5f53013-2015-08-17 06:33:27Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\",\r\n \"Cloud Service\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"UnRegister\",\r\n \"status\": \"Completed\",\r\n \"startTimestamp\": \"2015-08-17T06:30:49.1889281Z\",\r\n \"endTimestamp\": \"2015-08-17T06:33:14.6671954Z\",\r\n \"duration\": \"00:02:25.4782673\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": null,\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"name\": \"9b1370cb-db81-4472-8aec-5e601159fd55\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "690"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "a4f594e9-e486-49a3-af60-b8df74b8019b"
+ ],
+ "x-ms-client-request-id": [
+ "56d5fcef-088c-4040-9f6b-4d4ee5f53013-2015-08-17 06:33:27Z-PS",
+ "56d5fcef-088c-4040-9f6b-4d4ee5f53013-2015-08-17 06:33:27Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14950"
+ ],
+ "x-ms-correlation-request-id": [
+ "a4f594e9-e486-49a3-af60-b8df74b8019b"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063330Z:a4f594e9-e486-49a3-af60-b8df74b8019b"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:33:29 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/protectionPolicies/e2epolicy1?api-version=2014-09-01",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3Byb3RlY3Rpb25Qb2xpY2llcy9lMmVwb2xpY3kxP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "7c1e6e86-65b5-4061-ae9f-2d07d61eb51d-2015-08-17 06:33:30Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "53ae9298-283f-4f9f-ba7b-73bc857e99d5"
+ ],
+ "x-ms-client-request-id": [
+ "7c1e6e86-65b5-4061-ae9f-2d07d61eb51d-2015-08-17 06:33:30Z-PS",
+ "7c1e6e86-65b5-4061-ae9f-2d07d61eb51d-2015-08-17 06:33:30Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1192"
+ ],
+ "x-ms-correlation-request-id": [
+ "53ae9298-283f-4f9f-ba7b-73bc857e99d5"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063333Z:53ae9298-283f-4f9f-ba7b-73bc857e99d5"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:33:32 GMT"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 204
+ },
+ {
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "1fc7e125-10c4-49c0-b86a-33b16dc07992-2015-08-17 06:33:33Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "23a727df-71b7-4be6-a1e4-1dec7e1e4af2"
+ ],
+ "x-ms-client-request-id": [
+ "1fc7e125-10c4-49c0-b86a-33b16dc07992-2015-08-17 06:33:33Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "23a727df-71b7-4be6-a1e4-1dec7e1e4af2"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150817T063338Z:23a727df-71b7-4be6-a1e4-1dec7e1e4af2"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Mon, 17 Aug 2015 06:33:38 GMT"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.AzureBackupVaultTests/AzureBackupVaultScenarioTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupVaultTests/AzureBackupVaultScenarioTests.json
index 32288e3c71c7..dbc0d19311a6 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupVaultTests/AzureBackupVaultScenarioTests.json
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.AzureBackupVaultTests/AzureBackupVaultScenarioTests.json
@@ -1,31 +1,31 @@
{
"Entries": [
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1?api-version=2015-03-15",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMT9hcGktdmVyc2lvbj0yMDE1LTAzLTE1",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
"RequestMethod": "PUT",
- "RequestBody": "{\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n}",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n }\r\n },\r\n \"location\": \"southeastasia\",\r\n \"tags\": {}\r\n}",
"RequestHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
],
"Content-Length": [
- "115"
+ "122"
],
"Accept-Language": [
"en-us"
],
"x-ms-client-request-id": [
- "8ccef70d-c423-4098-849c-0a1e1b75e2f5-2015-07-08 09:58:09Z-PS"
+ "ff97c9dd-5838-4ec9-802a-dc1f5f06a3bf-2015-08-16 19:16:03Z-PS"
],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
- "ResponseBody": "{\r\n \"location\": \"westus\",\r\n \"name\": \"backuprn1\",\r\n \"etag\": \"22a9ef4f-5bd9-48b5-bc4d-f564d529b597\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"ProvisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1\",\r\n \"type\": \"Microsoft.Backup/BackupVault\"\r\n}",
+ "ResponseBody": "{\r\n \"location\": \"southeastasia\",\r\n \"name\": \"backuprn\",\r\n \"etag\": \"c96c23d8-fd99-4ac0-bc94-b007c1df0da0\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\"\r\n}",
"ResponseHeaders": {
"Content-Length": [
- "339"
+ "344"
],
"Content-Type": [
"application/json"
@@ -37,10 +37,10 @@
"no-cache"
],
"x-ms-request-id": [
- "81d97ccb-5ad8-41d5-a9f3-a47af8d6216f"
+ "837530ba-5774-46b8-9c86-fff8c6d1c057"
],
"x-ms-client-request-id": [
- "8ccef70d-c423-4098-849c-0a1e1b75e2f5-2015-07-08 09:58:09Z-PS"
+ "ff97c9dd-5838-4ec9-802a-dc1f5f06a3bf-2015-08-16 19:16:03Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -49,26 +49,26 @@
"1199"
],
"x-ms-correlation-request-id": [
- "81d97ccb-5ad8-41d5-a9f3-a47af8d6216f"
+ "837530ba-5774-46b8-9c86-fff8c6d1c057"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150708T095812Z:81d97ccb-5ad8-41d5-a9f3-a47af8d6216f"
+ "CENTRALUS:20150816T191611Z:837530ba-5774-46b8-9c86-fff8c6d1c057"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 08 Jul 2015 09:58:12 GMT"
+ "Sun, 16 Aug 2015 19:16:10 GMT"
],
"Server": [
"Microsoft-IIS/8.0"
]
},
- "StatusCode": 200
+ "StatusCode": 201
},
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1/storageconfig/vaultstorageconfig?api-version=2015-03-15",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMS9zdG9yYWdlY29uZmlnL3ZhdWx0c3RvcmFnZWNvbmZpZz9hcGktdmVyc2lvbj0yMDE1LTAzLTE1",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
"RequestMethod": "PATCH",
"RequestBody": "{\r\n \"properties\": {\r\n \"storageModelType\": \"LocallyRedundant\"\r\n }\r\n}",
"RequestHeaders": {
@@ -82,13 +82,13 @@
"en-us"
],
"x-ms-client-request-id": [
- "8ccef70d-c423-4098-849c-0a1e1b75e2f5-2015-07-08 09:58:09Z-PS"
+ "ff97c9dd-5838-4ec9-802a-dc1f5f06a3bf-2015-08-16 19:16:03Z-PS"
],
"x-ms-version": [
"2013-03-01"
],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
"ResponseBody": "",
@@ -103,11 +103,11 @@
"no-cache"
],
"x-ms-request-id": [
- "1cf95f4c-680f-4974-9f74-a6e8629b2ad4"
+ "21c8f5d4-32ca-4c4f-aa63-0145a06d9331"
],
"x-ms-client-request-id": [
- "8ccef70d-c423-4098-849c-0a1e1b75e2f5-2015-07-08 09:58:09Z-PS",
- "8ccef70d-c423-4098-849c-0a1e1b75e2f5-2015-07-08 09:58:09Z-PS"
+ "ff97c9dd-5838-4ec9-802a-dc1f5f06a3bf-2015-08-16 19:16:03Z-PS",
+ "ff97c9dd-5838-4ec9-802a-dc1f5f06a3bf-2015-08-16 19:16:03Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -116,23 +116,23 @@
"1198"
],
"x-ms-correlation-request-id": [
- "1cf95f4c-680f-4974-9f74-a6e8629b2ad4"
+ "21c8f5d4-32ca-4c4f-aa63-0145a06d9331"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150708T095814Z:1cf95f4c-680f-4974-9f74-a6e8629b2ad4"
+ "CENTRALUS:20150816T191612Z:21c8f5d4-32ca-4c4f-aa63-0145a06d9331"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 08 Jul 2015 09:58:14 GMT"
+ "Sun, 16 Aug 2015 19:16:11 GMT"
]
},
"StatusCode": 204
},
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1/storageconfig/vaultstorageconfig?api-version=2015-03-15",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMS9zdG9yYWdlY29uZmlnL3ZhdWx0c3RvcmFnZWNvbmZpZz9hcGktdmVyc2lvbj0yMDE1LTAzLTE1",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
"RequestMethod": "PATCH",
"RequestBody": "{\r\n \"properties\": {\r\n \"storageModelType\": \"GeoRedundant\"\r\n }\r\n}",
"RequestHeaders": {
@@ -146,13 +146,13 @@
"en-us"
],
"x-ms-client-request-id": [
- "26734291-d565-4c21-8837-f6fc4f04c302-2015-07-08 09:58:18Z-PS"
+ "fd70aa7c-a1db-42ed-8295-5cec7663d72d-2015-08-16 19:16:19Z-PS"
],
"x-ms-version": [
"2013-03-01"
],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
"ResponseBody": "",
@@ -167,11 +167,11 @@
"no-cache"
],
"x-ms-request-id": [
- "7bc725d4-f5ef-4278-961a-acab202c5c1a"
+ "f117006d-1295-45cc-94a8-2eb3b5f68a9d"
],
"x-ms-client-request-id": [
- "26734291-d565-4c21-8837-f6fc4f04c302-2015-07-08 09:58:18Z-PS",
- "26734291-d565-4c21-8837-f6fc4f04c302-2015-07-08 09:58:18Z-PS"
+ "fd70aa7c-a1db-42ed-8295-5cec7663d72d-2015-08-16 19:16:19Z-PS",
+ "fd70aa7c-a1db-42ed-8295-5cec7663d72d-2015-08-16 19:16:19Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -180,23 +180,23 @@
"1196"
],
"x-ms-correlation-request-id": [
- "7bc725d4-f5ef-4278-961a-acab202c5c1a"
+ "f117006d-1295-45cc-94a8-2eb3b5f68a9d"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150708T095820Z:7bc725d4-f5ef-4278-961a-acab202c5c1a"
+ "CENTRALUS:20150816T191621Z:f117006d-1295-45cc-94a8-2eb3b5f68a9d"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 08 Jul 2015 09:58:20 GMT"
+ "Sun, 16 Aug 2015 19:16:21 GMT"
]
},
"StatusCode": 204
},
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1/storageconfig/vaultstorageconfig?api-version=2015-03-15",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMS9zdG9yYWdlY29uZmlnL3ZhdWx0c3RvcmFnZWNvbmZpZz9hcGktdmVyc2lvbj0yMDE1LTAzLTE1",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
@@ -204,16 +204,16 @@
"en-us"
],
"x-ms-client-request-id": [
- "8ccef70d-c423-4098-849c-0a1e1b75e2f5-2015-07-08 09:58:09Z-PS"
+ "ff97c9dd-5838-4ec9-802a-dc1f5f06a3bf-2015-08-16 19:16:03Z-PS"
],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
- "ResponseBody": "{\r\n \"resourceId\": 1117362664063487198,\r\n \"properties\": {\r\n \"storageType\": \"LocallyRedundant\",\r\n \"storageTypeState\": \"Unlocked\"\r\n }\r\n}",
+ "ResponseBody": "{\r\n \"resourceId\": 768844042967475437,\r\n \"properties\": {\r\n \"storageType\": \"LocallyRedundant\",\r\n \"storageTypeState\": \"Unlocked\"\r\n }\r\n}",
"ResponseHeaders": {
"Content-Length": [
- "112"
+ "111"
],
"Content-Type": [
"application/json"
@@ -225,29 +225,29 @@
"no-cache"
],
"x-ms-request-id": [
- "3eb0cb5d-390e-4ff0-9c35-0e3a73d9171b"
+ "02f41d32-624f-4c5a-a8fc-b502a70a1322"
],
"x-ms-client-request-id": [
- "8ccef70d-c423-4098-849c-0a1e1b75e2f5-2015-07-08 09:58:09Z-PS",
- "8ccef70d-c423-4098-849c-0a1e1b75e2f5-2015-07-08 09:58:09Z-PS"
+ "ff97c9dd-5838-4ec9-802a-dc1f5f06a3bf-2015-08-16 19:16:03Z-PS",
+ "ff97c9dd-5838-4ec9-802a-dc1f5f06a3bf-2015-08-16 19:16:03Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14997"
+ "14999"
],
"x-ms-correlation-request-id": [
- "3eb0cb5d-390e-4ff0-9c35-0e3a73d9171b"
+ "02f41d32-624f-4c5a-a8fc-b502a70a1322"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150708T095814Z:3eb0cb5d-390e-4ff0-9c35-0e3a73d9171b"
+ "CENTRALUS:20150816T191613Z:02f41d32-624f-4c5a-a8fc-b502a70a1322"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 08 Jul 2015 09:58:14 GMT"
+ "Sun, 16 Aug 2015 19:16:13 GMT"
],
"Server": [
"Microsoft-IIS/8.0"
@@ -256,8 +256,8 @@
"StatusCode": 200
},
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1/storageconfig/vaultstorageconfig?api-version=2015-03-15",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMS9zdG9yYWdlY29uZmlnL3ZhdWx0c3RvcmFnZWNvbmZpZz9hcGktdmVyc2lvbj0yMDE1LTAzLTE1",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
@@ -265,16 +265,16 @@
"en-us"
],
"x-ms-client-request-id": [
- "0efb57c9-0306-446d-acbc-ae232387f1af-2015-07-08 09:58:14Z-PS"
+ "72f72122-dac6-4fe8-a95a-8abc093ce5f9-2015-08-16 19:16:14Z-PS"
],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
- "ResponseBody": "{\r\n \"resourceId\": 1117362664063487198,\r\n \"properties\": {\r\n \"storageType\": \"LocallyRedundant\",\r\n \"storageTypeState\": \"Unlocked\"\r\n }\r\n}",
+ "ResponseBody": "{\r\n \"resourceId\": 768844042967475437,\r\n \"properties\": {\r\n \"storageType\": \"LocallyRedundant\",\r\n \"storageTypeState\": \"Unlocked\"\r\n }\r\n}",
"ResponseHeaders": {
"Content-Length": [
- "112"
+ "111"
],
"Content-Type": [
"application/json"
@@ -286,29 +286,29 @@
"no-cache"
],
"x-ms-request-id": [
- "79d0534f-03c5-4bdd-b57f-ad84552fcde0"
+ "6b1b4de4-07a5-4b39-889d-631e08d9a278"
],
"x-ms-client-request-id": [
- "0efb57c9-0306-446d-acbc-ae232387f1af-2015-07-08 09:58:14Z-PS",
- "0efb57c9-0306-446d-acbc-ae232387f1af-2015-07-08 09:58:14Z-PS"
+ "72f72122-dac6-4fe8-a95a-8abc093ce5f9-2015-08-16 19:16:14Z-PS",
+ "72f72122-dac6-4fe8-a95a-8abc093ce5f9-2015-08-16 19:16:14Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14995"
+ "14997"
],
"x-ms-correlation-request-id": [
- "79d0534f-03c5-4bdd-b57f-ad84552fcde0"
+ "6b1b4de4-07a5-4b39-889d-631e08d9a278"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150708T095816Z:79d0534f-03c5-4bdd-b57f-ad84552fcde0"
+ "CENTRALUS:20150816T191615Z:6b1b4de4-07a5-4b39-889d-631e08d9a278"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 08 Jul 2015 09:58:15 GMT"
+ "Sun, 16 Aug 2015 19:16:14 GMT"
],
"Server": [
"Microsoft-IIS/8.0"
@@ -317,8 +317,8 @@
"StatusCode": 200
},
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1/storageconfig/vaultstorageconfig?api-version=2015-03-15",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMS9zdG9yYWdlY29uZmlnL3ZhdWx0c3RvcmFnZWNvbmZpZz9hcGktdmVyc2lvbj0yMDE1LTAzLTE1",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/storageconfig/vaultstorageconfig?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3N0b3JhZ2Vjb25maWcvdmF1bHRzdG9yYWdlY29uZmlnP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
@@ -326,16 +326,16 @@
"en-us"
],
"x-ms-client-request-id": [
- "26734291-d565-4c21-8837-f6fc4f04c302-2015-07-08 09:58:18Z-PS"
+ "fd70aa7c-a1db-42ed-8295-5cec7663d72d-2015-08-16 19:16:19Z-PS"
],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
- "ResponseBody": "{\r\n \"resourceId\": 1117362664063487198,\r\n \"properties\": {\r\n \"storageType\": \"GeoRedundant\",\r\n \"storageTypeState\": \"Unlocked\"\r\n }\r\n}",
+ "ResponseBody": "{\r\n \"resourceId\": 768844042967475437,\r\n \"properties\": {\r\n \"storageType\": \"GeoRedundant\",\r\n \"storageTypeState\": \"Unlocked\"\r\n }\r\n}",
"ResponseHeaders": {
"Content-Length": [
- "108"
+ "107"
],
"Content-Type": [
"application/json"
@@ -347,29 +347,29 @@
"no-cache"
],
"x-ms-request-id": [
- "cb317c47-05af-4847-92a1-07d66589e09a"
+ "b24d3745-496c-4fc3-8e58-7cb6ea426724"
],
"x-ms-client-request-id": [
- "26734291-d565-4c21-8837-f6fc4f04c302-2015-07-08 09:58:18Z-PS",
- "26734291-d565-4c21-8837-f6fc4f04c302-2015-07-08 09:58:18Z-PS"
+ "fd70aa7c-a1db-42ed-8295-5cec7663d72d-2015-08-16 19:16:19Z-PS",
+ "fd70aa7c-a1db-42ed-8295-5cec7663d72d-2015-08-16 19:16:19Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14993"
+ "14995"
],
"x-ms-correlation-request-id": [
- "cb317c47-05af-4847-92a1-07d66589e09a"
+ "b24d3745-496c-4fc3-8e58-7cb6ea426724"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150708T095822Z:cb317c47-05af-4847-92a1-07d66589e09a"
+ "CENTRALUS:20150816T191622Z:b24d3745-496c-4fc3-8e58-7cb6ea426724"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 08 Jul 2015 09:58:21 GMT"
+ "Sun, 16 Aug 2015 19:16:22 GMT"
],
"Server": [
"Microsoft-IIS/8.0"
@@ -378,8 +378,8 @@
"StatusCode": 200
},
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1?api-version=2015-03-15",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMT9hcGktdmVyc2lvbj0yMDE1LTAzLTE1",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
@@ -387,16 +387,16 @@
"en-us"
],
"x-ms-client-request-id": [
- "0efb57c9-0306-446d-acbc-ae232387f1af-2015-07-08 09:58:14Z-PS"
+ "72f72122-dac6-4fe8-a95a-8abc093ce5f9-2015-08-16 19:16:14Z-PS"
],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
- "ResponseBody": "{\r\n \"location\": \"westus\",\r\n \"name\": \"backuprn1\",\r\n \"etag\": \"22a9ef4f-5bd9-48b5-bc4d-f564d529b597\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"ProvisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1\",\r\n \"type\": \"Microsoft.Backup/BackupVault\"\r\n}",
+ "ResponseBody": "{\r\n \"location\": \"southeastasia\",\r\n \"name\": \"backuprn\",\r\n \"etag\": \"c96c23d8-fd99-4ac0-bc94-b007c1df0da0\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\"\r\n}",
"ResponseHeaders": {
"Content-Length": [
- "339"
+ "344"
],
"Content-Type": [
"application/json"
@@ -408,28 +408,28 @@
"no-cache"
],
"x-ms-request-id": [
- "bea6c724-4984-4afb-bc39-4ee2bac905ca"
+ "646b1c72-d82d-444a-9604-0e34ff8b8712"
],
"x-ms-client-request-id": [
- "0efb57c9-0306-446d-acbc-ae232387f1af-2015-07-08 09:58:14Z-PS"
+ "72f72122-dac6-4fe8-a95a-8abc093ce5f9-2015-08-16 19:16:14Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14996"
+ "14998"
],
"x-ms-correlation-request-id": [
- "bea6c724-4984-4afb-bc39-4ee2bac905ca"
+ "646b1c72-d82d-444a-9604-0e34ff8b8712"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150708T095815Z:bea6c724-4984-4afb-bc39-4ee2bac905ca"
+ "CENTRALUS:20150816T191614Z:646b1c72-d82d-444a-9604-0e34ff8b8712"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 08 Jul 2015 09:58:15 GMT"
+ "Sun, 16 Aug 2015 19:16:13 GMT"
],
"Server": [
"Microsoft-IIS/8.0"
@@ -438,8 +438,8 @@
"StatusCode": 200
},
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1?api-version=2015-03-15",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMT9hcGktdmVyc2lvbj0yMDE1LTAzLTE1",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
@@ -447,16 +447,16 @@
"en-us"
],
"x-ms-client-request-id": [
- "26734291-d565-4c21-8837-f6fc4f04c302-2015-07-08 09:58:18Z-PS"
+ "fd70aa7c-a1db-42ed-8295-5cec7663d72d-2015-08-16 19:16:19Z-PS"
],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
- "ResponseBody": "{\r\n \"location\": \"westus\",\r\n \"name\": \"backuprn1\",\r\n \"etag\": \"22a9ef4f-5bd9-48b5-bc4d-f564d529b597\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"ProvisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1\",\r\n \"type\": \"Microsoft.Backup/BackupVault\"\r\n}",
+ "ResponseBody": "{\r\n \"location\": \"southeastasia\",\r\n \"name\": \"backuprn\",\r\n \"etag\": \"c96c23d8-fd99-4ac0-bc94-b007c1df0da0\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn\",\r\n \"type\": \"Microsoft.Backup/BackupVault\"\r\n}",
"ResponseHeaders": {
"Content-Length": [
- "339"
+ "344"
],
"Content-Type": [
"application/json"
@@ -468,28 +468,28 @@
"no-cache"
],
"x-ms-request-id": [
- "f30f6dd0-24bc-4301-9415-134a49893b11"
+ "cecf7de4-e45d-4c40-8696-177a92a67d75"
],
"x-ms-client-request-id": [
- "26734291-d565-4c21-8837-f6fc4f04c302-2015-07-08 09:58:18Z-PS"
+ "fd70aa7c-a1db-42ed-8295-5cec7663d72d-2015-08-16 19:16:19Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"x-ms-ratelimit-remaining-subscription-reads": [
- "14994"
+ "14996"
],
"x-ms-correlation-request-id": [
- "f30f6dd0-24bc-4301-9415-134a49893b11"
+ "cecf7de4-e45d-4c40-8696-177a92a67d75"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150708T095821Z:f30f6dd0-24bc-4301-9415-134a49893b11"
+ "CENTRALUS:20150816T191621Z:cecf7de4-e45d-4c40-8696-177a92a67d75"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 08 Jul 2015 09:58:21 GMT"
+ "Sun, 16 Aug 2015 19:16:21 GMT"
],
"Server": [
"Microsoft-IIS/8.0"
@@ -498,10 +498,10 @@
"StatusCode": 200
},
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1/certificates/IdMgmtInternalCert?api-version=2015-03-15",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMS9jZXJ0aWZpY2F0ZXMvSWRNZ210SW50ZXJuYWxDZXJ0P2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/certificates/IdMgmtInternalCert?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2NlcnRpZmljYXRlcy9JZE1nbXRJbnRlcm5hbENlcnQ/YXBpLXZlcnNpb249MjAxNS0wMy0xNQ==",
"RequestMethod": "PUT",
- "RequestBody": "{\r\n \"properties\": {\r\n \"certificate\": \"MIIC3TCCAcWgAwIBAgIQFKHEzjT4EpZNl44PA7dJojANBgkqhkiG9w0BAQUFADAeMRwwGgYDVQQDExNXaW5kb3dzIEF6dXJlIFRvb2xzMB4XDTE1MDcwODA5NDgxNVoXDTE1MDcxMDA5NTgxNVowHjEcMBoGA1UEAxMTV2luZG93cyBBenVyZSBUb29sczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALNA8xmDPJujD5HrGrZ5UZpKncdDBRHJmp4JKEd29jtZng2F8v7z67kF0hDAEE9WSAIxPhjNxQoyxZ2gDdFVQp2r1n6dLxZYlHgih73QFIfAzFo0BP1PCVDCNk5edfMzRt+iZdcK2ruoRRxPiFlo8D6eKSA3MUvwzEl61i44+ctz3mA5lwNf1c58ENLg29IWGhd3LODjkkpre6eGeMEbI5h9+Z2N8yj5ATtzQiDe0FSapbwqktTgT/+ngP6jWxVZI3uyBCZYgxfzfnhtzWkCQnqx2jOOMSu5D1JSiXngQPVQ5wQBVVDmcbF/YdXpRWVER48p2tHemvbd+7zPkmXT5CkCAwEAAaMXMBUwEwYDVR0lBAwwCgYIKwYBBQUHAwIwDQYJKoZIhvcNAQEFBQADggEBADo2hDHV3r75KgFAP5Ie4jVqGazT1Y5Gs4NBsG6dzDWg9/0vsHT8SOjNjjccpPUkP2aO/4RQlLhC2gsU/BMYw7kxY0eyUxAM0SB7sJ9gj/EBcHDyeOu1eSnYGmqcvXmbFjMauLwNkNwsACo5vVz0ghXxpazRAnpzyKgZgwNC4ruotDzMT8S4zB8a1WVEpcx43Um/5Yg06QBfIEG4wD11rIpENkKm3DWnP5OV39knHLLt/UvwY011kpfXFuXo4ZVXI3F096kgER/vpr32T+H3SCJVbrTi+qKDLjENpdVSTxEh16w/RK1mB6LST7KOIn0LwC76xveMYoOP/1uYK4hkKgQ=\"\r\n }\r\n}",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"certificate\": \"MIIC3TCCAcWgAwIBAgIQHIbfGvFylpdMv1odbf2pAzANBgkqhkiG9w0BAQUFADAeMRwwGgYDVQQDExNXaW5kb3dzIEF6dXJlIFRvb2xzMB4XDTE1MDgxNjE5MDYxNVoXDTE1MDgxODE5MTYxNVowHjEcMBoGA1UEAxMTV2luZG93cyBBenVyZSBUb29sczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMvTUfRMRX4SHXTdAARMy94ZamGNvxNAyillUp4t/zaH4Ug0T8Hs3ahdhS/CLCdrocZwrOqcTwVslPHJNW3IN6/GEsYT+j8JjnHj78G4XEiTAah3hHczXRVfNF2tXYC2StuQ/8OnTA42kcArqBhKmS5oifbpxD0OVmWejwNf3NFf3/RJDWTOH8/6ifwCUA1zkKWjnEtM0w4T7iQGPc+1Os6N6ZAVfdjV++fcL2q+T/nMnwGpofkgtie1YKaqfwTdi57G2HCuU3nWfUg7/y+w0CL5mTkQMzyBz178Qcvb2CaBTmtPkUCbT3ixi2YiFX4p0To3OGzK4MYUWrBeQxNnqtMCAwEAAaMXMBUwEwYDVR0lBAwwCgYIKwYBBQUHAwIwDQYJKoZIhvcNAQEFBQADggEBALgUyJginWRLWq1gDsz8xp7Zps9SXNeFB94JKy9Qtz5Cr+KgrA0xvhcUAjXxHCnjsvrb6PHSFz5iT9CUrkFEO97sVDyRXOArUlAK5/tFUn6AAPkRSCI/RlhrNUHp/vKK+BgL6R694dJLc1kUbW/haULofDb+Fbh0+4M95EcNwqfvhuWf1nbr58icFEzkTuvHUH+QvmnC2kSyrC58OGShe+VwFyjAHCmPUEVSCWHKxi7v+NFktx/WDOYbeQjZn4K+UR5VmwYf95jArkZZZIUAf+zhRH52o3NZRcISp4H6ybFqp60wujqzzIUSosOm8jWLBaL0gt9HiWzANjTQicO/9Wc=\"\r\n }\r\n}",
"RequestHeaders": {
"Content-Type": [
"application/json"
@@ -512,17 +512,20 @@
"Accept-Language": [
"en-us"
],
+ "x-ms-client-request-id": [
+ "43cf16e7-e7a0-4d56-8eb5-66f9ecee0ff4-2015-08-16 19:16:15Z-PS"
+ ],
"x-ms-version": [
"2013-03-01"
],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
- "ResponseBody": "{\r\n \"properties\": {\r\n \"certificate\": \"MIIC3TCCAcWgAwIBAgIQFKHEzjT4EpZNl44PA7dJojANBgkqhkiG9w0BAQUFADAeMRwwGgYDVQQDExNXaW5kb3dzIEF6dXJlIFRvb2xzMB4XDTE1MDcwODA5NDgxNVoXDTE1MDcxMDA5NTgxNVowHjEcMBoGA1UEAxMTV2luZG93cyBBenVyZSBUb29sczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALNA8xmDPJujD5HrGrZ5UZpKncdDBRHJmp4JKEd29jtZng2F8v7z67kF0hDAEE9WSAIxPhjNxQoyxZ2gDdFVQp2r1n6dLxZYlHgih73QFIfAzFo0BP1PCVDCNk5edfMzRt+iZdcK2ruoRRxPiFlo8D6eKSA3MUvwzEl61i44+ctz3mA5lwNf1c58ENLg29IWGhd3LODjkkpre6eGeMEbI5h9+Z2N8yj5ATtzQiDe0FSapbwqktTgT/+ngP6jWxVZI3uyBCZYgxfzfnhtzWkCQnqx2jOOMSu5D1JSiXngQPVQ5wQBVVDmcbF/YdXpRWVER48p2tHemvbd+7zPkmXT5CkCAwEAAaMXMBUwEwYDVR0lBAwwCgYIKwYBBQUHAwIwDQYJKoZIhvcNAQEFBQADggEBADo2hDHV3r75KgFAP5Ie4jVqGazT1Y5Gs4NBsG6dzDWg9/0vsHT8SOjNjjccpPUkP2aO/4RQlLhC2gsU/BMYw7kxY0eyUxAM0SB7sJ9gj/EBcHDyeOu1eSnYGmqcvXmbFjMauLwNkNwsACo5vVz0ghXxpazRAnpzyKgZgwNC4ruotDzMT8S4zB8a1WVEpcx43Um/5Yg06QBfIEG4wD11rIpENkKm3DWnP5OV39knHLLt/UvwY011kpfXFuXo4ZVXI3F096kgER/vpr32T+H3SCJVbrTi+qKDLjENpdVSTxEh16w/RK1mB6LST7KOIn0LwC76xveMYoOP/1uYK4hkKgQ=\",\r\n \"resourceId\": 1117362664063487198,\r\n \"globalAcsNamespace\": \"seadev01rrp1users\",\r\n \"globalAcsHostName\": \"accesscontrol.windows.net\",\r\n \"globalAcsRPRealm\": \"http://windowscloudbackup/m3\",\r\n \"subject\": \"CN=Windows Azure Tools\",\r\n \"validFrom\": \"2015-07-08T02:48:15-07:00\",\r\n \"validTo\": \"2015-07-10T02:58:15-07:00\",\r\n \"thumbprint\": \"2F6E98592FCC206CBA2BF6FDCA6279C87A0DCA60\",\r\n \"friendlyName\": \"\",\r\n \"issuer\": \"CN=Windows Azure Tools\"\r\n }\r\n}",
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"certificate\": \"MIIC3TCCAcWgAwIBAgIQHIbfGvFylpdMv1odbf2pAzANBgkqhkiG9w0BAQUFADAeMRwwGgYDVQQDExNXaW5kb3dzIEF6dXJlIFRvb2xzMB4XDTE1MDgxNjE5MDYxNVoXDTE1MDgxODE5MTYxNVowHjEcMBoGA1UEAxMTV2luZG93cyBBenVyZSBUb29sczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMvTUfRMRX4SHXTdAARMy94ZamGNvxNAyillUp4t/zaH4Ug0T8Hs3ahdhS/CLCdrocZwrOqcTwVslPHJNW3IN6/GEsYT+j8JjnHj78G4XEiTAah3hHczXRVfNF2tXYC2StuQ/8OnTA42kcArqBhKmS5oifbpxD0OVmWejwNf3NFf3/RJDWTOH8/6ifwCUA1zkKWjnEtM0w4T7iQGPc+1Os6N6ZAVfdjV++fcL2q+T/nMnwGpofkgtie1YKaqfwTdi57G2HCuU3nWfUg7/y+w0CL5mTkQMzyBz178Qcvb2CaBTmtPkUCbT3ixi2YiFX4p0To3OGzK4MYUWrBeQxNnqtMCAwEAAaMXMBUwEwYDVR0lBAwwCgYIKwYBBQUHAwIwDQYJKoZIhvcNAQEFBQADggEBALgUyJginWRLWq1gDsz8xp7Zps9SXNeFB94JKy9Qtz5Cr+KgrA0xvhcUAjXxHCnjsvrb6PHSFz5iT9CUrkFEO97sVDyRXOArUlAK5/tFUn6AAPkRSCI/RlhrNUHp/vKK+BgL6R694dJLc1kUbW/haULofDb+Fbh0+4M95EcNwqfvhuWf1nbr58icFEzkTuvHUH+QvmnC2kSyrC58OGShe+VwFyjAHCmPUEVSCWHKxi7v+NFktx/WDOYbeQjZn4K+UR5VmwYf95jArkZZZIUAf+zhRH52o3NZRcISp4H6ybFqp60wujqzzIUSosOm8jWLBaL0gt9HiWzANjTQicO/9Wc=\",\r\n \"resourceId\": 768844042967475437,\r\n \"globalAcsNamespace\": \"seabvtiaasrrp1users\",\r\n \"globalAcsHostName\": \"accesscontrol.windows.net\",\r\n \"globalAcsRPRealm\": \"http://windowscloudbackup/m3\",\r\n \"subject\": \"CN=Windows Azure Tools\",\r\n \"validFrom\": \"2015-08-17T00:36:15+05:30\",\r\n \"validTo\": \"2015-08-19T00:46:15+05:30\",\r\n \"thumbprint\": \"133E5FE93E6153F060B365F883BB7881724B9385\",\r\n \"friendlyName\": \"\",\r\n \"issuer\": \"CN=Windows Azure Tools\"\r\n }\r\n}",
"ResponseHeaders": {
"Content-Length": [
- "1410"
+ "1411"
],
"Content-Type": [
"application/json"
@@ -534,11 +537,11 @@
"no-cache"
],
"x-ms-request-id": [
- "a94d6ca2-6cba-45f0-bd5e-fe3535d1e7d9"
+ "8e85d5a7-d788-4fcd-abb1-0247fb50ae16"
],
"x-ms-client-request-id": [
- "38750946-e6c7-4f15-a698-323deaf1f2ab",
- "38750946-e6c7-4f15-a698-323deaf1f2ab"
+ "43cf16e7-e7a0-4d56-8eb5-66f9ecee0ff4-2015-08-16 19:16:15Z-PS",
+ "43cf16e7-e7a0-4d56-8eb5-66f9ecee0ff4-2015-08-16 19:16:15Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -547,16 +550,16 @@
"1197"
],
"x-ms-correlation-request-id": [
- "a94d6ca2-6cba-45f0-bd5e-fe3535d1e7d9"
+ "8e85d5a7-d788-4fcd-abb1-0247fb50ae16"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150708T095819Z:a94d6ca2-6cba-45f0-bd5e-fe3535d1e7d9"
+ "CENTRALUS:20150816T191619Z:8e85d5a7-d788-4fcd-abb1-0247fb50ae16"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 08 Jul 2015 09:58:18 GMT"
+ "Sun, 16 Aug 2015 19:16:19 GMT"
],
"Server": [
"Microsoft-IIS/8.0"
@@ -565,8 +568,8 @@
"StatusCode": 200
},
{
- "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn1?api-version=2015-03-15",
- "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuMT9hcGktdmVyc2lvbj0yMDE1LTAzLTE1",
+ "RequestUri": "/Subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn?api-version=2015-03-15",
+ "EncodedRequestUri": "L1N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuP2FwaS12ZXJzaW9uPTIwMTUtMDMtMTU=",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
@@ -574,10 +577,10 @@
"en-us"
],
"x-ms-client-request-id": [
- "c4aca23e-b7fa-4016-829d-5af4fd8eef00-2015-07-08 09:58:21Z-PS"
+ "542e3e8b-5acc-4235-a458-892004f1681a-2015-08-16 19:16:22Z-PS"
],
"User-Agent": [
- "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ "Microsoft.Azure.Management.BackupServices.BackupVaultServicesManagementClient/0.0.0.0"
]
},
"ResponseBody": "",
@@ -592,10 +595,10 @@
"no-cache"
],
"x-ms-request-id": [
- "17c2f600-ee65-4ad2-a946-de4bc205406d"
+ "7a2ab660-14da-4f4f-98c3-789a14f936c5"
],
"x-ms-client-request-id": [
- "c4aca23e-b7fa-4016-829d-5af4fd8eef00-2015-07-08 09:58:21Z-PS"
+ "542e3e8b-5acc-4235-a458-892004f1681a-2015-08-16 19:16:22Z-PS"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
@@ -604,16 +607,16 @@
"1195"
],
"x-ms-correlation-request-id": [
- "17c2f600-ee65-4ad2-a946-de4bc205406d"
+ "7a2ab660-14da-4f4f-98c3-789a14f936c5"
],
"x-ms-routing-request-id": [
- "CENTRALUS:20150708T095825Z:17c2f600-ee65-4ad2-a946-de4bc205406d"
+ "CENTRALUS:20150816T191624Z:7a2ab660-14da-4f4f-98c3-789a14f936c5"
],
"Cache-Control": [
"no-cache"
],
"Date": [
- "Wed, 08 Jul 2015 09:58:25 GMT"
+ "Sun, 16 Aug 2015 19:16:24 GMT"
]
},
"StatusCode": 200
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.BackupItemTests/BackUpAzureBackUpItem.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.BackupItemTests/BackUpAzureBackUpItem.json
new file mode 100644
index 000000000000..8844798d7054
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.BackupItemTests/BackUpAzureBackUpItem.json
@@ -0,0 +1,200 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/protectedItems/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/backup?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3Byb3RlY3RlZEl0ZW1zL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL2JhY2t1cD9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "59f851c4-98b3-4546-9dc8-adeedad9aa5f-2015-08-14 10:32:34Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"34c3c958-faf5-42e9-8f0b-5e0514ce17d8\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "1115c264-bd9a-47e8-a5b6-be1b65702db1"
+ ],
+ "x-ms-client-request-id": [
+ "59f851c4-98b3-4546-9dc8-adeedad9aa5f-2015-08-14 10:32:34Z-PS",
+ "59f851c4-98b3-4546-9dc8-adeedad9aa5f-2015-08-14 10:32:34Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "999997"
+ ],
+ "x-ms-correlation-request-id": [
+ "1115c264-bd9a-47e8-a5b6-be1b65702db1"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T103238Z:1115c264-bd9a-47e8-a5b6-be1b65702db1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:32:37 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/34c3c958-faf5-42e9-8f0b-5e0514ce17d8?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvMzRjM2M5NTgtZmFmNS00MmU5LThmMGItNWUwNTE0Y2UxN2Q4P2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "59f851c4-98b3-4546-9dc8-adeedad9aa5f-2015-08-14 10:32:34Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": [\r\n \"720733ef-b2ef-48f5-9bc7-31b178d32b2c\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "84d8dde7-7c07-49df-a1a2-7d24f6e5ba9f"
+ ],
+ "x-ms-client-request-id": [
+ "59f851c4-98b3-4546-9dc8-adeedad9aa5f-2015-08-14 10:32:34Z-PS",
+ "59f851c4-98b3-4546-9dc8-adeedad9aa5f-2015-08-14 10:32:34Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "84d8dde7-7c07-49df-a1a2-7d24f6e5ba9f"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T103250Z:84d8dde7-7c07-49df-a1a2-7d24f6e5ba9f"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:32:49 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/720733ef-b2ef-48f5-9bc7-31b178d32b2c?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvNzIwNzMzZWYtYjJlZi00OGY1LTliYzctMzFiMTc4ZDMyYjJjP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "59f851c4-98b3-4546-9dc8-adeedad9aa5f-2015-08-14 10:32:34Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [\r\n {\r\n \"taskId\": \"Take Snapshot\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"InProgress\",\r\n \"progressPercentage\": null\r\n },\r\n {\r\n \"taskId\": \"Transfer data to Backup vault\",\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"duration\": \"00:00:00\",\r\n \"status\": \"NotStarted\",\r\n \"progressPercentage\": null\r\n }\r\n ],\r\n \"propertyBag\": {\r\n \"VM Name\": \"hydrarecordvm\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Backup\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-14T10:32:38.1972982Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:00:13.9125259\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/720733ef-b2ef-48f5-9bc7-31b178d32b2c\",\r\n \"name\": \"720733ef-b2ef-48f5-9bc7-31b178d32b2c\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "915"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "44c56401-242e-4b51-916b-3dcd9fd0e936"
+ ],
+ "x-ms-client-request-id": [
+ "59f851c4-98b3-4546-9dc8-adeedad9aa5f-2015-08-14 10:32:34Z-PS",
+ "59f851c4-98b3-4546-9dc8-adeedad9aa5f-2015-08-14 10:32:34Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-correlation-request-id": [
+ "44c56401-242e-4b51-916b-3dcd9fd0e936"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T103251Z:44c56401-242e-4b51-916b-3dcd9fd0e936"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:32:51 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.RecoveryPointTests/GetRecoveryPointTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.RecoveryPointTests/GetRecoveryPointTests.json
new file mode 100644
index 000000000000..399f35516070
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.RecoveryPointTests/GetRecoveryPointTests.json
@@ -0,0 +1,72 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/protectedItems/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/recoveryPoints/587454680194?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3Byb3RlY3RlZEl0ZW1zL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3JlY292ZXJ5UG9pbnRzLzU4NzQ1NDY4MDE5ND9hcGktdmVyc2lvbj0yMDE0LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "dd728248-937b-40a1-a0d0-e58dcbc42a35-2015-08-14 10:55:47Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"recoveryPointType\": \"AppConsistent\",\r\n \"recoveryPointTime\": \"2015-08-14T10:33:54.9308309Z\",\r\n \"recoveryPointAdditionalInfo\": \"\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/protectedItems/iaasvmcontainer;hydrarecordvm;hydrarecordvm/recoveryPoints/587454680194\",\r\n \"name\": \"587454680194\",\r\n \"type\": \"Microsoft.Backup/BackupVault/registeredContainers/protectedItems/recoveryPoints\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "530"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "f60c4e82-2374-4420-a102-7aba07efcb25"
+ ],
+ "x-ms-client-request-id": [
+ "dd728248-937b-40a1-a0d0-e58dcbc42a35-2015-08-14 10:55:47Z-PS",
+ "dd728248-937b-40a1-a0d0-e58dcbc42a35-2015-08-14 10:55:47Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14991"
+ ],
+ "x-ms-correlation-request-id": [
+ "f60c4e82-2374-4420-a102-7aba07efcb25"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T105550Z:f60c4e82-2374-4420-a102-7aba07efcb25"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:55:49 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.RecoveryPointTests/GetRecoveryPointsTests.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.RecoveryPointTests/GetRecoveryPointsTests.json
new file mode 100644
index 000000000000..a682e6f2f2dd
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.RecoveryPointTests/GetRecoveryPointsTests.json
@@ -0,0 +1,72 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/protectedItems/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/recoveryPoints?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3Byb3RlY3RlZEl0ZW1zL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3JlY292ZXJ5UG9pbnRzP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "35eef4e7-dbda-4c53-8a23-112b747b9ee2-2015-08-14 10:53:32Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"recoveryPointType\": \"AppConsistent\",\r\n \"recoveryPointTime\": \"2015-08-14T10:33:54.9308309Z\",\r\n \"recoveryPointAdditionalInfo\": \"\"\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer;hydrarecordvm;hydrarecordvm/protectedItems/iaasvmcontainer;hydrarecordvm;hydrarecordvm/recoveryPoints/587454680194\",\r\n \"name\": \"587454680194\",\r\n \"type\": \"Microsoft.Backup/BackupVault/registeredContainers/protectedItems/recoveryPoints\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "558"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "1ef758db-a259-4840-baa5-77b69e09d722"
+ ],
+ "x-ms-client-request-id": [
+ "35eef4e7-dbda-4c53-8a23-112b747b9ee2-2015-08-14 10:53:32Z-PS",
+ "35eef4e7-dbda-4c53-8a23-112b747b9ee2-2015-08-14 10:53:32Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14992"
+ ],
+ "x-ms-correlation-request-id": [
+ "1ef758db-a259-4840-baa5-77b69e09d722"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T105335Z:1ef758db-a259-4840-baa5-77b69e09d722"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:53:35 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "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.RestoreItemTests/RestoreAzureBackUpItem.json b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.RestoreItemTests/RestoreAzureBackUpItem.json
new file mode 100644
index 000000000000..4eb420e13b02
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/SessionRecords/Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests.RestoreItemTests/RestoreAzureBackUpItem.json
@@ -0,0 +1,206 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/registeredContainers/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/protectedItems/iaasvmcontainer%3Bhydrarecordvm%3Bhydrarecordvm/recoveryPoints/587454680194/restore?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL3JlZ2lzdGVyZWRDb250YWluZXJzL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3Byb3RlY3RlZEl0ZW1zL2lhYXN2bWNvbnRhaW5lciUzQmh5ZHJhcmVjb3Jkdm0lM0JoeWRyYXJlY29yZHZtL3JlY292ZXJ5UG9pbnRzLzU4NzQ1NDY4MDE5NC9yZXN0b3JlP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "POST",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"typeOfRecovery\": \"RestoreDisks\",\r\n \"recoveryDSTypeSpecificInputs\": \"{\\\"AffinityGroup\\\":\\\"\\\",\\\"CloudServiceName\\\":\\\"\\\",\\\"ContinueProtection\\\":false,\\\"CreateNewCloudService\\\":false,\\\"InputStorageAccountName\\\":\\\"portalvhds7jzk3jty85qx5\\\",\\\"Region\\\":\\\"southeastasia\\\",\\\"SubNetName\\\":null,\\\"TargetVNet\\\":null,\\\"VmName\\\":\\\"\\\"}\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Content-Length": [
+ "359"
+ ],
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "6433ec86-9d01-43b9-8690-93e1385d2ec1-2015-08-14 10:56:31Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "\"adfca7a1-f7f6-4dcf-9241-e65662d06740\"",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "38"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "40559460-865b-41b1-87f1-8bb5333407d0"
+ ],
+ "x-ms-client-request-id": [
+ "6433ec86-9d01-43b9-8690-93e1385d2ec1-2015-08-14 10:56:31Z-PS",
+ "6433ec86-9d01-43b9-8690-93e1385d2ec1-2015-08-14 10:56:31Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "999996"
+ ],
+ "x-ms-correlation-request-id": [
+ "40559460-865b-41b1-87f1-8bb5333407d0"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T105634Z:40559460-865b-41b1-87f1-8bb5333407d0"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:56:33 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/operationResults/adfca7a1-f7f6-4dcf-9241-e65662d06740?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL29wZXJhdGlvblJlc3VsdHMvYWRmY2E3YTEtZjdmNi00ZGNmLTkyNDEtZTY1NjYyZDA2NzQwP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "6433ec86-9d01-43b9-8690-93e1385d2ec1-2015-08-14 10:56:31Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"Succeeded\",\r\n \"error\": {\r\n \"code\": \"\",\r\n \"message\": \"\"\r\n },\r\n \"jobList\": [\r\n \"5ba9c57e-7580-47bc-b325-33c8a7ede31a\"\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "106"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "c400fd9b-387c-47fe-a23d-ea8be4d536c1"
+ ],
+ "x-ms-client-request-id": [
+ "6433ec86-9d01-43b9-8690-93e1385d2ec1-2015-08-14 10:56:31Z-PS",
+ "6433ec86-9d01-43b9-8690-93e1385d2ec1-2015-08-14 10:56:31Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14989"
+ ],
+ "x-ms-correlation-request-id": [
+ "c400fd9b-387c-47fe-a23d-ea8be4d536c1"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T105645Z:c400fd9b-387c-47fe-a23d-ea8be4d536c1"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:56:45 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/5ba9c57e-7580-47bc-b325-33c8a7ede31a?api-version=2014-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjUzMDNhMGItZmFlNC00Y2RiLWI0NGQtMGU0YzAzMmRkZTI2L3Jlc291cmNlR3JvdXBzL2JhY2t1cHJnL3Byb3ZpZGVycy9NaWNyb3NvZnQuQmFja3VwL0JhY2t1cFZhdWx0L2JhY2t1cHJuL2pvYnMvNWJhOWM1N2UtNzU4MC00N2JjLWIzMjUtMzNjOGE3ZWRlMzFhP2FwaS12ZXJzaW9uPTIwMTQtMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "Accept-Language": [
+ "en-us"
+ ],
+ "x-ms-client-request-id": [
+ "6433ec86-9d01-43b9-8690-93e1385d2ec1-2015-08-14 10:56:31Z-PS"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.BackupServices.BackupServicesManagementClient/0.0.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"tasksList\": [],\r\n \"propertyBag\": {\r\n \"JobType\": \"Recover disks\",\r\n \"Target Storage Account Name\": \"portalvhds7jzk3jty85qx5\"\r\n },\r\n \"progressPercentage\": null,\r\n \"dynamicErrorMessage\": null,\r\n \"workloadType\": \"IaasVM\",\r\n \"operation\": \"Restore\",\r\n \"status\": \"InProgress\",\r\n \"startTimestamp\": \"2015-08-14T10:56:38.1426358Z\",\r\n \"endTimestamp\": \"2001-01-01T00:00:00Z\",\r\n \"duration\": \"00:00:09.3382061\",\r\n \"entityFriendlyName\": \"hydrarecordvm\",\r\n \"actionsInfo\": [\r\n 1\r\n ],\r\n \"errorDetails\": null\r\n },\r\n \"id\": \"/subscriptions/f5303a0b-fae4-4cdb-b44d-0e4c032dde26/resourceGroups/backuprg/providers/Microsoft.Backup/BackupVault/backuprn/jobs/5ba9c57e-7580-47bc-b325-33c8a7ede31a\",\r\n \"name\": \"5ba9c57e-7580-47bc-b325-33c8a7ede31a\",\r\n \"type\": \"Microsoft.Backup/BackupVault/jobs\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "699"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-request-id": [
+ "c81abfd7-e008-410c-92f3-b9dfe332e860"
+ ],
+ "x-ms-client-request-id": [
+ "6433ec86-9d01-43b9-8690-93e1385d2ec1-2015-08-14 10:56:31Z-PS",
+ "6433ec86-9d01-43b9-8690-93e1385d2ec1-2015-08-14 10:56:31Z-PS"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "14988"
+ ],
+ "x-ms-correlation-request-id": [
+ "c81abfd7-e008-410c-92f3-b9dfe332e860"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20150814T105647Z:c81abfd7-e008-410c-92f3-b9dfe332e860"
+ ],
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Date": [
+ "Fri, 14 Aug 2015 10:56:47 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.0"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "f5303a0b-fae4-4cdb-b44d-0e4c032dde26"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/packages.config b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/packages.config
index 04589123a7c6..3692e89e3c49 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/packages.config
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/packages.config
@@ -4,7 +4,7 @@
-
+
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackUpRestoreBase.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackUpRestoreBase.cs
new file mode 100644
index 000000000000..5cbce720bd25
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackUpRestoreBase.cs
@@ -0,0 +1,47 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+using Microsoft.Azure.Common.Authentication;
+using Microsoft.Azure.Common.Authentication.Models;
+using System.Threading;
+using Hyak.Common;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+using System.Net;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Cmdlets;
+
+namespace Microsoft.Azure.Commands.AzureBackup
+{
+ public abstract class AzureBackupRestoreBase : AzureBackupCmdletBase
+ {
+ // ToDO:
+ // Correct Help message and other attributes related to paameters
+ [Parameter(Position = 0, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.AzureBackUpRecoveryPoint, ValueFromPipeline = true)]
+ [ValidateNotNullOrEmpty]
+ public AzureRMBackupRecoveryPoint RecoveryPoint { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ base.ExecuteCmdlet();
+
+ WriteDebug(String.Format(Resources.CmdletCalled, RecoveryPoint.ResourceGroupName, RecoveryPoint.ResourceName, RecoveryPoint.Location));
+ InitializeAzureBackupCmdlet(RecoveryPoint.ResourceGroupName, RecoveryPoint.ResourceName);
+ }
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/AzureBackupClientAdapter.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/AzureBackupClientAdapter.cs
index 215db6047e47..fe67781f9d65 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/AzureBackupClientAdapter.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/AzureBackupClientAdapter.cs
@@ -33,26 +33,21 @@ public partial class AzureBackupClientAdapter
///
private Uri baseURI { get; set; }
- ///
- /// ResourceGroup context for the operation
- ///
- private string resourceGroupName { get; set; }
-
- ///
- /// Resource context for the operation
- ///
- private string resourceName { get; set; }
-
///
/// Client request id.
///
private string clientRequestId;
///
- /// Azure backup client.
+ /// Azure vault backup client to talk to IdMgmt.
///
private BackupVaultServicesManagementClient azureBackupVaultClient;
+ ///
+ /// Azure backup client to talk to BMS.
+ ///
+ private BackupServicesManagementClient azureBackupClient;
+
///
/// Cancellation Token Source
///
@@ -68,19 +63,33 @@ private BackupVaultServicesManagementClient AzureBackupVaultClient
{
if (this.azureBackupVaultClient == null)
{
- this.azureBackupVaultClient = AzureSession.ClientFactory.CreateCustomClient(resourceName, resourceGroupName, cloudCreds, baseURI);
+ this.azureBackupVaultClient = AzureSession.ClientFactory.CreateCustomClient(cloudCreds, baseURI);
}
return this.azureBackupVaultClient;
}
}
- public AzureBackupClientAdapter(SubscriptionCloudCredentials creds, Uri baseUri, string rgName, string rName)
+ ///
+ /// Get Azure backup client.
+ ///
+ private BackupServicesManagementClient AzureBackupClient
+ {
+ get
+ {
+ if (this.azureBackupClient == null)
+ {
+ this.azureBackupClient = AzureSession.ClientFactory.CreateCustomClient(cloudCreds, baseURI);
+ }
+
+ return this.azureBackupClient;
+ }
+ }
+
+ public AzureBackupClientAdapter(SubscriptionCloudCredentials creds, Uri baseUri)
{
cloudCreds = creds;
baseURI = baseUri;
- resourceGroupName = rgName;
- resourceName = rName;
RefreshClientRequestId();
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/ContainerAdapter.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/ContainerAdapter.cs
index b6cbc2eb44f7..83559355b0a4 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/ContainerAdapter.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/ContainerAdapter.cs
@@ -37,9 +37,9 @@ public partial class AzureBackupClientAdapter
/// Gets all MARS containers in the vault
///
///
- public IEnumerable ListMachineContainers()
+ public IEnumerable ListMachineContainers(string resourceGroupName, string resourceName)
{
- var listResponse = AzureBackupVaultClient.Container.ListMarsContainersByType(MarsContainerType.Machine, GetCustomRequestHeaders());
+ var listResponse = AzureBackupVaultClient.Container.ListMarsContainersByType(resourceGroupName, resourceName, MarsContainerType.Machine, GetCustomRequestHeaders());
return listResponse.ListMarsContainerResponse.Value;
}
@@ -48,9 +48,9 @@ public IEnumerable ListMachineContainers()
///
/// The friendly name of the container
///
- public IEnumerable ListMachineContainers(string friendlyName)
+ public IEnumerable ListMachineContainers(string resourceGroupName, string resourceName, string friendlyName)
{
- var listResponse = AzureBackupVaultClient.Container.ListMarsContainersByTypeAndFriendlyName(MarsContainerType.Machine, friendlyName, GetCustomRequestHeaders());
+ var listResponse = AzureBackupVaultClient.Container.ListMarsContainersByTypeAndFriendlyName(resourceGroupName, resourceName, MarsContainerType.Machine, friendlyName, GetCustomRequestHeaders());
return listResponse.ListMarsContainerResponse.Value;
}
@@ -59,9 +59,9 @@ public IEnumerable ListMachineContainers(string friendlyN
///
///
///
- public void UnregisterMachineContainer(long containerId)
+ public void UnregisterMachineContainer(string resourceGroupName, string resourceName, long containerId)
{
- AzureBackupVaultClient.Container.UnregisterMarsContainer(containerId.ToString(), GetCustomRequestHeaders());
+ AzureBackupVaultClient.Container.UnregisterMarsContainer(resourceGroupName, resourceName, containerId.ToString(), GetCustomRequestHeaders());
}
///
@@ -69,7 +69,7 @@ public void UnregisterMachineContainer(long containerId)
///
///
///
- public void EnableMachineContainerReregistration(long containerId)
+ public void EnableMachineContainerReregistration(string resourceGroupName, string resourceName, long containerId)
{
EnableReregistrationRequest request = new EnableReregistrationRequest()
{
@@ -79,7 +79,50 @@ public void EnableMachineContainerReregistration(long containerId)
},
};
- AzureBackupVaultClient.Container.EnableMarsContainerReregistration(containerId.ToString(), request, GetCustomRequestHeaders());
+ AzureBackupVaultClient.Container.EnableMarsContainerReregistration(resourceGroupName, resourceName, containerId.ToString(), request, GetCustomRequestHeaders());
+ }
+
+ ///
+ /// Gets all IaaSVM containers in the vault by friendly name
+ ///
+ ///
+ ///
+ public IEnumerable ListContainers(string resourceGroupName, string resourceName, ContainerQueryParameters parameters)
+ {
+ var listResponse = AzureBackupClient.Container.ListAsync(resourceGroupName, resourceName, parameters, GetCustomRequestHeaders(), CmdletCancellationToken).Result;
+ return listResponse.CSMContainerListResponse.Value;
+ }
+
+ ///
+ /// Register container
+ ///
+ ///
+ ///
+ public Guid RegisterContainer(string resourceGroupName, string resourceName, string containerName)
+ {
+ var response = AzureBackupClient.Container.RegisterAsync(resourceGroupName, resourceName, containerName, GetCustomRequestHeaders(), CmdletCancellationToken).Result;
+ return response.OperationId;
+ }
+
+ ///
+ /// UnRegister container
+ ///
+ ///
+ ///
+ public Guid UnRegisterContainer(string resourceGroupName, string resourceName, string containerName)
+ {
+ var response = AzureBackupClient.Container.UnregisterAsync(resourceGroupName, resourceName, containerName, GetCustomRequestHeaders(), CmdletCancellationToken).Result;
+ return response.OperationId;
+ }
+
+ ///
+ /// Refresh container list in service
+ ///
+ ///
+ public Guid RefreshContainers(string resourceGroupName, string resourceName)
+ {
+ var response = AzureBackupClient.Container.RefreshAsync(resourceGroupName, resourceName, GetCustomRequestHeaders(), CmdletCancellationToken).Result;
+ return response.OperationId;
}
}
}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/ItemAdapter.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/ItemAdapter.cs
new file mode 100644
index 000000000000..0fd442e799c4
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/ItemAdapter.cs
@@ -0,0 +1,141 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+using Microsoft.Azure.Common.Authentication;
+using Microsoft.Azure.Common.Authentication.Models;
+using System.Threading;
+using Hyak.Common;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+using System.Net;
+using Microsoft.WindowsAzure.Management.Scheduler;
+using Microsoft.Azure.Management.BackupServices;
+using Microsoft.Azure.Management.BackupServices.Models;
+
+namespace Microsoft.Azure.Commands.AzureBackup.ClientAdapter
+{
+ public partial class AzureBackupClientAdapter
+ {
+ ///
+ /// Lists datasources in the vault
+ ///
+ ///
+ ///
+ public IList ListDataSources(string resourceGroupName, string resourceName, CSMProtectedItemQueryObject query)
+ {
+ var response = AzureBackupClient.DataSource.ListCSMAsync(resourceGroupName, resourceName, query, GetCustomRequestHeaders(), CmdletCancellationToken).Result;
+ return (response != null) ? response.CSMProtectedItemListResponse.Value : null;
+ }
+
+ ///
+ /// Lists protectable objects in the vault
+ ///
+ ///
+ ///
+ public IList ListProtectableObjects(string resourceGroupName, string resourceName, CSMItemQueryObject query)
+ {
+ var response = AzureBackupClient.ProtectableObject.ListCSMAsync(resourceGroupName, resourceName, query, GetCustomRequestHeaders(), CmdletCancellationToken).Result;
+ return (response != null) ? response.CSMItemListResponse.Value : null;
+ }
+
+ ///
+ /// Dsiable protection
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public Guid DisableProtection(string resourceGroupName, string resourceName, string containerName, string itemName)
+ {
+ var response = AzureBackupClient.DataSource.DisableProtectionCSMAsync(resourceGroupName, resourceName, GetCustomRequestHeaders(), containerName, itemName, CmdletCancellationToken).Result;
+ return response.OperationId;
+ }
+
+ ///
+ /// Enable Protection
+ ///
+ ///
+ ///
+ public Guid EnableProtection(string resourceGroupName, string resourceName, string containerName, string itemName, CSMSetProtectionRequest request)
+ {
+ var response = AzureBackupClient.DataSource.EnableProtectionCSMAsync(resourceGroupName, resourceName, GetCustomRequestHeaders(), containerName, itemName, request, CmdletCancellationToken).Result;
+ return response.OperationId;
+ }
+
+ ///
+ /// Update Protection
+ ///
+ ///
+ ///
+ public Guid UpdateProtection(string resourceGroupName, string resourceName, string containerName, string itemName, CSMUpdateProtectionRequest request)
+ {
+ var response = AzureBackupClient.DataSource.UpdateProtectionCSMAsync(resourceGroupName, resourceName, GetCustomRequestHeaders(), containerName, itemName, request, CmdletCancellationToken).Result;
+ return response.OperationId;
+ }
+
+ ///
+ /// Trigger backup on a DS
+ ///
+ ///
+ ///
+ ///
+ public Guid TriggerBackup(string resourceGroupName, string resourceName, string containerName, string itemName)
+ {
+ var response = AzureBackupClient.BackUp.TriggerBackUpAsync(resourceGroupName, resourceName, GetCustomRequestHeaders(), containerName, itemName, CmdletCancellationToken).Result;
+ return response.OperationId;
+ }
+
+ ///
+ /// Lists recovery points for specified item
+ ///
+ ///
+ ///
+ ///
+ public IEnumerable ListRecoveryPoints(string resourceGroupName, string resourceName, string containerName, string itemName)
+ {
+ var response = AzureBackupClient.RecoveryPoint.ListAsync(resourceGroupName, resourceName, GetCustomRequestHeaders(), containerName, itemName, CmdletCancellationToken).Result;
+ return (response != null) ? response.CSMRecoveryPointListResponse.Value : null;
+ }
+
+ ///
+ /// Lists recovery points for specified item
+ ///
+ ///
+ ///
+ ///
+ public CSMRecoveryPointResponse GetRecoveryPoint(string resourceGroupName, string resourceName, string containerName, string itemName, string recoveryPointName)
+ {
+ var response = AzureBackupClient.RecoveryPoint.GetAsync(resourceGroupName, resourceName, GetCustomRequestHeaders(), containerName, itemName, recoveryPointName, CmdletCancellationToken).Result;
+ return (response != null) ? response.CSMRecoveryPointResponse : null;
+ }
+
+ ///
+ /// Lists recovery points for specified item
+ ///
+ ///
+ ///
+ ///
+ ///
+ public Guid TriggerRestore(string resourceGroupName, string resourceName, string containerName, string itemName, string recoveryPointName, CSMRestoreRequest csmRestoreRequest)
+ {
+ var response = AzureBackupClient.Restore.TriggerResotreAsync(resourceGroupName, resourceName, GetCustomRequestHeaders(), containerName, itemName, recoveryPointName, csmRestoreRequest, CmdletCancellationToken).Result;
+ return response.OperationId;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/JobAdapter.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/JobAdapter.cs
new file mode 100644
index 000000000000..ee8b2d02208c
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/JobAdapter.cs
@@ -0,0 +1,53 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+using Microsoft.Azure.Common.Authentication;
+using Microsoft.Azure.Common.Authentication.Models;
+using System.Threading;
+using Hyak.Common;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+using System.Net;
+using Microsoft.WindowsAzure.Management.Scheduler;
+using Microsoft.Azure.Management.BackupServices;
+using Microsoft.Azure.Management.BackupServices.Models;
+using Mgmt = Microsoft.Azure.Management.BackupServices.Models;
+
+namespace Microsoft.Azure.Commands.AzureBackup.ClientAdapter
+{
+ public partial class AzureBackupClientAdapter
+ {
+ public IEnumerable ListJobs(string resourceGroupName, string resourceName, CSMJobQueryObject queryParams)
+ {
+ var response = AzureBackupClient.Job.ListAsync(resourceGroupName, resourceName, queryParams, GetCustomRequestHeaders(), CmdletCancellationToken).Result;
+ return response.List.Value;
+ }
+
+ public Mgmt.CSMJobDetailsResponse GetJobDetails(string resourceGroupName, string resourceName, string jobId)
+ {
+ var response = AzureBackupClient.Job.GetAsync(resourceGroupName, resourceName, jobId, GetCustomRequestHeaders(), CmdletCancellationToken).Result;
+ return response.Value;
+ }
+
+ public Guid TriggerCancelJob(string resourceGroupName, string resourceName, string jobId)
+ {
+ var response = AzureBackupClient.Job.StopAsync(resourceGroupName, resourceName, jobId, GetCustomRequestHeaders(), CmdletCancellationToken).Result.OperationId;
+ return response;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/OperationStatusAdapter.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/OperationStatusAdapter.cs
new file mode 100644
index 000000000000..fb3077e5b805
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/OperationStatusAdapter.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;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+using Microsoft.Azure.Common.Authentication;
+using Microsoft.Azure.Common.Authentication.Models;
+using System.Threading;
+using Hyak.Common;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+using System.Net;
+using Microsoft.WindowsAzure.Management.Scheduler;
+using Microsoft.Azure.Management.BackupServices;
+using Microsoft.Azure.Management.BackupServices.Models;
+
+namespace Microsoft.Azure.Commands.AzureBackup.ClientAdapter
+{
+ public partial class AzureBackupClientAdapter
+ {
+ public CSMOperationResult GetOperationStatus(string resourceGroupName, string resourceName, string operationId)
+ {
+ return AzureBackupClient.OperationStatus.CSMGetAsync(resourceGroupName, resourceName, operationId, GetCustomRequestHeaders(), CmdletCancellationToken).Result;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/PolicyAdapter.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/PolicyAdapter.cs
new file mode 100644
index 000000000000..df17ca032313
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/PolicyAdapter.cs
@@ -0,0 +1,102 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+using Microsoft.Azure.Common.Authentication;
+using Microsoft.Azure.Common.Authentication.Models;
+using System.Threading;
+using Hyak.Common;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+using System.Net;
+using System.Linq;
+using Microsoft.WindowsAzure.Management.Scheduler;
+using Microsoft.Azure.Management.BackupServices;
+using Microsoft.Azure.Management.BackupServices.Models;
+
+namespace Microsoft.Azure.Commands.AzureBackup.ClientAdapter
+{
+ public partial class AzureBackupClientAdapter
+ {
+ ///
+ /// Gets protection policies of matching name
+ ///
+ ///
+ ///
+ public CSMProtectionPolicyResponse GetProtectionPolicyByName(string resourceGroupName, string resourceName, string name)
+ {
+ var policyList = ListProtectionPolicies(resourceGroupName, resourceName);
+ var filteredList = policyList.Where(x => x.Name.Equals(name, System.StringComparison.InvariantCultureIgnoreCase));
+ return filteredList.FirstOrDefault();
+ }
+
+ ///
+ /// Gets all policies in the vault
+ ///
+ ///
+ public IList ListProtectionPolicies(string resourceGroupName, string resourceName)
+ {
+ var listResponse = AzureBackupClient.CSMProtectionPolicy.ListAsync(resourceGroupName, resourceName, GetCustomRequestHeaders(), CmdletCancellationToken).Result;
+ return listResponse.CSMProtectionPolicyListResponse.Value;
+ }
+
+ ///
+ /// Add protection policy
+ ///
+ ///
+ ///
+ public void AddProtectionPolicy(string resourceGroupName, string resourceName, string policyName, CSMAddProtectionPolicyRequest request)
+ {
+ AzureBackupClient.CSMProtectionPolicy.AddAsync(resourceGroupName, resourceName, policyName, request, GetCustomRequestHeaders(), CmdletCancellationToken).Wait();
+ }
+
+ ///
+ /// Delete protection policy
+ ///
+ ///
+ public void DeleteProtectionPolicy(string resourceGroupName, string resourceName, string policyName)
+ {
+ AzureBackupClient.CSMProtectionPolicy.DeleteAsync(resourceGroupName, resourceName, policyName, GetCustomRequestHeaders(), CmdletCancellationToken).Wait();
+ }
+
+ ///
+ /// Update specified protection policy
+ ///
+ ///
+ ///
+ public Guid UpdateProtectionPolicy(string resourceGroupName, string resourceName, string policyName, CSMUpdateProtectionPolicyRequest request)
+ {
+ var response = AzureBackupClient.CSMProtectionPolicy.UpdateAsync(resourceGroupName, resourceName, policyName, request, GetCustomRequestHeaders(), CmdletCancellationToken).Result;
+ return response.OperationId;
+ }
+
+ ///
+ /// Check protection policy name availability
+ ///
+ ///
+ ///
+ public void CheckProtectionPolicyNameAvailability(string resourceGroupName, string resourceName, string name)
+ {
+ var policy = GetProtectionPolicyByName(resourceGroupName, resourceName, name);
+ if (policy != null)
+ {
+ var exception = new ArgumentException(Resources.PolicyAlreadyExist);
+ throw exception;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/VaultAdapter.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/VaultAdapter.cs
index 9d997c95bf7c..6c4d36b51dab 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/VaultAdapter.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupClientAdapter/VaultAdapter.cs
@@ -51,7 +51,7 @@ public AzureBackupVault CreateOrUpdateAzureBackupVault(string resourceGroupName,
/// Updates storage type of the vault identified by client
///
///
- public void UpdateStorageType(string storageType)
+ public void UpdateStorageType(string resourceGroupName, string resourceName, string storageType)
{
UpdateVaultStorageTypeRequest updateVaultStorageTypeRequest = new UpdateVaultStorageTypeRequest()
{
@@ -61,7 +61,7 @@ public void UpdateStorageType(string storageType)
},
};
- AzureBackupVaultClient.Vault.UpdateStorageTypeAsync(updateVaultStorageTypeRequest, GetCustomRequestHeaders(), CmdletCancellationToken).Wait();
+ AzureBackupVaultClient.Vault.UpdateStorageTypeAsync(resourceGroupName, resourceName, updateVaultStorageTypeRequest, GetCustomRequestHeaders(), CmdletCancellationToken).Wait();
}
///
@@ -122,9 +122,9 @@ public void DeleteVault(string resourceGroupName, string vaultName)
AzureBackupVaultClient.Vault.DeleteAsync(resourceGroupName, vaultName, GetCustomRequestHeaders(), CmdletCancellationToken).Wait();
}
- public VaultCredUploadCertResponse UploadCertificate(string certName, VaultCredUploadCertRequest request)
+ public VaultCredUploadCertResponse UploadCertificate(string resourceGroupName, string resourceName, string certName, VaultCredUploadCertRequest request)
{
- return AzureBackupVaultClient.Vault.UploadCertificateAsync(certName, request, GetCustomRequestHeaders(), CmdletCancellationToken).Result;
+ return AzureBackupVaultClient.Vault.UploadCertificateAsync(resourceGroupName, resourceName, certName, request, GetCustomRequestHeaders(), CmdletCancellationToken).Result;
}
}
}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupCmdletBase.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupCmdletBase.cs
index 68e8ea0d1955..a30eb28024a3 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupCmdletBase.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupCmdletBase.cs
@@ -14,14 +14,19 @@
using Hyak.Common;
using Microsoft.Azure.Commands.AzureBackup.ClientAdapter;
+using Microsoft.Azure.Commands.AzureBackup.Models;
using Microsoft.Azure.Commands.AzureBackup.Properties;
using Microsoft.Azure.Common.Authentication;
using Microsoft.Azure.Common.Authentication.Models;
+using Microsoft.Azure.Management.BackupServices;
+using Microsoft.Azure.Management.BackupServices.Models;
using Microsoft.WindowsAzure.Commands.Utilities.Common;
using Microsoft.WindowsAzure.Management.Scheduler;
using System;
+using System.Collections.Generic;
using System.Management.Automation;
using System.Net;
+using System.Threading;
using CmdletModel = Microsoft.Azure.Commands.AzureBackup.Models;
namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
@@ -52,16 +57,16 @@ protected AzureBackupClientAdapter AzureBackupClient
protected void InitializeAzureBackupCmdlet(string rgName, string rName)
{
var cloudServicesClient = AzureSession.ClientFactory.CreateClient(Profile, Profile.Context.Subscription, AzureEnvironment.Endpoint.ResourceManager);
- azureBackupClientAdapter = new AzureBackupClientAdapter(cloudServicesClient.Credentials, cloudServicesClient.BaseUri, rgName, rName);
+ azureBackupClientAdapter = new AzureBackupClientAdapter(cloudServicesClient.Credentials, cloudServicesClient.BaseUri);
- WriteDebug(string.Format("Initialized AzureBackup Cmdlet, ClientRequestId: {0}, ResourceGroupName: {1}, ResourceName : {2}", azureBackupClientAdapter.GetClientRequestId(), rgName, rName));
+ WriteDebug(string.Format(Resources.InitializingClient, azureBackupClientAdapter.GetClientRequestId(), rgName, rName));
}
///
/// Initializes required client adapters
///
///
- protected void InitializeAzureBackupCmdlet(CmdletModel.AzurePSBackupVault vault)
+ protected void InitializeAzureBackupCmdlet(CmdletModel.AzureRMBackupVault vault)
{
InitializeAzureBackupCmdlet(vault.ResourceGroupName, vault.Name);
}
@@ -74,7 +79,7 @@ protected void ExecutionBlock(Action execAction)
}
catch (Exception exception)
{
- WriteDebug(String.Format("Caught exception, type: {0}", exception.GetType()));
+ WriteDebug(String.Format(Resources.ExceptionInExecution, exception.GetType()));
HandleException(exception);
}
}
@@ -88,7 +93,7 @@ private void HandleException(Exception exception)
if (exception is AggregateException && ((AggregateException)exception).InnerExceptions != null
&& ((AggregateException)exception).InnerExceptions.Count != 0)
{
- WriteDebug("Handling aggregate exception");
+ WriteDebug(Resources.AggregateException);
foreach (var innerEx in ((AggregateException)exception).InnerExceptions)
{
HandleException(innerEx);
@@ -105,14 +110,14 @@ private void HandleException(Exception exception)
var cloudEx = exception as CloudException;
if (cloudEx.Response != null && cloudEx.Response.StatusCode == HttpStatusCode.NotFound)
{
- WriteDebug(String.Format("Received CloudException, StatusCode: {0}", cloudEx.Response.StatusCode));
+ WriteDebug(String.Format(Resources.CloudExceptionCodeNotFound, cloudEx.Response.StatusCode));
targetEx = new Exception(Resources.ResourceNotFoundMessage);
targetErrorCategory = ErrorCategory.InvalidArgument;
}
else if (cloudEx.Error != null)
{
- WriteDebug(String.Format("Received CloudException, ErrorCode: {0}, Message: {1}", cloudEx.Error.Code, cloudEx.Error.Message));
+ WriteDebug(String.Format(Resources.CloudException, cloudEx.Error.Code, cloudEx.Error.Message));
targetErrorId = cloudEx.Error.Code;
targetErrorCategory = ErrorCategory.InvalidOperation;
@@ -121,13 +126,13 @@ private void HandleException(Exception exception)
else if (exception is WebException)
{
var webEx = exception as WebException;
- WriteDebug(string.Format("Received WebException, Response: {0}, Status: {1}", webEx.Response, webEx.Status));
+ WriteDebug(string.Format(Resources.WebException, webEx.Response, webEx.Status));
targetErrorCategory = ErrorCategory.ConnectionError;
}
else if (exception is ArgumentException || exception is ArgumentNullException)
{
- WriteDebug(string.Format("Received ArgumentException"));
+ WriteDebug(string.Format(Resources.ArgumentException));
targetErrorCategory = ErrorCategory.InvalidArgument;
}
@@ -135,6 +140,57 @@ private void HandleException(Exception exception)
WriteError(errorRecord);
}
}
+
+ ///
+ /// Get status of long running operation
+ ///
+ ///
+ ///
+ internal CSMOperationResult GetOperationStatus(string resourceGroupName, string resourceName, Guid operationId)
+ {
+ return AzureBackupClient.GetOperationStatus(resourceGroupName, resourceName, operationId.ToString());
+ }
+
+ private const int defaultOperationStatusRetryTimeInMilliSec = 10 * 1000; // 10 sec
+
+ ///
+ /// Track completion of long running operation
+ ///
+ ///
+ /// In Millisec
+ ///
+ internal CSMOperationResult TrackOperation(string resourceGroupName, string resourceName, Guid operationId, int checkFrequency = defaultOperationStatusRetryTimeInMilliSec)
+ {
+ CSMOperationResult response = null;
+
+ while (true)
+ {
+ response = GetOperationStatus(resourceGroupName, resourceName, operationId);
+
+ if (response.Status != CSMAzureBackupOperationStatus.InProgress.ToString())
+ {
+ WriteDebug(String.Format(Resources.OperationStatus, response.Status));
+ break;
+ }
+
+ Thread.Sleep(checkFrequency);
+ }
+
+ return response;
+ }
+
+ internal IList GetCreatedJobs(string resourceGroupName, string resourceName, AzureRMBackupVault vault, IList jobIds)
+ {
+ IList jobs = new List();
+
+ foreach (string jobId in jobIds)
+ {
+ CSMJobDetailsResponse job = AzureBackupClient.GetJobDetails(resourceGroupName, resourceName, jobId);
+ jobs.Add(new AzureRMBackupJob(vault, job.JobDetailedProperties, job.Name));
+ }
+
+ return jobs;
+ }
}
}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupCmdletHelpMessage.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupCmdletHelpMessage.cs
index 7d8dd45e1b4b..46d975b9255b 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupCmdletHelpMessage.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupCmdletHelpMessage.cs
@@ -27,5 +27,71 @@ internal static class AzureBackupCmdletHelpMessage
public const string ContainerRegistrationStatus = "The container registration status.";
public const string ContainerType = "The container type.";
public const string AzureBackupContainer = "Azure Backup Container for Azure Backup Item.";
+
+ public const string PolicyName = "The protection policy name.";
+ public const string ResourceTags = "A hash table which represents resource tags.";
+ public const string ContainerId = "The container ID.";
+
+ public const string JobFilterJobIdHelpMessage = "The job ID to filter jobs";
+ public const string JobFilterJobHelpMessage = "The job for filtering";
+ public const string JobFilterStartTimeHelpMessage = "The start time of query range";
+ public const string JobFilterEndTimeHelpMessage = "The end time of query range";
+ public const string JobFilterOperationHelpMessage = "The operation for filtering jos";
+ public const string JobFilterStatusHelpMessage = "The status for filtering jobs";
+ public const string JobFitlerVaultHelpMessage = "The vault of which jobs have to be filtered";
+ public const string JobFilterTypeHelpMessage = "The type of workload whose jobs have to be filtered";
+
+ public const string JobDetailsFilterJobIdHelpMessage = "The job ID to get details";
+ public const string JobDetailsFilterVaultHelpMessage = "The vault of which job details should be fetched";
+ public const string JobDetailsFilterJobHelpMessage = "The job whose full details should be fetched";
+
+ public const string StopJobFilterJobIdHelpMessage = "The job ID to stop job";
+ public const string StopJobFilterVaultHelpMessage = "The vault of which a job has to be stopped";
+ public const string StopJobFilterJobHelpMessage = "The job which should be stopped";
+
+ public const string WaitJobFilterJobIdHelpMessage = "The job ID to stop job";
+ public const string WaitJobFilterVaultHelpMessage = "The vault of which a job has to be stopped";
+ public const string WaitJobFilterJobHelpMessage = "The job which should be stopped";
+ public const string WaitJobFilterTimeoutHelpMessage = "Maximum number of seconds for which cmdlet should wait before job(s) complete running.";
+
+ public const string VirtualMachine = "Virtual Machine.";
+ public const string ProtectionStatus = "Protection Status of the azure backup item.";
+ public const string AzureBackUpItem = "Azure BackUp Item.";
+ public const string RecoveryPointId = "Recovery Point Id.";
+ public const string StorageAccountName = "Storage Account Name.";
+ public const string AzureBackUpRecoveryPoint = "Recovery Point.";
+ public const string Type = "Type of Azure Backup Item.";
+ public const string Status = "Status of Azure Backup Item";
+ public const string AzureBackupItem = "Azure Backup Item for enabling protection";
+ public const string RemoveProtectionOption = "Remove Protection Option";
+ public const string Reason = "Reson for removing protection";
+ public const string Comments = "Comments for for removing protection";
+ public const string WorkloadType = "Workload type for which the policy is defined.";
+ public const string BackupType = "Type of backup.";
+ public const string DailyScheduleType = "Switch parameter for daily backup schedule.";
+ public const string WeeklyScheduleType = "Switch parameter for weekly backup schedule.";
+ public const string ScheduleRunDays = "Days of week for running backup, required for weekly schedule.";
+ public const string ScheduleRunTimes = "Times of day in UTC for running backup.";
+ public const string RetentionType = "Unit of retention for the recovery point.";
+ public const string RententionDuration = "Duration of retention for the recovery point in units specified by RetentionType.";
+ public const string PolicyNewName = "Policy new name";
+ public const string AzureBackupPolicy = "Azure Backup protection policy";
+ public const string VMName = "Azure VM name to be register";
+ public const string ServiceName = "Cloud service name of Azure VM to be register";
+ public const string RGName = "Resource Group name of Azure VM to be register";
+ public const string AzureBackupContainerToUnregister = "Azure Backup Container tobe unregister.";
+
+ public const string RetentionPolicyList = "List of Retention Policies to be associated with protection policy.";
+ public const string DailyRetention = "Switch param for Daily Retention";
+ public const string WeeklyRetention = "Switch param for Daily Retention";
+ public const string MonthlyRetentionInDailyFormat = "Switch param for MonthlyRetentionInDailyFormat";
+ public const string MonthlyRetentionInWeeklyFormat = "Switch param for MonthlyRetentionInWeeklyFormat";
+ public const string YearlyRetentionInDailyFormat = "Switch param for YearlyRetentionInDailyFormat";
+ public const string YearlyRetentionInWeeklyFormat = "Switch param for YearlyRetentionInWeeklyFormat";
+ public const string DaysOfWeek = "List of Days of Week";
+ public const string DaysOfMonth = "List of Days of Month";
+ public const string WeekNumber = "List of Week Numbers of the month";
+ public const string MonthsOfYear = "List of Months of the year";
+ public const string Retention = "Retention duration value";
}
}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupContainerCmdletBase.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupContainerCmdletBase.cs
index b1b623d832c6..8a70d8635362 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupContainerCmdletBase.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupContainerCmdletBase.cs
@@ -31,13 +31,13 @@ public abstract class AzureBackupContainerCmdletBase : AzureBackupCmdletBase
{
[Parameter(Position = 0, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.AzureBackupContainer, ValueFromPipeline = true)]
[ValidateNotNullOrEmpty]
- public AzureBackupContainer Container { get; set; }
+ public AzureRMBackupContainer Container { get; set; }
public override void ExecuteCmdlet()
{
base.ExecuteCmdlet();
- WriteDebug(String.Format("Cmdlet called for ResourceGroupName: {0}, ResourceName: {1}, Location: {2}", Container.ResourceGroupName, Container.ResourceName, Container.Location));
+ WriteDebug(String.Format(Resources.CmdletCalled, Container.ResourceGroupName, Container.ResourceName, Container.Location));
InitializeAzureBackupCmdlet(Container.ResourceGroupName, Container.ResourceName);
}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupDSCmdletBase.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupDSCmdletBase.cs
new file mode 100644
index 000000000000..74455d5fefd4
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupDSCmdletBase.cs
@@ -0,0 +1,46 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+using Microsoft.Azure.Common.Authentication;
+using Microsoft.Azure.Common.Authentication.Models;
+using System.Threading;
+using Hyak.Common;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+using System.Net;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ public abstract class AzureRMBackupDSCmdletBase : AzureBackupCmdletBase
+ {
+ [Parameter(Position = 0, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.AzureBackUpItem, ValueFromPipeline = true)]
+ [ValidateNotNullOrEmpty]
+ public AzureRMBackupItem Item { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ base.ExecuteCmdlet();
+
+ WriteDebug(String.Format(Resources.CmdletCalled, Item.ResourceGroupName, Item.ResourceName, Item.Location));
+
+ InitializeAzureBackupCmdlet(Item.ResourceGroupName, Item.ResourceName);
+ }
+ }
+}
+
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupItemCmdletBase.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupItemCmdletBase.cs
new file mode 100644
index 000000000000..fdad61ff1125
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupItemCmdletBase.cs
@@ -0,0 +1,44 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+using Microsoft.Azure.Common.Authentication;
+using Microsoft.Azure.Common.Authentication.Models;
+using System.Threading;
+using Hyak.Common;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+using System.Net;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ public abstract class AzureRMBackupItemCmdletBase : AzureBackupCmdletBase
+ {
+ [Parameter(Position = 0, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.AzureBackupItem, ValueFromPipeline = true)]
+ [ValidateNotNullOrEmpty]
+ public AzureRMBackupContainerContextObject Item { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ base.ExecuteCmdlet();
+ WriteDebug(String.Format(Resources.CmdletCalled, Item.ResourceGroupName, Item.ResourceName, Item.Location));
+ InitializeAzureBackupCmdlet(Item.ResourceGroupName, Item.ResourceName);
+ }
+ }
+}
+
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupPolicyCmdletBase.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupPolicyCmdletBase.cs
new file mode 100644
index 000000000000..fd3448384205
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupPolicyCmdletBase.cs
@@ -0,0 +1,49 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+using Microsoft.Azure.Common.Authentication;
+using Microsoft.Azure.Common.Authentication.Models;
+using System.Threading;
+using Hyak.Common;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+using System.Net;
+using Microsoft.Azure.Management.BackupServices.Models;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ public abstract class AzureBackupPolicyCmdletBase : AzureBackupCmdletBase
+ {
+ // ToDO:
+ // Correct Help message and other attributes related to paameters
+ [Parameter(Position = 0, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.AzureBackupPolicy, ValueFromPipeline = true)]
+ [ValidateNotNullOrEmpty]
+ public AzureRMBackupProtectionPolicy ProtectionPolicy { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ base.ExecuteCmdlet();
+
+ WriteDebug(String.Format(Resources.CmdletCalled,
+ ProtectionPolicy.ResourceGroupName, ProtectionPolicy.ResourceName, ProtectionPolicy.Location));
+
+ InitializeAzureBackupCmdlet(ProtectionPolicy.ResourceGroupName, ProtectionPolicy.ResourceName);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupVaultCmdletBase.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupVaultCmdletBase.cs
index 9ceac2e2fe68..7b25d97ca401 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupVaultCmdletBase.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupVaultCmdletBase.cs
@@ -21,7 +21,7 @@ public abstract class AzureBackupVaultCmdletBase : AzureBackupCmdletBase
{
[Parameter(Position = 0, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.Vault, ValueFromPipeline = true)]
[ValidateNotNullOrEmpty]
- public AzurePSBackupVault Vault { get; set; }
+ public AzureRMBackupVault Vault { get; set; }
public override void ExecuteCmdlet()
{
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Backup/BackupAzureRMBackupItem.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Backup/BackupAzureRMBackupItem.cs
new file mode 100644
index 000000000000..dff9d4cb385c
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Backup/BackupAzureRMBackupItem.cs
@@ -0,0 +1,49 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using System.Linq;
+using Microsoft.Azure.Management.BackupServices.Models;
+using MBS = Microsoft.Azure.Management.BackupServices;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ ///
+ /// Backup Azue Backup Item
+ ///
+ [Cmdlet(VerbsData.Backup, "AzureRMBackupItem"), OutputType(typeof(AzureRMBackupJob))]
+ public class BackupAzureRMBackupItem : AzureRMBackupDSCmdletBase
+ {
+ public override void ExecuteCmdlet()
+ {
+ ExecutionBlock(() =>
+ {
+ base.ExecuteCmdlet();
+
+ WriteDebug(Resources.MakingClientCall);
+ Guid operationId = AzureBackupClient.TriggerBackup(Item.ResourceGroupName, Item.ResourceName, Item.ContainerUniqueName, Item.ItemName);
+
+ WriteDebug(string.Format(Resources.TriggeringBackup, operationId));
+
+ var operationStatus = TrackOperation(Item.ResourceGroupName, Item.ResourceName, operationId);
+ WriteObject(GetCreatedJobs(Item.ResourceGroupName, Item.ResourceName, new Models.AzureRMBackupVault(Item.ResourceGroupName, Item.ResourceName, Item.Location), operationStatus.JobList).FirstOrDefault());
+ });
+ }
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/EnableAzureBackupContainerReregistration.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/EnableAzureRMBackupContainerReregistration.cs
similarity index 86%
rename from src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/EnableAzureBackupContainerReregistration.cs
rename to src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/EnableAzureRMBackupContainerReregistration.cs
index 4ae62420fa63..7fe6cc352f75 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/EnableAzureBackupContainerReregistration.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/EnableAzureRMBackupContainerReregistration.cs
@@ -33,8 +33,8 @@ namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
///
/// Enables reregistration of a machine container
///
- [Cmdlet(VerbsLifecycle.Enable, "AzureBackupContainerReregistration")]
- public class EnableAzureBackupContainerReregistration : AzureBackupContainerCmdletBase
+ [Cmdlet(VerbsLifecycle.Enable, "AzureRMBackupContainerReregistration")]
+ public class EnableAzureRMBackupContainerReregistration : AzureBackupContainerCmdletBase
{
public override void ExecuteCmdlet()
{
@@ -47,10 +47,10 @@ public override void ExecuteCmdlet()
{
case AzureBackupContainerType.Windows:
case AzureBackupContainerType.SCDPM:
- AzureBackupClient.EnableMachineContainerReregistration(Container.Id);
+ AzureBackupClient.EnableMachineContainerReregistration(Container.ResourceGroupName, Container.ResourceName, Container.Id);
break;
default:
- throw new ArgumentException("Reregistration can be enable only for machine containers.");
+ throw new ArgumentException(Resources.CannotEnableRegistration);
}
});
}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/GetAzureBackupContainer.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/GetAzureBackupContainer.cs
deleted file mode 100644
index fd5bcb2d6b3c..000000000000
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/GetAzureBackupContainer.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-// ----------------------------------------------------------------------------------
-//
-// Copyright Microsoft Corporation
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-// http://www.apache.org/licenses/LICENSE-2.0
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ----------------------------------------------------------------------------------
-
-using Microsoft.Azure.Commands.AzureBackup.Helpers;
-using Microsoft.Azure.Commands.AzureBackup.Library;
-using Microsoft.Azure.Commands.AzureBackup.Models;
-using Microsoft.Azure.Management.BackupServices.Models;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Management.Automation;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
-{
- ///
- /// Get list of containers
- ///
- [Cmdlet(VerbsCommon.Get, "AzureBackupContainer"), OutputType(typeof(List))]
- public class GetAzureBackupContainer : AzureBackupVaultCmdletBase
- {
- [Parameter(Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.ManagedResourceName)]
- [ValidateNotNullOrEmpty]
- public string Name { get; set; }
-
- [Parameter(Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.ContainerType)]
- [ValidateNotNullOrEmpty]
- public AzureBackupContainerType Type { get; set; }
-
- public override void ExecuteCmdlet()
- {
- ExecutionBlock(() =>
- {
- base.ExecuteCmdlet();
-
- List containers = new List();
-
- switch (Type)
- {
- case AzureBackupContainerType.Windows:
- case AzureBackupContainerType.SCDPM:
- containers.AddRange(GetMachineContainers());
- break;
- default:
- break;
- }
-
- WriteObject(containers);
- });
- }
-
- private List GetMachineContainers()
- {
- List marsContainerResponses = new List();
- if (string.IsNullOrEmpty(Name))
- {
- marsContainerResponses.AddRange(AzureBackupClient.ListMachineContainers());
- }
- else
- {
- marsContainerResponses.AddRange(AzureBackupClient.ListMachineContainers(Name));
- }
-
- return marsContainerResponses.ConvertAll(marsContainerResponse =>
- {
- return new AzureBackupContainer(Vault, marsContainerResponse);
- }).Where(container => container.ContainerType == Type.ToString()).ToList();
- }
- }
-}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/GetAzureRMBackupContainer.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/GetAzureRMBackupContainer.cs
new file mode 100644
index 000000000000..4a60561d17c8
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/GetAzureRMBackupContainer.cs
@@ -0,0 +1,151 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.Azure.Commands.AzureBackup.Helpers;
+using Microsoft.Azure.Commands.AzureBackup.Library;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+using Microsoft.Azure.Management.BackupServices.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ ///
+ /// Get list of containers
+ ///
+ [Cmdlet(VerbsCommon.Get, "AzureRMBackupContainer"), OutputType(typeof(List))]
+ public class GetAzureRMBackupContainer : AzureBackupVaultCmdletBase
+ {
+ [Parameter(Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.ManagedResourceName)]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [Parameter(Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.ContainerType)]
+ [ValidateNotNullOrEmpty]
+ public AzureBackupContainerType Type { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.ManagedResourceGroupName)]
+ [ValidateNotNullOrEmpty]
+ public string ManagedResourceGroupName { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.ContainerRegistrationStatus)]
+ [ValidateNotNullOrEmpty]
+ public AzureBackupContainerRegistrationStatus Status { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ ExecutionBlock(() =>
+ {
+ base.ExecuteCmdlet();
+
+ List containers = new List();
+
+ switch (Type)
+ {
+ case AzureBackupContainerType.Windows:
+ case AzureBackupContainerType.SCDPM:
+ containers.AddRange(GetMachineContainers(Vault.ResourceGroupName, Vault.Name));
+ break;
+ case AzureBackupContainerType.AzureVM:
+ containers.AddRange(GetManagedContainers(Vault.ResourceGroupName, Vault.Name));
+ break;
+ default:
+ break;
+ }
+
+ if (containers.Count == 1)
+ {
+ WriteObject(containers.First());
+ }
+ else
+ {
+ WriteObject(containers);
+ }
+ });
+ }
+
+ private List GetMachineContainers(string resourceGroupName, string resourceName)
+ {
+ List marsContainerResponses = new List();
+
+ // Machine containers are always registered.
+ // So if requested Status is not Registered, return an empty list.
+ // Machine containers don't have a resource group.
+ // So, if a resource group is passed, return an empty list.
+ if (Status == AzureBackupContainerRegistrationStatus.NotRegistered ||
+ Status == AzureBackupContainerRegistrationStatus.Registering ||
+ !string.IsNullOrEmpty(ManagedResourceGroupName))
+ {
+ return new List();
+ }
+
+ if (string.IsNullOrEmpty(Name))
+ {
+ marsContainerResponses.AddRange(AzureBackupClient.ListMachineContainers(resourceGroupName, resourceName));
+ }
+ else
+ {
+ marsContainerResponses.AddRange(AzureBackupClient.ListMachineContainers(resourceGroupName, resourceName, Name));
+ }
+
+ return marsContainerResponses.ConvertAll(marsContainerResponse =>
+ {
+ return new AzureRMBackupContainer(Vault, marsContainerResponse);
+ }).Where(container => container.ContainerType == Type.ToString()).ToList();
+ }
+
+ private List GetManagedContainers(string resourceGroupName, string resourceName)
+ {
+ List managedContainers = new List();
+
+ ContainerQueryParameters parameters = new ContainerQueryParameters();
+ parameters.ContainerType = ManagedContainerType.IaasVM.ToString();
+ parameters.FriendlyName = Name;
+ if (Status != 0)
+ {
+ parameters.Status = Status.ToString();
+ }
+
+ List containers = new List();
+ containers.AddRange(AzureBackupClient.ListContainers(resourceGroupName, resourceName, parameters));
+ WriteDebug(string.Format(Resources.FetchedContainer , containers.Count()));
+
+ // When resource group name is specified, remove all containers whose resource group name
+ // doesn't match the given resource group name
+ if (!string.IsNullOrEmpty(ManagedResourceGroupName))
+ {
+ containers.RemoveAll(container =>
+ {
+ string rgName = ContainerHelpers.GetRGNameFromId(container.Properties.ParentContainerId);
+ return rgName != ManagedResourceGroupName;
+ });
+ WriteDebug(string.Format(Resources.ContainerCountAfterFilter, containers.Count));
+ }
+
+ // TODO: Container friendly name is not captures in Container response
+ // BUG: Friendly name was previously assigned to ResourceName (vault name)
+ managedContainers.AddRange(containers.ConvertAll(container =>
+ {
+ return new AzureRMBackupContainer(Vault, container);
+ }));
+
+ return managedContainers;
+ }
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/RegisterAzureRMBackupContainer.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/RegisterAzureRMBackupContainer.cs
new file mode 100644
index 000000000000..aac86a2f5ebd
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/RegisterAzureRMBackupContainer.cs
@@ -0,0 +1,191 @@
+// ----------------------------------------------------------------------------------
+//
+// 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.Web;
+using System.Collections.Generic;
+using System.Collections.Specialized;
+using System.Linq;
+using System.Management.Automation;
+using System.Text;
+using System.Threading.Tasks;
+using Microsoft.Azure.Management.BackupServices.Models;
+using MBS = Microsoft.Azure.Management.BackupServices;
+using Microsoft.WindowsAzure.Commands.ServiceManagement.Model;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Helpers;
+using Microsoft.Azure.Management.BackupServices;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ ///
+ /// Get list of containers
+ ///
+ [Cmdlet(VerbsLifecycle.Register, "AzureRMBackupContainer", DefaultParameterSetName = V1VMParameterSet), OutputType(typeof(AzureRMBackupJob))]
+ public class RegisterAzureRMBackupContainer : AzureBackupVaultCmdletBase
+ {
+ internal const string V1VMParameterSet = "V1VM";
+ internal const string V2VMParameterSet = "V2VM";
+
+ [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = V1VMParameterSet, HelpMessage = AzureBackupCmdletHelpMessage.VMName)]
+ [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = V2VMParameterSet, HelpMessage = AzureBackupCmdletHelpMessage.VMName)]
+ public string Name { get; set; }
+
+ [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = V1VMParameterSet, HelpMessage = AzureBackupCmdletHelpMessage.ServiceName)]
+ public string ServiceName { get; set; }
+
+ [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = V2VMParameterSet, HelpMessage = AzureBackupCmdletHelpMessage.RGName)]
+ public string ResourceGroupName { get; set; }
+
+
+ public override void ExecuteCmdlet()
+ {
+ ExecutionBlock(() =>
+ {
+ base.ExecuteCmdlet();
+
+ string vmName = String.Empty;
+ string rgName = String.Empty;
+ string ServiceOrRG = String.Empty;
+
+ if(this.ParameterSetName == V1VMParameterSet)
+ {
+ vmName = Name;
+ rgName = ServiceName;
+ WriteDebug(String.Format(Resources.RegisteringARMVM1, vmName, rgName));
+ ServiceOrRG = "CloudServiceName";
+ }
+ else if(this.ParameterSetName == V2VMParameterSet)
+ {
+ vmName = Name;
+ rgName = ResourceGroupName;
+ WriteDebug(String.Format(Resources.RegisteringARMVM2, vmName, rgName));
+ ServiceOrRG = "ResourceGroupName";
+ }
+
+ else
+ {
+ throw new PSArgumentException(Resources.PSArgumentException); //TODO: PM scrub needed
+ }
+
+ Guid jobId = Guid.Empty;
+ bool isDiscoveryNeed = false;
+
+ CSMContainerResponse container = null;
+ isDiscoveryNeed = IsDiscoveryNeeded(vmName, rgName, out container);
+ if(isDiscoveryNeed)
+ {
+ WriteDebug(String.Format(Resources.VMNotDiscovered, vmName));
+ RefreshContainer(Vault.ResourceGroupName, Vault.Name);
+ isDiscoveryNeed = IsDiscoveryNeeded(vmName, rgName, out container);
+ if ((isDiscoveryNeed == true) || (container == null))
+ {
+ //Container is not discovered. Throw exception
+ string errMsg = String.Format(Resources.DiscoveryFailure, vmName, ServiceOrRG, rgName);
+ WriteDebug(errMsg);
+ ThrowTerminatingError(new ErrorRecord(new Exception(Resources.AzureVMNotFound), string.Empty, ErrorCategory.InvalidArgument, null));
+ }
+ }
+
+ //Container is discovered. Register the container
+ WriteDebug(String.Format(Resources.RegisteringVM, vmName));
+ var operationId = AzureBackupClient.RegisterContainer(Vault.ResourceGroupName, Vault.Name, container.Name);
+
+ var operationStatus = GetOperationStatus(Vault.ResourceGroupName, Vault.Name, operationId);
+ WriteObject(GetCreatedJobs(Vault.ResourceGroupName, Vault.Name, Vault, operationStatus.JobList).FirstOrDefault());
+ });
+ }
+
+ private void RefreshContainer(string resourceGroupName, string resourceName)
+ {
+ bool isRetryNeeded = true;
+ int retryCount = 1;
+ bool isDiscoverySuccessful = false;
+ string errorMessage = string.Empty;
+ while (isRetryNeeded && retryCount <= 3)
+ {
+ var operationId = AzureBackupClient.RefreshContainers(resourceGroupName, resourceName);
+
+ //Now wait for the operation to Complete
+ isRetryNeeded = WaitForDiscoveryToComplete(resourceGroupName, resourceName, operationId, out isDiscoverySuccessful, out errorMessage);
+ retryCount++;
+ }
+
+ if (!isDiscoverySuccessful)
+ {
+ ThrowTerminatingError(new ErrorRecord(new Exception(errorMessage), string.Empty, ErrorCategory.InvalidArgument, null));
+ }
+ }
+
+ private bool WaitForDiscoveryToComplete(string resourceGroupName, string resourceName, Guid operationId, out bool isDiscoverySuccessful, out string errorMessage)
+ {
+ bool isRetryNeeded = false;
+ var status = TrackOperation(resourceGroupName, resourceName, operationId);
+ errorMessage = String.Empty;
+
+ isDiscoverySuccessful = true;
+ //If operation fails check if retry is needed or not
+ if (status.Status != CSMAzureBackupOperationStatus.Succeeded.ToString())
+ {
+ isDiscoverySuccessful = false;
+ errorMessage = status.Error.Message;
+ WriteDebug(String.Format(Resources.DiscoveryFailureErrorCode, status.Error.Code));
+ if ((status.Error.Code == AzureBackupOperationErrorCode.DiscoveryInProgress.ToString() ||
+ (status.Error.Code == AzureBackupOperationErrorCode.BMSUserErrorObjectLocked.ToString())))
+ {
+ //Need to retry for this errors
+ isRetryNeeded = true;
+ WriteDebug(String.Format(Resources.RertyDiscovery));
+ }
+ }
+ return isRetryNeeded;
+ }
+
+ private bool IsDiscoveryNeeded(string vmName, string rgName, out CSMContainerResponse container)
+ {
+ bool isDiscoveryNeed = false;
+ ContainerQueryParameters parameters = new ContainerQueryParameters()
+ {
+ ContainerType = ManagedContainerType.IaasVM.ToString(),
+ FriendlyName = vmName,
+ Status = AzureBackupContainerRegistrationStatus.NotRegistered.ToString(),
+ };
+
+ //First check if container is discovered or not
+ var containers = AzureBackupClient.ListContainers(Vault.ResourceGroupName, Vault.Name, parameters);
+ WriteDebug(String.Format(Resources.ContainerCountFromService, containers.Count()));
+ if (containers.Count() == 0)
+ {
+ //Container is not discover
+ WriteDebug(Resources.ContainerNotDiscovered);
+ container = null;
+ isDiscoveryNeed = true;
+ }
+
+ else
+ {
+ //We can have multiple container with same friendly name.
+ container = containers.Where(c => ContainerHelpers.GetRGNameFromId(c.Properties.ParentContainerId).Equals(rgName.ToLower())).FirstOrDefault(); //TODO need to change.
+ if (container == null)
+ {
+ //Container is not in list of registered container
+ WriteDebug(String.Format(Resources.DesiredContainerNotFound));
+ isDiscoveryNeed = true;
+ }
+ }
+ return isDiscoveryNeed;
+ }
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/UnregisterAzureBackupContainer.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/UnregisterAzureRMBackupContainer.cs
similarity index 72%
rename from src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/UnregisterAzureBackupContainer.cs
rename to src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/UnregisterAzureRMBackupContainer.cs
index 9b02d0e5530a..08f4b8e4e912 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/UnregisterAzureBackupContainer.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Container/UnregisterAzureRMBackupContainer.cs
@@ -31,8 +31,8 @@ namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
///
/// Get list of containers
///
- [Cmdlet(VerbsLifecycle.Unregister, "AzureBackupContainer")]
- public class UnregisterAzureBackupContainer : AzureBackupContainerCmdletBase
+ [Cmdlet(VerbsLifecycle.Unregister, "AzureRMBackupContainer")]
+ public class UnregisterAzureRMBackupContainer : AzureBackupContainerCmdletBase
{
private PowerShellCustomConfirmation customerConfirmation;
@@ -45,13 +45,16 @@ public override void ExecuteCmdlet()
{
base.ExecuteCmdlet();
- AzureBackupContainerType containerType = (AzureBackupContainerType)Enum.Parse(typeof(AzureBackupContainerType), Container.ContainerType);
+ AzureBackupContainerType containerType = (AzureBackupContainerType)Enum.Parse(typeof(AzureBackupContainerType), Container.ContainerType, true);
switch (containerType)
{
case AzureBackupContainerType.Windows:
case AzureBackupContainerType.SCDPM:
DeleteServer();
break;
+ case AzureBackupContainerType.AzureVM:
+ UnregisterContainer();
+ break;
default:
break;
}
@@ -70,8 +73,19 @@ private void DeleteServer()
if (shouldUnregister)
{
- AzureBackupClient.UnregisterMachineContainer(Container.Id);
+ AzureBackupClient.UnregisterMachineContainer(Container.ResourceGroupName, Container.ResourceName, Container.Id);
}
}
+
+ private void UnregisterContainer()
+ {
+ string containerUniqueName = Container.ContainerUniqueName;
+ var operationId = AzureBackupClient.UnRegisterContainer(Container.ResourceGroupName, Container.ResourceName, containerUniqueName);
+
+ WriteObject(GetCreatedJobs(Container.ResourceGroupName,
+ Container.ResourceName,
+ new Models.AzureRMBackupVault(Container.ResourceGroupName, Container.ResourceName, Container.Location),
+ GetOperationStatus(Container.ResourceGroupName, Container.ResourceName, operationId).JobList).FirstOrDefault());
+ }
}
}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Item/Disable-AzureRMBackupProtection .cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Item/Disable-AzureRMBackupProtection .cs
new file mode 100644
index 000000000000..ef40407e65df
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Item/Disable-AzureRMBackupProtection .cs
@@ -0,0 +1,84 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+using Microsoft.Azure.Management.BackupServices;
+using Microsoft.Azure.Management.BackupServices.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Management.Automation;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets.DataSource
+{
+ ///
+ /// Disable Azure Backup protection
+ ///
+ [Cmdlet(VerbsLifecycle.Disable, "AzureRMBackupProtection"), OutputType(typeof(AzureRMBackupJob))]
+ public class DisableAzureRMBackupProtection : AzureRMBackupDSCmdletBase
+ {
+ [Parameter(Position = 1, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.RemoveProtectionOption)]
+ public SwitchParameter RemoveRecoveryPoints
+ {
+ get { return DeleteBackupData; }
+ set { DeleteBackupData = value; }
+ }
+ private bool DeleteBackupData;
+
+ [Parameter(Position = 2, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.Reason)]
+ public string Reason { get; set; }
+
+ [Parameter(Position = 3, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.Comments)]
+ public string Comments { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ ExecutionBlock(() =>
+ {
+ base.ExecuteCmdlet();
+ Guid operationId = Guid.Empty;
+ WriteDebug(Resources.MakingClientCall);
+
+ if (!this.DeleteBackupData)
+ {
+ //Calling update protection with policy Id as empty.
+ CSMUpdateProtectionRequest input = new CSMUpdateProtectionRequest()
+ {
+ Properties = new CSMUpdateProtectionRequestProperties(string.Empty)
+ };
+
+ operationId = AzureBackupClient.UpdateProtection(Item.ResourceGroupName, Item.ResourceName, Item.ContainerUniqueName, Item.ItemName, input);
+ }
+
+ else
+ {
+ //Calling disable protection
+ operationId = AzureBackupClient.DisableProtection(Item.ResourceGroupName, Item.ResourceName, Item.ContainerUniqueName, Item.ItemName);
+ }
+
+
+ WriteDebug(Resources.DisableAzureBackupProtection);
+ var operationStatus = TrackOperation(Item.ResourceGroupName, Item.ResourceName, operationId);
+ this.WriteObject(GetCreatedJobs(Item.ResourceGroupName,
+ Item.ResourceName,
+ new Models.AzureRMBackupVault(Item.ResourceGroupName, Item.ResourceName, Item.Location),
+ operationStatus.JobList).FirstOrDefault());
+ });
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Item/Enable-AzureRMBackupProtection .cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Item/Enable-AzureRMBackupProtection .cs
new file mode 100644
index 000000000000..1c7a6f518c05
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Item/Enable-AzureRMBackupProtection .cs
@@ -0,0 +1,87 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using System.Linq;
+using Microsoft.Azure.Management.BackupServices.Models;
+using MBS = Microsoft.Azure.Management.BackupServices;
+using System.Runtime.Serialization;
+using Microsoft.Azure.Management.BackupServices;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ ///
+ /// Enable Azure Backup protection
+ ///
+ [Cmdlet(VerbsLifecycle.Enable, "AzureRMBackupProtection"), OutputType(typeof(AzureRMBackupJob))]
+ public class EnableAzureRMBackupProtection : AzureRMBackupItemCmdletBase
+ {
+ [Parameter(Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.PolicyName)]
+ [ValidateNotNullOrEmpty]
+ public AzureRMBackupProtectionPolicy Policy { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ ExecutionBlock(() =>
+ {
+ base.ExecuteCmdlet();
+
+ WriteDebug(Resources.MakingClientCall);
+ string itemName = string.Empty;
+
+ CSMSetProtectionRequest input = new CSMSetProtectionRequest();
+ input.Properties = new CSMSetProtectionRequestProperties();
+ input.Properties.PolicyId = Policy.PolicyId;
+
+ if (Item.GetType() == typeof(AzureRMBackupItem))
+ {
+ itemName = (Item as AzureRMBackupItem).ItemName;
+ }
+
+ else if (Item.GetType() == typeof(AzureRMBackupContainer))
+ {
+ WriteDebug(String.Format(Resources.ContainerTypeInput, Item.GetType()));
+
+ if ((Item as AzureRMBackupContainer).ContainerType == AzureBackupContainerType.AzureVM.ToString())
+ {
+ itemName = (Item as AzureRMBackupContainer).ContainerUniqueName;
+ }
+ else
+ {
+ throw new Exception(Resources.UnknownItemType);
+ }
+ }
+
+ else
+ {
+ throw new Exception(Resources.UnknownItemType);
+ }
+
+ var operationId = AzureBackupClient.EnableProtection(Item.ResourceGroupName, Item.ResourceName, Item.ContainerUniqueName, itemName, input);
+ WriteDebug(Resources.EnableAzureBackupProtection);
+
+ var operationStatus = TrackOperation(Item.ResourceGroupName, Item.ResourceName, operationId);
+ this.WriteObject(GetCreatedJobs(Item.ResourceGroupName,
+ Item.ResourceName,
+ new Models.AzureRMBackupVault(Item.ResourceGroupName, Item.ResourceName, Item.Location),
+ operationStatus.JobList).FirstOrDefault());
+ });
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Item/GetAzureRMBackupItem.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Item/GetAzureRMBackupItem.cs
new file mode 100644
index 000000000000..a0e6495bde0b
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Item/GetAzureRMBackupItem.cs
@@ -0,0 +1,144 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using System.Linq;
+using Microsoft.Azure.Management.BackupServices.Models;
+using System.Runtime.Serialization;
+using System.Collections.Specialized;
+using Microsoft.Azure.Common.OData;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ ///
+ /// Get list of azure backup items
+ ///
+ [Cmdlet(VerbsCommon.Get, "AzureRMBackupItem"), OutputType(typeof(AzureRMBackupItem), typeof(List))]
+ public class GetAzureRMBackupItem : AzureBackupContainerCmdletBase
+ {
+ [Parameter(Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.ProtectionStatus)]
+ [ValidateSet("Protected", "Protecting", "NotProtected")]
+ public string ProtectionStatus { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.Status)]
+ [ValidateSet("IRPending", "ProtectionStopped", "ProtectionError", "Protected")]
+ public string Status { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.Type)]
+ [ValidateSet("AzureVM")]
+ public string Type { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ ExecutionBlock(() =>
+ {
+ base.ExecuteCmdlet();
+
+ List azureBackupDatasourceObjects = null;
+ List azureBackupPOObjects = null;
+
+ WriteDebug(Resources.MakingClientCall);
+ CSMProtectedItemQueryObject DSQueryParam = new CSMProtectedItemQueryObject()
+ {
+ ProtectionStatus = this.ProtectionStatus,
+ Status = this.Status,
+ Type = GetItemType(this.Type)
+ };
+
+ CSMItemQueryObject POQueryParam = new CSMItemQueryObject()
+ {
+ Status = this.ProtectionStatus,
+ Type = GetItemType(this.Type)
+ };
+
+ var azureBackupDatasourceListResponse = AzureBackupClient.ListDataSources(Container.ResourceGroupName, Container.ResourceName, DSQueryParam);
+
+ if (azureBackupDatasourceListResponse != null)
+ {
+ azureBackupDatasourceObjects = azureBackupDatasourceListResponse.Where(x => x.Properties.ContainerId.Split('/').Last().Equals(Container.ContainerUniqueName, System.StringComparison.InvariantCultureIgnoreCase)).ToList();
+ }
+
+ if (this.Status == null)
+ {
+ var azureBackupPOListResponse = AzureBackupClient.ListProtectableObjects(Container.ResourceGroupName, Container.ResourceName, POQueryParam);
+ if (azureBackupPOListResponse != null)
+ {
+ azureBackupPOObjects = azureBackupPOListResponse.Where(x => x.Properties.ContainerId.Split('/').Last().Equals(Container.ContainerUniqueName, System.StringComparison.InvariantCultureIgnoreCase)).ToList();
+ }
+ }
+
+ WriteDebug(Resources.AzureBackupItemResponse);
+ WriteAzureBackupItem(azureBackupDatasourceObjects, azureBackupPOObjects, Container);
+ });
+ }
+
+ public void WriteAzureBackupItem(CSMProtectedItemResponse sourceItem, AzureRMBackupContainer azureBackupItem)
+ {
+ this.WriteObject(new AzureRMBackupItem(sourceItem, azureBackupItem));
+ }
+
+ public void WriteAzureBackupItem(List sourceDataSourceList, List sourcePOList, AzureRMBackupContainer azureBackupContainer)
+ {
+ List targetList = new List();
+
+ if (sourceDataSourceList != null)
+ {
+ foreach (var item in sourceDataSourceList)
+ {
+ targetList.Add(new AzureRMBackupItem(item, azureBackupContainer));
+ }
+ }
+
+ if (sourcePOList != null)
+ {
+ foreach (var item in sourcePOList)
+ {
+ //If user has stopped protection for some datasoure then we will have duplicate items(po and ds).
+ //So in this case removing po items from the list.
+ if (targetList.FindIndex(element => element.ItemName == item.Name) < 0)
+ {
+ targetList.Add(new AzureRMBackupItem(item, azureBackupContainer));
+ }
+ }
+ }
+
+ if (targetList.Count() == 1)
+ {
+ this.WriteObject(targetList.First(), true);
+ }
+ else
+ {
+ this.WriteObject(targetList, true);
+ }
+ }
+
+ public string GetItemType(string sourceType)
+ {
+ string result = null;
+
+ if(sourceType == "AzureVM")
+ {
+ result = AzureBackupItemType.IaasVM.ToString();
+ }
+
+ return result;
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/AzureBackupJobHelper.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/AzureBackupJobHelper.cs
new file mode 100644
index 000000000000..fca51c85086b
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/AzureBackupJobHelper.cs
@@ -0,0 +1,90 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using System.Linq;
+using Mgmt = Microsoft.Azure.Management.BackupServices.Models;
+
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ public enum JobStatus
+ {
+ Invalid = 0,
+
+ InProgress,
+
+ Completed,
+
+ Failed,
+
+ CompletedWithWarnings,
+
+ Cancelled,
+
+ Cancelling
+ }
+
+ public enum JobOperationType
+ {
+ Invalid = 0,
+
+ Register,
+
+ ConfigureBackup,
+
+ Backup,
+
+ Restore,
+
+ UnProtect,
+
+ DeleteBackupData,
+
+ Unregister
+ }
+
+ public static class AzureBackupJobHelper
+ {
+ public static DateTime MinimumAllowedDate = new DateTime(DateTime.MinValue.Year, DateTime.MinValue.Month, DateTime.MinValue.Day, DateTime.MinValue.Hour, DateTime.MinValue.Minute, DateTime.MinValue.Second, DateTimeKind.Utc);
+
+ public static bool IsValidStatus(string inputStatus)
+ {
+ JobStatus status;
+ if(!Enum.TryParse(inputStatus, out status) || status == JobStatus.Invalid)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ public static bool IsValidOperationType(string inputOperationType)
+ {
+ JobOperationType operationType;
+ if(!Enum.TryParse(inputOperationType, out operationType) || operationType == JobOperationType.Invalid)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ public static bool IsJobRunning(string status)
+ {
+ return ((status.CompareTo("InProgress") == 0) || (status.CompareTo("Cancelling") == 0));
+ }
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/GetAzureRMBackupJob.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/GetAzureRMBackupJob.cs
new file mode 100644
index 000000000000..0c8a35f7cd73
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/GetAzureRMBackupJob.cs
@@ -0,0 +1,170 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using System.Linq;
+using System.Web;
+using Microsoft.Azure.Management.BackupServices;
+using Mgmt = Microsoft.Azure.Management.BackupServices.Models;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ ///
+ /// Get list of jobs pertaining to the filters specified. Gets list of all jobs created in the last 24 hours if no filters are specified.
+ ///
+ [Cmdlet(VerbsCommon.Get, "AzureRMBackupJob", DefaultParameterSetName = "FiltersSet"), OutputType(typeof(List), typeof(AzureRMBackupJob))]
+ public class GetAzureRMBackupJob : AzureBackupCmdletBase
+ {
+ [Parameter(Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.Vault, ParameterSetName = "FiltersSet", ValueFromPipeline = true)]
+ [ValidateNotNull]
+ public AzureRMBackupVault Vault { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.JobFilterJobIdHelpMessage, ParameterSetName = "FiltersSet")]
+ [ValidateNotNullOrEmpty]
+ public string JobId { get; set; }
+
+ [Parameter(Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.JobFilterJobHelpMessage, ParameterSetName = "JobsListFilter")]
+ [ValidateNotNull]
+ public AzureRMBackupJob Job { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.JobFilterStartTimeHelpMessage, ParameterSetName = "FiltersSet")]
+ [ValidateNotNull]
+ public DateTime? From { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.JobFilterEndTimeHelpMessage, ParameterSetName = "FiltersSet")]
+ [ValidateNotNull]
+ public DateTime? To { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.JobFilterStatusHelpMessage, ParameterSetName = "FiltersSet")]
+ [ValidateSet("Cancelled", "Cancelling", "Completed", "CompletedWithWarnings", "Failed", "InProgress")]
+ public string Status { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.JobFilterTypeHelpMessage, ParameterSetName = "FiltersSet")]
+ [ValidateSet("IaasVM")]
+ public string Type { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.JobFilterOperationHelpMessage, ParameterSetName = "FiltersSet")]
+ [ValidateSet("Backup", "ConfigureBackup", "DeleteBackupData", "Register", "Restore", "UnProtect", "Unregister")]
+ public string Operation { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ ExecutionBlock(() =>
+ {
+ if (Job != null)
+ {
+ Vault = new AzureRMBackupVault(Job.ResourceGroupName, Job.ResourceName, Job.Location);
+ }
+
+ InitializeAzureBackupCmdlet(Vault);
+
+ if (Job != null)
+ {
+ JobId = Job.InstanceId;
+ }
+
+ // validations
+ if (!From.HasValue)
+ {
+ if (To.HasValue)
+ {
+ throw new Exception(Resources.AzureBackupJobArguementException);
+ }
+ WriteDebug(Resources.SettingStartTime);
+ From = new DateTime();
+ From = AzureBackupJobHelper.MinimumAllowedDate;
+ }
+
+ if (To.HasValue && To.Value > From.Value)
+ {
+ // everything is good. don't do anything
+ }
+ else if (To.HasValue && To.Value <= From.Value)
+ {
+ throw new Exception(Resources.TimeFilterNotCorrect);
+ }
+ else
+ {
+ if (From != AzureBackupJobHelper.MinimumAllowedDate)
+ {
+ WriteDebug(Resources.EndTimeNotSet);
+ To = DateTime.Now;
+ }
+ else
+ {
+ WriteDebug(Resources.SettingEndTime);
+ To = new DateTime();
+ To = AzureBackupJobHelper.MinimumAllowedDate;
+ }
+ }
+
+ From = TimeZoneInfo.ConvertTimeToUtc(From.Value);
+ To = TimeZoneInfo.ConvertTimeToUtc(To.Value);
+
+ // if user hasn't specified any filters, then default filter fetches
+ // all jobs that were created in last 24 hours.
+ if (From == AzureBackupJobHelper.MinimumAllowedDate && To == AzureBackupJobHelper.MinimumAllowedDate &&
+ string.IsNullOrEmpty(Operation) && string.IsNullOrEmpty(Status) &&
+ string.IsNullOrEmpty(Type) && string.IsNullOrEmpty(JobId))
+ {
+ From = DateTime.UtcNow.AddDays(-1);
+ To = DateTime.UtcNow;
+ }
+
+ WriteDebug(String.Format(Resources.StartTimeFilter, System.Uri.EscapeDataString(From.Value.ToString("yyyy-MM-dd hh:mm:ss tt"))));
+ WriteDebug(String.Format(Resources.EndTimeFilter, System.Uri.EscapeDataString(To.Value.ToString("yyyy-MM-dd hh:mm:ss tt"))));
+ WriteDebug(String.Format(Resources.OperationFilter, Operation));
+ WriteDebug(String.Format(Resources.StatusFilter, Status));
+ WriteDebug(String.Format(Resources.TypeFilter, Type));
+ WriteDebug(String.Format(Resources.JobIdFilter, JobId));
+
+ Mgmt.CSMJobQueryObject queryParams = new Mgmt.CSMJobQueryObject()
+ {
+ StartTime = From.Value.ToString("yyyy-MM-dd hh:mm:ss tt"),
+ EndTime = To.Value.ToString("yyyy-MM-dd hh:mm:ss tt"),
+ Operation = Operation,
+ Status = Status,
+ WorkloadType = Type,
+ Name = JobId
+ };
+
+ var jobsList = AzureBackupClient.ListJobs(Vault.ResourceGroupName, Vault.Name, queryParams);
+ List retrievedJobs = new List();
+
+ foreach (Mgmt.CSMJobResponse serviceJob in jobsList)
+ {
+ // TODO: Initialize vault from Job object when vault is made optional
+ retrievedJobs.Add(new AzureRMBackupJob(Vault, serviceJob.Properties, serviceJob.Name));
+ }
+
+ WriteDebug(String.Format(Resources.JobRetrieved, retrievedJobs.Count()));
+
+ if (retrievedJobs.Count == 1)
+ {
+ WriteObject(retrievedJobs.First());
+ }
+ else
+ {
+ WriteObject(retrievedJobs);
+ }
+ });
+ }
+ }
+}
+
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/GetAzureRMBackupJobDetails.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/GetAzureRMBackupJobDetails.cs
new file mode 100644
index 000000000000..742b85ae59f5
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/GetAzureRMBackupJobDetails.cs
@@ -0,0 +1,69 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using System.Linq;
+using Mgmt = Microsoft.Azure.Management.BackupServices.Models;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ ///
+ /// Get full details of a job
+ ///
+ [Cmdlet(VerbsCommon.Get, "AzureRMBackupJobDetails", DefaultParameterSetName = "JobsFiltersSet"), OutputType(typeof(AzureRMBackupJobDetails))]
+ public class GetAzureRMBackupJobDetils : AzureBackupCmdletBase
+ {
+ [Parameter(Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.Vault, ParameterSetName = "IdFiltersSet")]
+ [ValidateNotNull]
+ public AzureRMBackupVault Vault { get; set; }
+
+ [Parameter(Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.JobDetailsFilterJobIdHelpMessage, ParameterSetName = "IdFiltersSet")]
+ [ValidateNotNullOrEmpty]
+ public string JobID { get; set; }
+
+ [Parameter(Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.JobDetailsFilterJobHelpMessage, ParameterSetName = "JobsFiltersSet", ValueFromPipeline = true)]
+ [ValidateNotNull]
+ public AzureRMBackupJob Job { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ if (Job != null)
+ {
+ Vault = new AzureRMBackupVault(Job.ResourceGroupName, Job.ResourceName, Job.Location);
+ }
+ InitializeAzureBackupCmdlet(Vault);
+
+ ExecutionBlock(() =>
+ {
+ if (Job != null)
+ {
+ JobID = Job.InstanceId;
+ }
+
+ WriteDebug(String.Format(Resources.JobIdFilter, JobID));
+
+ Mgmt.CSMJobDetailsResponse serviceJobProperties = AzureBackupClient.GetJobDetails(Vault.ResourceGroupName, Vault.Name, JobID);
+ AzureRMBackupJobDetails jobDetails = new AzureRMBackupJobDetails(Vault, serviceJobProperties.JobDetailedProperties, serviceJobProperties.Name);
+
+ WriteDebug(Resources.JobResponse);
+ WriteObject(jobDetails);
+ });
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/StopAzureRMBackukpJob.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/StopAzureRMBackukpJob.cs
new file mode 100644
index 000000000000..a22d161afcad
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/StopAzureRMBackukpJob.cs
@@ -0,0 +1,84 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using System.Linq;
+using Microsoft.Azure.Management.BackupServices;
+using System.Threading.Tasks;
+using Mgmt = Microsoft.Azure.Management.BackupServices.Models;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ ///
+ /// Stop a running cancellable job
+ ///
+ [Cmdlet("Stop", "AzureRMBackupJob")]
+ public class StopAzureRMBackupJob : AzureBackupCmdletBase
+ {
+ [Parameter(Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.Vault, ParameterSetName = "IdFiltersSet")]
+ [ValidateNotNull]
+ public AzureRMBackupVault Vault { get; set; }
+
+ [Parameter(Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.StopJobFilterJobIdHelpMessage, ParameterSetName = "IdFiltersSet")]
+ [ValidateNotNullOrEmpty]
+ public string JobID { get; set; }
+
+ [Parameter(Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.StopJobFilterJobHelpMessage, ParameterSetName = "JobFiltersSet", ValueFromPipeline = true)]
+ [ValidateNotNull]
+ public AzureRMBackupJob Job { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ if (Job != null)
+ {
+ Vault = new AzureRMBackupVault(Job.ResourceGroupName, Job.ResourceName, Job.Location);
+ }
+
+ InitializeAzureBackupCmdlet(Vault);
+
+ ExecutionBlock(() =>
+ {
+ if (Job != null)
+ {
+ JobID = Job.InstanceId;
+ }
+
+ WriteDebug(String.Format(Resources.JobId, JobID));
+ Guid cancelTaskId = AzureBackupClient.TriggerCancelJob(Vault.ResourceGroupName, Vault.Name, JobID);
+
+ if (cancelTaskId == Guid.Empty)
+ {
+ WriteDebug(String.Format(Resources.TriggeredCancellationJob, JobID));
+ return;
+ }
+
+ CSMOperationResult opResponse = TrackOperation(Vault.ResourceGroupName, Vault.Name, cancelTaskId);
+
+ if (opResponse.Status == CSMAzureBackupOperationStatus.Succeeded.ToString())
+ {
+ WriteDebug(String.Format(Resources.TriggeredCancellationJob, JobID));
+ }
+ else
+ {
+ throw new Exception(String.Format(Resources.StopJobFailed, opResponse.Error.Code));
+ }
+ });
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/WaitAzureRMBackupJob.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/WaitAzureRMBackupJob.cs
new file mode 100644
index 000000000000..af4b8253f462
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/WaitAzureRMBackupJob.cs
@@ -0,0 +1,157 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using System.Linq;
+using Mgmt = Microsoft.Azure.Management.BackupServices.Models;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ [Cmdlet("Wait", "AzureRMBackupJob"), OutputType(typeof(List), typeof(AzureRMBackupJob))]
+ public class WaitAzureRMBackupJob : AzureBackupCmdletBase
+ {
+ [Parameter(Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.WaitJobFilterJobHelpMessage, ValueFromPipeline = true)]
+ [ValidateNotNullOrEmpty]
+ public object Job { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.WaitJobFilterTimeoutHelpMessage)]
+ [ValidateRange(1, Int64.MaxValue)]
+ public long? TimeOut { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ List specifiedJobs = new List();
+ AzureRMBackupVault Vault = null;
+
+ if (Job != null)
+ {
+ if ((Job is PSObject) && (((PSObject)Job).ImmediateBaseObject is List))
+ {
+ foreach (AzureRMBackupJob jobToWait in (((PSObject)Job).ImmediateBaseObject as List))
+ {
+ Vault = new AzureRMBackupVault(jobToWait.ResourceGroupName, jobToWait.ResourceName, jobToWait.Location);
+ specifiedJobs.Add(jobToWait.InstanceId);
+ }
+ }
+ else if (Job is List)
+ {
+ WriteDebug(Resources.AzureBackupJobInputType);
+ foreach (AzureRMBackupJob jobToWait in (Job as List))
+ {
+ Vault = new AzureRMBackupVault(jobToWait.ResourceGroupName, jobToWait.ResourceName, jobToWait.Location);
+ specifiedJobs.Add(jobToWait.InstanceId);
+ }
+ }
+ else if ((Job is PSObject) && (((PSObject)Job).ImmediateBaseObject is AzureRMBackupJob))
+ {
+ AzureRMBackupJob azureJob = ((Job as PSObject).ImmediateBaseObject as AzureRMBackupJob);
+ Vault = new AzureRMBackupVault(azureJob.ResourceGroupName, azureJob.ResourceName, azureJob.Location);
+ specifiedJobs.Add(azureJob.InstanceId);
+ }
+ else if (Job is AzureRMBackupJob)
+ {
+ Vault = new AzureRMBackupVault((Job as AzureRMBackupJob).ResourceGroupName, (Job as AzureRMBackupJob).ResourceName, (Job as AzureRMBackupJob).Location);
+ specifiedJobs.Add((Job as AzureRMBackupJob).InstanceId);
+ }
+ else if ((Job is PSObject) && (((PSObject)Job).ImmediateBaseObject is AzureRMBackupJobDetails))
+ {
+ AzureRMBackupJob azureJob = ((Job as PSObject).ImmediateBaseObject as AzureRMBackupJobDetails);
+ Vault = new AzureRMBackupVault(azureJob.ResourceGroupName, azureJob.ResourceName, azureJob.Location);
+ specifiedJobs.Add(azureJob.InstanceId);
+ }
+ else if (Job is AzureRMBackupJobDetails)
+ {
+ Vault = new AzureRMBackupVault((Job as AzureRMBackupJobDetails).ResourceGroupName, (Job as AzureRMBackupJobDetails).ResourceName, (Job as AzureRMBackupJobDetails).Location);
+ specifiedJobs.Add((Job as AzureRMBackupJobDetails).InstanceId);
+ }
+ }
+
+ WriteDebug(String.Format(Resources.NumberOfJobsForWaiting, specifiedJobs.Count));
+
+ if (specifiedJobs.Count == 0)
+ {
+ WriteDebug(Resources.QuittingWaitJob);
+ return;
+ }
+
+ InitializeAzureBackupCmdlet(Vault);
+
+ ExecutionBlock(() =>
+ {
+ if (!TimeOut.HasValue)
+ {
+ TimeOut = new long();
+ TimeOut = Int64.MaxValue;
+ }
+
+ List pendingJobs = new List(specifiedJobs);
+ DateTime waitingStartTime = DateTime.UtcNow;
+
+ while (true)
+ {
+ WriteDebug(Resources.QueryingJobs);
+
+ if (DateTime.UtcNow.Subtract(waitingStartTime).TotalSeconds >= TimeOut)
+ {
+ WriteDebug(Resources.TimeOutWaitInJob);
+ break;
+ }
+
+ bool areJobsRunning = false;
+
+ for (int i = 0; i < pendingJobs.Count; i++)
+ {
+ Mgmt.CSMJobDetailsResponse retrievedJob = AzureBackupClient.GetJobDetails(Vault.ResourceGroupName, Vault.Name, pendingJobs[i]);
+ if (AzureBackupJobHelper.IsJobRunning(retrievedJob.JobDetailedProperties.Status))
+ areJobsRunning = true;
+ else
+ {
+ pendingJobs.RemoveAt(i);
+ i--;
+ }
+ }
+
+ if (!areJobsRunning)
+ {
+ WriteDebug(Resources.AllJobsCompleted);
+ break;
+ }
+
+ System.Threading.Thread.Sleep(30 * 1000);
+ }
+
+ IList finalJobs = new List();
+ foreach(string jobId in specifiedJobs)
+ {
+ Mgmt.CSMJobDetailsResponse retrievedJob = AzureBackupClient.GetJobDetails(Vault.ResourceGroupName, Vault.Name, jobId);
+ finalJobs.Add(new AzureRMBackupJob(Vault, retrievedJob.JobDetailedProperties, retrievedJob.Name));
+ }
+
+ if (finalJobs.Count == 1)
+ {
+ WriteObject(finalJobs.First());
+ }
+ else
+ {
+ WriteObject(finalJobs);
+ }
+ });
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/GetAzureRMBackupProtectionPolicy.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/GetAzureRMBackupProtectionPolicy.cs
new file mode 100644
index 000000000000..0b334aec9cd1
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/GetAzureRMBackupProtectionPolicy.cs
@@ -0,0 +1,52 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.Azure.Commands.AzureBackup.Helpers;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using System.Collections.Generic;
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ ///
+ /// Get list of protection policies
+ ///
+ [Cmdlet(VerbsCommon.Get, "AzureRMBackupProtectionPolicy"), OutputType(typeof(AzureRMBackupProtectionPolicy), typeof(List))]
+ public class GetAzureRMBackupProtectionPolicy : AzureBackupVaultCmdletBase
+ {
+ [Parameter(Position = 1, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.PolicyName)]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ ExecutionBlock(() =>
+ {
+ base.ExecuteCmdlet();
+
+ if (Name != null)
+ {
+ var policyInfo = AzureBackupClient.GetProtectionPolicyByName(Vault.ResourceGroupName, Vault.Name, Name);
+ WriteObject(ProtectionPolicyHelpers.GetCmdletPolicy(Vault, policyInfo));
+ }
+ else
+ {
+ var policyObjects = AzureBackupClient.ListProtectionPolicies(Vault.ResourceGroupName, Vault.Name);
+ WriteObject(ProtectionPolicyHelpers.GetCmdletPolicies(Vault, policyObjects));
+ }
+ });
+ }
+ }
+}
+
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/NewAzureRMBackupProtectionPolicy.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/NewAzureRMBackupProtectionPolicy.cs
new file mode 100644
index 000000000000..cf3406a42c85
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/NewAzureRMBackupProtectionPolicy.cs
@@ -0,0 +1,100 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using System.Linq;
+using Microsoft.Azure.Management.BackupServices.Models;
+using Microsoft.Azure.Commands.AzureBackup.Helpers;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ ///
+ /// Create new protection policy
+ ///
+ [Cmdlet(VerbsCommon.New, "AzureRMBackupProtectionPolicy", DefaultParameterSetName = NoScheduleParamSet), OutputType(typeof(AzureRMBackupProtectionPolicy))]
+ public class NewAzureRMBackupProtectionPolicy : AzureBackupVaultCmdletBase
+ {
+ protected const string WeeklyScheduleParamSet = "WeeklyScheduleParamSet";
+ protected const string DailyScheduleParamSet = "DailyScheduleParamSet";
+ protected const string NoScheduleParamSet = "NoScheduleParamSet";
+
+ [Parameter(Position = 1, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.PolicyName)]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [Parameter(Position = 2, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.WorkloadType, ValueFromPipelineByPropertyName = true)]
+ [ValidateSet("AzureVM", IgnoreCase = true)]
+ public string Type { get; set; }
+
+ [Parameter(ParameterSetName = DailyScheduleParamSet, Position = 3, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.DailyScheduleType)]
+ public SwitchParameter Daily { get; set; }
+
+ [Parameter(ParameterSetName = WeeklyScheduleParamSet, Position = 4, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.WeeklyScheduleType)]
+ public SwitchParameter Weekly { get; set; }
+
+ [Parameter(Position = 5, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.ScheduleRunTimes, ValueFromPipelineByPropertyName = true)]
+ public DateTime BackupTime { get; set; }
+
+ [Parameter(ParameterSetName = WeeklyScheduleParamSet, Position = 6, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.ScheduleRunDays, ValueFromPipelineByPropertyName = true)]
+ [Parameter(ParameterSetName = NoScheduleParamSet, Position = 6, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.ScheduleRunDays, ValueFromPipelineByPropertyName = true)]
+ [AllowEmptyCollection]
+ [ValidateSet("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday", IgnoreCase = true)]
+ public string[] DaysOfWeek { get; set; }
+
+ [Parameter(Position = 7, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.RetentionPolicyList, ValueFromPipelineByPropertyName = true)]
+ public AzureRMBackupRetentionPolicy[] RetentionPolicy { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ ExecutionBlock(() =>
+ {
+ base.ExecuteCmdlet();
+ WriteDebug("Making client call");
+
+ ProtectionPolicyHelpers.ValidateProtectionPolicyName(Name);
+ AzureBackupClient.CheckProtectionPolicyNameAvailability(Vault.ResourceGroupName, Vault.Name, this.Name);
+
+ var ScheduleType = ProtectionPolicyHelpers.GetScheduleType(DaysOfWeek, this.ParameterSetName,
+ DailyScheduleParamSet, WeeklyScheduleParamSet);
+
+ var backupSchedule = ProtectionPolicyHelpers.FillCSMBackupSchedule(ScheduleType, BackupTime,
+ DaysOfWeek);
+
+ ProtectionPolicyHelpers.ValidateRetentionPolicy(RetentionPolicy, backupSchedule);
+
+ var addCSMProtectionPolicyRequest = new CSMAddProtectionPolicyRequest();
+ addCSMProtectionPolicyRequest.PolicyName = this.Name;
+ addCSMProtectionPolicyRequest.Properties = new CSMAddProtectionPolicyRequestProperties();
+ addCSMProtectionPolicyRequest.Properties.PolicyName = this.Name;
+ addCSMProtectionPolicyRequest.Properties.BackupSchedule = backupSchedule;
+ addCSMProtectionPolicyRequest.Properties.WorkloadType = ProtectionPolicyHelpers.ConvertToCSMWorkLoadType(this.Type);
+
+ addCSMProtectionPolicyRequest.Properties.LtrRetentionPolicy = ProtectionPolicyHelpers.ConvertToCSMRetentionPolicyObject(RetentionPolicy, backupSchedule);
+
+ AzureBackupClient.AddProtectionPolicy(Vault.ResourceGroupName, Vault.Name, this.Name, addCSMProtectionPolicyRequest);
+ WriteDebug(Resources.ProtectionPolicyCreated);
+
+ var policyInfo = AzureBackupClient.GetProtectionPolicyByName(Vault.ResourceGroupName, Vault.Name, Name);
+ WriteObject(ProtectionPolicyHelpers.GetCmdletPolicy(Vault, policyInfo));
+ });
+ }
+ }
+
+}
+
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/NewAzureRMBackupRetentionPolicyObject.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/NewAzureRMBackupRetentionPolicyObject.cs
new file mode 100644
index 000000000000..071490c1b1d2
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/NewAzureRMBackupRetentionPolicyObject.cs
@@ -0,0 +1,195 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using System.Linq;
+using Microsoft.Azure.Management.BackupServices.Models;
+using Microsoft.Azure.Commands.AzureBackup.Helpers;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ ///
+ /// Create new retention policy object.
+ ///
+ [Cmdlet(VerbsCommon.New, "AzureRMBackupRetentionPolicyObject"), OutputType(typeof(AzureRMBackupRetentionPolicy), typeof(List))]
+ public class NewAzureRMBackupRetentionPolicyObject : AzureBackupCmdletBase
+ {
+ protected const string DailyRetentionParamSet = "DailyRetentionParamSet";
+ protected const string WeeklyRetentionParamSet = "WeeklyRetentionParamSet";
+ protected const string MonthlyRetentionInDailyFormatParamSet = "MonthlyRetentionInDailyFormatParamSet";
+ protected const string MonthlyRetentionInWeeklyFormatParamSet = "MonthlyRetentionInWeeklyFormatParamSet";
+ protected const string YearlyRetentionInDailyFormatParamSet = "YearlyRetentionInDailyFormatParamSet";
+ protected const string YearlyRetentionInWeeklyFormatParamSet = "YearlyRetentionInWeeklyFormatParamSet";
+
+ [Parameter(ParameterSetName = DailyRetentionParamSet, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.DailyRetention)]
+ public SwitchParameter DailyRetention { get; set; }
+
+ [Parameter(ParameterSetName = WeeklyRetentionParamSet, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.WeeklyRetention)]
+ public SwitchParameter WeeklyRetention { get; set; }
+
+ [Parameter(ParameterSetName = MonthlyRetentionInDailyFormatParamSet, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.MonthlyRetentionInDailyFormat)]
+ public SwitchParameter MonthlyRetentionInDailyFormat { get; set; }
+
+ [Parameter(ParameterSetName = MonthlyRetentionInWeeklyFormatParamSet, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.MonthlyRetentionInWeeklyFormat)]
+ public SwitchParameter MonthlyRetentionInWeeklyFormat { get; set; }
+
+ [Parameter(ParameterSetName = YearlyRetentionInDailyFormatParamSet, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.YearlyRetentionInDailyFormat)]
+ public SwitchParameter YearlyRetentionInDailyFormat { get; set; }
+
+ [Parameter(ParameterSetName = YearlyRetentionInWeeklyFormatParamSet, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.YearlyRetentionInWeeklyFormat)]
+ public SwitchParameter YearlyRetentionInWeeklyFormat { get; set; }
+
+ [Parameter(ParameterSetName = WeeklyRetentionParamSet, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.DaysOfWeek)]
+ [Parameter(ParameterSetName = MonthlyRetentionInWeeklyFormatParamSet, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.DaysOfWeek)]
+ [Parameter(ParameterSetName = YearlyRetentionInWeeklyFormatParamSet, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.DaysOfWeek)]
+ [ValidateSet("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday", IgnoreCase = true)]
+ public string[] DaysOfWeek { get; set; }
+
+ [Parameter(ParameterSetName = MonthlyRetentionInDailyFormatParamSet, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.DaysOfMonth)]
+ [Parameter(ParameterSetName = YearlyRetentionInDailyFormatParamSet, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.DaysOfMonth)]
+ [ValidateSet("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ,"13" ,"14", "15", "16", "17", "18",
+ "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "Last", IgnoreCase = true)]
+ public List DaysOfMonth { get; set; }
+
+ [Parameter(ParameterSetName = MonthlyRetentionInWeeklyFormatParamSet, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.WeekNumber)]
+ [Parameter(ParameterSetName = YearlyRetentionInWeeklyFormatParamSet, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.WeekNumber)]
+ [ValidateSet("First", "Second", "Third", "Fourth", "Last", IgnoreCase = true)]
+ public string[] WeekNumber { get; set; }
+
+ [Parameter(ParameterSetName = YearlyRetentionInDailyFormatParamSet, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.MonthsOfYear)]
+ [Parameter(ParameterSetName = YearlyRetentionInWeeklyFormatParamSet, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.MonthsOfYear)]
+ [ValidateSet("January", "February", "March", "April", "May", "June", "July" ,"August", "September", "October", "November", "December", IgnoreCase = true)]
+ public string[] MonthsOfYear { get; set; }
+
+ [Parameter(Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.Retention)]
+ public int Retention { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ ExecutionBlock(() =>
+ {
+ base.ExecuteCmdlet();
+ if (DailyRetention != false)
+ {
+ AzureRMBackupRetentionPolicy retentionPolicy = new AzureBackupDailyRetentionPolicy(RetentionType.Daily.ToString(), Retention);
+ ProtectionPolicyHelpers.ValidateRetentionPolicy(new List { retentionPolicy });
+ WriteObject(retentionPolicy);
+ }
+
+ if (WeeklyRetention != false)
+ {
+ List daysofWeekList = ConvertDaysOfWeek(DaysOfWeek);
+ AzureRMBackupRetentionPolicy retentionPolicy = new AzureBackupWeeklyRetentionPolicy(RetentionType.Weekly.ToString(), Retention, daysofWeekList);
+ ProtectionPolicyHelpers.ValidateRetentionPolicy(new List { retentionPolicy });
+ WriteObject(retentionPolicy);
+ }
+
+ if (MonthlyRetentionInDailyFormat != false)
+ {
+ AzureRMBackupRetentionPolicy retentionPolicy = new AzureBackupMonthlyRetentionPolicy(RetentionType.Monthly.ToString(), Retention, RetentionFormat.Daily, DaysOfMonth,
+ null, null);
+ ProtectionPolicyHelpers.ValidateRetentionPolicy(new List { retentionPolicy });
+ WriteObject(retentionPolicy);
+ }
+
+ if (MonthlyRetentionInWeeklyFormat != false)
+ {
+ List daysofWeekList = ConvertDaysOfWeek(DaysOfWeek);
+ List weekNumbers = ConvertWeekNumbers(WeekNumber);
+ AzureRMBackupRetentionPolicy retentionPolicy = new AzureBackupMonthlyRetentionPolicy(RetentionType.Monthly.ToString(), Retention, RetentionFormat.Weekly, DaysOfMonth,
+ weekNumbers, daysofWeekList);
+
+ ProtectionPolicyHelpers.ValidateRetentionPolicy(new List { retentionPolicy });
+
+ WriteObject(retentionPolicy);
+ }
+
+ if (YearlyRetentionInDailyFormat != false)
+ {
+ List monthsOfYear = ConvertMonthsOfYear(MonthsOfYear);
+ AzureRMBackupRetentionPolicy retentionPolicy = new AzureBackupYearlyRetentionPolicy(RetentionType.Yearly.ToString(), Retention, monthsOfYear, RetentionFormat.Daily,
+ DaysOfMonth, null, null);
+
+ ProtectionPolicyHelpers.ValidateRetentionPolicy(new List { retentionPolicy });
+
+ WriteObject(retentionPolicy);
+ }
+
+ if (YearlyRetentionInWeeklyFormat != false)
+ {
+ List daysofWeekList = ConvertDaysOfWeek(DaysOfWeek);
+ List weekNumbers = ConvertWeekNumbers(WeekNumber);
+ List monthsOfYear = ConvertMonthsOfYear(MonthsOfYear);
+ AzureRMBackupRetentionPolicy retentionPolicy = new AzureBackupYearlyRetentionPolicy(RetentionType.Yearly.ToString(), Retention, monthsOfYear,
+ RetentionFormat.Weekly, DaysOfMonth, weekNumbers, daysofWeekList);
+
+ ProtectionPolicyHelpers.ValidateRetentionPolicy(new List { retentionPolicy });
+
+ WriteObject(retentionPolicy);
+ }
+ });
+ }
+
+ private List ConvertDaysOfWeek(string[] daysOfWeek)
+ {
+ List ListofWeekDays = new List();
+
+ foreach (var dayOfWeek in daysOfWeek)
+ {
+ DayOfWeek item = (DayOfWeek)Enum.Parse(typeof(DayOfWeek), dayOfWeek, true);
+ if (!ListofWeekDays.Contains(item))
+ {
+ ListofWeekDays.Add(item);
+ }
+ }
+
+ return ListofWeekDays;
+ }
+
+ private List ConvertWeekNumbers(string[] weekNumbers)
+ {
+ List ListofWeekNumbers = new List();
+
+ foreach (var weekNumber in weekNumbers)
+ {
+ WeekNumber item = (WeekNumber)Enum.Parse(typeof(WeekNumber), weekNumber, true);
+ if (!ListofWeekNumbers.Contains(item))
+ {
+ ListofWeekNumbers.Add(item);
+ }
+ }
+
+ return ListofWeekNumbers;
+ }
+
+ private List ConvertMonthsOfYear(string[] monthsOfYear)
+ {
+ List ListofMonthsOfYear = new List();
+
+ foreach (var monthOfYear in monthsOfYear)
+ {
+ Month item = (Month)Enum.Parse(typeof(Month), monthOfYear, true);
+ if (!ListofMonthsOfYear.Contains(item))
+ {
+ ListofMonthsOfYear.Add(item);
+ }
+ }
+ return ListofMonthsOfYear;
+ }
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/RemoveAzureRMBackupProtectionPolicy.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/RemoveAzureRMBackupProtectionPolicy.cs
new file mode 100644
index 000000000000..e161d8a4680a
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/RemoveAzureRMBackupProtectionPolicy.cs
@@ -0,0 +1,55 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using System.Linq;
+using Microsoft.Azure.Management.BackupServices.Models;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ ///
+ /// Remove a protection policy
+ ///
+ [Cmdlet(VerbsCommon.Remove, "AzureRMBackupProtectionPolicy")]
+ public class RemoveAzureRMBackupProtectionPolicy : AzureBackupPolicyCmdletBase
+ {
+ public override void ExecuteCmdlet()
+ {
+ ExecutionBlock(() =>
+ {
+ base.ExecuteCmdlet();
+
+ WriteDebug(Resources.MakingClientCall);
+
+ var policyInfo = AzureBackupClient.GetProtectionPolicyByName(ProtectionPolicy.ResourceGroupName, ProtectionPolicy.ResourceName, ProtectionPolicy.Name);
+ if (policyInfo != null)
+ {
+ AzureBackupClient.DeleteProtectionPolicy(ProtectionPolicy.ResourceGroupName, ProtectionPolicy.ResourceName, policyInfo.Name);
+ WriteDebug(Resources.ProtectionPolicyDeleted);
+ }
+ else
+ {
+ var exception = new ArgumentException(string.Format(Resources.PolicyNotFound, policyInfo.Name));
+ throw exception;
+ }
+ });
+ }
+ }
+}
+
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/SetAzureRMBackupProtectionPolicy.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/SetAzureRMBackupProtectionPolicy.cs
new file mode 100644
index 000000000000..58bc57f833ae
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/ProtectionPolicy/SetAzureRMBackupProtectionPolicy.cs
@@ -0,0 +1,160 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using System.Linq;
+using Microsoft.Azure.Management.BackupServices.Models;
+using Microsoft.Azure.Commands.AzureBackup.Helpers;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using CmdletModel = Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ ///
+ /// Update existing protection policy
+ ///
+ [Cmdlet(VerbsCommon.Set, "AzureRMBackupProtectionPolicy", DefaultParameterSetName = NoScheduleParamSet), OutputType(typeof(AzureRMBackupJob), typeof(IList))]
+ public class SetAzureRMBackupProtectionPolicy : AzureBackupPolicyCmdletBase
+ {
+ protected const string WeeklyScheduleParamSet = "WeeklyScheduleParamSet";
+ protected const string DailyScheduleParamSet = "DailyScheduleParamSet";
+ protected const string NoScheduleParamSet = "NoScheduleParamSet";
+
+ [Parameter(Position = 1, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.PolicyNewName)]
+ [ValidateNotNullOrEmpty]
+ public string NewName { get; set; }
+
+ [Parameter(ParameterSetName = DailyScheduleParamSet, Position = 2, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.DailyScheduleType)]
+ public SwitchParameter Daily { get; set; }
+
+ [Parameter(ParameterSetName = WeeklyScheduleParamSet, Position = 3, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.WeeklyScheduleType)]
+ public SwitchParameter Weekly { get; set; }
+
+ [Parameter(Position = 4, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.ScheduleRunTimes)]
+ public DateTime BackupTime { get; set; }
+
+ [Parameter(Position = 5, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.RetentionPolicyList)]
+ public AzureRMBackupRetentionPolicy[] RetentionPolicy { get; set; }
+
+ [Parameter(ParameterSetName = WeeklyScheduleParamSet, Position = 6, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.ScheduleRunDays)]
+ [ValidateSet("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday", IgnoreCase = true)]
+ public string[] DaysOfWeek { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ ExecutionBlock(() =>
+ {
+ base.ExecuteCmdlet();
+ WriteDebug(Resources.MakingClientCall);
+
+ var response = AzureBackupClient.GetProtectionPolicyByName(ProtectionPolicy.ResourceGroupName, ProtectionPolicy.ResourceName, ProtectionPolicy.Name);
+ var vault = new CmdletModel.AzureRMBackupVault(ProtectionPolicy.ResourceGroupName, ProtectionPolicy.ResourceName, ProtectionPolicy.Location);
+
+ var policyInfo = ProtectionPolicyHelpers.GetCmdletPolicy(vault, response);
+
+ if (policyInfo == null)
+ {
+ throw new ArgumentException(String.Format(Resources.PolicyNotFound, ProtectionPolicy.Name));
+ }
+
+ FillRemainingValuesForSetPolicyRequest(policyInfo, this.NewName);
+
+ var backupSchedule = ProtectionPolicyHelpers.FillCSMBackupSchedule(policyInfo.ScheduleType, BackupTime,
+ policyInfo.DaysOfWeek.ToArray());
+
+ NewName = (string.IsNullOrEmpty(NewName) ? policyInfo.Name : NewName);
+ var updateProtectionPolicyRequest = new CSMUpdateProtectionPolicyRequest();
+ updateProtectionPolicyRequest.Properties = new CSMUpdateProtectionPolicyRequestProperties();
+ updateProtectionPolicyRequest.Properties.PolicyName = this.NewName;
+ updateProtectionPolicyRequest.Properties.BackupSchedule = backupSchedule;
+
+ if (RetentionPolicy != null && RetentionPolicy.Length > 0)
+ {
+ updateProtectionPolicyRequest.Properties.LtrRetentionPolicy =
+ ProtectionPolicyHelpers.ConvertToCSMRetentionPolicyObject(RetentionPolicy, backupSchedule);
+ ProtectionPolicyHelpers.ValidateRetentionPolicy(RetentionPolicy, backupSchedule);
+ }
+ else
+ {
+ updateProtectionPolicyRequest.Properties.LtrRetentionPolicy =
+ ProtectionPolicyHelpers.ConvertToCSMRetentionPolicyObject(policyInfo.RetentionPolicy, backupSchedule);
+ ProtectionPolicyHelpers.ValidateRetentionPolicy(policyInfo.RetentionPolicy, backupSchedule);
+ }
+
+ var operationId = AzureBackupClient.UpdateProtectionPolicy(ProtectionPolicy.ResourceGroupName, ProtectionPolicy.ResourceName, policyInfo.Name, updateProtectionPolicyRequest);
+
+ if (operationId != Guid.Empty)
+ {
+ string resourceGroupName = ProtectionPolicy.ResourceGroupName;
+ string resourceName = ProtectionPolicy.ResourceName;
+ var operationStatus = GetOperationStatus(resourceGroupName, resourceName, operationId);
+ WriteDebug(Resources.PolicyUpdatedReconfigureProtectionDone);
+
+ WriteObject(GetCreatedJobs(resourceGroupName, resourceName, vault, operationStatus.JobList));
+ }
+
+ else
+ {
+ WriteDebug(Resources.PolicyUpdated);
+ }
+
+ });
+ }
+
+ private void FillRemainingValuesForSetPolicyRequest(AzureRMBackupProtectionPolicy policy, string newName)
+ {
+ if (newName != null && NewName != policy.Name)
+ {
+ ProtectionPolicyHelpers.ValidateProtectionPolicyName(this.NewName);
+ AzureBackupClient.CheckProtectionPolicyNameAvailability(ProtectionPolicy.ResourceGroupName, ProtectionPolicy.ResourceName, this.NewName);
+ }
+
+ BackupTime = (BackupTime == DateTime.MinValue) ? policy.BackupTime :
+ BackupTime;
+
+ WriteDebug(String.Format(Resources.PolicyParameterSet, this.ParameterSetName.ToString()));
+
+ if (this.ParameterSetName != NoScheduleParamSet )
+ {
+ if (DaysOfWeek != null && DaysOfWeek.Length > 0 &&
+ this.ParameterSetName == WeeklyScheduleParamSet)
+ {
+ policy.ScheduleType = ScheduleType.Weekly.ToString();
+ policy.DaysOfWeek = DaysOfWeek.ToList();
+ }
+ else if (this.ParameterSetName == DailyScheduleParamSet &&
+ (DaysOfWeek == null || DaysOfWeek.Length <= 0))
+ {
+ policy.ScheduleType = ScheduleType.Daily.ToString();
+ policy.DaysOfWeek = new List();
+ }
+ else
+ {
+ policy.ScheduleType = ProtectionPolicyHelpers.GetScheduleType(DaysOfWeek, this.ParameterSetName,
+ DailyScheduleParamSet, WeeklyScheduleParamSet);
+
+ }
+ }
+ else if (DaysOfWeek != null && DaysOfWeek.Length > 0)
+ {
+ throw new ArgumentException(Resources.PolicyArgumentException);
+ }
+ }
+ }
+}
+
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/RecoveryPoint/GetAzureRMBackupRecoveryPoint.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/RecoveryPoint/GetAzureRMBackupRecoveryPoint.cs
new file mode 100644
index 000000000000..f70976bdb17b
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/RecoveryPoint/GetAzureRMBackupRecoveryPoint.cs
@@ -0,0 +1,98 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using System.Linq;
+using Microsoft.Azure.Management.BackupServices.Models;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ ///
+ /// Get list of Azure Recovery Points
+ ///
+ [Cmdlet(VerbsCommon.Get, "AzureRMBackupRecoveryPoint"), OutputType(typeof(AzureRMBackupRecoveryPoint), typeof(List))]
+ public class GetAzureRMBackupRecoveryPoint : AzureRMBackupDSCmdletBase
+ {
+ [Parameter(Position = 1, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.RecoveryPointId)]
+ [ValidateNotNullOrEmpty]
+ public string RecoveryPointId { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ base.ExecuteCmdlet();
+
+ ExecutionBlock(() =>
+ {
+ WriteDebug(Resources.MakingClientCall);
+
+ if (RecoveryPointId != null)
+ {
+ CSMRecoveryPointResponse recoveryPointObject = AzureBackupClient.GetRecoveryPoint(Item.ResourceGroupName, Item.ResourceName, Item.ContainerUniqueName, Item.ItemName, RecoveryPointId);
+ if (recoveryPointObject != null)
+ {
+ WriteAzureBackupRecoveryPoint(recoveryPointObject, Item);
+ }
+ else
+ {
+ WriteDebug(string.Format(Resources.NoRpExist, RecoveryPointId));
+ }
+ }
+ else
+ {
+ IEnumerable recoveryPointListResponse = AzureBackupClient.ListRecoveryPoints(Item.ResourceGroupName, Item.ResourceName, Item.ContainerUniqueName, Item.ItemName);
+ if (recoveryPointListResponse != null &&
+ recoveryPointListResponse.Count() > 0)
+ {
+ IEnumerable recoveryPointObjects = recoveryPointListResponse.OrderByDescending(x => x.Properties.RecoveryPointTime);
+ if (recoveryPointObjects.Count() > 1)
+ {
+ WriteAzureBackupRecoveryPoint(recoveryPointObjects, Item);
+ }
+ else
+ {
+ WriteAzureBackupRecoveryPoint(recoveryPointObjects.FirstOrDefault(), Item);
+ }
+ }
+ else
+ {
+ WriteDebug(Resources.NoRpFound);
+ }
+ }
+ });
+ }
+
+ public void WriteAzureBackupRecoveryPoint(CSMRecoveryPointResponse sourceRecoverPoint, AzureRMBackupItem azureBackupItem)
+ {
+ this.WriteObject(new AzureRMBackupRecoveryPoint(sourceRecoverPoint, azureBackupItem));
+ }
+
+ public void WriteAzureBackupRecoveryPoint(IEnumerable sourceRecoverPointList, AzureRMBackupItem azureBackupItem)
+ {
+ List targetList = new List();
+
+ foreach (var sourceRecoverPoint in sourceRecoverPointList)
+ {
+ targetList.Add(new AzureRMBackupRecoveryPoint(sourceRecoverPoint, azureBackupItem));
+ }
+
+ this.WriteObject(targetList, true);
+ }
+ }
+}
+
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Restore/RestoreAzureRMBackupItem.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Restore/RestoreAzureRMBackupItem.cs
new file mode 100644
index 000000000000..4c558243526c
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Restore/RestoreAzureRMBackupItem.cs
@@ -0,0 +1,80 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using System.Linq;
+using Microsoft.Azure.Management.BackupServices.Models;
+using MBS = Microsoft.Azure.Management.BackupServices;
+using System.Web.Script.Serialization;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
+{
+ ///
+ /// Restore Azure Backup Item
+ ///
+ [Cmdlet(VerbsData.Restore, "AzureRMBackupItem"), OutputType(typeof(AzureRMBackupJob))]
+ public class RestoreAzureRMBackupItem : AzureBackupRestoreBase
+ {
+ [Parameter(Position = 1, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.StorageAccountName)]
+ [ValidateNotNullOrEmpty]
+ public string StorageAccountName { get; set; }
+
+ public override void ExecuteCmdlet()
+ {
+ base.ExecuteCmdlet();
+
+ ExecutionBlock(() =>
+ {
+ WriteDebug(Resources.MakingClientCall);
+ AzureIaaSVMRecoveryInputsCSMObject azureIaaSVMRecoveryInputsCSMObject = new AzureIaaSVMRecoveryInputsCSMObject()
+ {
+ CloudServiceName = string.Empty,
+ VmName = string.Empty,
+ CreateNewCloudService = false,
+ ContinueProtection = false,
+ InputStorageAccountName = StorageAccountName,
+ AffinityGroup = "",
+ Region = RecoveryPoint.Location,
+ };
+
+ JavaScriptSerializer serializer = new JavaScriptSerializer();
+ string azureIaaSVMRecoveryInputsCSMObjectString = serializer.Serialize(azureIaaSVMRecoveryInputsCSMObject);
+
+ CSMRestoreRequest csmRestoreRequest = new CSMRestoreRequest()
+ {
+ Properties = new CSMRestoreRequestProperties()
+ {
+ TypeOfRecovery = RecoveryType.RestoreDisks.ToString(),
+ RecoveryDSTypeSpecificInputs = azureIaaSVMRecoveryInputsCSMObjectString,
+ },
+ };
+
+ Guid operationId = AzureBackupClient.TriggerRestore(RecoveryPoint.ResourceGroupName, RecoveryPoint.ResourceName, RecoveryPoint.ContainerUniqueName, RecoveryPoint.ItemName, RecoveryPoint.RecoveryPointName, csmRestoreRequest);
+ WriteDebug(string.Format(Resources.TriggeringRestore, operationId));
+
+ var operationStatus = TrackOperation(RecoveryPoint.ResourceGroupName, RecoveryPoint.ResourceName, operationId);
+ WriteObject(GetCreatedJobs(RecoveryPoint.ResourceGroupName,
+ RecoveryPoint.ResourceName,
+ new Models.AzureRMBackupVault(RecoveryPoint.ResourceGroupName, RecoveryPoint.ResourceName, RecoveryPoint.Location),
+ operationStatus.JobList).FirstOrDefault());
+
+ });
+ }
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/GetAzureBackupVault.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/GetAzureRMBackupVault.cs
similarity index 90%
rename from src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/GetAzureBackupVault.cs
rename to src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/GetAzureRMBackupVault.cs
index 9f05845750a4..1b421c2b9da5 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/GetAzureBackupVault.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/GetAzureRMBackupVault.cs
@@ -25,8 +25,8 @@ namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
///
/// Command to get azure backup vaults in a subscription
///
- [Cmdlet(VerbsCommon.Get, "AzureBackupVault"), OutputType(typeof(AzurePSBackupVault), typeof(List))]
- public class GetAzureBackupVault : AzureBackupCmdletBase
+ [Cmdlet(VerbsCommon.Get, "AzureRMBackupVault"), OutputType(typeof(AzureRMBackupVault), typeof(List))]
+ public class GetAzureRMBackupVault : AzureBackupCmdletBase
{
[Parameter(Position = 0, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.ResourceGroupName)]
[ValidateNotNullOrEmpty]
@@ -66,9 +66,9 @@ public override void ExecuteCmdlet()
});
}
- private IEnumerable GetCmdletVaults(IEnumerable backupVaults)
+ private IEnumerable GetCmdletVaults(IEnumerable backupVaults)
{
- List resultList = new List();
+ List resultList = new List();
if (backupVaults != null)
{
foreach (var backupVault in backupVaults)
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/NewAzureBackupVault.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/NewAzureRMBackupVault.cs
similarity index 84%
rename from src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/NewAzureBackupVault.cs
rename to src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/NewAzureRMBackupVault.cs
index 6bc443c4273f..aca22a655f21 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/NewAzureBackupVault.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/NewAzureRMBackupVault.cs
@@ -14,6 +14,7 @@
using Microsoft.Azure.Commands.AzureBackup.Helpers;
using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
using System;
using System.Management.Automation;
@@ -22,8 +23,8 @@ namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
///
/// Command to create an azure backup vault in a subscription
///
- [Cmdlet(VerbsCommon.New, "AzureBackupVault"), OutputType(typeof(AzurePSBackupVault))]
- public class NewAzureBackupVault : AzureBackupCmdletBase
+ [Cmdlet(VerbsCommon.New, "AzureRMBackupVault"), OutputType(typeof(AzureRMBackupVault))]
+ public class NewAzureRMBackupVault : AzureBackupCmdletBase
{
[Parameter(Position = 0, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.ResourceGroupName)]
[ValidateNotNullOrEmpty]
@@ -52,15 +53,15 @@ public override void ExecuteCmdlet()
base.ExecuteCmdlet();
InitializeAzureBackupCmdlet(ResourceGroupName, Name);
- WriteDebug(String.Format("Creating backup vault with ResourceGroupName: {0}, ResourceName: {1}", ResourceGroupName, Name));
+ WriteDebug(String.Format(Resources.CreatingBackupVault, ResourceGroupName, Name));
var createdVault = AzureBackupClient.CreateOrUpdateAzureBackupVault(ResourceGroupName, Name, Region);
if (Storage != 0)
{
- WriteDebug(String.Format("Setting storage type for the resource, Type: {0}", Storage));
+ WriteDebug(String.Format(Resources.SettingStorageType, Storage));
- AzureBackupClient.UpdateStorageType(Storage.ToString());
+ AzureBackupClient.UpdateStorageType(ResourceGroupName, Name, Storage.ToString());
}
WriteObject(VaultHelpers.GetCmdletVault(createdVault, AzureBackupClient.GetStorageTypeDetails(VaultHelpers.GetResourceGroup(createdVault.Id), createdVault.Name)));
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/RemoveAzureBackupVault.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/RemoveAzureRMBackupVault.cs
similarity index 90%
rename from src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/RemoveAzureBackupVault.cs
rename to src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/RemoveAzureRMBackupVault.cs
index 6124f3a43bed..24fd5cbda339 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/RemoveAzureBackupVault.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/RemoveAzureRMBackupVault.cs
@@ -19,8 +19,8 @@ namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
///
/// Command to remove an azure backup vault in the subscription
///
- [Cmdlet(VerbsCommon.Remove, "AzureBackupVault")]
- public class RemoveAzureBackupVault : AzureBackupVaultCmdletBase
+ [Cmdlet(VerbsCommon.Remove, "AzureRMBackupVault")]
+ public class RemoveAzureRMBackupVault : AzureBackupVaultCmdletBase
{
public override void ExecuteCmdlet()
{
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/SetAzureBackupVault.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/SetAzureRMBackupVault.cs
similarity index 82%
rename from src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/SetAzureBackupVault.cs
rename to src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/SetAzureRMBackupVault.cs
index 82b01c2e7200..53419e94d4ae 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/SetAzureBackupVault.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Vault/SetAzureRMBackupVault.cs
@@ -14,6 +14,7 @@
using Microsoft.Azure.Commands.AzureBackup.Helpers;
using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
using System;
using System.Management.Automation;
using CmdletModel = Microsoft.Azure.Commands.AzureBackup.Models;
@@ -23,8 +24,8 @@ namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
///
/// Command to update an azure backup vault in a subscription.
///
- [Cmdlet(VerbsCommon.Set, "AzureBackupVault"), OutputType(typeof(CmdletModel.AzurePSBackupVault))]
- public class SetAzureBackupVault : AzureBackupVaultCmdletBase
+ [Cmdlet(VerbsCommon.Set, "AzureRMBackupVault"), OutputType(typeof(CmdletModel.AzureRMBackupVault))]
+ public class SetAzureRMBackupVault : AzureBackupVaultCmdletBase
{
[Parameter(Position = 1, Mandatory = false, HelpMessage = AzureBackupCmdletHelpMessage.StorageType)]
public AzureBackupVaultStorageType Storage { get; set; }
@@ -42,9 +43,9 @@ public override void ExecuteCmdlet()
{
if (Storage != 0)
{
- WriteDebug(String.Format("Setting storage type for the resource, Type: {0}", Storage));
+ WriteDebug(String.Format(Resources.SettingStorageType, Storage));
- AzureBackupClient.UpdateStorageType(Storage.ToString());
+ AzureBackupClient.UpdateStorageType(Vault.ResourceGroupName, Vault.Name, Storage.ToString());
}
var backupVault = AzureBackupClient.GetVault(Vault.ResourceGroupName, Vault.Name);
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/VaultCredentials/GetAzureBackupVaultCredentials.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/VaultCredentials/GetAzureRMBackupVaultCredentials.cs
similarity index 89%
rename from src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/VaultCredentials/GetAzureBackupVaultCredentials.cs
rename to src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/VaultCredentials/GetAzureRMBackupVaultCredentials.cs
index ef4324c83763..d862f07d0c9e 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/VaultCredentials/GetAzureBackupVaultCredentials.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/VaultCredentials/GetAzureRMBackupVaultCredentials.cs
@@ -14,6 +14,7 @@
using Microsoft.Azure.Commands.AzureBackup.Library;
using Microsoft.Azure.Commands.AzureBackup.Models;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
using Microsoft.Azure.Management.BackupServices.Models;
using System;
using System.Globalization;
@@ -29,8 +30,8 @@ namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
///
/// Command to download an azure backup vault's credentials.
///
- [Cmdlet(VerbsCommon.Get, "AzureBackupVaultCredentials"), OutputType(typeof(string))]
- public class GetAzureBackupVaultCredentials : AzureBackupVaultCmdletBase
+ [Cmdlet(VerbsCommon.Get, "AzureRMBackupVaultCredentials"), OutputType(typeof(string))]
+ public class GetAzureRMBackupVaultCredentials : AzureBackupVaultCmdletBase
{
[Parameter(Position = 2, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.TargetLocation)]
[ValidateNotNullOrEmpty]
@@ -46,7 +47,7 @@ public override void ExecuteCmdlet()
if (!Directory.Exists(TargetLocation))
{
- throw new ArgumentException("The target location provided is not a directory. Please provide a directory.");
+ throw new ArgumentException(Resources.VaultCredPathException);
}
string subscriptionId = Profile.DefaultSubscription.Id.ToString();
@@ -54,7 +55,7 @@ public override void ExecuteCmdlet()
string displayName = subscriptionId + "_" + Vault.ResourceGroupName + "_" + Vault.Name;
WriteDebug(string.Format(CultureInfo.InvariantCulture,
- "Executing cmdlet with SubscriptionId = {0}, ResourceGroupName = {1}, ResourceName = {2}, TargetLocation = {3}",
+ Resources.ExecutingGetVaultCredCmdlet,
subscriptionId, Vault.ResourceGroupName, Vault.Name, TargetLocation));
X509Certificate2 cert = CertUtils.CreateSelfSignedCert(CertUtils.DefaultIssuer,
@@ -68,9 +69,9 @@ public override void ExecuteCmdlet()
try
{
// Upload cert into ID Mgmt
- WriteDebug(string.Format(CultureInfo.InvariantCulture, "RecoveryService - Going to upload the certificate"));
+ WriteDebug(string.Format(CultureInfo.InvariantCulture, Resources.UploadingCertToIdmgmt));
acsNamespace = UploadCert(cert, subscriptionId, Vault.Name, resourceType, Vault.ResourceGroupName);
- WriteDebug(string.Format(CultureInfo.InvariantCulture, "RecoveryService - Successfully uploaded the certificate"));
+ WriteDebug(string.Format(CultureInfo.InvariantCulture, Resources.UploadedCertToIdmgmt));
}
catch (Exception exception)
{
@@ -88,14 +89,8 @@ public override void ExecuteCmdlet()
// prepare for download
string fileName = string.Format("{0}_{1}.VaultCredentials", displayName, DateTime.UtcNow.ToString("yyyy-dd-M--HH-mm-ss"));
- string directoryPath = Path.GetDirectoryName(TargetLocation);
- if (directoryPath == null)
- {
- // TargetLocation is a root path
- directoryPath = TargetLocation;
- }
- string filePath = Path.Combine(directoryPath, fileName);
- WriteDebug(string.Format("Saving Vault Credentials to file : {0}", filePath));
+ string filePath = Path.Combine(TargetLocation, fileName);
+ WriteDebug(string.Format(Resources.SavingVaultCred, filePath));
File.WriteAllBytes(filePath, Encoding.UTF8.GetBytes(vaultCredsFileContent));
@@ -134,7 +129,7 @@ private AcsNamespace UploadCert(X509Certificate2 cert, string subscriptionId, st
},
};
- var vaultCredUploadCertResponse = AzureBackupClient.UploadCertificate("IdMgmtInternalCert", vaultCredUploadCertRequest);
+ var vaultCredUploadCertResponse = AzureBackupClient.UploadCertificate(resourceGroupName, resourceName, "IdMgmtInternalCert", vaultCredUploadCertRequest);
return new AcsNamespace(vaultCredUploadCertResponse.ResourceCertificateAndACSDetails.GlobalAcsHostName,
vaultCredUploadCertResponse.ResourceCertificateAndACSDetails.GlobalAcsNamespace,
@@ -186,7 +181,7 @@ private string GenerateVaultCredsForBackup(X509Certificate2 cert, string subscri
DataContractSerializer serializer = new DataContractSerializer(typeof(BackupVaultCreds));
serializer.WriteObject(writer, backupVaultCreds);
- WriteDebug(string.Format(CultureInfo.InvariantCulture, "RecoveryService - Backup Vault - Successfully serialized the file content"));
+ WriteDebug(string.Format(CultureInfo.InvariantCulture, Resources.BackupVaultSerialized));
}
return Encoding.UTF8.GetString(output.ToArray());
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj
index b7ac40c9a508..c6bbbb3be6e6 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Commands.AzureBackup.csproj
@@ -56,9 +56,9 @@
..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll
-
+
False
- ..\..\..\packages\Microsoft.Azure.Management.BackupServices.1.0.2-preview\lib\net40\Microsoft.Azure.Management.BackupServicesManagement.dll
+ ..\..\..\packages\Microsoft.Azure.Management.BackupServices.1.0.3-preview\lib\net40\Microsoft.Azure.Management.BackupServicesManagement.dll
False
@@ -122,6 +122,7 @@
+
@@ -131,26 +132,58 @@
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
True
@@ -194,9 +227,7 @@
Commands.Utilities
-
-
-
+
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Helpers/ContainerHelpers.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Helpers/ContainerHelpers.cs
index 65678f8542da..67d011686ac0 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Helpers/ContainerHelpers.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Helpers/ContainerHelpers.cs
@@ -36,6 +36,8 @@ namespace Microsoft.Azure.Commands.AzureBackup.Helpers
{
internal class ContainerHelpers
{
+ private static readonly Regex ResourceGroupRegex = new Regex(@"/subscriptions/(?.+)/resourceGroups/(?.+)/providers/(?.+)/BackupVault/(?.+)/containers/(?.+)", RegexOptions.Compiled);
+
internal static AzureBackupContainerType GetContainerType(string customerType)
{
CustomerType type = (CustomerType)Enum.Parse(typeof(CustomerType), customerType);
@@ -67,5 +69,88 @@ internal static AzureBackupContainerType GetContainerType(string customerType)
return containerType;
}
+
+ internal static AzureBackupContainerType GetTypeForManagedContainer(string managedContainerTypeString)
+ {
+ ManagedContainerType managedContainerType = (ManagedContainerType)Enum.Parse(typeof(ManagedContainerType), managedContainerTypeString, true);
+
+ AzureBackupContainerType containerType = 0;
+
+ switch (managedContainerType)
+ {
+ case ManagedContainerType.Invalid:
+ break;
+ case ManagedContainerType.IaasVM:
+ containerType = AzureBackupContainerType.AzureVM;
+ break;
+ case ManagedContainerType.IaasVMService:
+ break;
+ default:
+ break;
+ }
+
+ return containerType;
+ }
+
+ internal static string GetQueryFilter(ListContainerQueryParameter queryParams)
+ {
+ NameValueCollection collection = new NameValueCollection();
+ if (!String.IsNullOrEmpty(queryParams.ContainerTypeField))
+ {
+ collection.Add("ContainerType", queryParams.ContainerTypeField);
+ }
+
+ if (!String.IsNullOrEmpty(queryParams.ContainerStatusField))
+ {
+ collection.Add("ContainerStatus", queryParams.ContainerStatusField);
+ }
+
+ if (!String.IsNullOrEmpty(queryParams.ContainerFriendlyNameField))
+ {
+ collection.Add("FriendlyName", queryParams.ContainerFriendlyNameField);
+ }
+
+ if (collection == null || collection.Count == 0)
+ {
+ return String.Empty;
+ }
+
+ return CreateQueryString(collection);
+ }
+
+ internal static string GetRGNameFromId(string id)
+ {
+ var match = ResourceGroupRegex.Match(id);
+ if (match.Success)
+ {
+ var vmRGName = match.Groups["containersName"];
+ if (vmRGName != null && vmRGName.Success)
+ {
+ return vmRGName.Value;
+ }
+ }
+
+ return null;
+ }
+
+ private static string CreateQueryString(NameValueCollection collection)
+ {
+ string filterValue = string.Empty;
+
+ if (collection == null)
+ {
+ throw new ArgumentNullException("collection");
+ }
+
+ if (collection.Count > 0)
+ {
+ foreach (string key in collection.Keys)
+ {
+ filterValue += key + " eq '" + collection[key] + "' and ";
+ }
+ filterValue = filterValue.Remove(filterValue.Length - 5);
+ }
+ return filterValue;
+ }
}
}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Helpers/ItemHelpers.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Helpers/ItemHelpers.cs
new file mode 100644
index 000000000000..66b1846bd302
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Helpers/ItemHelpers.cs
@@ -0,0 +1,42 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Helpers
+{
+ internal class ItemHelpers
+ {
+ internal static string GetTypeForItem(string typeFromServiceRespone)
+ {
+ AzureBackupItemType managedContainerType = (AzureBackupItemType)Enum.Parse(typeof(AzureBackupItemType), typeFromServiceRespone, true);
+
+ string itemType = string.Empty;
+
+ switch (managedContainerType)
+ {
+ case AzureBackupItemType.IaasVM:
+ itemType = "AzureVM";
+ break;
+ }
+
+ return itemType;
+ }
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Helpers/ProtectionPolicyHelpers.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Helpers/ProtectionPolicyHelpers.cs
new file mode 100644
index 000000000000..97044655a262
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Helpers/ProtectionPolicyHelpers.cs
@@ -0,0 +1,783 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+using Microsoft.Azure.Common.Authentication;
+using Microsoft.Azure.Common.Authentication.Models;
+using System.Threading;
+using Hyak.Common;
+using Microsoft.Azure.Commands.AzureBackup.Properties;
+using System.Net;
+using Microsoft.Azure.Management.BackupServices.Models;
+using Microsoft.Azure.Commands.AzureBackup.Cmdlets;
+using System.Linq;
+using Microsoft.Azure.Commands.AzureBackup.Models;
+using CmdletModel = Microsoft.Azure.Commands.AzureBackup.Models;
+using System.Collections.Specialized;
+using System.Web;
+using System.Text.RegularExpressions;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Helpers
+{
+ public static class ProtectionPolicyHelpers
+ {
+ public const int MinRetentionInDays = 1;
+ public const int MaxRetentionInDays = 366;
+ public const int MinRetention = 1;
+ public const int MaxRetentionInWeeks = 260;
+ public const int MaxRetentionInMonths = 120;
+ public const int MaxRetentionInYears = 99;
+ public const int MinPolicyNameLength = 3;
+ public const int MaxPolicyNameLength = 150;
+ public const string LastDayOfTheMonth = "Last";
+ public static Regex rgx = new Regex(@"^[A-Za-z][-A-Za-z0-9]*[A-Za-z0-9]$");
+
+ public static AzureRMBackupProtectionPolicy GetCmdletPolicy(CmdletModel.AzureRMBackupVault vault, CSMProtectionPolicyResponse sourcePolicy)
+ {
+ if (sourcePolicy == null)
+ {
+ return null;
+ }
+
+ return new AzureRMBackupProtectionPolicy(vault, sourcePolicy.Properties, sourcePolicy.Id);
+ }
+
+ public static IEnumerable GetCmdletPolicies(CmdletModel.AzureRMBackupVault vault, IEnumerable sourcePolicyList)
+ {
+ if (sourcePolicyList == null)
+ {
+ return null;
+ }
+
+ List targetList = new List();
+
+ foreach (var sourcePolicy in sourcePolicyList)
+ {
+ targetList.Add(GetCmdletPolicy(vault, sourcePolicy));
+ }
+
+ return targetList;
+ }
+
+ public static CSMBackupSchedule FillCSMBackupSchedule(string scheduleType, DateTime scheduleStartTime,
+ string[] scheduleRunDays)
+ {
+ var backupSchedule = new CSMBackupSchedule();
+
+ backupSchedule.BackupType = BackupType.Full.ToString();
+
+ scheduleType = FillScheduleType(scheduleType, scheduleRunDays);
+ backupSchedule.ScheduleRun = scheduleType;
+
+ if (string.Compare(scheduleType, ScheduleType.Weekly.ToString(), true) == 0)
+ {
+ backupSchedule.ScheduleRunDays = ParseScheduleRunDays(scheduleRunDays);
+ }
+
+ DateTime scheduleRunTime = ParseScheduleRunTime(scheduleStartTime);
+
+ backupSchedule.ScheduleRunTimes = new List { scheduleRunTime };
+
+ return backupSchedule;
+ }
+
+ public static void ValidateProtectionPolicyName(string policyName)
+ {
+ if(policyName.Length < MinPolicyNameLength || policyName.Length > MaxPolicyNameLength)
+ {
+ var exception = new ArgumentException(Resources.ProtectionPolicyNameLengthException);
+ throw exception;
+ }
+
+ if(!rgx.IsMatch(policyName))
+ {
+ var exception = new ArgumentException(Resources.ProtectionPolicyNameException);
+ throw exception;
+ }
+ }
+
+ public static string GetScheduleType(string[] ScheduleRunDays, string parameterSetName,
+ string dailyParameterSet, string weeklyParameterSet)
+ {
+ if (ScheduleRunDays != null && ScheduleRunDays.Length > 0)
+ {
+ if (parameterSetName == dailyParameterSet)
+ {
+ throw new ArgumentException(Resources.BackupScheduleDailyParamException);
+ }
+ else
+ {
+ return ScheduleType.Weekly.ToString();
+ }
+ }
+ else
+ {
+ if (parameterSetName == weeklyParameterSet)
+ {
+ throw new ArgumentException(Resources.BackupScheduleWeeklyParamException);
+ }
+ else
+ {
+ return ScheduleType.Daily.ToString();
+ }
+ }
+ }
+
+ public static void ValidateRetentionPolicy(IList retentionPolicyList, CSMBackupSchedule backupSchedule = null)
+ {
+ bool validateDailyRetention = false;
+ bool validateWeeklyRetention = false;
+ int dailyRetentionPolicyCount = 0;
+ int weeklyRetentionPolicyCount = 0;
+ int monthlyRetentionPolicyCount = 0;
+ int yearlyRetentionPolicyCount = 0;
+
+ if(retentionPolicyList.Count == 0 )
+ {
+ var exception = new ArgumentException(Resources.RetentionPolicyCountException);
+ throw exception;
+ }
+
+ foreach (AzureRMBackupRetentionPolicy retentionPolicy in retentionPolicyList)
+ {
+ if(retentionPolicy.RetentionType == RetentionType.Daily.ToString())
+ {
+ ValidateDailyRetention((AzureBackupDailyRetentionPolicy)retentionPolicy);
+ validateDailyRetention = true;
+ dailyRetentionPolicyCount = dailyRetentionPolicyCount + 1;
+ }
+ else if (retentionPolicy.RetentionType == RetentionType.Weekly.ToString())
+ {
+ ValidateWeeklyRetention((AzureBackupWeeklyRetentionPolicy)retentionPolicy);
+ validateWeeklyRetention = true;
+ if (backupSchedule != null)
+ {
+ var weeklyRetention = (AzureBackupWeeklyRetentionPolicy)retentionPolicy;
+ ValidateForWeeklyBackupScheduleDaysOfWeek(backupSchedule.ScheduleRun, backupSchedule.ScheduleRunDays, weeklyRetention.DaysOfWeek);
+ }
+ weeklyRetentionPolicyCount = weeklyRetentionPolicyCount + 1;
+ }
+ else if (retentionPolicy.RetentionType == RetentionType.Monthly.ToString())
+ {
+ ValidateMonthlyRetention((AzureBackupMonthlyRetentionPolicy)retentionPolicy);
+ if (backupSchedule != null)
+ {
+ var monthlyRetention = (AzureBackupMonthlyRetentionPolicy)retentionPolicy;
+ ValidateForWeeklyBackupSchedule(monthlyRetention.RetentionFormat, backupSchedule.ScheduleRun, backupSchedule.ScheduleRunDays, monthlyRetention.DaysOfWeek);
+ }
+ monthlyRetentionPolicyCount = monthlyRetentionPolicyCount + 1;
+ }
+ else if (retentionPolicy.RetentionType == RetentionType.Yearly.ToString())
+ {
+ ValidateYearlyRetention((AzureBackupYearlyRetentionPolicy)retentionPolicy);
+ if (backupSchedule != null)
+ {
+ var yearlyRetention = (AzureBackupYearlyRetentionPolicy)retentionPolicy;
+ ValidateForWeeklyBackupSchedule(yearlyRetention.RetentionFormat, backupSchedule.ScheduleRun, backupSchedule.ScheduleRunDays, yearlyRetention.DaysOfWeek);
+ }
+ yearlyRetentionPolicyCount = yearlyRetentionPolicyCount + 1;
+ }
+ }
+
+ ValidateRetentionPolicyCount(dailyRetentionPolicyCount, weeklyRetentionPolicyCount, monthlyRetentionPolicyCount,
+ yearlyRetentionPolicyCount);
+
+ if (backupSchedule != null)
+ {
+ string scheduleType = backupSchedule.ScheduleRun;
+ if (scheduleType == ScheduleType.Daily.ToString() && validateDailyRetention == false)
+ {
+ var exception = new ArgumentException(Resources.DailyScheduleException);
+ throw exception;
+ }
+
+ if (scheduleType == ScheduleType.Weekly.ToString() && validateWeeklyRetention == false)
+ {
+ var exception = new ArgumentException(Resources.WeeklyScheduleException);
+ throw exception;
+ }
+
+ if (scheduleType == ScheduleType.Weekly.ToString() && validateDailyRetention == true)
+ {
+ var exception = new ArgumentException(Resources.WeeklyScheduleWithDailyException);
+ throw exception;
+ }
+ }
+ }
+
+ private static string FillScheduleType(string scheduleType, string[] scheduleRunDays)
+ {
+ if (scheduleType == ScheduleType.Daily.ToString() && scheduleRunDays != null && scheduleRunDays.Length > 0)
+ {
+ return ScheduleType.Weekly.ToString();
+ }
+
+ else
+ {
+ return Enum.Parse(typeof(ScheduleType), scheduleType, true).ToString();
+ }
+ }
+
+ private static IList ParseScheduleRunDays(string[] scheduleRunDays)
+ {
+ if (scheduleRunDays == null || scheduleRunDays.Length <= 0)
+ {
+ var exception = new ArgumentException(Resources.WeeklyScheduleRunDaysException);
+ throw exception;
+ }
+
+ IList ListofWeekDays = new List();
+
+ foreach (var dayOfWeek in scheduleRunDays)
+ {
+ DayOfWeek item = (DayOfWeek)Enum.Parse(typeof(DayOfWeek), dayOfWeek, true);
+ if (!ListofWeekDays.Contains(item))
+ {
+ ListofWeekDays.Add(item);
+ }
+ }
+
+ return ListofWeekDays;
+ }
+
+ private static DateTime ParseScheduleRunTime(DateTime scheduleStartTime)
+ {
+ if (scheduleStartTime.Kind == DateTimeKind.Local)
+ {
+ scheduleStartTime = scheduleStartTime.ToUniversalTime();
+ }
+ DateTime scheduleRunTime = new DateTime(scheduleStartTime.Year, scheduleStartTime.Month,
+ scheduleStartTime.Day, scheduleStartTime.Hour, scheduleStartTime.Minute - (scheduleStartTime.Minute % 30), 0);
+ return scheduleRunTime;
+ }
+
+ private static void ValidateRetentionPolicyCount(int dailyRetentionCount, int weeklyRetentionCount,
+ int monthlyRetentionCount, int yearlyRetentionCount)
+ {
+ if(dailyRetentionCount > 1)
+ {
+ var exception = new ArgumentException(Resources.DailyRetentionPolicyException);
+ throw exception;
+ }
+
+ if (weeklyRetentionCount > 1)
+ {
+ var exception = new ArgumentException(Resources.WeeklyRetentionPolicyException);
+ throw exception;
+ }
+
+ if (monthlyRetentionCount > 1)
+ {
+ var exception = new ArgumentException(Resources.MonthlyRetentionPolicyException);
+ throw exception;
+ }
+
+ if (yearlyRetentionCount > 1)
+ {
+ var exception = new ArgumentException(Resources.YearlyRetentionPolicyException);
+ throw exception;
+ }
+
+ }
+
+ private static void ValidateDailyRetention(AzureBackupDailyRetentionPolicy dailyRetention)
+ {
+ if (dailyRetention.Retention < MinRetentionInDays || dailyRetention.Retention > MaxRetentionInDays)
+ {
+ var exception = new ArgumentException(string.Format(Resources.DailyRetentionPolicyValueException, MinRetentionInDays, MaxRetentionInDays));
+ throw exception;
+ }
+ }
+
+ private static void ValidateWeeklyRetention(AzureBackupWeeklyRetentionPolicy weeklyRetention)
+ {
+ if (weeklyRetention.Retention < MinRetention || weeklyRetention.Retention > MaxRetentionInWeeks)
+ {
+ var exception = new ArgumentException(string.Format(Resources.WeeklyRetentionPolicyValueException, MinRetention, MaxRetentionInWeeks));
+ throw exception;
+ }
+
+ if(weeklyRetention.DaysOfWeek == null || weeklyRetention.DaysOfWeek.Count == 0)
+ {
+ var exception = new ArgumentException(Resources.WeeklyRetentionPolicyDaysOfWeekException);
+ throw exception;
+ }
+ }
+
+ private static void ValidateMonthlyRetention(AzureBackupMonthlyRetentionPolicy monthlyRetention)
+ {
+ if (monthlyRetention.Retention < MinRetention || monthlyRetention.Retention > MaxRetentionInMonths)
+ {
+ var exception = new ArgumentException(string.Format(Resources.MonthlyRetentionPolicyValueException, MinRetention, MaxRetentionInMonths));
+ throw exception;
+ }
+
+ if(monthlyRetention.RetentionFormat == RetentionFormat.Daily)
+ {
+ if(monthlyRetention.DaysOfMonth == null || monthlyRetention.DaysOfMonth.Count == 0)
+ {
+ var exception = new ArgumentException(Resources.MonthlyRetentionPolicyDaysOfMonthParamException);
+ throw exception;
+ }
+
+ if(monthlyRetention.DaysOfWeek != null || monthlyRetention.WeekNumber != null)
+ {
+ var exception = new ArgumentException(Resources.MonthlyRetentionPolicyDaysOfWeekParamException);
+ throw exception;
+ }
+ }
+
+ if (monthlyRetention.RetentionFormat == RetentionFormat.Weekly)
+ {
+ if (monthlyRetention.DaysOfWeek == null || monthlyRetention.DaysOfWeek.Count == 0)
+ {
+ var exception = new ArgumentException(Resources.MonthlyRetentionPolicyDaysOfWeekException);
+ throw exception;
+ }
+
+ if (monthlyRetention.WeekNumber == null || monthlyRetention.WeekNumber.Count == 0)
+ {
+ var exception = new ArgumentException(Resources.MonthlyRetentionPolicyWeekNumException);
+ throw exception;
+ }
+
+ if (monthlyRetention.DaysOfMonth != null)
+ {
+ var exception = new ArgumentException(Resources.MonthlyRetentionPolicyDaysOfMonthsException);
+ throw exception;
+ }
+ }
+ }
+
+ private static void ValidateYearlyRetention(AzureBackupYearlyRetentionPolicy yearlyRetention)
+ {
+ if (yearlyRetention.Retention < MinRetention || yearlyRetention.Retention > MaxRetentionInYears)
+ {
+ var exception = new ArgumentException(string.Format(Resources.YearlyRetentionPolicyValueException, MinRetention, MaxRetentionInYears));
+ throw exception;
+ }
+
+ if(yearlyRetention.MonthsOfYear == null || yearlyRetention.MonthsOfYear.Count == 0)
+ {
+ var exception = new ArgumentException(Resources.YearlyRetentionPolicyMonthOfYearParamException);
+ throw exception;
+ }
+
+ if (yearlyRetention.RetentionFormat == RetentionFormat.Daily)
+ {
+ if (yearlyRetention.DaysOfMonth == null || yearlyRetention.DaysOfMonth.Count == 0)
+ {
+ var exception = new ArgumentException(Resources.YearlyRetentionPolicyDaysOfMonthParamException);
+ throw exception;
+ }
+
+ if (yearlyRetention.DaysOfWeek != null || yearlyRetention.WeekNumber != null)
+ {
+ var exception = new ArgumentException(Resources.YearlyRetentionPolicyDaysOfWeekParamException);
+ throw exception;
+ }
+ }
+
+ if (yearlyRetention.RetentionFormat == RetentionFormat.Weekly)
+ {
+ if (yearlyRetention.DaysOfWeek == null || yearlyRetention.DaysOfWeek.Count == 0)
+ {
+ var exception = new ArgumentException(Resources.YearlyRetentionPolicyDaysOfWeekInWeeksFormatParamException);
+ throw exception;
+ }
+
+ if (yearlyRetention.WeekNumber == null || yearlyRetention.WeekNumber.Count == 0)
+ {
+ var exception = new ArgumentException(Resources.YearlyRetentionPolicyWeekNumParamException);
+ throw exception;
+ }
+
+ if (yearlyRetention.DaysOfMonth != null)
+ {
+ var exception = new ArgumentException(Resources.YearlyRetentionPolicyDaysOfMonthInWeekFormatException);
+ throw exception;
+ }
+ }
+ }
+
+ private static void ValidateForWeeklyBackupSchedule(RetentionFormat RetentionScheduleType, string backupScheduleType, IList backupScheduleRunDays, List retentionScheduleRunDays)
+ {
+ if (string.Compare(backupScheduleType, ScheduleType.Weekly.ToString(), true) == 0)
+ {
+ if (RetentionScheduleType == RetentionFormat.Daily)
+ {
+ throw new ArgumentException(Resources.DaysOfMonthsNotAllowedinMonthlyYearlyFormat);
+ }
+ foreach (var day in retentionScheduleRunDays)
+ {
+ if (!backupScheduleRunDays.Contains(day))
+ {
+ throw new ArgumentException(Resources.MonthlyYearlyRetentionArgumentException);
+ }
+ }
+ }
+
+ }
+
+ private static void ValidateForWeeklyBackupScheduleDaysOfWeek(string backupScheduleType, IList backupScheduleRunDays, List retentionScheduleRunDays)
+ {
+ if (string.Compare(backupScheduleType, ScheduleType.Weekly.ToString(), true) == 0)
+ {
+ if(backupScheduleRunDays.Count != retentionScheduleRunDays.Count)
+ {
+ throw new ArgumentException(Resources.DaysOfTheWeekOfRetentionScheduleException);
+ }
+ foreach (var day in retentionScheduleRunDays)
+ {
+ if (!backupScheduleRunDays.Contains(day))
+ {
+ throw new ArgumentException(Resources.DaysofTheWeekInWeeklyRetentionException);
+ }
+ }
+ }
+
+ }
+
+ # region Conversion Helper Functions
+
+ public static IList ConvertCSMRetentionPolicyListToPowershell(CSMLongTermRetentionPolicy LTRRetentionPolicy)
+ {
+ IList retentionPolicyList = new List();
+ AzureBackupDailyRetentionPolicy dailyRetentionPolicy = ConvertToPowershellDailyRetentionObject(LTRRetentionPolicy.DailySchedule);
+ AzureBackupWeeklyRetentionPolicy weeklyRetentionPolicy = ConvertToPowershellWeeklyRetentionObject(LTRRetentionPolicy.WeeklySchedule);
+ AzureBackupMonthlyRetentionPolicy monthlyRetentionPolicy = ConvertToPowershellMonthlyRetentionObject(LTRRetentionPolicy.MonthlySchedule);
+ AzureBackupYearlyRetentionPolicy yearlyRetentionPolicy = ConvertToPowershellYearlyRetentionObject(LTRRetentionPolicy.YearlySchedule);
+
+ if (dailyRetentionPolicy != null)
+ {
+ retentionPolicyList.Add(dailyRetentionPolicy);
+ }
+ if (weeklyRetentionPolicy != null)
+ {
+ retentionPolicyList.Add(weeklyRetentionPolicy);
+ }
+ if (monthlyRetentionPolicy != null)
+ {
+ retentionPolicyList.Add(monthlyRetentionPolicy);
+ }
+ if (yearlyRetentionPolicy != null)
+ {
+ retentionPolicyList.Add(yearlyRetentionPolicy);
+ }
+
+ return retentionPolicyList;
+ }
+
+ public static List ConvertToPowershellScheduleRunDays(IList weekDaysList)
+ {
+ List scheduelRunDays = new List();
+
+ foreach (object item in weekDaysList)
+ {
+ scheduelRunDays.Add(item.ToString());
+ }
+
+ return scheduelRunDays;
+ }
+
+ public static DateTime ConvertToPowershellScheduleRunTimes(IList scheduleRunTimeList)
+ {
+ IEnumerator scheduleEnumerator = scheduleRunTimeList.GetEnumerator();
+ scheduleEnumerator.MoveNext();
+ return scheduleEnumerator.Current;
+ }
+
+ public static string ConvertToPowershellWorkloadType(string workloadType)
+ {
+ if(string.Compare(workloadType, "IaasVM", true) == 0)
+ {
+ return WorkloadType.AzureVM.ToString();
+ }
+ else
+ {
+ throw new ArgumentException(Resources.UnsupportedWorkloadTypeException);
+ }
+ }
+ public static CSMLongTermRetentionPolicy ConvertToCSMRetentionPolicyObject(IList retentionPolicyList, CSMBackupSchedule backupSchedule)
+ {
+ CSMLongTermRetentionPolicy csmLongTermRetentionPolicy = new CSMLongTermRetentionPolicy();
+ foreach (AzureRMBackupRetentionPolicy retentionPolicy in retentionPolicyList)
+ {
+ if (retentionPolicy.RetentionType == "Daily")
+ {
+ csmLongTermRetentionPolicy.DailySchedule = ConvertToCSMDailyRetentionObject((AzureBackupDailyRetentionPolicy)retentionPolicy,
+ backupSchedule.ScheduleRunTimes);
+ }
+ if (retentionPolicy.RetentionType == "Weekly")
+ {
+ csmLongTermRetentionPolicy.WeeklySchedule = ConvertToCSMWeeklyRetentionObject((AzureBackupWeeklyRetentionPolicy)retentionPolicy,
+ backupSchedule.ScheduleRunTimes);
+ }
+ if (retentionPolicy.RetentionType == "Monthly")
+ {
+ csmLongTermRetentionPolicy.MonthlySchedule = ConvertToGetCSMMonthlyRetentionObject((AzureBackupMonthlyRetentionPolicy)retentionPolicy,
+ backupSchedule.ScheduleRunTimes);
+ }
+ if (retentionPolicy.RetentionType == "Yearly")
+ {
+ csmLongTermRetentionPolicy.YearlySchedule = ConvertToCSMYearlyRetentionObject((AzureBackupYearlyRetentionPolicy)retentionPolicy,
+ backupSchedule.ScheduleRunTimes);
+ }
+ }
+
+ return csmLongTermRetentionPolicy;
+ }
+
+ public static string ConvertToCSMWorkLoadType(string workloadType)
+ {
+ string csmWorkloadType = "IaasVM";
+ WorkloadType type = (WorkloadType)Enum.Parse(typeof(WorkloadType), workloadType, true);
+
+ if (type == WorkloadType.AzureVM)
+ {
+ return csmWorkloadType;
+ }
+ else
+ {
+ throw new ArgumentException(Resources.UnsupportedWorkloadTypeException);
+ }
+ }
+
+ private static AzureBackupDailyRetentionPolicy ConvertToPowershellDailyRetentionObject(CSMDailyRetentionSchedule DailySchedule)
+ {
+ if (DailySchedule == null)
+ return null;
+ AzureBackupDailyRetentionPolicy dailyRetention = new AzureBackupDailyRetentionPolicy("Daily", DailySchedule.CSMRetentionDuration.Count);
+ dailyRetention.RetentionTimes = DailySchedule.RetentionTimes;
+
+ return dailyRetention;
+ }
+
+ private static AzureBackupWeeklyRetentionPolicy ConvertToPowershellWeeklyRetentionObject(CSMWeeklyRetentionSchedule WeeklySchedule)
+ {
+ if (WeeklySchedule == null)
+ return null;
+ AzureBackupWeeklyRetentionPolicy weeklyRetention = new AzureBackupWeeklyRetentionPolicy("Weekly", WeeklySchedule.CSMRetentionDuration.Count,
+ WeeklySchedule.DaysOfTheWeek);
+ weeklyRetention.RetentionTimes = WeeklySchedule.RetentionTimes;
+
+ return weeklyRetention;
+ }
+
+ private static AzureBackupMonthlyRetentionPolicy ConvertToPowershellMonthlyRetentionObject(CSMMonthlyRetentionSchedule MonthlySchedule)
+ {
+ if (MonthlySchedule == null)
+ return null;
+ AzureBackupMonthlyRetentionPolicy monthlyRetention = null;
+
+ RetentionFormat retentionFormat = (RetentionFormat)Enum.Parse(typeof(RetentionFormat), MonthlySchedule.RetentionScheduleType.ToString(), true);
+ if (retentionFormat == RetentionFormat.Daily)
+ {
+ List dayList = ConvertToPowershellDayList(MonthlySchedule.RetentionScheduleDaily.DaysOfTheMonth);
+ monthlyRetention = new AzureBackupMonthlyRetentionPolicy("Monthly", MonthlySchedule.CSMRetentionDuration.Count,
+ retentionFormat, dayList, null, null);
+ }
+ else if (retentionFormat == RetentionFormat.Weekly)
+ {
+ List weekNumberList = ConvertToPowershellWeekNumberList(MonthlySchedule.RetentionScheduleWeekly);
+ List dayOfWeekList = ConvertToPowershellWeekDaysList(MonthlySchedule.RetentionScheduleWeekly);
+ monthlyRetention = new AzureBackupMonthlyRetentionPolicy("Monthly", MonthlySchedule.CSMRetentionDuration.Count,
+ retentionFormat, null, weekNumberList, dayOfWeekList);
+ }
+
+ monthlyRetention.RetentionTimes = MonthlySchedule.RetentionTimes;
+ return monthlyRetention;
+ }
+
+ private static AzureBackupYearlyRetentionPolicy ConvertToPowershellYearlyRetentionObject(CSMYearlyRetentionSchedule YearlySchedule)
+ {
+ if (YearlySchedule == null)
+ return null;
+ AzureBackupYearlyRetentionPolicy yearlyRetention = null;
+
+ List monthOfTheYearList = ConvertToPowershellMonthsOfYearList(YearlySchedule.MonthsOfYear);
+
+ RetentionFormat retentionFormat = (RetentionFormat)Enum.Parse(typeof(RetentionFormat), YearlySchedule.RetentionScheduleType.ToString(), true);
+ if (retentionFormat == RetentionFormat.Daily)
+ {
+ List dayList = ConvertToPowershellDayList(YearlySchedule.RetentionScheduleDaily.DaysOfTheMonth);
+ yearlyRetention = new AzureBackupYearlyRetentionPolicy("Yearly", YearlySchedule.CSMRetentionDuration.Count,
+ monthOfTheYearList, retentionFormat, dayList, null, null);
+ }
+ else if (retentionFormat == RetentionFormat.Weekly)
+ {
+ List weekNumberList = ConvertToPowershellWeekNumberList(YearlySchedule.RetentionScheduleWeekly);
+ List dayOfWeekList = ConvertToPowershellWeekDaysList(YearlySchedule.RetentionScheduleWeekly);
+ yearlyRetention = new AzureBackupYearlyRetentionPolicy("Yearly", YearlySchedule.CSMRetentionDuration.Count,
+ monthOfTheYearList, retentionFormat, null, weekNumberList, dayOfWeekList);
+ }
+
+ yearlyRetention.RetentionTimes = YearlySchedule.RetentionTimes;
+ return yearlyRetention;
+ }
+
+ private static List ConvertToPowershellDayList(IList daysOfTheMonthList)
+ {
+ List dayList = new List();
+ foreach (Day day in daysOfTheMonthList)
+ {
+ if (day.IsLast)
+ {
+ dayList.Add(LastDayOfTheMonth);
+ }
+ else
+ {
+ dayList.Add(day.Date.ToString());
+ }
+
+ }
+
+ return dayList;
+ }
+
+ private static List ConvertToPowershellWeekNumberList(CSMWeeklyRetentionFormat csmWeekNumberList)
+ {
+ List weekNumberList = new List();
+ foreach (WeekNumber weekNumber in csmWeekNumberList.WeeksOfTheMonth)
+ {
+ weekNumberList.Add(weekNumber);
+ }
+ return weekNumberList;
+ }
+
+ private static List ConvertToPowershellWeekDaysList(CSMWeeklyRetentionFormat csmWeekNumberList)
+ {
+ List dayOfWeekList = new List();
+ foreach (DayOfWeek dayOfWeek in csmWeekNumberList.DaysOfTheWeek)
+ {
+ dayOfWeekList.Add(dayOfWeek);
+ }
+ return dayOfWeekList;
+ }
+
+ private static List ConvertToPowershellMonthsOfYearList(IList MonthsOfYear)
+ {
+ List monthOfTheYearList = new List();
+ foreach (Month monthOfTheYear in MonthsOfYear)
+ {
+ monthOfTheYearList.Add(monthOfTheYear);
+ }
+ return monthOfTheYearList;
+ }
+
+ private static CSMDailyRetentionSchedule ConvertToCSMDailyRetentionObject(AzureBackupDailyRetentionPolicy retentionPolicy, IList RetentionTimes)
+ {
+ CSMDailyRetentionSchedule csmDailyRetention = new CSMDailyRetentionSchedule();
+ csmDailyRetention.CSMRetentionDuration = new CSMRetentionDuration();
+ csmDailyRetention.CSMRetentionDuration.Count = retentionPolicy.Retention;
+ csmDailyRetention.CSMRetentionDuration.DurationType = RetentionDurationType.Days;
+ csmDailyRetention.RetentionTimes = RetentionTimes;
+
+ return csmDailyRetention;
+ }
+ private static CSMWeeklyRetentionSchedule ConvertToCSMWeeklyRetentionObject(AzureBackupWeeklyRetentionPolicy retentionPolicy, IList RetentionTimes)
+ {
+ CSMWeeklyRetentionSchedule csmWeeklyRetention = new CSMWeeklyRetentionSchedule();
+ csmWeeklyRetention.DaysOfTheWeek = retentionPolicy.DaysOfWeek;
+ csmWeeklyRetention.CSMRetentionDuration = new CSMRetentionDuration();
+ csmWeeklyRetention.CSMRetentionDuration.Count = retentionPolicy.Retention;
+ csmWeeklyRetention.CSMRetentionDuration.DurationType = RetentionDurationType.Weeks;
+ csmWeeklyRetention.RetentionTimes = RetentionTimes;
+ return csmWeeklyRetention;
+ }
+
+ private static CSMMonthlyRetentionSchedule ConvertToGetCSMMonthlyRetentionObject(AzureBackupMonthlyRetentionPolicy retentionPolicy, IList RetentionTimes)
+ {
+ CSMMonthlyRetentionSchedule csmMonthlyRetention = new CSMMonthlyRetentionSchedule();
+
+ if (retentionPolicy.RetentionFormat == RetentionFormat.Daily)
+ {
+ csmMonthlyRetention.RetentionScheduleType = RetentionScheduleFormat.Daily;
+ csmMonthlyRetention.RetentionScheduleDaily = new CSMDailyRetentionFormat();
+ csmMonthlyRetention.RetentionScheduleDaily.DaysOfTheMonth = ConvertToCSMDayList(retentionPolicy.DaysOfMonth);
+ }
+
+ else if (retentionPolicy.RetentionFormat == RetentionFormat.Weekly)
+ {
+ csmMonthlyRetention.RetentionScheduleWeekly = new CSMWeeklyRetentionFormat();
+ csmMonthlyRetention.RetentionScheduleType = RetentionScheduleFormat.Weekly;
+ csmMonthlyRetention.RetentionScheduleWeekly.DaysOfTheWeek = retentionPolicy.DaysOfWeek;
+ csmMonthlyRetention.RetentionScheduleWeekly.WeeksOfTheMonth = retentionPolicy.WeekNumber;
+ }
+
+ csmMonthlyRetention.CSMRetentionDuration = new CSMRetentionDuration();
+ csmMonthlyRetention.CSMRetentionDuration.Count = retentionPolicy.Retention;
+ csmMonthlyRetention.CSMRetentionDuration.DurationType = RetentionDurationType.Months;
+ csmMonthlyRetention.RetentionTimes = RetentionTimes;
+
+ return csmMonthlyRetention;
+ }
+
+ private static CSMYearlyRetentionSchedule ConvertToCSMYearlyRetentionObject(AzureBackupYearlyRetentionPolicy retentionPolicy, IList RetentionTimes)
+ {
+ CSMYearlyRetentionSchedule csmYearlyRetention = new CSMYearlyRetentionSchedule();
+
+ if (retentionPolicy.RetentionFormat == RetentionFormat.Daily)
+ {
+ csmYearlyRetention.RetentionScheduleType = RetentionScheduleFormat.Daily;
+ csmYearlyRetention.RetentionScheduleDaily = new CSMDailyRetentionFormat();
+ csmYearlyRetention.RetentionScheduleDaily.DaysOfTheMonth = ConvertToCSMDayList(retentionPolicy.DaysOfMonth);
+ }
+
+ else if (retentionPolicy.RetentionFormat == RetentionFormat.Weekly)
+ {
+ csmYearlyRetention.RetentionScheduleWeekly = new CSMWeeklyRetentionFormat();
+ csmYearlyRetention.RetentionScheduleType = RetentionScheduleFormat.Weekly;
+ csmYearlyRetention.RetentionScheduleWeekly.DaysOfTheWeek = retentionPolicy.DaysOfWeek;
+ csmYearlyRetention.RetentionScheduleWeekly.WeeksOfTheMonth = retentionPolicy.WeekNumber;
+ }
+
+ csmYearlyRetention.CSMRetentionDuration = new CSMRetentionDuration();
+ csmYearlyRetention.CSMRetentionDuration.Count = retentionPolicy.Retention;
+ csmYearlyRetention.CSMRetentionDuration.DurationType = RetentionDurationType.Years;
+ csmYearlyRetention.RetentionTimes = RetentionTimes;
+ csmYearlyRetention.MonthsOfYear = retentionPolicy.MonthsOfYear;
+
+ return csmYearlyRetention;
+ }
+
+ private static IList ConvertToCSMDayList(List DaysOfMonth)
+ {
+ IList dayList = new List();
+
+ foreach (string DayOfMonth in DaysOfMonth)
+ {
+ Day day = new Day();
+ if (string.Compare(DayOfMonth,"IsLast", true) == 0)
+ {
+ day.IsLast = true;
+ }
+ else
+ {
+ day.Date = Convert.ToInt32(DayOfMonth);
+ day.IsLast = false;
+ }
+ dayList.Add(day);
+ }
+
+ return dayList;
+ }
+
+ #endregion
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Helpers/VaultHelpers.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Helpers/VaultHelpers.cs
index a1d9d69b5b54..2bb8d3805a01 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Helpers/VaultHelpers.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Helpers/VaultHelpers.cs
@@ -26,9 +26,9 @@ internal static class VaultHelpers
///
///
///
- public static CmdletModel.AzurePSBackupVault GetCmdletVault(ClientModel.AzureBackupVault vault, string storageType)
+ public static CmdletModel.AzureRMBackupVault GetCmdletVault(ClientModel.AzureBackupVault vault, string storageType)
{
- var response = new CmdletModel.AzurePSBackupVault
+ var response = new CmdletModel.AzureRMBackupVault
{
ResourceId = vault.Id,
Name = vault.Name,
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Microsoft.Azure.Commands.AzureBackup.format.ps1xml b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Microsoft.Azure.Commands.AzureBackup.format.ps1xml
index 500adb8d49be..2e9d28348932 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Microsoft.Azure.Commands.AzureBackup.format.ps1xml
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Microsoft.Azure.Commands.AzureBackup.format.ps1xml
@@ -2,9 +2,9 @@
- Microsoft.Azure.Commands.AzureBackup.Models.AzurePSBackupVault
+ Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupVault
- Microsoft.Azure.Commands.AzureBackup.Models.AzurePSBackupVault
+ Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupVault
@@ -39,9 +39,60 @@
- Microsoft.Azure.Commands.AzureBackup.Models.AzureBackupContainer
+ Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupJob
- Microsoft.Azure.Commands.AzureBackup.Models.AzureBackupContainer
+ Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupJob
+
+
+
+
+
+ 15
+
+
+
+ 15
+
+
+
+ 15
+
+
+
+ 22
+
+
+
+ 22
+
+
+
+
+
+
+ WorkloadName
+
+
+ Operation
+
+
+ Status
+
+
+ StartTime
+
+
+ EndTime
+
+
+
+
+
+
+
+ Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupContainer
+
+ Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupContainer
@@ -75,5 +126,181 @@
+
+ Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupRecoveryPoint
+
+ Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupRecoveryPoint
+
+
+
+
+
+ 18
+
+
+
+ 18
+
+
+
+ 22
+
+
+
+ 36
+
+
+
+
+
+
+ RecoveryPointName
+
+
+ RecoveryPointType
+
+
+ RecoveryPointTime
+
+
+ ContainerUniqueName
+
+
+
+
+
+
+
+ Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupItem
+
+ Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupItem
+
+
+
+
+
+ 26
+
+
+
+ 22
+
+
+
+ 22
+
+
+
+ 22
+
+
+
+ 22
+
+
+
+
+
+
+ Name
+
+
+ ProtectionStatus
+
+
+ DataSourceStatus
+
+
+ RecoveryPointsCount
+
+
+ ProtectionPolicyName
+
+
+
+
+
+
+
+ Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupRetentionPolicy
+
+ Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupRetentionPolicy
+
+
+
+
+
+ 18
+
+
+
+ 18
+
+
+
+ 60
+
+
+
+
+
+
+ RetentionType
+
+
+ Retention
+
+
+ RetentionTimes
+
+
+
+
+
+
+
+ Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupProtectionPolicy
+
+ Microsoft.Azure.Commands.AzureBackup.Models.AzureRMBackupProtectionPolicy
+
+
+
+
+
+ 25
+
+
+
+ 18
+
+
+
+ 18
+
+
+
+ 38
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ ScheduleType
+
+
+ BackupTime
+
+
+
+
+
+
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupBaseObjects.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupBaseObjects.cs
index ff6434c7eab8..0d17acc695dd 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupBaseObjects.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupBaseObjects.cs
@@ -44,7 +44,7 @@ public AzureBackupVaultContextObject(string resourceGroupName, string resourceNa
Location = locationName;
}
- public AzureBackupVaultContextObject(AzurePSBackupVault vault)
+ public AzureBackupVaultContextObject(AzureRMBackupVault vault)
: this(vault.ResourceGroupName, vault.Name, vault.Region) { }
}
@@ -52,23 +52,79 @@ public AzureBackupVaultContextObject(AzurePSBackupVault vault)
/// This class encapsulates all the properties of the container object
/// that are needed by higher level objects (data source, recovery point etc).
///
- public class AzureBackupContainerContextObject : AzureBackupVaultContextObject
+ public class AzureRMBackupContainerContextObject : AzureBackupVaultContextObject
{
///
/// Type of the Azure Backup container
///
public string ContainerType { get; set; }
- public AzureBackupContainerContextObject()
+ ///
+ /// Unique name of the Azure Backup Container
+ ///
+ public string ContainerUniqueName { get; set; }
+
+ public AzureRMBackupContainerContextObject()
: base()
{
}
- public AzureBackupContainerContextObject(AzurePSBackupVault vault, MarsContainerResponse marsContainerResponse)
+ public AzureRMBackupContainerContextObject(AzureRMBackupVault vault, MarsContainerResponse marsContainerResponse)
: base(vault)
{
ContainerType = ContainerHelpers.GetContainerType(marsContainerResponse.Properties.CustomerType).ToString();
//ContainerUniqueName = marsContainerResponse.UniqueName;
}
+
+ public AzureRMBackupContainerContextObject(AzureRMBackupContainerContextObject azureBackupContainerContextObject)
+ : base(azureBackupContainerContextObject.ResourceGroupName, azureBackupContainerContextObject.ResourceName, azureBackupContainerContextObject.Location)
+ {
+ ContainerType = azureBackupContainerContextObject.ContainerType;
+ ContainerUniqueName = azureBackupContainerContextObject.ContainerUniqueName;
+ }
+ public AzureRMBackupContainerContextObject(AzureRMBackupContainer azureBackupContainer)
+ : base(azureBackupContainer.ResourceGroupName, azureBackupContainer.ResourceName, azureBackupContainer.Location)
+ {
+ ContainerType = azureBackupContainer.ContainerType;
+ ContainerUniqueName = azureBackupContainer.ContainerUniqueName;
+ }
+
+ public AzureRMBackupContainerContextObject(AzureRMBackupVault vault, CSMContainerResponse containerInfo)
+ : base(vault.ResourceGroupName, vault.Name, vault.Region)
+ {
+ ContainerType = ContainerHelpers.GetTypeForManagedContainer(containerInfo.Properties.ContainerType).ToString();
+ ContainerUniqueName = containerInfo.Name;
+ }
+ }
+
+ public class AzureRMBackupItemContextObject : AzureRMBackupContainerContextObject
+ {
+ ///
+ /// DataSourceName of Azure Backup Item
+ ///
+ public string ItemName { get; set; }
+
+ public AzureRMBackupItemContextObject()
+ : base()
+ {
+ }
+
+ public AzureRMBackupItemContextObject(AzureRMBackupItemContextObject azureBackupItemContextObject)
+ : base(azureBackupItemContextObject)
+ {
+ ItemName = azureBackupItemContextObject.ItemName;
+ }
+
+ public AzureRMBackupItemContextObject(CSMProtectedItemResponse item, AzureRMBackupContainer azureBackupContainer)
+ : base(azureBackupContainer)
+ {
+ ItemName = item.Name;
+ }
+
+ public AzureRMBackupItemContextObject(CSMItemResponse item, AzureRMBackupContainer azureBackupContainer)
+ : base(azureBackupContainer)
+ {
+ ItemName = item.Name;
+ }
}
}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupContainer.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupContainer.cs
index eba87adff331..a687cef7af5f 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupContainer.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupContainer.cs
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.AzureBackup.Models
///
/// Represents Azure Backup Container
///
- public class AzureBackupContainer : AzureBackupContainerContextObject
+ public class AzureRMBackupContainer : AzureRMBackupContainerContextObject
{
///
/// Resource name of the resource (ex: resource name of the VM) being managed by the Azure Backup service.
@@ -42,14 +42,23 @@ public class AzureBackupContainer : AzureBackupContainerContextObject
///
public string Status { get; set; }
- public AzureBackupContainer() : base() { }
+ public AzureRMBackupContainer() : base() { }
- public AzureBackupContainer(AzurePSBackupVault vault, MarsContainerResponse marsContainerResponse)
+ public AzureRMBackupContainer(AzureRMBackupVault vault, MarsContainerResponse marsContainerResponse)
: base(vault, marsContainerResponse)
{
Name = marsContainerResponse.Properties.FriendlyName;
Id = marsContainerResponse.Properties.ContainerId;
Status = AzureBackupContainerRegistrationStatus.Registered.ToString();
}
+
+ public AzureRMBackupContainer(AzureRMBackupVault vault, CSMContainerResponse containerInfo)
+ : base(vault, containerInfo)
+ {
+ //ManagedResourceGroupName = ContainerHelpers.GetRGNameFromId(containerInfo.Properties.ParentContainerId);
+ Name = containerInfo.Properties.FriendlyName;
+ //HealthStatus = containerInfo.Properties.HealthStatus;
+ Status = containerInfo.Properties.Status;
+ }
}
}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupEnums.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupEnums.cs
index 332fb487024c..a4c6156f6d8c 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupEnums.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupEnums.cs
@@ -24,16 +24,93 @@ public enum AzureBackupContainerType
{
Windows = 1,
SCDPM,
+ AzureVM,
}
- public enum AzureBackupContainerStatusInput
+ public enum DataSourceType
{
- Registering = 1,
- Registered,
+ Invalid = 0,
+
+ VM
}
public enum AzureBackupContainerRegistrationStatus
{
Registered = 1,
+ Registering,
+ NotRegistered,
+ }
+
+ public enum ScheduleType
+ {
+ Invalid = 0,
+ Daily = 1,
+ Weekly = 2
+ }
+
+ public enum BackupType
+ {
+ Invalid = 0,
+ Full = 1
+ }
+
+ public enum CSMAzureBackupOperationStatus
+ {
+
+ Invalid = 0,
+
+
+ InProgress,
+
+
+ Cancelled,
+
+
+ Succeeded,
+
+
+ Failed,
+
+
+ PartialSuccess
+ }
+
+ public enum AzureBackupOperationErrorCode
+ {
+ BMSUserErrorObjectLocked = 390026,
+ DiscoveryInProgress = 410002,
+ }
+
+ public enum ManagedContainerType
+ {
+ Invalid = 0,
+ IaasVM,
+ IaasVMService,
+ }
+
+ public enum RetentionType
+ {
+ Invalid = 0,
+ Daily = 1,
+ Weekly = 2,
+ Monthly = 3,
+ Yearly = 4
+ }
+
+ public enum WorkloadType
+ {
+ Invalid = 0,
+ AzureVM = 1
+ }
+
+ public enum RetentionFormat
+ {
+ Daily,
+ Weekly
+ }
+
+ public enum AzureBackupItemType
+ {
+ IaasVM = 0
}
}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupItem.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupItem.cs
new file mode 100644
index 000000000000..b4c861e765bc
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupItem.cs
@@ -0,0 +1,97 @@
+// ----------------------------------------------------------------------------------
+//
+// 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;
+using Microsoft.Azure.Management.BackupServices.Models;
+using Microsoft.Azure.Commands.AzureBackup.Helpers;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Models
+{
+ ///
+ /// Represents Azure Backup Item
+ ///
+ public class AzureRMBackupItem : AzureRMBackupItemContextObject
+ {
+ ///
+ /// Friendly Name for the Azure BackupItem
+ ///
+ public string Name { get; set; }
+
+ ///
+ /// Status for the Azure Backup Item
+ ///
+ public string DataSourceStatus { get; set; }
+
+ ///
+ /// Protection Status for the Azure Backup Item
+ ///
+ public string ProtectionStatus { get; set; }
+
+ ///
+ /// Type of Azure Backup Item
+ ///
+ public string Type { get; set; }
+
+ ///
+ /// Protection Policy Name for the Azure Backup Item
+ ///
+ public string ProtectionPolicyName { get; set; }
+
+ ///
+ /// Protection Policy Id for the Azure Backup Item
+ ///
+ public string ProtectionPolicyId { get; set; }
+
+ ///
+ /// Recovery Points Count for the Azure Backup Item
+ ///
+ public int RecoveryPointsCount { get; set; }
+
+ public AzureRMBackupItem()
+ : base()
+ {
+ }
+
+ public AzureRMBackupItem(CSMProtectedItemResponse datasource, AzureRMBackupContainer azureBackupContainer)
+ : base(datasource, azureBackupContainer)
+ {
+ DataSourceStatus = datasource.Properties.ProtectionStatus;
+ ProtectionStatus = datasource.Properties.Status;
+ ItemName = datasource.Name;
+ Name = datasource.Properties.FriendlyName;
+
+ if (datasource.Properties.ProtectionPolicyId != null)
+ {
+ ProtectionPolicyName = datasource.Properties.ProtectionPolicyId.Split('/').Last();
+ }
+
+ ProtectionPolicyId = datasource.Properties.ProtectionPolicyId;
+ RecoveryPointsCount = datasource.Properties.RecoveryPointsCount;
+ Type = ItemHelpers.GetTypeForItem(datasource.Properties.ItemType);
+ }
+
+ public AzureRMBackupItem(CSMItemResponse pPOItem, AzureRMBackupContainer azureBackupContainer)
+ : base(pPOItem, azureBackupContainer)
+ {
+ ProtectionStatus = pPOItem.Properties.Status;
+ ItemName = pPOItem.Name;
+ Name = pPOItem.Properties.FriendlyName;
+ Type = ItemHelpers.GetTypeForItem(pPOItem.Properties.ItemType);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupRecoveryPoint.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupRecoveryPoint.cs
new file mode 100644
index 000000000000..c26353993db8
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupRecoveryPoint.cs
@@ -0,0 +1,70 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.Azure.Management.BackupServices.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Models
+{
+ public class AzureBackupRecoveryPointContextObject : AzureRMBackupItemContextObject
+ {
+ ///
+ /// RecoveryPointId of Azure Backup Item
+ ///
+ public string RecoveryPointName { get; set; }
+
+ public AzureBackupRecoveryPointContextObject()
+ : base()
+ {
+ }
+
+ public AzureBackupRecoveryPointContextObject(CSMRecoveryPointResponse recoveryPointInfo, AzureRMBackupItem azureBackupItem)
+ : base(azureBackupItem)
+ {
+ RecoveryPointName = recoveryPointInfo.Name;
+ }
+ }
+
+ ///
+ /// Represents Azure Backup Container
+ ///
+ public class AzureRMBackupRecoveryPoint : AzureBackupRecoveryPointContextObject
+ {
+ ///
+ /// Last Recovery Point for the Azure Backup Item
+ ///
+ public DateTime RecoveryPointTime { get; set; }
+
+ ///
+ /// DataSourceId of Azure Backup Item
+ ///
+ public string RecoveryPointType { get; set; }
+
+ public AzureRMBackupRecoveryPoint()
+ : base()
+ {
+ }
+
+ public AzureRMBackupRecoveryPoint(CSMRecoveryPointResponse recoveryPointInfo, AzureRMBackupItem azureBackupItem)
+ : base(recoveryPointInfo, azureBackupItem)
+ {
+ RecoveryPointTime = recoveryPointInfo.Properties.RecoveryPointTime;
+ RecoveryPointType = recoveryPointInfo.Properties.RecoveryPointType;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzurePSBackupVault.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzurePSBackupVault.cs
index 62324a3a36ea..a86ec7bc4aeb 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzurePSBackupVault.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzurePSBackupVault.cs
@@ -12,6 +12,7 @@
// limitations under the License.
// ----------------------------------------------------------------------------------
+using Microsoft.Azure.Commands.AzureBackup.Properties;
using System;
namespace Microsoft.Azure.Commands.AzureBackup.Models
@@ -19,7 +20,7 @@ namespace Microsoft.Azure.Commands.AzureBackup.Models
///
/// Represents Azure Backup vault
///
- public class AzurePSBackupVault
+ public class AzureRMBackupVault
{
public string ResourceId { get; set; }
@@ -33,9 +34,9 @@ public class AzurePSBackupVault
public string Storage { get; set; }
- public AzurePSBackupVault() : base() { }
+ public AzureRMBackupVault() : base() { }
- public AzurePSBackupVault(string resourceGroupName, string resourceName, string region)
+ public AzureRMBackupVault(string resourceGroupName, string resourceName, string region)
{
ResourceGroupName = resourceGroupName;
Name = resourceName;
@@ -46,12 +47,12 @@ internal void Validate()
{
if (String.IsNullOrEmpty(ResourceGroupName))
{
- throw new ArgumentException("AzureBackupVault.ResourceGroupName");
+ throw new ArgumentException(Resources.BackupVaultRGNameNullOrEmpty);
}
if (String.IsNullOrEmpty(Name))
{
- throw new ArgumentException("AzureBackupVault.Name");
+ throw new ArgumentException(Resources.BackupVaultResNameNullOrEmpty);
}
}
}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/JobObjects.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/JobObjects.cs
new file mode 100644
index 000000000000..89cdff0b87ba
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/JobObjects.cs
@@ -0,0 +1,148 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Collections.Generic;
+using System.Xml;
+using System.Linq;
+using System.Web;
+using Microsoft.Azure.Management.BackupServices;
+using Microsoft.Azure.Management.BackupServices;
+using Mgmt = Microsoft.Azure.Management.BackupServices.Models;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Models
+{
+ public class AzureRMBackupJob : AzureBackupVaultContextObject
+ {
+ public string InstanceId { get; private set; }
+
+ public string WorkloadType { get; set; }
+
+ public string Operation { get; set; }
+
+ public string Status { get; set; }
+
+ public string WorkloadName { get; set; }
+
+ public TimeSpan Duration { get; set; }
+
+ public DateTime StartTime { get; set; }
+
+ public DateTime? EndTime { get; set; }
+
+ public bool IsCancellable { get; private set; }
+
+ public bool IsRetriable { get; private set; }
+
+ public List ErrorDetails { get; set; }
+
+ public AzureRMBackupJob(AzureRMBackupVault vault, Mgmt.CSMJobProperties serviceJob, string jobName)
+ : base(vault)
+ {
+ this.InstanceId = jobName;
+ this.WorkloadType = serviceJob.WorkloadType;
+ this.WorkloadName = serviceJob.EntityFriendlyName;
+ this.Operation = serviceJob.Operation;
+ this.Status = serviceJob.Status;
+ this.Duration = serviceJob.Duration;
+ this.StartTime = serviceJob.StartTimestamp;
+ this.EndTime = serviceJob.EndTimestamp;
+ this.ErrorDetails = new List();
+
+ if (serviceJob.ErrorDetails != null)
+ {
+ foreach (Mgmt.CSMJobErrorInfo error in serviceJob.ErrorDetails)
+ {
+ this.ErrorDetails.Add(new ErrorInfo(error));
+ }
+ }
+
+ this.IsRetriable = this.IsCancellable = false;
+
+ if (serviceJob.ActionsInfo != null)
+ {
+ for (int i = 0; i < serviceJob.ActionsInfo.Count; i++)
+ {
+ if (serviceJob.ActionsInfo[i] == Mgmt.JobSupportedAction.Cancellable)
+ this.IsCancellable = true;
+ else if (serviceJob.ActionsInfo[i] == Mgmt.JobSupportedAction.Retriable)
+ this.IsRetriable = true;
+ }
+ }
+ }
+ }
+
+ public class ErrorInfo
+ {
+ public int ErrorCode { get; set; }
+
+ public string ErrorMessage { get; set; }
+
+ // Not including ErrorTitle because we are not filling anything in it.
+
+ public List Recommendations { get; set; }
+
+ public ErrorInfo(Mgmt.CSMJobErrorInfo serviceErrorInfo)
+ {
+ this.ErrorCode = serviceErrorInfo.ErrorCode;
+ this.ErrorMessage = serviceErrorInfo.ErrorString;
+ this.Recommendations = new List();
+ foreach(string recommendation in serviceErrorInfo.Recommendations)
+ {
+ this.Recommendations.Add(recommendation);
+ }
+ }
+ }
+
+ public class AzureRMBackupJobDetails : AzureRMBackupJob
+ {
+ public Dictionary Properties { get; set; }
+
+ public List SubTasks { get; set; }
+
+ public AzureRMBackupJobDetails(AzureRMBackupVault vault, Mgmt.CSMJobDetailedProperties serviceJobProperties, string jobName)
+ : base(vault, serviceJobProperties, jobName)
+ {
+ if (serviceJobProperties.PropertyBag != null)
+ this.Properties = new Dictionary(serviceJobProperties.PropertyBag);
+ else
+ this.Properties = new Dictionary();
+
+ this.SubTasks = new List();
+ if(serviceJobProperties.TasksList != null)
+ {
+ foreach (Mgmt.CSMJobTaskDetails serviceSubTask in serviceJobProperties.TasksList)
+ {
+ this.SubTasks.Add(new AzureBackupJobSubTask(serviceSubTask));
+ }
+ }
+ }
+ }
+
+ public class AzureBackupJobSubTask
+ {
+ public string Name { get; set; }
+
+ public string Status { get; set; }
+
+ // Not adding other fields because service is not filling them today.
+
+ public AzureBackupJobSubTask(Mgmt.CSMJobTaskDetails serviceTask)
+ {
+ this.Name = serviceTask.TaskId;
+ this.Status = serviceTask.Status;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/ListContainerQueryParameter.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/ListContainerQueryParameter.cs
new file mode 100644
index 000000000000..08de6d174ffe
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/ListContainerQueryParameter.cs
@@ -0,0 +1,41 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.Azure.Management.BackupServices.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Models
+{
+ internal class ListContainerQueryParameter : ManagementBaseObject
+ {
+ ///
+ ///Containers information for registration
+ ///
+ public string ContainerTypeField { get; set; }
+
+ ///
+ ///Containers status information
+ ///
+ public string ContainerStatusField { get; set; }
+
+ ///
+ ///Containers status information
+ ///
+ public string ContainerFriendlyNameField { get; set; }
+ }
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/ProtectionPolicy.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/ProtectionPolicy.cs
new file mode 100644
index 000000000000..a1e5da5a9770
--- /dev/null
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/ProtectionPolicy.cs
@@ -0,0 +1,139 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.Azure.Management.BackupServices.Models;
+using System;
+using System.Collections.Generic;
+using Microsoft.Azure.Commands.AzureBackup.Helpers;
+
+namespace Microsoft.Azure.Commands.AzureBackup.Models
+{
+ ///
+ /// Represents ProtectionPolicy object
+ ///
+ public class AzureRMBackupProtectionPolicy : AzureBackupVaultContextObject
+ {
+ ///
+ /// Name of the azurebackup object
+ ///
+
+ public string PolicyId { get; set; }
+
+ public string Name { get; set; }
+
+ public string Type { get; set; }
+
+ public string ScheduleType { get; set; }
+
+ public List DaysOfWeek { get; set; }
+
+ public DateTime BackupTime { get; set; }
+
+ public IList RetentionPolicy { get; set; }
+
+ public AzureRMBackupProtectionPolicy()
+ {
+ }
+
+ public AzureRMBackupProtectionPolicy(AzureRMBackupVault vault, CSMProtectionPolicyProperties sourcePolicy, string policyId)
+ : base(vault)
+ {
+ PolicyId = policyId;
+ Name = sourcePolicy.PolicyName;
+ Type = ProtectionPolicyHelpers.ConvertToPowershellWorkloadType(sourcePolicy.WorkloadType);
+ ScheduleType = sourcePolicy.BackupSchedule.ScheduleRun;
+ BackupTime = ProtectionPolicyHelpers.ConvertToPowershellScheduleRunTimes(sourcePolicy.BackupSchedule.ScheduleRunTimes);
+ DaysOfWeek = ProtectionPolicyHelpers.ConvertToPowershellScheduleRunDays(sourcePolicy.BackupSchedule.ScheduleRunDays);
+ RetentionPolicy = ProtectionPolicyHelpers.ConvertCSMRetentionPolicyListToPowershell(sourcePolicy.LtrRetentionPolicy);
+ }
+ }
+
+ public class AzureRMBackupRetentionPolicy
+ {
+ public string RetentionType { get; set; }
+
+ public int Retention { get; set; }
+
+ public IList RetentionTimes { get; set; }
+
+ public AzureRMBackupRetentionPolicy(string retentionType, int retention)
+ {
+ this.RetentionType = retentionType;
+ this.Retention = retention;
+ }
+ }
+
+ public class AzureBackupDailyRetentionPolicy : AzureRMBackupRetentionPolicy
+ {
+ public AzureBackupDailyRetentionPolicy(string retentionType, int retention)
+ : base(retentionType, retention)
+ { }
+ }
+
+ public class AzureBackupWeeklyRetentionPolicy : AzureRMBackupRetentionPolicy
+ {
+ public List DaysOfWeek { get; set; }
+ public AzureBackupWeeklyRetentionPolicy(string retentionType, int retention, IList daysOfWeek)
+ : base(retentionType, retention)
+ {
+ this.DaysOfWeek = new List(daysOfWeek);
+ }
+ }
+
+ public class AzureBackupMonthlyRetentionPolicy : AzureRMBackupRetentionPolicy
+ {
+ public RetentionFormat RetentionFormat { get; set; }
+
+ public List DaysOfMonth { get; set; }
+
+ public List WeekNumber { get; set; }
+
+ public List DaysOfWeek { get; set; }
+
+ public AzureBackupMonthlyRetentionPolicy(string retentionType, int retention, RetentionFormat retentionFormat, List daysOfMonth,
+ List weekNumber, List daysOfWeek)
+ : base(retentionType, retention)
+ {
+ this.RetentionFormat = retentionFormat;
+ this.DaysOfMonth = daysOfMonth;
+ this.WeekNumber = weekNumber;
+ this.DaysOfWeek = daysOfWeek;
+ }
+ }
+
+ public class AzureBackupYearlyRetentionPolicy : AzureRMBackupRetentionPolicy
+ {
+ public List MonthsOfYear { get; set; }
+
+ public RetentionFormat RetentionFormat { get; set; }
+
+ public List DaysOfMonth { get; set; }
+
+ public List WeekNumber { get; set; }
+
+ public List DaysOfWeek { get; set; }
+
+ public AzureBackupYearlyRetentionPolicy(string retentionType, int retention, List monthsOfYear, RetentionFormat retentionFormat, List daysOfMonth,
+ List weekNumber, List daysOfWeek)
+ : base(retentionType, retention)
+ {
+ this.MonthsOfYear = monthsOfYear;
+ this.RetentionFormat = retentionFormat;
+ this.DaysOfMonth = daysOfMonth;
+ this.WeekNumber = weekNumber;
+ this.DaysOfWeek = daysOfWeek;
+ }
+ }
+
+}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.Designer.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.Designer.cs
index 515623e43787..5f78194dd775 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.Designer.cs
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.Designer.cs
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:4.0.30319.34014
+// Runtime Version:4.0.30319.18449
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -60,6 +60,678 @@ internal Resources() {
}
}
+ ///
+ /// Looks up a localized string similar to Handling aggregate exception.
+ ///
+ internal static string AggregateException {
+ get {
+ return ResourceManager.GetString("AggregateException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Exiting because all jobs have finished running..
+ ///
+ internal static string AllJobsCompleted {
+ get {
+ return ResourceManager.GetString("AllJobsCompleted", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Received ArgumentException.
+ ///
+ internal static string ArgumentException {
+ get {
+ return ResourceManager.GetString("ArgumentException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Received Azure Backup Item response.
+ ///
+ internal static string AzureBackupItemResponse {
+ get {
+ return ResourceManager.GetString("AzureBackupItemResponse", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Please specify both From and To..
+ ///
+ internal static string AzureBackupJobArguementException {
+ get {
+ return ResourceManager.GetString("AzureBackupJobArguementException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Type of input paramter is List<AzureBackupJob> second case.
+ ///
+ internal static string AzureBackupJobInputType {
+ get {
+ return ResourceManager.GetString("AzureBackupJobInputType", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to The specified Azure Virtual Machine Not Found. Possible causes are
+ ///1. VM does not exist
+ ///2. VM is Azure IaaS v2 VM
+ ///3. The VM name or the Service name needs to be case sensitive
+ ///4. VM is already Registered with same or other Vault. Please Unregister VM first and then try to register it again.
+ ///
+ ///Please contact Microsoft for further assistant..
+ ///
+ internal static string AzureVMNotFound {
+ get {
+ return ResourceManager.GetString("AzureVMNotFound", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Cmdlet called for ResourceGroupName: {0}, ResourceName: {1}, Location: {2}.
+ ///
+ internal static string BackupItemCmdletCalled {
+ get {
+ return ResourceManager.GetString("BackupItemCmdletCalled", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For daily backup schedule, protection policy cannot have DaysOfWeek param in backup schedule.
+ ///
+ internal static string BackupScheduleDailyParamException {
+ get {
+ return ResourceManager.GetString("BackupScheduleDailyParamException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For weekly backup schedule, DaysOfWeek in backup schedule is mandatory and cannot be empty.
+ ///
+ internal static string BackupScheduleWeeklyParamException {
+ get {
+ return ResourceManager.GetString("BackupScheduleWeeklyParamException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to AzureBackupVault.Name.
+ ///
+ internal static string BackupVaultResNameNullOrEmpty {
+ get {
+ return ResourceManager.GetString("BackupVaultResNameNullOrEmpty", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to AzureBackupVault.ResourceGroupName.
+ ///
+ internal static string BackupVaultRGNameNullOrEmpty {
+ get {
+ return ResourceManager.GetString("BackupVaultRGNameNullOrEmpty", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to RecoveryService - Backup Vault - Successfully serialized the file content.
+ ///
+ internal static string BackupVaultSerialized {
+ get {
+ return ResourceManager.GetString("BackupVaultSerialized", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Reregistration can be enable only for machine containers..
+ ///
+ internal static string CannotEnableRegistration {
+ get {
+ return ResourceManager.GetString("CannotEnableRegistration", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Received CloudException, ErrorCode: {0}, Message: {1}.
+ ///
+ internal static string CloudException {
+ get {
+ return ResourceManager.GetString("CloudException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Received CloudException, StatusCode: {0}.
+ ///
+ internal static string CloudExceptionCodeNotFound {
+ get {
+ return ResourceManager.GetString("CloudExceptionCodeNotFound", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Cmdlet called for ResourceGroupName: {0}, ResourceName: {1}, Location: {2}.
+ ///
+ internal static string CmdletCalled {
+ get {
+ return ResourceManager.GetString("CmdletCalled", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Count of containers after resource group filter = {0}.
+ ///
+ internal static string ContainerCountAfterFilter {
+ get {
+ return ResourceManager.GetString("ContainerCountAfterFilter", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Container count returned from service: {0}.
+ ///
+ internal static string ContainerCountFromService {
+ get {
+ return ResourceManager.GetString("ContainerCountFromService", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Container is not discovered.
+ ///
+ internal static string ContainerNotDiscovered {
+ get {
+ return ResourceManager.GetString("ContainerNotDiscovered", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Input is container Type = {0}.
+ ///
+ internal static string ContainerTypeInput {
+ get {
+ return ResourceManager.GetString("ContainerTypeInput", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Creating backup vault with ResourceGroupName: {0}, ResourceName: {1}.
+ ///
+ internal static string CreatingBackupVault {
+ get {
+ return ResourceManager.GetString("CreatingBackupVault", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Only one AzureBackupDailyRetentionPolicy in RetentionPolicies is allowed.
+ ///
+ internal static string DailyRetentionPolicyException {
+ get {
+ return ResourceManager.GetString("DailyRetentionPolicyException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupDailyRetentionPolicy , valid values of retention are {0} to {1}.
+ ///
+ internal static string DailyRetentionPolicyValueException {
+ get {
+ return ResourceManager.GetString("DailyRetentionPolicyValueException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For Daily Schedule, AzureBackupDailyRetentionPolicy in RetentionPolicies param is mandatory.
+ ///
+ internal static string DailyScheduleException {
+ get {
+ return ResourceManager.GetString("DailyScheduleException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Days of the month in Monthly/Yearly retention is not allowed for weekly backup Schedules.
+ ///
+ internal static string DaysOfMonthsNotAllowedinMonthlyYearlyFormat {
+ get {
+ return ResourceManager.GetString("DaysOfMonthsNotAllowedinMonthlyYearlyFormat", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to DaysofTheWeek list in Weekly retention schedule must be same of backup schedule DaysOfTheWeek.
+ ///
+ internal static string DaysofTheWeekInWeeklyRetentionException {
+ get {
+ return ResourceManager.GetString("DaysofTheWeekInWeeklyRetentionException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to DaysOfTheWeek of retention schedule must be same of backup schedule DaysOfTheWeek.
+ ///
+ internal static string DaysOfTheWeekOfRetentionScheduleException {
+ get {
+ return ResourceManager.GetString("DaysOfTheWeekOfRetentionScheduleException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Desired Container is not found. Returning with isDiscoveryNeed = true.
+ ///
+ internal static string DesiredContainerNotFound {
+ get {
+ return ResourceManager.GetString("DesiredContainerNotFound", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Received disable azure backup protection response.
+ ///
+ internal static string DisableAzureBackupProtection {
+ get {
+ return ResourceManager.GetString("DisableAzureBackupProtection", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Failed to discover VM {0} under {1} {2}. Please make sure names are correct and VM is not deleted".
+ ///
+ internal static string DiscoveryFailure {
+ get {
+ return ResourceManager.GetString("DiscoveryFailure", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Discovery operation failed with ErrorCode: {0}.
+ ///
+ internal static string DiscoveryFailureErrorCode {
+ get {
+ return ResourceManager.GetString("DiscoveryFailureErrorCode", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Received enable azure backup protection response.
+ ///
+ internal static string EnableAzureBackupProtection {
+ get {
+ return ResourceManager.GetString("EnableAzureBackupProtection", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to EndTime filter is: {0}.
+ ///
+ internal static string EndTimeFilter {
+ get {
+ return ResourceManager.GetString("EndTimeFilter", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to End time not set. Setting it to current time.
+ ///
+ internal static string EndTimeNotSet {
+ get {
+ return ResourceManager.GetString("EndTimeNotSet", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Caught exception, type: {0}.
+ ///
+ internal static string ExceptionInExecution {
+ get {
+ return ResourceManager.GetString("ExceptionInExecution", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Executing cmdlet with SubscriptionId = {0}, ResourceGroupName = {1}, ResourceName = {2}, TargetLocation = {3}.
+ ///
+ internal static string ExecutingGetVaultCredCmdlet {
+ get {
+ return ResourceManager.GetString("ExecutingGetVaultCredCmdlet", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Fetched {0} containers.
+ ///
+ internal static string FetchedContainer {
+ get {
+ return ResourceManager.GetString("FetchedContainer", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Initialized AzureBackup Cmdlet, ClientRequestId: {0}, ResourceGroupName: {1}, ResourceName : {2}.
+ ///
+ internal static string InitializingClient {
+ get {
+ return ResourceManager.GetString("InitializingClient", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to JobID is: {0}.
+ ///
+ internal static string JobId {
+ get {
+ return ResourceManager.GetString("JobId", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to JobID filter is: {0}.
+ ///
+ internal static string JobIdFilter {
+ get {
+ return ResourceManager.GetString("JobIdFilter", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Successfully retrieved job.
+ ///
+ internal static string JobResponse {
+ get {
+ return ResourceManager.GetString("JobResponse", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Successfully retrieved all jobs. Number of jobs retrieved: {0}.
+ ///
+ internal static string JobRetrieved {
+ get {
+ return ResourceManager.GetString("JobRetrieved", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Making client call.
+ ///
+ internal static string MakingClientCall {
+ get {
+ return ResourceManager.GetString("MakingClientCall", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Days, DaysOfMonth param is mandatory and can not be empty.
+ ///
+ internal static string MonthlyRetentionPolicyDaysOfMonthParamException {
+ get {
+ return ResourceManager.GetString("MonthlyRetentionPolicyDaysOfMonthParamException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Weeks, DaysOfMonth param is not allowed..
+ ///
+ internal static string MonthlyRetentionPolicyDaysOfMonthsException {
+ get {
+ return ResourceManager.GetString("MonthlyRetentionPolicyDaysOfMonthsException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Weeks, DaysOfWeek param is mandatory and can not be empty.
+ ///
+ internal static string MonthlyRetentionPolicyDaysOfWeekException {
+ get {
+ return ResourceManager.GetString("MonthlyRetentionPolicyDaysOfWeekException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Days, DaysOfWeek or WeekNumber params are not allowed.
+ ///
+ internal static string MonthlyRetentionPolicyDaysOfWeekParamException {
+ get {
+ return ResourceManager.GetString("MonthlyRetentionPolicyDaysOfWeekParamException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Only one AzureBackupMonthlyRetentionPolicy in RetentionPolicies is allowed.
+ ///
+ internal static string MonthlyRetentionPolicyException {
+ get {
+ return ResourceManager.GetString("MonthlyRetentionPolicyException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupMonthlyRetentionPolicy , valid values of retention are {0} to {1}.
+ ///
+ internal static string MonthlyRetentionPolicyValueException {
+ get {
+ return ResourceManager.GetString("MonthlyRetentionPolicyValueException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Weeks, WeekNumber param is mandatory and can not be empty.
+ ///
+ internal static string MonthlyRetentionPolicyWeekNumException {
+ get {
+ return ResourceManager.GetString("MonthlyRetentionPolicyWeekNumException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Days of the week list in Monthly/Yearly retention schedule should be subset of Day of week list in Backup Schedule.
+ ///
+ internal static string MonthlyYearlyRetentionArgumentException {
+ get {
+ return ResourceManager.GetString("MonthlyYearlyRetentionArgumentException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to No recovery point exist with Id := {0}.
+ ///
+ internal static string NoRpExist {
+ get {
+ return ResourceManager.GetString("NoRpExist", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to No recovery point found.
+ ///
+ internal static string NoRpFound {
+ get {
+ return ResourceManager.GetString("NoRpFound", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Number of jobs to wait on: {0}.
+ ///
+ internal static string NumberOfJobsForWaiting {
+ get {
+ return ResourceManager.GetString("NumberOfJobsForWaiting", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Operation filter is: {0}.
+ ///
+ internal static string OperationFilter {
+ get {
+ return ResourceManager.GetString("OperationFilter", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to OperationStatus : {0}.
+ ///
+ internal static string OperationStatus {
+ get {
+ return ResourceManager.GetString("OperationStatus", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to A protection policy with the specified name already exists..
+ ///
+ internal static string PolicyAlreadyExist {
+ get {
+ return ResourceManager.GetString("PolicyAlreadyExist", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For DaysOfWeek, weekly switch param is required.
+ ///
+ internal static string PolicyArgumentException {
+ get {
+ return ResourceManager.GetString("PolicyArgumentException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Protection Policy {0} not found.
+ ///
+ internal static string PolicyNotFound {
+ get {
+ return ResourceManager.GetString("PolicyNotFound", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to ParameterSetName = {0}.
+ ///
+ internal static string PolicyParameterSet {
+ get {
+ return ResourceManager.GetString("PolicyParameterSet", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Protection Policy successfully updated.
+ ///
+ internal static string PolicyUpdated {
+ get {
+ return ResourceManager.GetString("PolicyUpdated", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Protection Policy successfully updated and created job(s) to re-configure protection on associated items.
+ ///
+ internal static string PolicyUpdatedReconfigureProtectionDone {
+ get {
+ return ResourceManager.GetString("PolicyUpdatedReconfigureProtectionDone", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Protection policy created successfully.
+ ///
+ internal static string ProtectionPolicyCreated {
+ get {
+ return ResourceManager.GetString("ProtectionPolicyCreated", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Successfully deleted policy.
+ ///
+ internal static string ProtectionPolicyDeleted {
+ get {
+ return ResourceManager.GetString("ProtectionPolicyDeleted", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to The protection policy name should contain alphanumeric characters and cannot start with a number.
+ ///
+ internal static string ProtectionPolicyNameException {
+ get {
+ return ResourceManager.GetString("ProtectionPolicyNameException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to The protection policy name must contain between 3 and 150 characters.
+ ///
+ internal static string ProtectionPolicyNameLengthException {
+ get {
+ return ResourceManager.GetString("ProtectionPolicyNameLengthException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Please make sure you have pass right set of parameters.
+ ///
+ internal static string PSArgumentException {
+ get {
+ return ResourceManager.GetString("PSArgumentException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to In loop querying jobs.
+ ///
+ internal static string QueryingJobs {
+ get {
+ return ResourceManager.GetString("QueryingJobs", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to No jobs to wait on. Quitting..
+ ///
+ internal static string QuittingWaitJob {
+ get {
+ return ResourceManager.GetString("QuittingWaitJob", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Registering ARM-V1 VM, VMName: {0}, CloudServiceName: {1}.
+ ///
+ internal static string RegisteringARMVM1 {
+ get {
+ return ResourceManager.GetString("RegisteringARMVM1", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Registering ARM-V2 VM, VMName: {0}, ResourceGroupName: {1}.
+ ///
+ internal static string RegisteringARMVM2 {
+ get {
+ return ResourceManager.GetString("RegisteringARMVM2", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Going to register VM {0}.
+ ///
+ internal static string RegisteringVM {
+ get {
+ return ResourceManager.GetString("RegisteringVM", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Going to retry Discovery if retry count is not exceeded.
+ ///
+ internal static string RertyDiscovery {
+ get {
+ return ResourceManager.GetString("RertyDiscovery", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to The specified resource does not exist..
///
@@ -69,6 +741,141 @@ internal static string ResourceNotFoundMessage {
}
}
+ ///
+ /// Looks up a localized string similar to Atleast one retention policy in RetentionPolicies param is mandatory.
+ ///
+ internal static string RetentionPolicyCountException {
+ get {
+ return ResourceManager.GetString("RetentionPolicyCountException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Saving Vault Credentials to file : {0}.
+ ///
+ internal static string SavingVaultCred {
+ get {
+ return ResourceManager.GetString("SavingVaultCred", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Setting end time to min value.
+ ///
+ internal static string SettingEndTime {
+ get {
+ return ResourceManager.GetString("SettingEndTime", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Setting StartTime to min value.
+ ///
+ internal static string SettingStartTime {
+ get {
+ return ResourceManager.GetString("SettingStartTime", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Setting storage type for the resource, Type: {0}.
+ ///
+ internal static string SettingStorageType {
+ get {
+ return ResourceManager.GetString("SettingStorageType", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to StartTime filter is: {0}.
+ ///
+ internal static string StartTimeFilter {
+ get {
+ return ResourceManager.GetString("StartTimeFilter", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Status filter is: {0}.
+ ///
+ internal static string StatusFilter {
+ get {
+ return ResourceManager.GetString("StatusFilter", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Stop Job failed with ErrorCode: {0}.
+ ///
+ internal static string StopJobFailed {
+ get {
+ return ResourceManager.GetString("StopJobFailed", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to From should be lesser than To.
+ ///
+ internal static string TimeFilterNotCorrect {
+ get {
+ return ResourceManager.GetString("TimeFilterNotCorrect", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Exiting due to timeout..
+ ///
+ internal static string TimeOutWaitInJob {
+ get {
+ return ResourceManager.GetString("TimeOutWaitInJob", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Triggered cancellation of job with JobID: {0}.
+ ///
+ internal static string TriggeredCancellationJob {
+ get {
+ return ResourceManager.GetString("TriggeredCancellationJob", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Triggered backup. Converting response {0}.
+ ///
+ internal static string TriggeringBackup {
+ get {
+ return ResourceManager.GetString("TriggeringBackup", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Triggered Restore. Converting response {0}.
+ ///
+ internal static string TriggeringRestore {
+ get {
+ return ResourceManager.GetString("TriggeringRestore", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Type filter is: {0}.
+ ///
+ internal static string TypeFilter {
+ get {
+ return ResourceManager.GetString("TypeFilter", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Unknown item type.
+ ///
+ internal static string UnknownItemType {
+ get {
+ return ResourceManager.GetString("UnknownItemType", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Unregister Server.
///
@@ -86,5 +893,185 @@ internal static string UnregisterServerMessage {
return ResourceManager.GetString("UnregisterServerMessage", resourceCulture);
}
}
+
+ ///
+ /// Looks up a localized string similar to Unsupported WorkloadType.
+ ///
+ internal static string UnsupportedWorkloadTypeException {
+ get {
+ return ResourceManager.GetString("UnsupportedWorkloadTypeException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to RecoveryService - Successfully uploaded the certificate.
+ ///
+ internal static string UploadedCertToIdmgmt {
+ get {
+ return ResourceManager.GetString("UploadedCertToIdmgmt", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to RecoveryService - Going to upload the certificate.
+ ///
+ internal static string UploadingCertToIdmgmt {
+ get {
+ return ResourceManager.GetString("UploadingCertToIdmgmt", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to The target location provided is not a directory. Please provide a directory..
+ ///
+ internal static string VaultCredPathException {
+ get {
+ return ResourceManager.GetString("VaultCredPathException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to VM {0} is not yet discovered. Triggering Discovery.
+ ///
+ internal static string VMNotDiscovered {
+ get {
+ return ResourceManager.GetString("VMNotDiscovered", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Received WebException, Response: {0}, Status: {1}.
+ ///
+ internal static string WebException {
+ get {
+ return ResourceManager.GetString("WebException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupWeeklyRetentionPolicy , DaysOfWeek param is mandatory and can not be empty.
+ ///
+ internal static string WeeklyRetentionPolicyDaysOfWeekException {
+ get {
+ return ResourceManager.GetString("WeeklyRetentionPolicyDaysOfWeekException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Only one AzureBackupWeeklyRetentionPolicy in RetentionPolicies is allowed.
+ ///
+ internal static string WeeklyRetentionPolicyException {
+ get {
+ return ResourceManager.GetString("WeeklyRetentionPolicyException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupWeeklyRetentionPolicy , valid values of retention are {0} to {1}.
+ ///
+ internal static string WeeklyRetentionPolicyValueException {
+ get {
+ return ResourceManager.GetString("WeeklyRetentionPolicyValueException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For Weekly Schedule, AzureBackupWeeklyRetentionPolicy in RetentionPolicies param is mandatory.
+ ///
+ internal static string WeeklyScheduleException {
+ get {
+ return ResourceManager.GetString("WeeklyScheduleException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For weekly scheduletype , ScheduleRunDays param is mandatory and can not be empty..
+ ///
+ internal static string WeeklyScheduleRunDaysException {
+ get {
+ return ResourceManager.GetString("WeeklyScheduleRunDaysException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For Weekly Schedule, AzureBackupDailyRetentionPolicy in RetentionPolicies param is not allowed.
+ ///
+ internal static string WeeklyScheduleWithDailyException {
+ get {
+ return ResourceManager.GetString("WeeklyScheduleWithDailyException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupYearlyRetentionPolicy and RetentionFormat in Weeks, DaysOfMonth param is not allowed.
+ ///
+ internal static string YearlyRetentionPolicyDaysOfMonthInWeekFormatException {
+ get {
+ return ResourceManager.GetString("YearlyRetentionPolicyDaysOfMonthInWeekFormatException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupYearlyRetentionPolicy and RetentionFormat in Days, DaysOfMonth param is mandatory and can not be empty.
+ ///
+ internal static string YearlyRetentionPolicyDaysOfMonthParamException {
+ get {
+ return ResourceManager.GetString("YearlyRetentionPolicyDaysOfMonthParamException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupYearlyRetentionPolicy and RetentionFormat in Weeks, DaysOfWeek param is mandatory and can not be empty.
+ ///
+ internal static string YearlyRetentionPolicyDaysOfWeekInWeeksFormatParamException {
+ get {
+ return ResourceManager.GetString("YearlyRetentionPolicyDaysOfWeekInWeeksFormatParamException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupYearlyRetentionPolicy and RetentionFormat in Days, DaysOfWeek or WeekNumber params are not allowed.
+ ///
+ internal static string YearlyRetentionPolicyDaysOfWeekParamException {
+ get {
+ return ResourceManager.GetString("YearlyRetentionPolicyDaysOfWeekParamException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Only one AzureBackupYearlyRetentionPolicy in RetentionPolicies is allowed.
+ ///
+ internal static string YearlyRetentionPolicyException {
+ get {
+ return ResourceManager.GetString("YearlyRetentionPolicyException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupYearlyRetentionPolicy and RetentionFormat in days, MonthsOfYear param is mandatory and can not be empty.
+ ///
+ internal static string YearlyRetentionPolicyMonthOfYearParamException {
+ get {
+ return ResourceManager.GetString("YearlyRetentionPolicyMonthOfYearParamException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupYearlyRetentionPolicy , valid values of retention are {0} to {1}.
+ ///
+ internal static string YearlyRetentionPolicyValueException {
+ get {
+ return ResourceManager.GetString("YearlyRetentionPolicyValueException", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to For AzureBackupYearlyRetentionPolicy and RetentionFormat in Weeks, WeekNumber param is mandatory and can not be empty.
+ ///
+ internal static string YearlyRetentionPolicyWeekNumParamException {
+ get {
+ return ResourceManager.GetString("YearlyRetentionPolicyWeekNumParamException", resourceCulture);
+ }
+ }
}
}
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.resx b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.resx
index 3abfe5b400d9..28203c10b30d 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.resx
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Properties/Resources.resx
@@ -117,13 +117,347 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Handling aggregate exception
+
+
+ Exiting because all jobs have finished running.
+
+
+ Received ArgumentException
+
+
+ Received Azure Backup Item response
+
+
+ Please specify both From and To.
+
+
+ Type of input paramter is List<AzureBackupJob> second case
+
+
+ The specified Azure Virtual Machine Not Found. Possible causes are
+1. VM does not exist
+2. VM is Azure IaaS v2 VM
+3. The VM name or the Service name needs to be case sensitive
+4. VM is already Registered with same or other Vault. Please Unregister VM first and then try to register it again.
+
+Please contact Microsoft for further assistant.
+
+
+ Cmdlet called for ResourceGroupName: {0}, ResourceName: {1}, Location: {2}
+
+
+ For daily backup schedule, protection policy cannot have DaysOfWeek param in backup schedule
+
+
+ For weekly backup schedule, DaysOfWeek in backup schedule is mandatory and cannot be empty
+
+
+ AzureBackupVault.Name
+
+
+ AzureBackupVault.ResourceGroupName
+
+
+ RecoveryService - Backup Vault - Successfully serialized the file content
+
+
+ Reregistration can be enable only for machine containers.
+
+
+ Received CloudException, ErrorCode: {0}, Message: {1}
+
+
+ Received CloudException, StatusCode: {0}
+
+
+ Cmdlet called for ResourceGroupName: {0}, ResourceName: {1}, Location: {2}
+
+
+ Count of containers after resource group filter = {0}
+
+
+ Container count returned from service: {0}
+
+
+ Container is not discovered
+
+
+ Input is container Type = {0}
+
+
+ Creating backup vault with ResourceGroupName: {0}, ResourceName: {1}
+
+
+ Only one AzureBackupDailyRetentionPolicy in RetentionPolicies is allowed
+
+
+ For AzureBackupDailyRetentionPolicy , valid values of retention are {0} to {1}
+
+
+ For Daily Schedule, AzureBackupDailyRetentionPolicy in RetentionPolicies param is mandatory
+
+
+ Days of the month in Monthly/Yearly retention is not allowed for weekly backup Schedules
+
+
+ DaysofTheWeek list in Weekly retention schedule must be same of backup schedule DaysOfTheWeek
+
+
+ DaysOfTheWeek of retention schedule must be same of backup schedule DaysOfTheWeek
+
+
+ Desired Container is not found. Returning with isDiscoveryNeed = true
+
+
+ Received disable azure backup protection response
+
+
+ Failed to discover VM {0} under {1} {2}. Please make sure names are correct and VM is not deleted"
+
+
+ Discovery operation failed with ErrorCode: {0}
+
+
+ Received enable azure backup protection response
+
+
+ EndTime filter is: {0}
+
+
+ End time not set. Setting it to current time
+
+
+ Caught exception, type: {0}
+
+
+ Executing cmdlet with SubscriptionId = {0}, ResourceGroupName = {1}, ResourceName = {2}, TargetLocation = {3}
+
+
+ Fetched {0} containers
+
+
+ Initialized AzureBackup Cmdlet, ClientRequestId: {0}, ResourceGroupName: {1}, ResourceName : {2}
+
+
+ JobID is: {0}
+
+
+ JobID filter is: {0}
+
+
+ Successfully retrieved job
+
+
+ Successfully retrieved all jobs. Number of jobs retrieved: {0}
+
+
+ Making client call
+
+
+ For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Days, DaysOfMonth param is mandatory and can not be empty
+
+
+ For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Weeks, DaysOfMonth param is not allowed.
+
+
+ For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Weeks, DaysOfWeek param is mandatory and can not be empty
+
+
+ For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Days, DaysOfWeek or WeekNumber params are not allowed
+
+
+ Only one AzureBackupMonthlyRetentionPolicy in RetentionPolicies is allowed
+
+
+ For AzureBackupMonthlyRetentionPolicy , valid values of retention are {0} to {1}
+
+
+ For AzureBackupMonthlyRetentionPolicy and RetentionFormat in Weeks, WeekNumber param is mandatory and can not be empty
+
+
+ Days of the week list in Monthly/Yearly retention schedule should be subset of Day of week list in Backup Schedule
+
+
+ No recovery point exist with Id := {0}
+
+
+ No recovery point found
+
+
+ Number of jobs to wait on: {0}
+
+
+ Operation filter is: {0}
+
+
+ OperationStatus : {0}
+
+
+ A protection policy with the specified name already exists.
+
+
+ For DaysOfWeek, weekly switch param is required
+
+
+ Protection Policy {0} not found
+
+
+ ParameterSetName = {0}
+
+
+ Protection Policy successfully updated
+
+
+ Protection Policy successfully updated and created job(s) to re-configure protection on associated items
+
+
+ Protection policy created successfully
+
+
+ Successfully deleted policy
+
+
+ The protection policy name should contain alphanumeric characters and cannot start with a number
+
+
+ The protection policy name must contain between 3 and 150 characters
+
+
+ Please make sure you have pass right set of parameters
+ d:\git2\azure-powershell\src\resourcemanager\azurebackup\commands.azurebackup\cmdlets\container\registerazurermbackupcontainer.cs
+
+
+ In loop querying jobs
+
+
+ No jobs to wait on. Quitting.
+
+
+ Registering ARM-V1 VM, VMName: {0}, CloudServiceName: {1}
+
+
+ Registering ARM-V2 VM, VMName: {0}, ResourceGroupName: {1}
+
+
+ Going to register VM {0}
+
+
+ Going to retry Discovery if retry count is not exceeded
+
The specified resource does not exist.
+
+ Atleast one retention policy in RetentionPolicies param is mandatory
+
+
+ Saving Vault Credentials to file : {0}
+
+
+ Setting end time to min value
+
+
+ Setting StartTime to min value
+
+
+ Setting storage type for the resource, Type: {0}
+
+
+ StartTime filter is: {0}
+
+
+ Status filter is: {0}
+
+
+ Stop Job failed with ErrorCode: {0}
+
+
+ From should be lesser than To
+
+
+ Exiting due to timeout.
+
+
+ Triggered cancellation of job with JobID: {0}
+
+
+ Triggered backup. Converting response {0}
+
+
+ Triggered Restore. Converting response {0}
+
+
+ Type filter is: {0}
+
+
+ Unknown item type
+
Unregister Server
This operation will delete all data in the backup vault that is associated with the server. Are you sure you want to unregister the server?
+
+ Unsupported WorkloadType
+
+
+ RecoveryService - Successfully uploaded the certificate
+
+
+ RecoveryService - Going to upload the certificate
+
+
+ The target location provided is not a directory. Please provide a directory.
+
+
+ VM {0} is not yet discovered. Triggering Discovery
+
+
+ Received WebException, Response: {0}, Status: {1}
+
+
+ For AzureBackupWeeklyRetentionPolicy , DaysOfWeek param is mandatory and can not be empty
+
+
+ Only one AzureBackupWeeklyRetentionPolicy in RetentionPolicies is allowed
+
+
+ For AzureBackupWeeklyRetentionPolicy , valid values of retention are {0} to {1}
+
+
+ For Weekly Schedule, AzureBackupWeeklyRetentionPolicy in RetentionPolicies param is mandatory
+
+
+ For weekly scheduletype , ScheduleRunDays param is mandatory and can not be empty.
+
+
+ For Weekly Schedule, AzureBackupDailyRetentionPolicy in RetentionPolicies param is not allowed
+
+
+ For AzureBackupYearlyRetentionPolicy and RetentionFormat in Weeks, DaysOfMonth param is not allowed
+
+
+ For AzureBackupYearlyRetentionPolicy and RetentionFormat in Days, DaysOfMonth param is mandatory and can not be empty
+
+
+ For AzureBackupYearlyRetentionPolicy and RetentionFormat in Weeks, DaysOfWeek param is mandatory and can not be empty
+
+
+ For AzureBackupYearlyRetentionPolicy and RetentionFormat in Days, DaysOfWeek or WeekNumber params are not allowed
+
+
+ Only one AzureBackupYearlyRetentionPolicy in RetentionPolicies is allowed
+
+
+ For AzureBackupYearlyRetentionPolicy and RetentionFormat in days, MonthsOfYear param is mandatory and can not be empty
+
+
+ For AzureBackupYearlyRetentionPolicy , valid values of retention are {0} to {1}
+
+
+ For AzureBackupYearlyRetentionPolicy and RetentionFormat in Weeks, WeekNumber param is mandatory and can not be empty
+
\ No newline at end of file
diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/packages.config b/src/ResourceManager/AzureBackup/Commands.AzureBackup/packages.config
index c0253923472e..745b22bb0fa2 100644
--- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/packages.config
+++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/packages.config
@@ -4,7 +4,7 @@
-
+